Repository navigation
feat(release): 1.0 release rules: experimental and deprecated headings, real majors, release candidates on next - #707
Merged
Merged
Conversation
…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>
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.
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:
next-versionturns a taken major into a minor.What
Changed — experimentalandDeprecated. Both need a minor.Changed — may break callersandRemovedstay for the stable API and need a major from 1.0.0 on.level.tsunderstands pre-releases.1.0.0-rc.1counts as 1.0.0, and the version below the top section is the last plain release.next-versionkeeps a takenx.0.0a 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.nexttag, frombin/releaseand fromrelease.yml(dry run and publish).commanderto^15.0.0,vitestto^5.0.0.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-versionwith a taken major and with a first 1.0.0 over 0.x.scripts/release-checks.test.tsfails the same 6 tests onmainon this machine (exit 126 when it runspython3), so it is not touched by this change.🤖 Generated with Claude Code