Skip to content

[code-infra] Fix changelog generator for Premium-without-Pro products#22029

Merged
LukasTy merged 2 commits into
mui:masterfrom
LukasTy:fix-changelog-premium-without-pro
Apr 8, 2026
Merged

[code-infra] Fix changelog generator for Premium-without-Pro products#22029
LukasTy merged 2 commits into
mui:masterfrom
LukasTy:fix-changelog-premium-without-pro

Conversation

@LukasTy
Copy link
Copy Markdown
Member

@LukasTy LukasTy commented Apr 8, 2026

Summary

The Premium branch of logProductSection in scripts/changelogUtils.mjs hard-coded a ${packageName}-pro reference in its "Same changes as in" line. For products that ship Premium without a Pro tier (currently only Scheduler), this generated a dangling reference to a package that does not exist - e.g. @mui/x-scheduler-pro@9.0.0-alpha.0 in the v9.0.0 entry (#22020, CHANGELOG.md:97).

Fix: consult the already-tracked hasProVersion flag and fall back to the base package when no Pro tier exists. Also fix up the existing stale line in the v9.0.0 changelog entry so consumers reading it today land on a real package.

Changes

  • scripts/changelogUtils.mjs: in the if (hasPremiumVersion) block, compute a previousTierPackage as @mui/${packageName}-pro when hasProVersion is true, otherwise @mui/${packageName}. Use that variable in both the "...plus:" and standalone "Same changes as in" lines.
  • CHANGELOG.md: @mui/x-scheduler-pro@9.0.0-alpha.0 -> @mui/x-scheduler@9.0.0-alpha.0 (line 97).

Test plan

  • Traced the generator manually for Data Grid (has both pro and premium commits): Premium section still emits @mui/x-data-grid-pro@..., unchanged.
  • Traced the generator manually for Scheduler (premium only, no pro): Premium section now emits @mui/x-scheduler@... instead of the non-existent @mui/x-scheduler-pro@....
  • grep -rn 'x-scheduler-pro' CHANGELOG.md scripts/ returns no matches after the fix.
  • Next release changelog run should no longer regenerate the typo.

Reported during review of #22020.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

🤖 Generated with Claude Code

The Premium branch of `logProductSection` hard-coded a `${packageName}-pro`
reference in its "Same changes as in" line, producing a dangling
`@mui/x-scheduler-pro` entry for products like Scheduler that ship Premium
without a Pro tier. Consult `hasProVersion` and fall back to the base
package when no Pro tier exists, and fix up the existing stale line in
the v9.0.0 changelog entry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LukasTy LukasTy requested review from a team as code owners April 8, 2026 12:31
@mui-bot
Copy link
Copy Markdown

mui-bot commented Apr 8, 2026

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

Bundle size report

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%)

Details of bundle changes

Generated by 🚫 dangerJS against 369a0a9

@LukasTy LukasTy added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). labels Apr 8, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LukasTy
Copy link
Copy Markdown
Member Author

LukasTy commented Apr 8, 2026

FYI, I already checked locally that the changes no longer generate the -pro part in the new changelog.

Copy link
Copy Markdown
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

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

Thanks for handling this. When writing it I did not imagine we would have a Premium package without a Pro counterpart! 😅

@LukasTy LukasTy merged commit ad71bde into mui:master Apr 8, 2026
21 checks passed
@LukasTy LukasTy deleted the fix-changelog-premium-without-pro branch April 8, 2026 13:06
arminmeh pushed a commit to arminmeh/mui-x that referenced this pull request Apr 29, 2026
…mui#22029)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). 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.

4 participants