Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pnpr/text/0000-atomic-workspace-publication.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ with a `publication` field.

Publications give a release a place for what belongs to the whole set rather
than one package, such as its
[release notes](https://github.com/pnpm/rfcs/pull/56).
[release notes](./0000-release-notes.md).

### Crash recovery and garbage collection

Expand Down
2 changes: 1 addition & 1 deletion pnpr/text/0000-platform-variants.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ every run. Resolution took 0.36 s instead of 1.35 s at 10 ms and 200 Mbit/s,
2.5 MB gzipped, and 22 release records were fetched. A full install at
40 ms and 50 Mbit/s took 24.0 s instead of 28.5 s, as tarballs dominate it.

A [release record](https://github.com/pnpm/rfcs/pull/49) of a version with
A [release record](./0000-release-records.md) of a version with
variants covers every archive of the version, the primary and each variant,
so the record, like the version document, describes the version as one
release.
Expand Down
4 changes: 2 additions & 2 deletions pnpr/text/0000-split-packuments.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ extends the version-document route `<name>/<version>`, which pnpr and npm
already serve, with the same `+r<revision>` suffix, so a scoped name keeps
the same escaping on both routes. It leaves out what may change after
publication and what
[release records](https://github.com/pnpm/rfcs/pull/49) keep as separate
[release records](./0000-release-records.md) keep as separate
evidence: no `deprecated`, no `_npmUser`, no `tarball`, and no registry
signatures or attestations. What remains never changes, so
pnpr serves it with `Cache-Control: public, max-age=31536000, immutable`
Expand Down Expand Up @@ -403,7 +403,7 @@ a URL of its own for the new format; see
to keep variant archives out of large documents. Variant selection happens
after a version is picked, so the variants move with the rest of the
version.
- [Release records and upstream verification](https://github.com/pnpm/rfcs/pull/49)
- [Release records and upstream verification](./0000-release-records.md)
keeps endorsements and evidence apart from the immutable record, as the
release record here leaves out signatures and attestations. Its signed
record and the one served here describe the same release; the one served
Expand Down
2 changes: 1 addition & 1 deletion text/0006-monorepo-versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Committed changelogs are derived data and a chronic source of friction: they dom

- **`registry`** (default): no changelog file is committed at all. The intent files remain the only copy of the prose: `pnpm version -r` bumps manifests and, instead of deleting the consumed intent files, records their ids in a small committed ledger (mapping `package@version` → intent ids), so the tagged release commit is self-contained. At publish time, pnpm composes the release's changelog section from the ledgered intent files present at the tag, fetches the previously published version's tarball, prepends the new section to its `CHANGELOG.md`, and packs the concatenation into the new tarball. Consumed intents are garbage-collected by a later `pnpm version -r` run, and the timing is a safety property, not a convenience: until its release is published, the intent file in the repository is the only copy of the prose anywhere, so a file is deleted only when it is (a) ledgered, (b) recorded against a version the registry confirms is published, and (c) not still needed by a package on a release lane awaiting graduation. Deletion cannot happen at publish time because publish must not push commits; gating it on registry confirmation makes the lifecycle self-healing — a release that was versioned and tagged but never published keeps its intents (and their prose) intact for a rerun.

When the publish target is a pnpr registry, `registry` mode stores the composed sections as the registry's [release notes](https://github.com/pnpm/rfcs/pull/56) instead: each released package's section becomes its version note, each intent that names more than one member of the same publication goes once into that publication note, and each intent that names a package outside the publication remains in each affected version note; an intent that satisfies both conditions appears in both destinations. Nothing is packed into or fetched from a tarball. The intents' lifecycle is unchanged; the GC check verifies the version note and, when the publication created one, that publication note (requiring read access to all members of the publication) together against the composed text or their immutable publish-time `initialDigest` (`PNPR-Note-Initial-Digest` / `PNPR-Publication-Initial-Digest`) instead of reading the published tarball. The release-notes RFC specifies the composition. The tarball chain below applies to other registries.
When the publish target is a pnpr registry, `registry` mode stores the composed sections as the registry's [release notes](../pnpr/text/0000-release-notes.md) instead: each released package's section becomes its version note, each intent that names more than one member of the same publication goes once into that publication note, and each intent that names a package outside the publication remains in each affected version note; an intent that satisfies both conditions appears in both destinations. Nothing is packed into or fetched from a tarball. The intents' lifecycle is unchanged; the GC check verifies the version note and, when the publication created one, that publication note (requiring read access to all members of the publication) together against the composed text or their immutable publish-time `initialDigest` (`PNPR-Note-Initial-Digest` / `PNPR-Publication-Initial-Digest`) instead of reading the published tarball. The release-notes RFC specifies the composition. The tarball chain below applies to other registries.

- **`repository`** (opt-out, changesets-compatible): `CHANGELOG.md` is appended in place and committed, and intent files are deleted as they are consumed. Their ids still enter the consumed ledger — see "Maintenance branches and cherry-picks" below for why the ledger is not a registry-mode detail.

Expand Down