Repository navigation
Description
Problem
.npmrc keeps minimum-release-age-exclude as a list of exact name@version pins (for example [email protected], [email protected], and eight @nubjs/nub-*@0.9.3 platform packages). Nub’s cooling window is 24 hours by default, so each pin only exists to let one tarball through before it is old enough. After a day the pin does nothing. The next publish of the same package needs a new pin, and nothing in the repo rewrites the line.
Renovate does not keep this list current. Its minimumReleaseAgeExclude support appends exact versions to pnpm-workspace.yaml, and only on vulnerability alerts. This repo stores the list in .npmrc, catalogs live in package.json, and ordinary bumps (Nub, Nitro betas, h3 release candidates) never touch the setting. Renovate’s own cooldown (2 days for patches, 7 for minors, 14 for majors) is already longer than Nub’s window, so direct dependency PRs are old enough on their own.
Desired behavior
Stable exemptions live in nub.jsonc under install.minimumReleaseAgeExclude, which is where Nub owns this setting when Nub is the package manager.
- Exempt
@nubjs/*by name pattern.packageManageris pinned to a chosen Nub version, and the platform optional dependencies move with it. One pattern covers a bump without a version pin per platform package. - Remove the version pins for
h3,nitro,srvx,unstorage, anddb0, and remove theminimum-release-age-excludeline from.npmrc. - Leave Nub’s default 24-hour window in place for every other package.
A same-day prerelease that a playground lockfile refresh happens to select should wait out the window, or be installed with a one-off --minimum-release-age-exclude for that command. That exception is not committed.
Acceptance criteria
-
nub.jsoncinstall.minimumReleaseAgeExcludeis['@nubjs/*'](or the equivalent pattern list). No exact versions. -
.npmrcno longer setsminimum-release-age-exclude. - A fresh
nub installof the current lockfile still succeeds, including the@nubjs/nuboptional platform packages. - Packages other than
@nubjs/*remain subject to the default cooling window.
Out of scope
- Turning the cooling window off (
minimumReleaseAge: "0s"). - Exempting
h3,nitro,srvx,unstorage, ordb0by name. - Teaching Renovate to rewrite
.npmrc, or adopting pnpmminimumReleaseAgeExcludePrune(it only deletes stale pins frompnpm-workspace.yaml, and Nub does not write that file). - Changing Renovate’s own
minimumReleaseAgerules.
Activity
pullfrog commentedon Sep 25, 2026
Plan: Replace version-pinned
minimum-release-age-excludewith a@nubjs/*patternAssessment
Actionable and well-scoped. The two changes are mechanical, and Nub's own config reference confirms the target shape:
install.minimumReleaseAgeExcludetakes name patterns (["@company/*", "typescript"]is the documented example), and the block applies only when Nub owns the project — which it does here (packageManager: [email protected]). No publishable package changes, so no changeset.Changes
nub.jsonc— add the release-age exemption insideinstall:One pattern covers
@nubjs/nuband all nine@nubjs/nub-<platform>optional packages, so a futurepackageManagerbump needs no per-platform pin. LeaveminimumReleaseAgeunset so the default 24h window stays..npmrc— delete theminimum-release-age-exclude=[...]line (all 14 exact pins). Keepverify-deps-before-run=falseand update the header comment so it points the release-age setting atnub.jsoncrather than implying.npmrcstill owns it.The five UnJS pins (
[email protected],[email protected],[email protected],[email protected],[email protected]) are dropped, not renamed — they only existed to admit a tarball for one day.Verification
https://nubjs.com/docs/config#installminimumreleaseageexclude(pattern list documented, block is Nub-identity only).nub install --frozen-lockfileagainst the unchangednub.lock, confirming the nine platform packages resolve without the old pins. Pullfrog's shell has nonubon PATH, so provision it (curl -fsSL https://nubjs.com/install.sh | bash) for a local run; otherwise PR CI already runsnub installvia.github/actions/setup-nub-ciintest.yml, which is the authoritative check.@nubjsstill cooled: in a scratch dir carrying the samenub.jsonc,nub add <pkg-published-in-last-24h>should hold back or fail withERR_NUB_NO_MATURE_MATCHING_VERSION(Nub's gate fails closed).nub run check(biome + manypkg) for formatting/validation of the config files.Risks and notes
@nubjs/*will let a freshly published platform tarball through on the nextpackageManagerbump — that is the point of the change. A same-day UnJS prerelease would instead need a one-off--minimum-release-age-excludeflag, uncommitted.nub.jsoncis monorepo-only (scripts/sync-lib/constants.js) and example.npmrcfiles are regenerated bysync:examples, soexamples/and playgrounds are unaffected. No test or script reads the removed.npmrckey.Acceptance criteria mapping
nub.jsoncexemption is["@nubjs/*"], no versions → step 1..npmrcno longer sets the key → step 2.nub installsucceeds incl. platform optional deps → verification step 2.DeepSeek Flash(free via Pullfrog for OSS) | 𝕏yamcodes commentedon Sep 25, 2026
Agent Brief
Category: enhancement
Summary: Move the release-age exemption to a
@nubjs/*name pattern in Nub config and drop the version-pinned.npmrclist.Current behavior:
Nub enforces a 24-hour cooling window by default. The project punches holes in it with exact
name@versionentries onminimum-release-age-excludein.npmrc. Those pins cover one-day-old tarballs (h3,nitro,srvx,unstorage,db0) plus every@nubjs/nubplatform optional package at the current Nub version. Each pin expires as useful after 24 hours and is wrong on the next publish. Renovate does not update.npmrcfor this key.Desired behavior:
install.minimumReleaseAgeExcludein Nub's project config is a name pattern,@nubjs/*, with no versions. The.npmrcexclude line is gone. Every other package, including UnJS prereleases, stays on the default 24-hour window. A same-day prerelease is installed by waiting, or with a one-off CLI exclude that is not committed.Key interfaces:
install.minimumReleaseAgeExclude— Nub project config array of package names or patterns. This is the setting Nub reads when Nub is the package manager. Set it to['@nubjs/*'].minimum-release-age-excludein.npmrc— remove it. Do not leave a duplicate list there.install.minimumReleaseAge. The default 24-hour window stays.Acceptance criteria:
@nubjs/*and no other packages, with no@versionsuffixes..npmrcdoes not setminimum-release-age-exclude.nub installof the current lockfile succeeds, including@nubjs/nubplatform optional dependencies.@nubjspackage published inside the last 24 hours is still rejected by the cooling window.Out of scope:
h3,nitro,srvx,unstorage, ordb0.minimumReleaseAgeExcludePrune.