Repository navigation
chore(release): 0.7.0, and make the release process repeatable - #69
Merged
Merged
Conversation
Cutting 0.7.0 surfaced that the process had already drifted, so this does both: the release, and the mechanism that stops the drift recurring. The drift found while reconstructing the notes: - 0.6.0 and 0.6.1 were both published to npm with NO CHANGELOG section, and 0.6.0 was never tagged at all. Both sections are now written retroactively from the commit range. - `[Unreleased]` therefore still compared from v0.5.0 and had accumulated entries that had already shipped in 0.6.0 (#28, #38). Moved. - The six audit fixes (#50, #51, #54, #55, #56, #58) had landed on main with no CHANGELOG entry at all. Written from the commit bodies. - publish.yml's subpath guard was a hardcoded list that never gained `./transfer` when #59 added that subpath — so the guard had silently stopped covering a real entry point. That is the failure mode of a duplicated list, so scripts/check-exports.mjs now derives the check from `exports` itself and checks every target, not only the .d.ts. Verified it fails on exactly the subpath the old list was missing. New `npm run release:check` is the preflight. Every assertion in it maps to a drift above rather than to a hypothetical, and each was verified to fail when violated (undated section, missing compare link, stale [Unreleased] link, version with no section, already-published version). It reports ALL problems at once, and a check it cannot run (no git, no network) is reported as unknown rather than as passing. It immediately earned itself: it caught LIB_VERSION still reading 0.6.1. That constant is stamped into the `spawn:version` launch tag and read by Go's pkg/aws/ami_mgmt.go, so shipping it stale would have mislabelled every instance launched by 0.7.0. Bumped, and the coupling is now documented at the bump step in docs/releasing.md rather than left for someone to remember. docs/releasing.md writes the process down: tag last, tag from main, tag only a pushed green commit, and never move a published tag — fix forward, as truffle-ts v0.4.1 did. 0.7.0 is MINOR, not PATCH: `launch` now refuses a spec it previously accepted (#51) and the unbounded-launch guard changed which options satisfy it (#55). A type-compatible change that rejects previously-valid input is still a break.
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.
Cuts 0.7.0 — and fixes the release process, because cutting it surfaced that the process had already drifted.
The drift, found while reconstructing the notes
28fc7fc, nov0.6.0ref. Left as historical drift (a tag now would claim a review that never happened), reported as a note by the preflight.[Unreleased]still compared from v0.5.0mainundocumented. Written from their commit bodies.publish.yml's subpath guard had gone stale./transferwhen #59 added that subpath, so the guard had silently stopped covering a real entry point.That last one is the shape of the whole problem: a duplicated list decays the moment someone adds a subpath.
scripts/check-exports.mjsnow derives the check fromexportsitself and checks every target (19 across 10 subpaths), not only the.d.ts. Verified it fails on exactly the subpath the old list was missing.npm run release:checkA preflight where every assertion maps to a drift above rather than to a hypothetical:
## [x.y.z]section, and a compare linkpackage.json[Unreleased]compares from the newest released tagbuild:lib+check:exportsEach was verified to actually fail when violated — undated section, missing compare link, stale
[Unreleased]link, version with no section, already-published version. It reports all problems at once (a preflight that makes you re-run it once per problem trains people to skip it), and a check it cannot run — no git, no network — is reported as unknown, never as passing.It immediately earned itself: it caught
LIB_VERSIONstill reading0.6.1. That constant is stamped into thespawn:versionlaunch tag and read by Go'spkg/aws/ami_mgmt.go, so shipping it stale would have mislabelled every instance launched by 0.7.0. It's hand-maintained by design (a browser library can't readpackage.jsonat runtime, and importingsrc/index.tsfromtags.tswould be circular), so the guard is the test — the coupling is now documented at the bump step indocs/releasing.mdrather than left for someone to remember.docs/releasing.mdTag last, tag from
main, tag only a pushed green commit, and never move a published tag — fix forward, as truffle-ts v0.4.1 did. Also records that the npm read path lags the write path, sonpm viewalone must not be read as failure.Why MINOR
launchnow refuses a spec it previously accepted (#51), and the unbounded-launch guard changed which options satisfy it (#55). A type-compatible change that rejects previously-valid input is still a break. Per the standing policy, spawn-ts stays on0.x.yindefinitely, so MINOR reads as "may break you" permanently.Verification
591 tests passing, typecheck clean,
build:lib+check:exportsclean at 0.7.0.Not tagged yet — pushing
v0.7.0triggers the OIDC publish to npm and is irreversible, so that stays a separate explicit step after this merges.