Skip to content

Commit dec9a08

Browse files
committed
chore: changeset names the delete receipt and the repeat bare delete
Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 123f112 commit dec9a08

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.changeset/38753-disabled-holder-counts-nothing.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ A disabled package holds no name and is never named (ADR-0150 D3). Three doors s
1313

1414
- **`GET /api/v1/meta/TYPE/_env/NAME`** (the plain read, `?layers=true`, `?state=draft`, `?preview=draft`, and the `_env/NAME` spelling of an import's `mappingName`), for a name the registry knows only through a disabled package while an enabled package holds it through a stored row or draft the registry has not loaded: the answer was `409 RESOURCE_CONFLICT` naming the disabled package. It is now `409 RESOURCE_CONFLICT` naming the enabled package whose row or draft the read that names no package serves (`details.candidates`), and never that row. Where that read answers 404, `_env` still answers 404.
1515
- **`DELETE` naming no package, and the draft discard naming no package**, of an item whose stored rows are bound to a disabled package and to the one enabled package that ships the name: the answer was `409 RESOURCE_CONFLICT` naming both. Each now removes the enabled package's row or draft, as the same request with `?package=` naming it does, and leaves the disabled package's rows as they are. With two or more enabled holders the refusal still names exactly them.
16+
- **The receipt of `DELETE` and of the draft discard**, bare or naming the enabled package, beside a disabled package's rows: it said the item "still carries another overlay: its row bound to package 'D' remains", naming the disabled package, and for a name only a disabled package ships in code it said "reset to artifact default". A disabled package's row is no remaining overlay and its code is no artifact default: the receipt now reads as it does without the disabled package ("reset to artifact default" where the enabled package ships the name, "it no longer exists" where no enabled package does). Repeating the bare delete or discard once the enabled package's row or draft is gone answered by removing the DISABLED package's row or draft (a customization hidden with it); it now answers the no-op receipt at the enabled package's address and leaves the disabled package's rows stored. A `dropStorage` delete still counts every stored row.
1617
- **The read that names no package** (`GET /api/v1/meta/TYPE/NAME`, `/layers`, `/published`), of a name a disabled package ships in code only, beside one enabled package's stored row and a package-less row: the answer was 404. It now serves the enabled package's row, as it does when the disabled package does not ship the name.
1718

1819
Not changed here: the draft save naming no package of the second case still answers `409` naming both packages. To write the enabled package's draft now, name it: `?package=PACKAGE`.

0 commit comments

Comments
 (0)