Skip to content

Replace version-pinned minimum-release-age excludes with a Nub name pattern #1981

Closed

Description

@yamcodes

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. packageManager is 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, and db0, and remove the minimum-release-age-exclude line 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.jsonc install.minimumReleaseAgeExclude is ['@nubjs/*'] (or the equivalent pattern list). No exact versions.
  • .npmrc no longer sets minimum-release-age-exclude.
  • A fresh nub install of the current lockfile still succeeds, including the @nubjs/nub optional 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, or db0 by name.
  • Teaching Renovate to rewrite .npmrc, or adopting pnpm minimumReleaseAgeExcludePrune (it only deletes stale pins from pnpm-workspace.yaml, and Nub does not write that file).
  • Changing Renovate’s own minimumReleaseAge rules.

Activity

  1. added
    enhancement
    ready for agent
    maintenance
    on Sep 25, 2026
  2. pullfrog commented on Sep 25, 2026

    @pullfrog
    Contributor

    Plan: Replace version-pinned minimum-release-age-exclude with a @nubjs/* pattern

    Assessment

    Actionable and well-scoped. The two changes are mechanical, and Nub's own config reference confirms the target shape: install.minimumReleaseAgeExclude takes 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

    1. nub.jsonc — add the release-age exemption inside install:

      "install": {
        "linker": { "strategy": "isolated", "hoist": true },
        "publicHoist": ["@arkenv/*", "@repo/*"],
        "minimumReleaseAgeExclude": ["@nubjs/*"]
      }

      One pattern covers @nubjs/nub and all nine @nubjs/nub-<platform> optional packages, so a future packageManager bump needs no per-platform pin. Leave minimumReleaseAge unset so the default 24h window stays.

    2. .npmrc — delete the minimum-release-age-exclude=[...] line (all 14 exact pins). Keep verify-deps-before-run=false and update the header comment so it points the release-age setting at nub.jsonc rather than implying .npmrc still 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

    • Pattern shape: cross-checked against https://nubjs.com/docs/config#installminimumreleaseageexclude (pattern list documented, block is Nub-identity only).
    • Install succeeds: nub install --frozen-lockfile against the unchanged nub.lock, confirming the nine platform packages resolve without the old pins. Pullfrog's shell has no nub on PATH, so provision it (curl -fsSL https://nubjs.com/install.sh | bash) for a local run; otherwise PR CI already runs nub install via .github/actions/setup-nub-ci in test.yml, which is the authoritative check.
    • Non-@nubjs still cooled: in a scratch dir carrying the same nub.jsonc, nub add <pkg-published-in-last-24h> should hold back or fail with ERR_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

    • Window race: acceptance criterion 3 assumes every currently-pinned UnJS prerelease is now older than 24h. If one is still inside the window at merge time, the frozen install will fail once its pin is gone. Verify with a real install before merge; if so, wait rather than re-adding a name exemption (explicitly out of scope).
    • Intentional same-day admission: @nubjs/* will let a freshly published platform tarball through on the next packageManager bump — that is the point of the change. A same-day UnJS prerelease would instead need a one-off --minimum-release-age-exclude flag, uncommitted.
    • No collateral: nub.jsonc is monorepo-only (scripts/sync-lib/constants.js) and example .npmrc files are regenerated by sync:examples, so examples/ and playgrounds are unaffected. No test or script reads the removed .npmrc key.

    Acceptance criteria mapping

    • nub.jsonc exemption is ["@nubjs/*"], no versions → step 1.
    • .npmrc no longer sets the key → step 2.
    • Fresh nub install succeeds incl. platform optional deps → verification step 2.
    • Other packages stay cooled → verification step 3.

    Pullfrog  | Implement plan ➔ | View workflow run | via Pullfrog | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

  3. yamcodes commented on Sep 25, 2026

    @yamcodes
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement
    Summary: Move the release-age exemption to a @nubjs/* name pattern in Nub config and drop the version-pinned .npmrc list.

    Current behavior:
    Nub enforces a 24-hour cooling window by default. The project punches holes in it with exact name@version entries on minimum-release-age-exclude in .npmrc. Those pins cover one-day-old tarballs (h3, nitro, srvx, unstorage, db0) plus every @nubjs/nub platform 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 .npmrc for this key.

    Desired behavior:
    install.minimumReleaseAgeExclude in Nub's project config is a name pattern, @nubjs/*, with no versions. The .npmrc exclude 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-exclude in .npmrc — remove it. Do not leave a duplicate list there.
    • Do not set install.minimumReleaseAge. The default 24-hour window stays.

    Acceptance criteria:

    • Nub project config exempts @nubjs/* and no other packages, with no @version suffixes.
    • .npmrc does not set minimum-release-age-exclude.
    • nub install of the current lockfile succeeds, including @nubjs/nub platform optional dependencies.
    • A non-@nubjs package published inside the last 24 hours is still rejected by the cooling window.

    Out of scope:

    • Disabling the cooling window.
    • Name-level exemptions for h3, nitro, srvx, unstorage, or db0.
    • Renovate config changes, or pnpm minimumReleaseAgeExcludePrune.
  4. added
    dependencies
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesenhancementmaintenanceready for agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions