Skip to content

Update npm tool constraint to v12 - #9

Merged
Rxphee merged 1 commit into
mainfrom
renovate/npm-12.x
Oct 29, 2026
Merged

Rxphee merged 1 commit into
mainfrom
renovate/npm-12.x

Conversation

@renovate

@renovate renovate Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
npm (source) ^11 → ^12.0.0 age confidence

Release Notes

npm/cli (npm)

v12.2.1

Compare Source

Bug Fixes
Dependencies

v12.2.0

Compare Source

Features
Documentation
Dependencies

v12.1.0

Compare Source

Features
Bug Fixes
Documentation
Dependencies
Chores

v12.0.2

Compare Source

Bug Fixes
Documentation
Chores
Dependencies

v12.0.1

Compare Source

Features
Bug Fixes
Documentation
Dependencies
Chores

v12.0.0

Compare Source

⚠️ BREAKING CHANGES
  • npm view --json now always returns an array.
  • npm sbom --sbom-format=cyclonedx now reports the name field from each package's package.json instead of the on-disk directory name. The name, bom-ref, and purl of the root component and of aliased dependencies may change.
  • npm no longer registers man pages with the system when installed globally. man npm-install will no longer work, but npm help install is unaffected.
  • The npm pkg output is no longer forced to json. This means you can get single values without having to worry about wrapping of the values. It also outputs non-json content more similarly to npm view.
  • npm shrinkwrap is removed, the shrinkwrap config alias is removed, and npm-shrinkwrap.json is no longer loaded or honored at the project root or from inside dependency tarballs. Rename project-root npm-shrinkwrap.json to package-lock.json; use bundleDependencies if you need to ship a locked dependency tree.
  • The Twitter and Freenode profile fields have been removed from the npm registry. This means that users will no longer be able to set or view these fields in their npm profiles.
  • npm will no longer attempt to resolve the path to node via whichnode. process.execPath is already set by Node to the resolved real path of the node binary, so the lookup was redundant. Scripts that expected npm to override process.execPath with a PATH-resolved (potentially symlinked) node path may be affected.
  • the --json output of npm pack and npm publish have changed. They are now always consistent, and in the same format.
  • the star, stars and unstar commands have been removed
  • The npm adduser command has been removed. Create and manage user accounts on the npm website, and use npm login to authenticate on the command line.
  • Preserve https protocol when working with git (#​8703)
  • The default license for npm init has been changed from "ISC" to an empty string. If not set, the license field will be omitted from new packages.
  • npm now supports node ^22.22.2 || ^24.15.0 || >=26.0.0
  • allow-git and allow-remote now default to "none"; set them to "all" (or "root") to install git or user-supplied tarball-URL dependencies.
  • root `preinstall` now runs before dependencies are installed.
  • unknown CLI flags, abbreviated flags, and single-hyphen multi-char shorthands now throw instead of warning. (Unknown .npmrc configs still warn by default; opt into erroring with the new strict-npmrc config.)
  • Dependency lifecycle scripts are now blocked by default unless allowed by the root package's allowScripts policy. After installing, run npm install-scripts approve to record approvals and npm rebuild to execute newly approved scripts.
Chores
Dependencies

Configuration

📅 Schedule: (in timezone Europe/Vienna)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/npm-12.x branch from f8da4a9 to 96b935b Compare October 29, 2026 17:06
@Rxphee
Rxphee merged commit 109caf2 into main Oct 29, 2026
4 checks passed
@Rxphee
Rxphee deleted the renovate/npm-12.x branch October 29, 2026 17:07
Rxphee added a commit that referenced this pull request Oct 30, 2026
Renovate's #9 raised `constraints.npm` from `^11` to `^12.0.0`. That
undoes the workaround from #8: lock file maintenance for
`web/package-lock.json` fails again with `EALLOWREMOTE`, because npm 12
refuses the registry tarball of `@tailwindcss/oxide-wasm32-wasi` (a
package with `bundleDependencies`) when it runs with
`--package-lock-only`. The upstream bug,
[npm/cli#9800](npm/cli#9800), is still open;
both fix PRs (npm/cli#9818, npm/cli#9819) are unmerged.

## Change

- Set `constraints.npm` back to `^11`.
- Add a package rule with `allowedVersions: "<12"` for the dependency
that raised it. The `renovate-config` manager extracts every entry of
`constraints` in `renovate.json` as a dependency with `depType:
tool-constraint` (datasource `npm`, package `npm`), so the rule matches
exactly that and leaves the npm packages in `package.json` alone.

## Verification

- `renovate-config-validator --strict` passes.
- A local `renovate --platform=local --dry-run=lookup` lists no update
for the npm tool constraint. With the rule's limit removed, the same run
proposes `^12.0.0` as a major update again.

Once npm/cli#9800 is fixed and released, remove the rule and the
constraint together. The next lock file maintenance runs on its monthly
schedule; to check the fix earlier, tick "Lock file maintenance" under
"Awaiting Schedule" in the Dependency Dashboard (#1) after merging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant