Repository navigation
release: v4.48.0 - a last release: vX.Y.Z commit sets the release version - #604
Merged
Merged
Conversation
…value
When every export was one function or class, the shim returned the bare
value and dropped the names, so require(x).default, require(x).Name and
const { Name } = require(x) stopped working. It now sets .default and each
exported name on that value, the usual CommonJS shape. Multi-value
entries still get the module object.
…value (#603) ## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes - fix: CJS shim keeps .default and every ESM name on a single exported value (#603) (6fa554a) ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes - test: check the package-layout CJS shim keeps .default and the ESM names (#603) (74a60f0) <details> <summary>👥 Contributors</summary> - @Shinrai </details>
normalize-pr-title kept any title whose type still conformed to the range, so after a branch was rewritten (a commit folded into another and force-pushed) the PR kept a title none of its commits had, and the merge commit carried it. A conforming title now also has to match one of the commit subjects' summaries; otherwise it is rewritten from the highest commit, as a non-conforming one is. A title picked from one of several commits, or one that raises a commit's type, is still kept. Resolves #601
## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes - fix: replace a PR title whose summary matches no commit (#602) (207d901) ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes _No other changes_ <details> <summary>👥 Contributors</summary> - @Shinrai </details>
When the newest commit in the release range (first-parent order, skipping the bot's version-bump and lint/format autofix commits; a PR merge counts as the PR's newest commit) is a plain `release: vX.Y.Z`, that version wins over every other commit in the range, breaking ones included. A release commit anywhere else keeps the old behaviour, so an old master release commit never pins a later release. An explicit version at or below the released version now fails the release-PR refresh instead of opening a downgrade or same-version release, and the already-bumped check covers explicit versions too.
## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes _No bug fixes_ ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes - docs: add the v4.47.2 changelog and promote What's New (22c1f98) <details> <summary>👥 Contributors</summary> - @Shinrai </details>
## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes _No bug fixes_ ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes _No other changes_
## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes _No bug fixes_ ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes - docs: cover #606 in the v4.48.0 changelog (123d714) <details> <summary>👥 Contributors</summary> - @Shinrai </details>
Shinrai
approved these changes
Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v4.48.0 — 2026-11-29
Minor release: a
release: vX.Y.Zcommit at the end of the release range now sets the version outright, even over breaking commits earlier in the range. The package-layout CommonJS shim keeps.defaultand the ESM names on a single exported value, and the PR-title step replaces a title that no longer matches any of the PR's commits.Features
release: vX.Y.Zcommit sets the release version. Before, a breaking commit anywhere in the range forced a major, and an explicit version only counted when the release commit was the only commit. Now, when the newest commit in the range is a plainrelease: vX.Y.Z(optionally- <description>or(#N)), that version wins over every other commit. "Newest" is first-parent order on the branch, skipping the bot's version-bump and lint/format autofix commits; for a PR merge commit the PR's own newest commit counts, so the commit can be pushed straight tonext/hotfixesor merged through arelease/X.Y.ZPR. A release commit anywhere else in the range keeps the old behaviour, so an oldmasterrelease commit never pins a later release. A version at or below the released version fails the release-PR refresh with an error instead of opening a downgrade or a same-version release, and the already-bumped check now covers explicit versions too.docs/conventions/release-flow-v4.md§5.3 describes it. (#606)Bug Fixes
.defaultand every ESM name on a single exported value. When every export ofsrc/index.mjswas one function or class (a default plus a named alias, or a single named export),examples/package-layout/src/index.cjsreturned the bare value, sorequire(x).default,require(x).Nameandconst { Name } = require(x)stopped working. The shim now sets.defaultand each exported name on that value, which is the usual CommonJS shape, and leaves a name the value already has (a static of the same name) alone. Entries that export more than one distinct value, or a single primitive, still get the module object.docs/conventions/package-layout.mddescribes the new shape, andexamples/package-layout/index-cjs.test.mjscovers it fromnpm test. (#603)normalize-pr-titlekept any title whose type still conformed to the PR's commits. When a branch was rewritten (a commit folded into another and force-pushed), the PR kept a title none of its commits had, and the merge commit carried it. A conforming title now also has to match the summary of one of the commit subjects; otherwise it is rebuilt from the highest commit, as a non-conforming title is. A title picked from one of several commits, or one that raises a commit's type, is still kept. Fixes #601 (#602)Documentation
docs/conventions/package-layout.md: the shim table and the rule on attaching names (#603).docs/conventions/release-flow-v4.md§5.3: setting the version with arelease:commit (#606).docs/conventions/release-flow-v4.md§6.4: the title normalizer's keep and rewrite rules (#602).Upgrade notes
src/index.cjsfromexamples/package-layout/src/index.cjs. For a package whose ESM entry exports a single function or class,require()gains.defaultand the export names. Other packages see no change.release: vX.Y.Zas the last commit onnext.@v4moves.👥 Contributors
Co-authored-by: Shinrai [email protected]