Skip to content

[x-license] use workspace dep for v9 in cross-major compat tests#22504

Merged
aemartos merged 7 commits into
mui:masterfrom
aemartos:feature/sto-166-x-license-compat-use-workspace-for-v9
May 18, 2026
Merged

[x-license] use workspace dep for v9 in cross-major compat tests#22504
aemartos merged 7 commits into
mui:masterfrom
aemartos:feature/sto-166-x-license-compat-use-workspace-for-v9

Conversation

@aemartos
Copy link
Copy Markdown
Member

Summary

The cross-major license compat workspace was pinning x-license-v9 to a published npm version. That triggered a Renovate bump PR on every @mui/x-license release, needless churn since v9 is the current major.

This PR switches v9 to the existing @mui/x-license: workspace:^ dep, so the v9 row of the matrix auto-tracks whatever's in the repo. The older majors (v5–v8) stay pinned to specific published versions, that's still the point of the matrix.

Side-effect: the __ALLOW_TEST_LICENSES__ transform plugin (added to patch the inlined false in the published v9 bundle) is no longer needed, because the workspace source uses the unresolved token and vitest.shared.mts already defines it as true. Removed.

@aemartos aemartos self-assigned this May 18, 2026
@aemartos aemartos added internal Behind-the-scenes enhancement. Formerly called “core”. scope: x-license Changes related to @mui/x-license. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels May 18, 2026
@aemartos aemartos mentioned this pull request May 18, 2026
1 task
@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented May 18, 2026

Deploy preview

https://deploy-preview-22504--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

aemartos and others added 3 commits May 18, 2026 11:03
Copy link
Copy Markdown
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. 👍

//
// When v10 ships:
// - Switch the workspace dep target to the new major (i.e. v10 becomes the workspace).
// - Pin v9 here as an npm alias to its latest published 9.x.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also add the #npm-tag-reference into the comment so that this doesn't get lost?

And maybe link this PR for easier discoverability, just in case there are git blame issues?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice touch! Done here.

@aemartos aemartos merged commit 3001156 into mui:master May 18, 2026
21 checks passed
@aemartos aemartos deleted the feature/sto-166-x-license-compat-use-workspace-for-v9 branch May 18, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Behind-the-scenes enhancement. Formerly called “core”. scope: x-license Changes related to @mui/x-license. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants