Skip to content

release: v4.48.0 - a last release: vX.Y.Z commit sets the release version - #604

Merged
cldmv-bot[bot] merged 13 commits into
masterfrom
next
Nov 29, 2026
Merged

cldmv-bot[bot] merged 13 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

v4.48.0 — 2026-11-29

Minor release: a release: vX.Y.Z commit 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 .default and 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

  • A last release: vX.Y.Z commit 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 plain release: 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 to next/hotfixes or merged through a release/X.Y.Z PR. A release commit anywhere else in the range keeps the old behaviour, so an old master release 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

  • The CJS shim keeps .default and every ESM name on a single exported value. When every export of src/index.mjs was one function or class (a default plus a named alias, or a single named export), examples/package-layout/src/index.cjs returned the bare value, so require(x).default, require(x).Name and const { Name } = require(x) stopped working. The shim now sets .default and 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.md describes the new shape, and examples/package-layout/index-cjs.test.mjs covers it from npm test. (#603)
  • A PR title whose summary matches no commit is replaced. normalize-pr-title kept 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 a release: commit (#606).
  • docs/conventions/release-flow-v4.md §6.4: the title normalizer's keep and rewrite rules (#602).
  • NEW: docs/changelogs/v4.48.0.md, this changelog.
  • README What's New promoted to v4.48.0.

Upgrade notes

  • Repos that copied the old shim body update their src/index.cjs from examples/package-layout/src/index.cjs. For a package whose ESM entry exports a single function or class, require() gains .default and the export names. Other packages see no change.
  • To set a release's version by hand, merge everything else (the changelog included) first, then push release: vX.Y.Z as the last commit on next.
  • Nothing else to change in consumer repos. The title rule applies on the next push to a feature branch once @v4 moves.
👥 Contributors

Co-authored-by: Shinrai [email protected]

Shinrai and others added 4 commits November 28, 2026 20:44
…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>
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected area: tests Touches test files, fixtures, or test infrastructure type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 29, 2026
Shinrai and others added 2 commits November 28, 2026 22:22
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>
@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code type: ci Changes to CI workflows, actions, or build pipelines labels Nov 29, 2026
Shinrai and others added 5 commits November 28, 2026 22:39
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_
@cldmv-bot cldmv-bot Bot changed the title release: v4.47.2 - CJS shim keeps .default and every ESM name on a… release: v4.48.0 - let a last release: vX.Y.Z commit set the release… Nov 29, 2026
@cldmv-bot cldmv-bot Bot added semver: minor This release adds new functionality in a backwards-compatible way type: feature Implements new functionality — a PR or issue that adds a feature and removed semver: patch This release contains only backwards-compatible bug fixes labels Nov 29, 2026
Shinrai and others added 2 commits November 29, 2026 02:17
## 🚀 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 Shinrai changed the title release: v4.48.0 - let a last release: vX.Y.Z commit set the release… release: v4.48.0 - a last release: vX.Y.Z commit sets the release version Nov 29, 2026
@cldmv-bot
cldmv-bot Bot merged commit c8a9231 into master Nov 29, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

normalize-pr-title keeps a stale title when its type still conforms

1 participant