Skip to content

ci: release 0.54.x fixes from the 0.x maintenance branch - #648

Merged
wayfarer3130 merged 6 commits into
0.xfrom
chore/0.x-release-line
Nov 27, 2026
Merged

wayfarer3130 merged 6 commits into
0.xfrom
chore/0.x-release-line

Conversation

@wayfarer3130

@wayfarer3130 wayfarer3130 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR makes 0.x the maintenance branch of dcmjs 0.x. A fix: merge into 0.x publishes a new 0.54.N version of dcmjs to npm latest.

The 0.x branch is the old master, renamed after the release of 1.0.0. The 1.x line releases the @dcmjs-org/* packages from main.

Changes

  • .github/workflows/publish-package.yml: the publish job runs on a push to 0.x, not to master.
  • .releaserc.json (new): 0.x is a maintenance branch with range: "0.54.x" and channel: false. main is the release branch, because semantic-release must have one release branch.

Version range: 0.54.x, not 0.x

semantic-release 25.0.9 cannot release from a maintenance branch with range: "0.x":

  • semantic-release reads the lower bound of the range from semver.validRange(range).
  • semver.validRange("0.x") gives <1.0.0-0. The result has no lower bound, so semantic-release uses 1.0.0.
  • The range of the branch then becomes >=1.0.0 <1.0.0-beta.1. Even a fix fails with EINVALIDNEXTVERSION.
  • @semantic-release/core 1.0.0 (the code of semantic-release 26) has the same getLowerBound().

semver.validRange("0.54.x") gives >=0.54.0 <0.55.0-0, and semantic-release reads the correct lower bound.

Effect for maintainers:

  • A fix: commit on 0.x releases 0.54.1, 0.54.2, and so on.
  • A feat: commit or a breaking change on 0.x fails the publish job with EINVALIDNEXTVERSION. No version goes to npm. Merge only fixes into 0.x.
  • To release a 0.55.0, a PR changes the range to 0.55.x together with the feat: commit.

npm dist-tag

dcmjs 1.0 publishes only the @dcmjs-org/* packages. Thus the unscoped dcmjs package has only the 0.x line. The releases from 0.x go to npm latest (channel: false), so npm install dcmjs gets each 0.x fix.

A dcmjs alias of @dcmjs-org/dcmjs is possible later. That alias is a separate step. If the alias publishes 1.x as dcmjs@latest, then change channel here 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 as 0.x, the current main (v1.0.0), and all tags.

  • With no new commit: "Found git tag v0.54.0 associated with version 0.54.0 on branch 0.x", and "There are no relevant changes".
  • With an added fix: commit: "The next release version is 0.54.1", "Published release 0.54.1 on default channel".
  • With an added feat: commit: EINVALIDNEXTVERSION, range >=0.54.0 <0.55.0.
  • With range: "0.x" and an added fix: 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

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]>
@wayfarer3130 wayfarer3130 mentioned this pull request Nov 24, 2026
3 of 5 tasks
@wayfarer3130

wayfarer3130 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Checklist for the 1.0 release on 2026-12-04

This checklist tracks the open 0.x pull requests and the ports to 1.x. A maintainer can click a checkbox to record the state. "0.x" is a merge into 0.x (or master before the move). "1.x" is a port to 1.0-beta (or master after the move).

1. Merge before the move of 1.0 to master

1.0-beta PRs to merge before #649

After the release

  • Optional: a dcmjs alias of @dcmjs-org/dcmjs. If the alias takes dcmjs@latest, change the 0.x channel to "0.x" in the same change
  • npm deprecate and the dist-tag cleanup (vNext, dev) from RELEASE_PLAN.md

2. Important fixes: merge to 0.x and port to 1.x

3. Merged on 0.x, not yet on 1.x (port before #649)

4. Easy merges

5. Features and decisions (do not block 1.0)

6. Closed (no longer issues, stale, or out of scope)

wayfarer3130 and others added 2 commits November 24, 2026 12:15
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]>
@wayfarer3130

Copy link
Copy Markdown
Contributor Author

@pieper, I merged master into this branch (d75beca). The merge had no conflicts. The branch now differs from master only in .github/workflows/publish-package.yml and .releaserc.json.

Status of the 0.x "should fix" pull requests before the 1.0 release:

Merge this pull request after master publishes 1.0.0.

wayfarer3130 and others added 3 commits November 27, 2026 17:02
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 wayfarer3130 changed the title ci: release the 0.x maintenance line from the 0.x branch ci: release 0.54.x fixes from the 0.x maintenance branch Nov 27, 2026
@wayfarer3130
wayfarer3130 marked this pull request as ready for review November 27, 2026 22:39
@wayfarer3130
wayfarer3130 merged commit af281f6 into 0.x Nov 27, 2026
8 checks passed
@wayfarer3130
wayfarer3130 deleted the chore/0.x-release-line branch November 27, 2026 22:39
@github-actions

Copy link
Copy Markdown

🎉 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants