Repository navigation
ci: release 0.54.x fixes from the 0.x maintenance branch - #648
Merged
Merged
Conversation
Publish from pushes to 0.x, in the 0.x version range, under the npm dist-tag 0.x. master becomes the 1.x line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 of 5 tasks
Contributor
Author
1.0 publishes only the @dcmjs-org packages, so the unscoped dcmjs package has only the 0.x line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
master is now 0.x, and the 1.x line releases from main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
semantic-release reads the lower bound of a maintenance range with semver.validRange(), which gives "<1.0.0-0" for "0.x". The range of the branch then becomes ">=1.0.0 <1.0.0-beta.1", and a fix fails with EINVALIDNEXTVERSION. With "0.54.x" a fix releases 0.54.N, and a feat fails the publish job until a PR raises the range. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wayfarer3130
marked this pull request as ready for review
November 27, 2026 22:39
|
🎉 This PR is included in version 0.54.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
wayfarer3130
added a commit
that referenced
this pull request
Nov 28, 2026
… links (#679) - .releaserc.json: remove successComment: false, which was for the 1.0.0 release only. The 0.x entry uses the range 0.54.x, as on the 0.x branch (#648). - RELEASE_PLAN.md: the same changes, and why semantic-release cannot use the range 0.x. - codemods READMEs: link to docs on main, not master. Co-authored-by: Claude Opus 5.5 <[email protected]>
wayfarer3130
added a commit
that referenced
this pull request
Nov 28, 2026
* chore(release): comment on released PRs again; 0.x range 0.54.x; main links - .releaserc.json: remove successComment: false, which was for the 1.0.0 release only. The 0.x entry uses the range 0.54.x, as on the 0.x branch (#648). - RELEASE_PLAN.md: the same changes, and why semantic-release cannot use the range 0.x. - codemods READMEs: link to docs on main, not master. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat: publish dcmjs 1.x under the unscoped dcmjs name too packages/dcmjs is the package "dcmjs". Each entry re-exports the same entry of @dcmjs-org/dcmjs, so an application that uses both names gets one copy of the code. pnpm -r publish ships it with the other packages, and the stamp script gives it the same version. - packages/dcmjs: package.json, the ESM and CJS re-export files of ".", eventStream, media, encapsulated, image and dictionary, README. - test/package-exports.test.js: the alias has the same entry points as @dcmjs-org/dcmjs, and each entry file re-exports the same entry. - .releaserc.json, RELEASE_PLAN.md: the 0.x line publishes under the npm dist-tag 0.x, so that latest stays on 1.x. - README, MIGRATION.md, package-name codemod README: the unscoped name publishes 1.x; the codemod is optional. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(dcmjs): ship the UMD build for unpkg; depend on ^; channel release-0.x (review of #681) - packages/dcmjs: a build step copies build/dcmjs.js (and its map) to dist/, and the unpkg and jsdelivr fields point at it, so that https://unpkg.com/dcmjs keeps working in a browser after 1.x takes latest (review B1, Q1). The dependency is workspace:^, so an app with a newer @dcmjs-org/dcmjs gets one copy of the code (Q2). - .releaserc.json, RELEASE_PLAN.md: the 0.x channel is release-0.x, the npm dist-tag that the 0.x line gets (Q3, S1). - README, MIGRATION.md: the first unscoped 1.x is 1.1.0 (S2); one copy when one version satisfies both names (N1); the unpkg URL serves the 1.x UMD build; the jest mapping also maps the dcmjs names (N2). - test: each ESM target that the alias re-exports has a default export (N3). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Summary
This PR makes
0.xthe maintenance branch of dcmjs 0.x. Afix:merge into0.xpublishes a new0.54.Nversion ofdcmjsto npmlatest.The
0.xbranch is the oldmaster, renamed after the release of1.0.0. The 1.x line releases the@dcmjs-org/*packages frommain.Changes
.github/workflows/publish-package.yml: the publish job runs on a push to0.x, not tomaster..releaserc.json(new):0.xis a maintenance branch withrange: "0.54.x"andchannel: false.mainis the release branch, because semantic-release must have one release branch.Version range:
0.54.x, not0.xsemantic-release 25.0.9 cannot release from a maintenance branch with
range: "0.x":semver.validRange(range).semver.validRange("0.x")gives<1.0.0-0. The result has no lower bound, so semantic-release uses1.0.0.>=1.0.0 <1.0.0-beta.1. Even a fix fails withEINVALIDNEXTVERSION.@semantic-release/core1.0.0 (the code of semantic-release 26) has the samegetLowerBound().semver.validRange("0.54.x")gives>=0.54.0 <0.55.0-0, and semantic-release reads the correct lower bound.Effect for maintainers:
fix:commit on0.xreleases0.54.1,0.54.2, and so on.feat:commit or a breaking change on0.xfails the publish job withEINVALIDNEXTVERSION. No version goes to npm. Merge only fixes into0.x.0.55.0, a PR changes the range to0.55.xtogether with thefeat:commit.npm dist-tag
dcmjs 1.0 publishes only the
@dcmjs-org/*packages. Thus the unscopeddcmjspackage has only the 0.x line. The releases from0.xgo to npmlatest(channel: false), sonpm install dcmjsgets each 0.x fix.A
dcmjsalias of@dcmjs-org/dcmjsis possible later. That alias is a separate step. If the alias publishes 1.x asdcmjs@latest, then changechannelhere to"0.x"at the same time.Verification
I ran
semantic-release --dry-run --no-ci(25.0.9) on a scratch repository. The repository had this branch as0.x, the currentmain(v1.0.0), and all tags.fix:commit: "The next release version is 0.54.1", "Published release 0.54.1 on default channel".feat:commit:EINVALIDNEXTVERSION, range>=0.54.0 <0.55.0.range: "0.x"and an addedfix:commit:EINVALIDNEXTVERSION, range>=1.0.0 <1.0.0-beta.1.Tests
No code change. The test and lint workflows already run on each push to
0.x.🤖 Generated with Claude Code