mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
deps: update corepack to 0.36.0
PR-URL: https://github.com/nodejs/node/pull/65653 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
This commit is contained in:
1 parent
53cba013c7
commit
07faaeeffd
4 files changed
+537
-226
No files matched your search
Vendored
+17
@@ -1,5 +1,22 @@
|
||||
# Changelog
|
||||
|
||||
## [0.36.0](https://github.com/nodejs/corepack/compare/v0.35.0...v0.36.0) (2026-08-28)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add `COREPACK_ON_UNVERIFIED_DOWNLOAD` env variable ([#856](https://github.com/nodejs/corepack/issues/856)) ([0125d89](https://github.com/nodejs/corepack/commit/0125d89ac904672bb42bc48bb6612d137beeccda))
|
||||
* fall back to package-root metadata when dist.signatures is missing on the version endpoint ([#870](https://github.com/nodejs/corepack/issues/870)) ([b26c9d5](https://github.com/nodejs/corepack/commit/b26c9d52fdbc5db326e631de3f6557f7e1b7e55d))
|
||||
* only load closest env file, for every commands ([#891](https://github.com/nodejs/corepack/issues/891)) ([b856c51](https://github.com/nodejs/corepack/commit/b856c516c3d0a92ded6b3f9cbbaa0d3f3eb094f1))
|
||||
* update package manager versions ([#852](https://github.com/nodejs/corepack/issues/852)) ([7e613b8](https://github.com/nodejs/corepack/commit/7e613b84b079411cb9eab1f90b254597fb9ef70c))
|
||||
* use range from `devEngines` when no `packageManager` is set ([#892](https://github.com/nodejs/corepack/issues/892)) ([dec830b](https://github.com/nodejs/corepack/commit/dec830b035f540d1b4ebc516e81fbf43c5e0ffcf))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **npmRegistryUtils:** env vars names in integrity check fail error message ([#854](https://github.com/nodejs/corepack/issues/854)) ([8ca01c3](https://github.com/nodejs/corepack/commit/8ca01c3fbeed6c8b5d1bb94df1aacb3fe6cff846))
|
||||
* strip trailing slashes from COREPACK_NPM_REGISTRY ([#871](https://github.com/nodejs/corepack/issues/871)) ([b81e92c](https://github.com/nodejs/corepack/commit/b81e92c2338ed6c4c38cfe1239002a261e47e6d5))
|
||||
|
||||
## [0.35.0](https://github.com/nodejs/corepack/compare/v0.34.7...v0.35.0) (2026-05-15)
|
||||
|
||||
|
||||
|
||||
Vendored
+26
-3
@@ -127,9 +127,9 @@ Depending on the value of `devEngines.packageManager.onFail`:
|
||||
of mismatch.
|
||||
|
||||
If the top-level `packageManager` field is missing, Corepack will use the
|
||||
package manager defined in `devEngines.packageManager` – in which case you must
|
||||
provide a specific version in `devEngines.packageManager.version`, ideally with
|
||||
a hash, as explained in the previous section:
|
||||
package manager defined in `devEngines.packageManager`. You should provide a
|
||||
specific version in `devEngines.packageManager.version`, ideally with a hash, as
|
||||
explained in the previous section:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -142,6 +142,16 @@ a hash, as explained in the previous section:
|
||||
}
|
||||
```
|
||||
|
||||
When `devEngines.packageManager.version` is a range rather than a specific
|
||||
version, Corepack resolves it the same way as when a range is given on the
|
||||
command line: the latest version matching the range is looked up on the npm
|
||||
registry, which means the resolution requires network access (or a cache
|
||||
containing a matching version, see [Offline Workflow](#offline-workflow)), and
|
||||
may change over time. Set `COREPACK_ENABLE_AUTO_PIN=1` to have Corepack add the
|
||||
resolved version to the `packageManager` field. When
|
||||
`devEngines.packageManager.version` is missing, Corepack falls back to its
|
||||
[Known Good Release](#known-good-releases) for that package manager.
|
||||
|
||||
## Known Good Releases
|
||||
|
||||
When running Corepack within projects that don't list a supported package
|
||||
@@ -349,6 +359,19 @@ same major line. Should you need to upgrade to a new major, use an explicit
|
||||
environment variables are required and as plain text. If you want to send an
|
||||
empty password, explicitly set `COREPACK_NPM_PASSWORD` to an empty string.
|
||||
|
||||
- `COREPACK_ON_UNVERIFIED_DOWNLOAD` can be set to:
|
||||
- `warn` (case insensitive): attempting to download an unsigned version without
|
||||
providing a hash will emit a warning to stderr.
|
||||
- `error` (case insensitive): attempting to download an unsigned version without
|
||||
providing a hash will fail with an error, and nothing gets downloaded.
|
||||
- `strict-warn` (case insensitive): same as `warn`, and additionally emits a
|
||||
warning when downloading a version that is not pinned by a hash, even when
|
||||
its signature can be verified.
|
||||
- `strict-error` (case insensitive): same as `error`, and additionally fails
|
||||
when downloading a version that is not pinned by a hash, even when its
|
||||
signature can be verified.
|
||||
- `ignore` (or any other unsupported value): disables that security feature.
|
||||
|
||||
- `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` are supported through
|
||||
[`NODE_USE_ENV_PROXY=1`](https://nodejs.org/api/cli.html#node_use_env_proxy1).
|
||||
|
||||
|
||||
Vendored
+486
-214
File diff suppressed because it is too large.
Load diff
Vendored
+8
-9
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "corepack",
|
||||
"version": "0.35.0",
|
||||
"version": "0.36.0",
|
||||
"homepage": "https://github.com/nodejs/corepack#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/nodejs/corepack/issues"
|
||||
@@ -16,24 +16,23 @@
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"license": "MIT",
|
||||
"packageManager": "yarn@4.14.1+sha224.88b7a7244bbd9040380c417f7eb556d85c67640b651f113cb4c72113",
|
||||
"packageManager": "yarn@4.18.0+sha224.5707fce90df5d8720fae4e85a07ab55e90aa20fded8914893e2ba225",
|
||||
"devDependencies": {
|
||||
"@types/debug": "^4.1.5",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/proxy-from-env": "^1",
|
||||
"@types/semver": "^7.1.0",
|
||||
"@types/which": "^3.0.0",
|
||||
"@yarnpkg/eslint-config": "^3.0.0",
|
||||
"@yarnpkg/eslint-config": "^3.1.1",
|
||||
"@yarnpkg/fslib": "^3.0.0-rc.48",
|
||||
"@zkochan/cmd-shim": "^6.0.0",
|
||||
"clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch",
|
||||
"debug": "^4.1.1",
|
||||
"esbuild": "^0.28.0",
|
||||
"eslint": "^9.22.0",
|
||||
"eslint": "^10.8.1",
|
||||
"semver": "^7.6.3",
|
||||
"supports-color": "^10.0.0",
|
||||
"supports-color": "^11.0.0",
|
||||
"tar": "^7.5.11",
|
||||
"tsx": "^4.16.2",
|
||||
"typescript": "^5.7.3",
|
||||
"v8-compile-cache": "^2.3.0",
|
||||
"vitest": "^4.0.5",
|
||||
@@ -45,11 +44,11 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "run clean && run build:bundle && tsx ./mkshims.ts",
|
||||
"build": "run clean && run build:bundle && node ./mkshims.ts",
|
||||
"build:bundle": "esbuild ./sources/_lib.ts --bundle --platform=node --target=node22.22.2 --external:corepack --outfile='./dist/lib/corepack.cjs' --resolve-extensions='.ts,.mjs,.js'",
|
||||
"clean": "run rimraf dist shims",
|
||||
"corepack": "tsx ./sources/_cli.ts",
|
||||
"lint": "eslint .",
|
||||
"corepack": "node ./sources/_cli.ts",
|
||||
"lint": "eslint",
|
||||
"prepack": "yarn build",
|
||||
"postpack": "run clean",
|
||||
"rimraf": "node -e 'for(let i=2;i<process.argv.length;i++)fs.rmSync(process.argv[i],{recursive:true,force:true});'",
|
||||
|
||||
Reference in new issue
Block a user