spec: release trim — status → state, publishedAt replaces firstPublishedAt — release v0.10.0 - #36
Merged
Merged
Conversation
…hedAt, releaseDate dropped — release v0.10.0 Resync against metalabel/metalabel-dfos#3266 (migration 0575, the release trim). On the three release routes `status` (`presale | live | closed`) becomes `state` (`upcoming | live | ended`, still an open enum), `firstPublishedAt` becomes `publishedAt` (now non-null on this surface — an unpublished release is a 404), `releaseDate` is gone, and two optional window edges `releasesAt` / `closesAt` arrive. The product `release` context chip keeps its shape. Prose updates describe the derived state and the two-fact visibility rule. Breaking for a consumer reading `status` / `firstPublishedAt` / `releaseDate` — pre-1.0, so a minor bump (0.9.2 → 0.10.0). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCHmjpTNWYZawWbytTECNC
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.
What
Spec re-sync for the release trim (metalabel/metalabel-dfos#3266, migration 0575). Generated with
pnpm update-specagainst that branch's checkout; no hand edits.Wire changes on
GET /spaces/{space}/releases,GET /spaces/{space}/releases/{slug},GET /releases:status(presale | live | closed) →state(upcoming | live | ended, open enum; derived from the release's dates, never stored)firstPublishedAt: string | null→publishedAt: string(non-null: an unpublished release is a 404 on this surface)releaseDateremovedreleasesAt: string | null,closesAt: string | nulladded (the two optional window edges the state reads)releasecontext chip (slug+name) is unchanged; prose only.Breaking for any consumer reading
status,firstPublishedAt, orreleaseDate. First-party consumers only today. Pre-1.0 → minor bump,0.9.2 → 0.10.0.Landing
v0.10.0, push the tag.Checks
pnpm typecheck,pnpm test(2 files, 11 tests),pnpm build, andpnpm generateleaving a clean diff — all green locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01DCHmjpTNWYZawWbytTECNC