Skip to content

chore(release): 0.7.0, and make the release process repeatable - #69

Merged
scttfrdmn merged 1 commit into
mainfrom
release/0.7.0
Aug 1, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
release/0.7.0

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

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

what detail
0.6.0 and 0.6.1 shipped with no CHANGELOG section Both published to npm; a reader could not tell what they were running. Written retroactively from the commit range.
0.6.0 was never tagged Published from 28fc7fc, no v0.6.0 ref. 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.0 So it had accumulated entries that already shipped in 0.6.0 (#28, #38). Moved to where they belong.
Six audit fixes had no CHANGELOG entry at all #50, #51, #54, #55, #56, #58 landed on main undocumented. Written from their commit bodies.
publish.yml's subpath guard had gone stale Its hardcoded list never gained ./transfer when #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.mjs now derives the check from exports itself 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:check

A preflight where every assertion maps to a drift above rather than to a hypothetical:

  • the version has a dated ## [x.y.z] section, and a compare link
  • the newest section agrees with package.json
  • [Unreleased] compares from the newest released tag
  • the version is not already published, and not already tagged
  • typecheck + test + build:lib + check:exports

Each 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_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. It's hand-maintained by design (a browser library can't read package.json at runtime, and importing src/index.ts from tags.ts would be circular), so the guard is the test — the coupling is now documented at the bump step in docs/releasing.md rather than left for someone to remember.

docs/releasing.md

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. Also records that the npm read path lags the write path, so npm view alone must not be read as failure.

Why MINOR

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. Per the standing policy, spawn-ts stays on 0.x.y indefinitely, so MINOR reads as "may break you" permanently.

Verification

591 tests passing, typecheck clean, build:lib + check:exports clean at 0.7.0.

Not tagged yet — pushing v0.7.0 triggers the OIDC publish to npm and is irreversible, so that stays a separate explicit step after this merges.

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.
@scttfrdmn
scttfrdmn merged commit 888816b into main Aug 1, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the release/0.7.0 branch August 1, 2026 22:09
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