Skip to content

Commit bc236d8

Browse files
deps: update corepack to 0.36.0
1 parent 045ff95 commit bc236d8

4 files changed

Lines changed: 534 additions & 223 deletions

File tree

deps/corepack/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## [0.36.0](https://github.com/nodejs/corepack/compare/v0.35.0...v0.36.0) (2026-08-28)
4+
5+
6+
### Features
7+
8+
* add `COREPACK_ON_UNVERIFIED_DOWNLOAD` env variable ([#856](https://github.com/nodejs/corepack/issues/856)) ([0125d89](https://github.com/nodejs/corepack/commit/0125d89ac904672bb42bc48bb6612d137beeccda))
9+
* 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))
10+
* only load closest env file, for every commands ([#891](https://github.com/nodejs/corepack/issues/891)) ([b856c51](https://github.com/nodejs/corepack/commit/b856c516c3d0a92ded6b3f9cbbaa0d3f3eb094f1))
11+
* update package manager versions ([#852](https://github.com/nodejs/corepack/issues/852)) ([7e613b8](https://github.com/nodejs/corepack/commit/7e613b84b079411cb9eab1f90b254597fb9ef70c))
12+
* 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))
13+
14+
15+
### Bug Fixes
16+
17+
* **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))
18+
* strip trailing slashes from COREPACK_NPM_REGISTRY ([#871](https://github.com/nodejs/corepack/issues/871)) ([b81e92c](https://github.com/nodejs/corepack/commit/b81e92c2338ed6c4c38cfe1239002a261e47e6d5))
19+
320
## [0.35.0](https://github.com/nodejs/corepack/compare/v0.34.7...v0.35.0) (2026-05-15)
421

522

deps/corepack/README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ Depending on the value of `devEngines.packageManager.onFail`:
127127
of mismatch.
128128

129129
If the top-level `packageManager` field is missing, Corepack will use the
130-
package manager defined in `devEngines.packageManager` – in which case you must
131-
provide a specific version in `devEngines.packageManager.version`, ideally with
132-
a hash, as explained in the previous section:
130+
package manager defined in `devEngines.packageManager`. You should provide a
131+
specific version in `devEngines.packageManager.version`, ideally with a hash, as
132+
explained in the previous section:
133133

134134
```json
135135
{
@@ -142,6 +142,16 @@ a hash, as explained in the previous section:
142142
}
143143
```
144144

145+
When `devEngines.packageManager.version` is a range rather than a specific
146+
version, Corepack resolves it the same way as when a range is given on the
147+
command line: the latest version matching the range is looked up on the npm
148+
registry, which means the resolution requires network access (or a cache
149+
containing a matching version, see [Offline Workflow](#offline-workflow)), and
150+
may change over time. Set `COREPACK_ENABLE_AUTO_PIN=1` to have Corepack add the
151+
resolved version to the `packageManager` field. When
152+
`devEngines.packageManager.version` is missing, Corepack falls back to its
153+
[Known Good Release](#known-good-releases) for that package manager.
154+
145155
## Known Good Releases
146156

147157
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
349359
environment variables are required and as plain text. If you want to send an
350360
empty password, explicitly set `COREPACK_NPM_PASSWORD` to an empty string.
351361

362+
- `COREPACK_ON_UNVERIFIED_DOWNLOAD` can be set to:
363+
- `warn` (case insensitive): attempting to download an unsigned version without
364+
providing a hash will emit a warning to stderr.
365+
- `error` (case insensitive): attempting to download an unsigned version without
366+
providing a hash will fail with an error, and nothing gets downloaded.
367+
- `strict-warn` (case insensitive): same as `warn`, and additionally emits a
368+
warning when downloading a version that is not pinned by a hash, even when
369+
its signature can be verified.
370+
- `strict-error` (case insensitive): same as `error`, and additionally fails
371+
when downloading a version that is not pinned by a hash, even when its
372+
signature can be verified.
373+
- `ignore` (or any other unsupported value): disables that security feature.
374+
352375
- `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` are supported through
353376
[`NODE_USE_ENV_PROXY=1`](https://nodejs.org/api/cli.html#node_use_env_proxy1).
354377

0 commit comments

Comments
 (0)