Repository navigation
update pnpm min release - #31
Open
spentacular wants to merge 2 commits into
Open
spentacular wants to merge 2 commits into
spentacular wants to merge 2 commits into
Conversation
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's changing
Adds a new
pnpm-workspace.yamlcarrying a minimum release age gate, so newly published versions of third-party dependencies aren't resolved until they've been on the registry for a while:This repo had no
pnpm-workspace.yamlbefore, so the file is created solely to hold these settings.Why
minimumReleaseAgeis pnpm's mitigation for npm supply-chain attacks. Compromised package versions are typically published, detected, and unpublished/patched within hours — so refusing to install anything younger than a cooldown window means the malicious version is usually gone before we'd ever resolve it. This is the same class of defense that blunted the recent Shai-Hulud-style campaigns.4320minutes (3 days) is a deliberately conservative window — longer than pnpm 11's 24-hour default, since this repo's dependency updates aren't time-sensitive.The excluded scopes are our own first-party packages. Without the exclusion, every Player release would sit behind a 3-day wait before this repo could consume it, which would make canary and
nextverification impractical.minimumReleaseAgeExcludesupports glob patterns as of pnpm v10.17.0.Notes for reviewers
Three things worth confirming before merge — none is addressed by this diff:
pnpm version is unpinned. Unlike the sibling repos,
package.jsonhere declares neitherpackageManagernorengines.pnpm, so whatever pnpm the developer or CI happens to run decides whether this gate applies at all.minimumReleaseAge/minimumReleaseAgeExcluderequire pnpm v10.16.0+, and glob support in the exclude list landed in v10.17.0. PinningpackageManagerto a version at or above v10.17.0 would make this setting deterministic rather than incidental.The exclude list doesn't match this repo's first-party deps. This is the biggest mismatch of the set.
browser-devtoolsdepends on@player-tools/*(devtools-client,devtools-types) and@player-ui/*(react,pubsub-plugin) — and neither scope is excluded, while all three scopes that are excluded (@player-cli,@player-lang,@xlr-lib) appear nowhere in this repo's lockfile. As written, once the gate is live it would apply the full 3-day wait to exactly the first-party packages this repo consumes, and exempt nothing. The list should likely be@player-tools/*and@player-ui/*, or the fuller five-scope list used inplayer-ui/ptr#10.No
packages:key. The new file contains only these two settings. That's valid — this repo isn't a pnpm workspace — but it does mean the filename is now doing double duty as plain pnpm config.Unlike most of the sibling repos, this one isn't Bazel-based, so the gate applies directly to normal
pnpm install/pnpm updateresolution.Relevant PNPM docs
minimumReleaseAge— units (minutes), defaults, version addedminimumReleaseAgeExclude— pattern matching supportChange Type (required)
Indicate the type of change your pull request is:
patchminormajor