Skip to content

Commit f8a2a1e

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update corepack to 0.33.0
PR-URL: #58566 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent d261274 commit f8a2a1e

File tree

4 files changed

+37
-12
lines changed

4 files changed

+37
-12
lines changed

deps/corepack/CHANGELOG.md

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

3+
## [0.33.0](https://github.com/nodejs/corepack/compare/v0.32.0...v0.33.0) (2025-06-02)
4+
5+
6+
### Features
7+
8+
* Adds guard to avoid stepping on Yarn's feet ([#714](https://github.com/nodejs/corepack/issues/714)) ([5fc3691](https://github.com/nodejs/corepack/commit/5fc3691354eb5bdeca17a9495b234584353f0151))
9+
* update package manager versions ([#671](https://github.com/nodejs/corepack/issues/671)) ([b45b3a3](https://github.com/nodejs/corepack/commit/b45b3a3244bacfbaf65188ae8c04209a1e98307d))
10+
11+
12+
### Bug Fixes
13+
14+
* debug text typo ([#698](https://github.com/nodejs/corepack/issues/698)) ([0b94797](https://github.com/nodejs/corepack/commit/0b94797f96e30e46e466873fe7d437d0471cd92c))
15+
316
## [0.32.0](https://github.com/nodejs/corepack/compare/v0.31.0...v0.32.0) (2025-02-28)
417

518

deps/corepack/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ same major line. Should you need to upgrade to a new major, use an explicit
286286
package manager, and to not update the Last Known Good version when it
287287
downloads a new version of the same major line.
288288

289-
- `COREPACK_ENABLE_AUTO_PIN` can be set to `0` to prevent Corepack from
290-
updating the `packageManager` field when it detects that the local package
289+
- `COREPACK_ENABLE_AUTO_PIN` can be set to `1` to instruct Corepack to
290+
update the `packageManager` field when it detects that the local package
291291
doesn't list it. In general we recommend to always list a `packageManager`
292292
field (which you can easily set through `corepack use [name]@[version]`), as
293293
it ensures that your project installs are always deterministic.

deps/corepack/dist/lib/corepack.cjs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21683,7 +21683,7 @@ function String2(descriptor, ...args) {
2168321683
}
2168421684

2168521685
// package.json
21686-
var version = "0.32.0";
21686+
var version = "0.33.0";
2168721687

2168821688
// sources/Engine.ts
2168921689
var import_fs9 = __toESM(require("fs"));
@@ -21697,7 +21697,7 @@ var import_valid4 = __toESM(require_valid2());
2169721697
var config_default = {
2169821698
definitions: {
2169921699
npm: {
21700-
default: "11.1.0+sha1.dba08f7d0f5301ebedaf968b4f74b2282f97a750",
21700+
default: "11.4.1+sha1.80350af543069991de20657ebcd07d9624cfad06",
2170121701
fetchLatestFrom: {
2170221702
type: "npm",
2170321703
package: "npm"
@@ -21734,7 +21734,7 @@ var config_default = {
2173421734
}
2173521735
},
2173621736
pnpm: {
21737-
default: "10.5.2+sha1.ca68c0441df195b7e2992f1d1cb12fb731f82d78",
21737+
default: "10.11.0+sha1.4048eeefd564ff1ab248fac3e2854d38245fe2f1",
2173821738
fetchLatestFrom: {
2173921739
type: "npm",
2174021740
package: "pnpm"
@@ -21798,7 +21798,7 @@ var config_default = {
2179821798
package: "yarn"
2179921799
},
2180021800
transparent: {
21801-
default: "4.6.0+sha224.acd0786f07ffc6c933940eb65fc1d627131ddf5455bddcc295dc90fd",
21801+
default: "4.9.1+sha224.4285002185abb91fe2b781f27fd1e078086c37a7b095f6ea4ee25971",
2180221802
commands: [
2180321803
[
2180421804
"yarn",
@@ -22105,6 +22105,10 @@ async function getProxyAgent(input) {
2210522105
}
2210622106

2210722107
// sources/corepackUtils.ts
22108+
var YARN_SWITCH_REGEX = /[/\\]switch[/\\]bin[/\\]/;
22109+
function isYarnSwitchPath(p) {
22110+
return YARN_SWITCH_REGEX.test(p);
22111+
}
2210822112
function getRegistryFromPackageManagerSpec(spec) {
2210922113
return process.env.COREPACK_NPM_REGISTRY ? spec.npmRegistry ?? spec.registry : spec.registry;
2211022114
}
@@ -22896,7 +22900,7 @@ var Engine = class {
2289622900
case `NoSpec`: {
2289722901
if (typeof locator.reference === `function`)
2289822902
fallbackDescriptor.range = await locator.reference();
22899-
if (import_process3.default.env.COREPACK_ENABLE_AUTO_PIN !== `0`) {
22903+
if (import_process3.default.env.COREPACK_ENABLE_AUTO_PIN === `1`) {
2290022904
const resolved = await this.resolveDescriptor(fallbackDescriptor, { allowTags: true });
2290122905
if (resolved === null)
2290222906
throw new UsageError(`Failed to successfully resolve '${fallbackDescriptor.range}' to a valid ${fallbackDescriptor.name} release`);
@@ -22906,7 +22910,7 @@ var Engine = class {
2290622910
console.error();
2290722911
await setLocalPackageManager(import_path9.default.dirname(result.target), installSpec);
2290822912
}
22909-
log(`Falling back to ${fallbackDescriptor.name}@${fallbackDescriptor.range} in the absence of "packageManage" field in ${result.target}`);
22913+
log(`Falling back to ${fallbackDescriptor.name}@${fallbackDescriptor.range} in the absence of "packageManager" field in ${result.target}`);
2291022914
return fallbackDescriptor;
2291122915
}
2291222916
case `Found`: {
@@ -23070,6 +23074,10 @@ var DisableCommand = class extends Command {
2307023074
async removePosixLink(installDirectory, binName) {
2307123075
const file = import_path10.default.join(installDirectory, binName);
2307223076
try {
23077+
if (binName.includes(`yarn`) && isYarnSwitchPath(await import_fs11.default.promises.realpath(file))) {
23078+
console.warn(`${binName} is already installed in ${file} and points to a Yarn Switch install - skipping`);
23079+
return;
23080+
}
2307323081
await import_fs11.default.promises.unlink(file);
2307423082
} catch (err) {
2307523083
if (err.code !== `ENOENT`) {
@@ -23147,6 +23155,10 @@ var EnableCommand = class extends Command {
2314723155
const symlink = import_path11.default.relative(installDirectory, import_path11.default.join(distFolder, `${binName}.js`));
2314823156
if (import_fs12.default.existsSync(file)) {
2314923157
const currentSymlink = await import_fs12.default.promises.readlink(file);
23158+
if (binName.includes(`yarn`) && isYarnSwitchPath(await import_fs12.default.promises.realpath(file))) {
23159+
console.warn(`${binName} is already installed in ${file} and points to a Yarn Switch install - skipping`);
23160+
return;
23161+
}
2315023162
if (currentSymlink !== symlink) {
2315123163
await import_fs12.default.promises.unlink(file);
2315223164
} else {

deps/corepack/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "corepack",
3-
"version": "0.32.0",
3+
"version": "0.33.0",
44
"homepage": "https://github.com/nodejs/corepack#readme",
55
"bugs": {
66
"url": "https://github.com/nodejs/corepack/issues"
@@ -16,21 +16,21 @@
1616
"./package.json": "./package.json"
1717
},
1818
"license": "MIT",
19-
"packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728",
19+
"packageManager": "yarn@4.9.0+sha224.dce6c5df199861784bd9b0eecb2a228df97e3f18a02b1bb75ff98383",
2020
"devDependencies": {
2121
"@types/debug": "^4.1.5",
2222
"@types/node": "^20.4.6",
2323
"@types/proxy-from-env": "^1",
2424
"@types/semver": "^7.1.0",
2525
"@types/which": "^3.0.0",
26-
"@yarnpkg/eslint-config": "^2.0.0",
26+
"@yarnpkg/eslint-config": "^3.0.0",
2727
"@yarnpkg/fslib": "^3.0.0-rc.48",
2828
"@zkochan/cmd-shim": "^6.0.0",
2929
"better-sqlite3": "^11.7.2",
3030
"clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch",
3131
"debug": "^4.1.1",
3232
"esbuild": "^0.25.0",
33-
"eslint": "^8.57.0",
33+
"eslint": "^9.22.0",
3434
"proxy-from-env": "^1.1.0",
3535
"semver": "^7.6.3",
3636
"supports-color": "^10.0.0",

0 commit comments

Comments
 (0)