deps: update corepack to 0.25.2
PR-URL: https://github.com/nodejs/node/pull/51810 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
parent
3b96741169
commit
db070ee89e
51
deps/corepack/CHANGELOG.md
vendored
51
deps/corepack/CHANGELOG.md
vendored
@ -1,5 +1,56 @@
|
||||
# Changelog
|
||||
|
||||
## [0.25.2](https://github.com/nodejs/corepack/compare/v0.25.1...v0.25.2) (2024-02-21)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* update package manager versions ([#362](https://github.com/nodejs/corepack/issues/362)) ([1423312](https://github.com/nodejs/corepack/commit/1423312a0eb7844dcdd43ae8a63cf12dcacedb2b))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* do not hard fail if Corepack home folder cannot be created ([#382](https://github.com/nodejs/corepack/issues/382)) ([9834f57](https://github.com/nodejs/corepack/commit/9834f5790a99ce2c6c283321bb38b02e5561b7ca))
|
||||
* do not show download prompt when downloading JSON ([#383](https://github.com/nodejs/corepack/issues/383)) ([bc137a0](https://github.com/nodejs/corepack/commit/bc137a0073c3343ce2d552b6e13bfd2a48f08351))
|
||||
|
||||
## [0.25.1](https://github.com/nodejs/corepack/compare/v0.25.0...v0.25.1) (2024-02-20)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* use valid semver range for `engines.node` ([#378](https://github.com/nodejs/corepack/issues/378)) ([f2185fe](https://github.com/nodejs/corepack/commit/f2185fefa145cc75fca082acc169f8aaef637ca2))
|
||||
|
||||
## [0.25.0](https://github.com/nodejs/corepack/compare/v0.24.1...v0.25.0) (2024-02-20)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* remove `--all` flag ([#351](https://github.com/nodejs/corepack/issues/351))
|
||||
* remove Node.js 19.x from the range of supported versions ([#375](https://github.com/nodejs/corepack/issues/375))
|
||||
* use `fetch` ([#365](https://github.com/nodejs/corepack/issues/365))
|
||||
* remove old install folder migration ([#373](https://github.com/nodejs/corepack/issues/373))
|
||||
* prompt user before downloading software ([#360](https://github.com/nodejs/corepack/issues/360))
|
||||
|
||||
### Features
|
||||
|
||||
* add `corepack cache` command ([#363](https://github.com/nodejs/corepack/issues/363)) ([f442366](https://github.com/nodejs/corepack/commit/f442366c1c00d0c3f388b757c3797504f9a6b62e))
|
||||
* add support for URL in `"packageManager"` ([#359](https://github.com/nodejs/corepack/issues/359)) ([4a8ce6d](https://github.com/nodejs/corepack/commit/4a8ce6d42f081047a341f36067696346c9f3e1ea))
|
||||
* bump Known Good Release when downloading new version ([#364](https://github.com/nodejs/corepack/issues/364)) ([a56c13b](https://github.com/nodejs/corepack/commit/a56c13bd0b1c11e50361b8b4b6f8a53571e3981a))
|
||||
* prompt user before downloading software ([#360](https://github.com/nodejs/corepack/issues/360)) ([6b8d87f](https://github.com/nodejs/corepack/commit/6b8d87f2374f79855b24d659f2a2579d6b39f54f))
|
||||
* remove `--all` flag ([#351](https://github.com/nodejs/corepack/issues/351)) ([d9c70b9](https://github.com/nodejs/corepack/commit/d9c70b91f698787d693406626a73dc95cb18bc1d))
|
||||
* remove old install folder migration ([#373](https://github.com/nodejs/corepack/issues/373)) ([54e9510](https://github.com/nodejs/corepack/commit/54e9510cdaf6ed08c9dea1ed3999fa65116cb4c7))
|
||||
* use `fetch` ([#365](https://github.com/nodejs/corepack/issues/365)) ([fe6a307](https://github.com/nodejs/corepack/commit/fe6a3072f64efa810b90e4ee52e0b3ff14c63184))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove unsafe remove of install folder ([#372](https://github.com/nodejs/corepack/issues/372)) ([65880ca](https://github.com/nodejs/corepack/commit/65880cafed5f4195f8e7656ca9af4cbcbb7682d3))
|
||||
|
||||
|
||||
### Miscellaneous Chores
|
||||
|
||||
* remove Node.js 19.x from the range of supported versions ([#375](https://github.com/nodejs/corepack/issues/375)) ([9a1cb38](https://github.com/nodejs/corepack/commit/9a1cb385bba9ade8e9fbf5517c2bdff60295f9ed))
|
||||
|
||||
## [0.24.1](https://github.com/nodejs/corepack/compare/v0.24.0...v0.24.1) (2024-01-13)
|
||||
|
||||
|
||||
|
52
deps/corepack/README.md
vendored
52
deps/corepack/README.md
vendored
@ -81,18 +81,29 @@ along with the SHA-224 hash of this version for validation.
|
||||
recommended as a security practice. Permitted values for the package manager are
|
||||
`yarn`, `npm`, and `pnpm`.
|
||||
|
||||
You can also provide a URL to a `.js` file (which will be interpreted as a
|
||||
CommonJS module) or a `.tgz` file (which will be interpreted as a package, and
|
||||
the `"bin"` field of the `package.json` will be used to determine which file to
|
||||
use in the archive).
|
||||
|
||||
```json
|
||||
{
|
||||
"packageManager": "yarn@https://registry.npmjs.org/@yarnpkg/cli-dist/-/cli-dist-3.2.3.tgz#sha224.16a0797d1710d1fb7ec40ab5c3801b68370a612a9b66ba117ad9924b"
|
||||
}
|
||||
```
|
||||
|
||||
## Known Good Releases
|
||||
|
||||
When running Corepack within projects that don't list a supported package
|
||||
manager, it will default to a set of Known Good Releases. In a way, you can
|
||||
compare this to Node.js, where each version ships with a specific version of
|
||||
npm.
|
||||
manager, it will default to a set of Known Good Releases.
|
||||
|
||||
If there is no Known Good Release for the requested package manager, Corepack
|
||||
looks up the npm registry for the latest available version and cache it for
|
||||
future use.
|
||||
|
||||
The Known Good Releases can be updated system-wide using `corepack install -g`.
|
||||
When Corepack downloads a new version of a given package manager on the same
|
||||
major line as the Known Good Release, it auto-updates it by default.
|
||||
|
||||
## Offline Workflow
|
||||
|
||||
@ -102,9 +113,6 @@ The utility commands detailed in the next section.
|
||||
case you'll simply run `corepack pack` to make sure that your image
|
||||
includes the Last Known Good release for the specified package manager.
|
||||
|
||||
- If you want to have _all_ Last Known Good releases for all package managers,
|
||||
just use the `--all` flag which will do just that.
|
||||
|
||||
- Or you're publishing your project to a system where the network is
|
||||
unavailable, in which case you'll preemptively generate a package manager
|
||||
archive from your local computer (using `corepack pack -o`) before storing
|
||||
@ -124,6 +132,14 @@ Note that those commands still check whether the local project is configured for
|
||||
the given package manager (ie you won't be able to run `corepack yarn install`
|
||||
on a project where the `packageManager` field references `pnpm`).
|
||||
|
||||
### `corepack cache clean`
|
||||
|
||||
Clears the local `COREPACK_HOME` cache directory.
|
||||
|
||||
### `corepack cache clear`
|
||||
|
||||
Clears the local `COREPACK_HOME` cache directory.
|
||||
|
||||
### `corepack enable [... name]`
|
||||
|
||||
| Option | Description |
|
||||
@ -177,11 +193,7 @@ This command doesn't change the global version used when running the package
|
||||
manager from outside the project (use the \`-g,--global\` flag if you wish
|
||||
to do this).
|
||||
|
||||
### `corepack install <-g,--global> [--all] [... name[@<version>]]`
|
||||
|
||||
| Option | Description |
|
||||
| --------------------- | ------------------------------------------ |
|
||||
| `--all` | Install all Last Known Good releases |
|
||||
### `corepack install <-g,--global> [... name[@<version>]]`
|
||||
|
||||
Install the selected package managers and install them on the system.
|
||||
|
||||
@ -189,11 +201,10 @@ Package managers thus installed will be configured as the new default when
|
||||
calling their respective binaries outside of projects defining the
|
||||
`packageManager` field.
|
||||
|
||||
### `corepack pack [--all] [... name[@<version>]]`
|
||||
### `corepack pack [... name[@<version>]]`
|
||||
|
||||
| Option | Description |
|
||||
| --------------------- | ------------------------------------------ |
|
||||
| `--all` | Pack all Last Known Good releases |
|
||||
| `--json ` | Print the output folder rather than logs |
|
||||
| `-o,--output ` | Path where to generate the archive |
|
||||
|
||||
@ -221,7 +232,20 @@ same major line. Should you need to upgrade to a new major, use an explicit
|
||||
|
||||
- `COREPACK_DEFAULT_TO_LATEST` can be set to `0` in order to instruct Corepack
|
||||
not to lookup on the remote registry for the latest version of the selected
|
||||
package manager.
|
||||
package manager, and to not update the Last Known Good version when it
|
||||
downloads a new version of the same major line.
|
||||
|
||||
- `COREPACK_ENABLE_DOWNLOAD_PROMPT` can be set to `0` to
|
||||
prevent Corepack showing the URL when it needs to download software, or can be
|
||||
set to `1` to have the URL shown. By default, when Corepack is called
|
||||
explicitly (e.g. `corepack pnpm …`), it is set to `0`; when Corepack is called
|
||||
implicitely (e.g. `pnpm …`), it is set to `1`.
|
||||
When standard input is a TTY and no CI environment is detected, Corepack will
|
||||
ask for user input before starting the download.
|
||||
|
||||
- `COREPACK_ENABLE_UNSAFE_CUSTOM_URLS` can be set to `1` to allow use of
|
||||
custom URLs to load a package manager known by Corepack (`yarn`, `npm`, and
|
||||
`pnpm`).
|
||||
|
||||
- `COREPACK_ENABLE_NETWORK` can be set to `0` to prevent Corepack from accessing
|
||||
the network (in which case you'll be responsible for hydrating the package
|
||||
|
1
deps/corepack/dist/corepack.js
vendored
1
deps/corepack/dist/corepack.js
vendored
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='0';
|
||||
require('./lib/corepack.cjs').runMain(process.argv.slice(2));
|
39761
deps/corepack/dist/lib/corepack.cjs
vendored
39761
deps/corepack/dist/lib/corepack.cjs
vendored
File diff suppressed because one or more lines are too long
1
deps/corepack/dist/npm.js
vendored
1
deps/corepack/dist/npm.js
vendored
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
|
||||
require('./lib/corepack.cjs').runMain(['npm', ...process.argv.slice(2)]);
|
1
deps/corepack/dist/npx.js
vendored
1
deps/corepack/dist/npx.js
vendored
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
|
||||
require('./lib/corepack.cjs').runMain(['npx', ...process.argv.slice(2)]);
|
1
deps/corepack/dist/pnpm.js
vendored
1
deps/corepack/dist/pnpm.js
vendored
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
|
||||
require('./lib/corepack.cjs').runMain(['pnpm', ...process.argv.slice(2)]);
|
1
deps/corepack/dist/pnpx.js
vendored
1
deps/corepack/dist/pnpx.js
vendored
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
|
||||
require('./lib/corepack.cjs').runMain(['pnpx', ...process.argv.slice(2)]);
|
1
deps/corepack/dist/yarn.js
vendored
1
deps/corepack/dist/yarn.js
vendored
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
|
||||
require('./lib/corepack.cjs').runMain(['yarn', ...process.argv.slice(2)]);
|
1
deps/corepack/dist/yarnpkg.js
vendored
1
deps/corepack/dist/yarnpkg.js
vendored
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
|
||||
require('./lib/corepack.cjs').runMain(['yarnpkg', ...process.argv.slice(2)]);
|
14
deps/corepack/package.json
vendored
14
deps/corepack/package.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "corepack",
|
||||
"version": "0.24.1",
|
||||
"version": "0.25.2",
|
||||
"homepage": "https://github.com/nodejs/corepack#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/nodejs/corepack/issues"
|
||||
@ -10,13 +10,13 @@
|
||||
"url": "https://github.com/nodejs/corepack.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.1"
|
||||
"node": "^18.17.1 || >=20.10.0"
|
||||
},
|
||||
"exports": {
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"license": "MIT",
|
||||
"packageManager": "yarn@4.0.2+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186",
|
||||
"packageManager": "yarn@4.1.0+sha224.bc24d7f5afc738464f3d4e95f4e6e7829a35cee54a0fd527ea5baa83",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.3",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.14.0",
|
||||
@ -25,6 +25,7 @@
|
||||
"@types/debug": "^4.1.5",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/node": "^20.4.6",
|
||||
"@types/proxy-from-env": "^1",
|
||||
"@types/semver": "^7.1.0",
|
||||
"@types/tar": "^6.0.0",
|
||||
"@types/which": "^3.0.0",
|
||||
@ -40,13 +41,13 @@
|
||||
"eslint": "^8.0.0",
|
||||
"eslint-plugin-arca": "^0.16.0",
|
||||
"jest": "^29.0.0",
|
||||
"nock": "^13.0.4",
|
||||
"proxy-agent": "^6.2.2",
|
||||
"proxy-from-env": "^1.1.0",
|
||||
"semver": "^7.5.2",
|
||||
"supports-color": "^9.0.0",
|
||||
"tar": "^6.0.1",
|
||||
"ts-node": "^10.0.0",
|
||||
"typescript": "^5.0.4",
|
||||
"undici": "^6.6.1",
|
||||
"v8-compile-cache": "^2.3.0",
|
||||
"which": "^4.0.0"
|
||||
},
|
||||
@ -95,9 +96,6 @@
|
||||
"./shims/yarnpkg.ps1"
|
||||
]
|
||||
},
|
||||
"resolutions": {
|
||||
"vm2": "portal:./vm2"
|
||||
},
|
||||
"bin": {
|
||||
"corepack": "./dist/corepack.js",
|
||||
"pnpm": "./dist/pnpm.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user