Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

Require a cooldown for npm dependency updates - #324

Merged
zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/npm-dependency-age-policy
Aug 18, 2026
Merged

zanieb merged 1 commit into
astral-sh:mainfrom
zaniebot:agent/npm-dependency-age-policy

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

The formatter is installed from a lockfile, but new npm resolutions can still select a package immediately after publication. Add a seven-day release-age policy and require npm>=11.10.0 with engine-strict so older clients cannot silently ignore it. Use a compatible Node 24 runtime in CI and keep the existing locked dependency versions.

Follow-up to #322. Related: #326 separately pins the supported Node 24 runtime. astral-sh/hawk#162 and astral-sh/astral-tl#21 apply the same effective seven-day npm policy; astral-sh/uv#21193 combines it with locked formatter tooling.

@zanieb
zanieb marked this pull request as ready for review August 18, 2026 18:06
@zanieb
zanieb merged commit 71387a2 into astral-sh:main Aug 18, 2026
8 checks passed
zanieb pushed a commit that referenced this pull request Aug 18, 2026
The Node range added in #324 ensures npm supports
dependency cooldowns, but it still changes as new Node 24 releases
become available. Pin CI to Node `24.19.0` so runtime updates are
reviewed as repository changes. The existing Renovate GitHub Actions
configuration can maintain the exact version.

Related: #324 supplies the cooldown-supporting `npm`
policy, and #322 covers script-free locked formatter
installation.

Co-authored-by: zaniebot <[email protected]>
zanieb pushed a commit to astral-sh/hawk that referenced this pull request Aug 20, 2026
The formatter is locked, but new npm resolutions have no release-age
policy or supported-client floor. Require `npm>=11.10.0` with
`engine-strict`, wait seven days before selecting newly published
packages, and pin Node.js to `24.19.0` in CI. Configure Renovate for the
root formatter manifest and the formatter workflow's Node.js pin under
the shared dependency policy, leaving unrelated GitHub Actions updates
disabled. The locked Prettier version is unchanged.

Follow-up to #161. Related: astral-sh/packse#324 and
astral-sh/astral-tl#21 apply the same effective seven-day `npm` policy;
astral-sh/uv#21193 combines it with locked formatter tooling.

---------

Co-authored-by: zaniebot <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants