| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 697d258 commit 31e5926
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,18 @@ | |||
| 1 | 1 | # Changelog | |
| 2 | 2 | ||
| 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 | + | ||
| 3 | 16 | ## [0.32.0](https://github.com/nodejs/corepack/compare/v0.31.0...v0.32.0) (2025-02-28) | |
| 4 | 17 | ||
| 5 | 18 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -286,8 +286,8 @@ same major line. Should you need to upgrade to a new major, use an explicit | |||
| 286 | 286 | package manager, and to not update the Last Known Good version when it | |
| 287 | 287 | downloads a new version of the same major line. | |
| 288 | 288 | ||
| 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 | ||
| 291 | 291 | doesn't list it. In general we recommend to always list a `packageManager` | |
| 292 | 292 | field (which you can easily set through `corepack use [name]@[version]`), as | |
| 293 | 293 | it ensures that your project installs are always deterministic. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21683,7 +21683,7 @@ function String2(descriptor, ...args) { | |||
| 21683 | 21683 | } | |
| 21684 | 21684 | ||
| 21685 | 21685 | // package.json | |
| 21686 | - var version = "0.32.0"; | ||
| 21686 | + var version = "0.33.0"; | ||
| 21687 | 21687 | ||
| 21688 | 21688 | // sources/Engine.ts | |
| 21689 | 21689 | var import_fs9 = __toESM(require("fs")); | |
@@ -21697,7 +21697,7 @@ var import_valid4 = __toESM(require_valid2()); | |||
| 21697 | 21697 | var config_default = { | |
| 21698 | 21698 | definitions: { | |
| 21699 | 21699 | npm: { | |
| 21700 | - default: "11.1.0+sha1.dba08f7d0f5301ebedaf968b4f74b2282f97a750", | ||
| 21700 | + default: "11.4.1+sha1.80350af543069991de20657ebcd07d9624cfad06", | ||
| 21701 | 21701 | fetchLatestFrom: { | |
| 21702 | 21702 | type: "npm", | |
| 21703 | 21703 | package: "npm" | |
@@ -21734,7 +21734,7 @@ var config_default = { | |||
| 21734 | 21734 | } | |
| 21735 | 21735 | }, | |
| 21736 | 21736 | pnpm: { | |
| 21737 | - default: "10.5.2+sha1.ca68c0441df195b7e2992f1d1cb12fb731f82d78", | ||
| 21737 | + default: "10.11.0+sha1.4048eeefd564ff1ab248fac3e2854d38245fe2f1", | ||
| 21738 | 21738 | fetchLatestFrom: { | |
| 21739 | 21739 | type: "npm", | |
| 21740 | 21740 | package: "pnpm" | |
@@ -21798,7 +21798,7 @@ var config_default = { | |||
| 21798 | 21798 | package: "yarn" | |
| 21799 | 21799 | }, | |
| 21800 | 21800 | transparent: { | |
| 21801 | - default: "4.6.0+sha224.acd0786f07ffc6c933940eb65fc1d627131ddf5455bddcc295dc90fd", | ||
| 21801 | + default: "4.9.1+sha224.4285002185abb91fe2b781f27fd1e078086c37a7b095f6ea4ee25971", | ||
| 21802 | 21802 | commands: [ | |
| 21803 | 21803 | [ | |
| 21804 | 21804 | "yarn", | |
@@ -22105,6 +22105,10 @@ async function getProxyAgent(input) { | |||
| 22105 | 22105 | } | |
| 22106 | 22106 | ||
| 22107 | 22107 | // sources/corepackUtils.ts | |
| 22108 | + var YARN_SWITCH_REGEX = /[/\\]switch[/\\]bin[/\\]/; | ||
| 22109 | + function isYarnSwitchPath(p) { | ||
| 22110 | + return YARN_SWITCH_REGEX.test(p); | ||
| 22111 | + } | ||
| 22108 | 22112 | function getRegistryFromPackageManagerSpec(spec) { | |
| 22109 | 22113 | return process.env.COREPACK_NPM_REGISTRY ? spec.npmRegistry ?? spec.registry : spec.registry; | |
| 22110 | 22114 | } | |
@@ -22896,7 +22900,7 @@ var Engine = class { | |||
| 22896 | 22900 | case `NoSpec`: { | |
| 22897 | 22901 | if (typeof locator.reference === `function`) | |
| 22898 | 22902 | 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`) { | ||
| 22900 | 22904 | const resolved = await this.resolveDescriptor(fallbackDescriptor, { allowTags: true }); | |
| 22901 | 22905 | if (resolved === null) | |
| 22902 | 22906 | throw new UsageError(`Failed to successfully resolve '${fallbackDescriptor.range}' to a valid ${fallbackDescriptor.name} release`); | |
@@ -22906,7 +22910,7 @@ var Engine = class { | |||
| 22906 | 22910 | console.error(); | |
| 22907 | 22911 | await setLocalPackageManager(import_path9.default.dirname(result.target), installSpec); | |
| 22908 | 22912 | } | |
| 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}`); | ||
| 22910 | 22914 | return fallbackDescriptor; | |
| 22911 | 22915 | } | |
| 22912 | 22916 | case `Found`: { | |
@@ -23070,6 +23074,10 @@ var DisableCommand = class extends Command { | |||
| 23070 | 23074 | async removePosixLink(installDirectory, binName) { | |
| 23071 | 23075 | const file = import_path10.default.join(installDirectory, binName); | |
| 23072 | 23076 | 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 | + } | ||
| 23073 | 23081 | await import_fs11.default.promises.unlink(file); | |
| 23074 | 23082 | } catch (err) { | |
| 23075 | 23083 | if (err.code !== `ENOENT`) { | |
@@ -23147,6 +23155,10 @@ var EnableCommand = class extends Command { | |||
| 23147 | 23155 | const symlink = import_path11.default.relative(installDirectory, import_path11.default.join(distFolder, `${binName}.js`)); | |
| 23148 | 23156 | if (import_fs12.default.existsSync(file)) { | |
| 23149 | 23157 | 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 | + } | ||
| 23150 | 23162 | if (currentSymlink !== symlink) { | |
| 23151 | 23163 | await import_fs12.default.promises.unlink(file); | |
| 23152 | 23164 | } else { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "corepack", | |
| 3 | - "version": "0.32.0", | ||
| 3 | + "version": "0.33.0", | ||
| 4 | 4 | "homepage": "https://github.com/nodejs/corepack#readme", | |
| 5 | 5 | "bugs": { | |
| 6 | 6 | "url": "https://github.com/nodejs/corepack/issues" | |
@@ -16,21 +16,21 @@ | |||
| 16 | 16 | "./package.json": "./package.json" | |
| 17 | 17 | }, | |
| 18 | 18 | "license": "MIT", | |
| 19 | - "packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728", | ||
| 19 | + "packageManager": "yarn@4.9.0+sha224.dce6c5df199861784bd9b0eecb2a228df97e3f18a02b1bb75ff98383", | ||
| 20 | 20 | "devDependencies": { | |
| 21 | 21 | "@types/debug": "^4.1.5", | |
| 22 | 22 | "@types/node": "^20.4.6", | |
| 23 | 23 | "@types/proxy-from-env": "^1", | |
| 24 | 24 | "@types/semver": "^7.1.0", | |
| 25 | 25 | "@types/which": "^3.0.0", | |
| 26 | - "@yarnpkg/eslint-config": "^2.0.0", | ||
| 26 | + "@yarnpkg/eslint-config": "^3.0.0", | ||
| 27 | 27 | "@yarnpkg/fslib": "^3.0.0-rc.48", | |
| 28 | 28 | "@zkochan/cmd-shim": "^6.0.0", | |
| 29 | 29 | "better-sqlite3": "^11.7.2", | |
| 30 | 30 | "clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch", | |
| 31 | 31 | "debug": "^4.1.1", | |
| 32 | 32 | "esbuild": "^0.25.0", | |
| 33 | - "eslint": "^8.57.0", | ||
| 33 | + "eslint": "^9.22.0", | ||
| 34 | 34 | "proxy-from-env": "^1.1.0", | |
| 35 | 35 | "semver": "^7.6.3", | |
| 36 | 36 | "supports-color": "^10.0.0", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments