Skip to content

feat(release): 1.0 release rules: experimental and deprecated headings, real majors, release candidates on next - #707

Merged
leemour merged 2 commits into
mainfrom
feat/release-policy-b
Nov 23, 2026
Merged

leemour merged 2 commits into
mainfrom
feat/release-policy-b

Conversation

@leemour

@leemour leemour commented Nov 23, 2026

Copy link
Copy Markdown
Member

Task

The owner decided that cli-base and then cli-core go to 1.0 with a small stable API under real semver. Everything else is marked experimental and may change in a minor, so majors stay rare and development does not wait for them. Today's release tooling cannot do that:

  • after 1.0, every break heading would force a major;
  • a release candidate breaks the version check, and npm refuses to publish it without a tag;
  • next-version turns a taken major into a minor.

What

  • Two new changelog headings, Changed — experimental and Deprecated. Both need a minor. Changed — may break callers and Removed stay for the stable API and need a major from 1.0.0 on.
  • level.ts understands pre-releases. 1.0.0-rc.1 counts as 1.0.0, and the version below the top section is the last plain release.
  • next-version keeps a taken x.0.0 a major, in both copies (src/dev/next-version.ts, scripts/next-version.mjs).
  • bin/release --major. Without the flag, a version that raises the major over npm's latest stops.
  • Pre-releases publish under npm's next tag, from bin/release and from release.yml (dry run and publish).
  • Optional peers narrowed: commander to ^15.0.0, vitest to ^5.0.0.
  • Docs: WC-REL-7 is rewritten for the 1.0 rules, and WC-DOC-15 lists seven headings. Anchors are updated where they are linked.

Not here yet, as follow-ups: the stable/experimental markers in package.json, the API report check, and the shared release workflow's level step.

Testing

  • src/release/level.test.ts: stable vs experimental breaks after 1.0, Deprecated, release candidates.
  • src/dev/dev.test.ts: next-version with a taken major and with a first 1.0.0 over 0.x.
  • Full suite in one worker: 78 of 79 files pass. scripts/release-checks.test.ts fails the same 6 tests on main on this machine (exit 126 when it runs python3), so it is not touched by this change.
  • typecheck, biome, docs:check.

🤖 Generated with Claude Code

leemour and others added 2 commits November 23, 2026 15:20
…cated headings, real majors, rc on next

- CHANGELOG_HEADINGS gains "Changed — experimental" and "Deprecated"; both
  need a minor. "Changed — may break callers" and "Removed" stay for the
  stable API and need a major from 1.0.0 on (level.ts).
- level.ts reads pre-release versions (1.0.0-rc.1 counts as 1.0.0) and
  takes the last plain release as the one below the top section.
- next-version keeps a taken x.0.0 a major (2.0.0 → 3.0.0, not 2.1.0).
- bin/release stops a version that raises the major unless run with
  --major; a pre-release publishes under npm's next tag, from bin/release
  and from release.yml (npm refuses a pre-release without a tag).
- The optional peers commander and vitest are ^15.0.0 and ^5.0.0.
- WC-REL-7 describes the 1.0 rules; WC-DOC-15 lists seven headings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…of editing released changelog sections

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 18b1066 into main Nov 23, 2026
10 checks passed
@leemour
leemour deleted the feat/release-policy-b branch November 23, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant