Skip to content

Commit 1e86d7f

Browse files
authored
Merge branch 'main' into test-install-dir
2 parents 5727f46 + fdbd751 commit 1e86d7f

18 files changed

Lines changed: 940 additions & 1876 deletions

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

20-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
20+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2121
with:
2222
node-version: lts/*
2323
env:
@@ -27,7 +27,7 @@ jobs:
2727
id: yarn-cache-dir-path
2828
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
2929

30-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
30+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3131
with:
3232
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
3333
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
@@ -47,9 +47,9 @@ jobs:
4747
fail-fast: false
4848
matrix:
4949
node:
50-
- 20
5150
- 22
5251
- 24
52+
- 26
5353
platform:
5454
- ubuntu-latest
5555
- macos-latest
@@ -66,10 +66,10 @@ jobs:
6666
runs-on: ${{matrix.platform}}
6767

6868
steps:
69-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
69+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7070

7171
- name: "Use Node.js ${{matrix.node}}.x"
72-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
72+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7373
with:
7474
node-version: ${{matrix.node}}.x
7575
env:
@@ -80,7 +80,7 @@ jobs:
8080
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
8181
shell: bash # Needs explicit bash for Windows-support
8282

83-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
83+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8484
with:
8585
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
8686
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
contents: write
3636
id-token: write
3737
steps:
38-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
38+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3939

40-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
40+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4141
with:
4242
node-version: lts/*
4343
env:
@@ -47,7 +47,7 @@ jobs:
4747
id: yarn-cache-dir-path
4848
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
4949

50-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
50+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5151
with:
5252
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
5353
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}

.github/workflows/sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- name: Install Node
20-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
20+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2121
with:
2222
node-version: lts/*
2323
env:
@@ -49,7 +49,7 @@ jobs:
4949
},
5050
}" > config.json
5151
52-
- uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 # v1.9.2
52+
- uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1
5353
# Creates a PR or update the Action's existing PR, or
5454
# no-op if the base branch is already up-to-date.
5555
env:

.github/workflows/update-nock-files.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
ACTUAL: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }}
5555
EXPECTED: ${{ inputs.head_sha }}
5656

57-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
57+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5858
with:
5959
ref: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }}
6060
fetch-depth: ${{ !inputs.merge_base && 1 || 0 }}
@@ -74,7 +74,7 @@ jobs:
7474
BASE_BRANCH: ${{ fromJson(steps.pr_info.outputs.DATA).base_ref }}
7575

7676
- name: Install Node
77-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
77+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
7878
with:
7979
node-version: lts/*
8080
env:
@@ -84,7 +84,7 @@ jobs:
8484
id: yarn-cache-dir-path
8585
run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
8686

87-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
87+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8888
with:
8989
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
9090
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
@@ -126,7 +126,7 @@ jobs:
126126
REMOTE_REF: ${{ fromJson(steps.pr_info.outputs.DATA).head_ref }}
127127

128128
- name: Upload `tests/nocks.db` in case of failure
129-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
129+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
130130
if: ${{ failure() && steps.contains-changes.outputs.result == 'yes' }}
131131
with:
132132
name: nock
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
diff --git a/lib/platform/package.json b/lib/platform/package.json
2-
index 5ea9d43740d1bdb509612376c0e9ce91d20f8b20..08d4f7327dee5e605107a343d73b2254ed08ddb9 100644
3-
--- a/lib/platform/package.json
4-
+++ b/lib/platform/package.json
5-
@@ -1,4 +1,4 @@
6-
{
7-
- "main": "./node",
8-
+ "main": "./node.js",
9-
"browser": "./browser"
10-
}
1+
diff --git a/package.json b/package.json
2+
index cbf943bcc31a864f2771e457d327e5106eba9afe..84cb1ce28a4eea4dba60bb4fa6c33a08474b2d3f 100644
3+
--- a/package.json
4+
+++ b/package.json
5+
@@ -13,7 +13,7 @@
6+
"command"
7+
],
8+
"version": "3.2.1",
9+
- "main": "lib/advanced/index",
10+
+ "main": "lib/advanced/index.js",
11+
"license": "MIT",
12+
"sideEffects": false,
13+
"repository": {

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

CHANGELOG.md

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

3+
## [0.34.7](https://github.com/nodejs/corepack/compare/v0.34.6...v0.34.7) (2026-04-17)
4+
5+
6+
### Bug Fixes
7+
8+
* update package manager versions ([#790](https://github.com/nodejs/corepack/issues/790)) ([e8961d6](https://github.com/nodejs/corepack/commit/e8961d6bdc14b8141fbda008febdd3649022862c))
9+
310
## [0.34.6](https://github.com/nodejs/corepack/compare/v0.34.5...v0.34.6) (2026-01-23)
411

512

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,6 @@ same major line. Should you need to upgrade to a new major, use an explicit
328328
Only keys that start with `COREPACK_` and are not in the exception list
329329
(`COREPACK_ENABLE_DOWNLOAD_PROMPT` and `COREPACK_ENV_FILE` are ignored)
330330
will be taken into account.
331-
For Node.js 18.x users, this setting has no effect as that version doesn't
332-
support parsing of `.env` files.
333331

334332
- `COREPACK_HOME` can be set in order to define where Corepack should install
335333
the package managers. By default it is set to `%LOCALAPPDATA%\node\corepack`
@@ -352,7 +350,7 @@ same major line. Should you need to upgrade to a new major, use an explicit
352350
empty password, explicitly set `COREPACK_NPM_PASSWORD` to an empty string.
353351

354352
- `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` are supported through
355-
[`proxy-from-env`](https://github.com/Rob--W/proxy-from-env).
353+
[`NODE_USE_ENV_PROXY=1`](https://nodejs.org/api/cli.html#node_use_env_proxy1).
356354

357355
- `COREPACK_INTEGRITY_KEYS` can be set to an empty string or `0` to
358356
instruct Corepack to skip integrity checks, or to a JSON string containing

config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"definitions": {
33
"npm": {
4-
"default": "11.8.0+sha1.d1bc924deb3b4d412055b1755098a70bf8a4713b",
4+
"default": "11.14.1+sha1.4a6839650da0005f323fec6abd39d77ee24f842f",
55
"fetchLatestFrom": {
66
"type": "npm",
77
"package": "npm"
@@ -38,7 +38,7 @@
3838
}
3939
},
4040
"pnpm": {
41-
"default": "10.28.1+sha1.20817ab95fb7f61154ba5ff3bcb61f27defb6142",
41+
"default": "11.1.2+sha1.ed39d701687311ce9345771c62376f9fe7286694",
4242
"fetchLatestFrom": {
4343
"type": "npm",
4444
"package": "pnpm"
@@ -119,7 +119,7 @@
119119
"package": "yarn"
120120
},
121121
"transparent": {
122-
"default": "4.12.0+sha224.877304a94a6946ab1d58a358df5ff8af2f7c9d86ea506f05f5c9df05",
122+
"default": "4.14.1+sha224.88b7a7244bbd9040380c417f7eb556d85c67640b651f113cb4c72113",
123123
"commands": [
124124
[
125125
"yarn",

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "corepack",
3-
"version": "0.34.6",
3+
"version": "0.34.7",
44
"homepage": "https://github.com/nodejs/corepack#readme",
55
"bugs": {
66
"url": "https://github.com/nodejs/corepack/issues"
@@ -10,44 +10,43 @@
1010
"url": "https://github.com/nodejs/corepack.git"
1111
},
1212
"engines": {
13-
"node": "^20.10.0 || ^22.11.0 || >=24.0.0"
13+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
1414
},
1515
"exports": {
1616
"./package.json": "./package.json"
1717
},
1818
"license": "MIT",
19-
"packageManager": "yarn@4.11.0+sha224.209a3e277c6bbc03df6e4206fbfcb0c1621c27ecf0688f79a0c619f0",
19+
"packageManager": "yarn@4.14.1+sha224.88b7a7244bbd9040380c417f7eb556d85c67640b651f113cb4c72113",
2020
"devDependencies": {
2121
"@types/debug": "^4.1.5",
22-
"@types/node": "^20.4.6",
22+
"@types/node": "^22.0.0",
2323
"@types/proxy-from-env": "^1",
2424
"@types/semver": "^7.1.0",
2525
"@types/which": "^3.0.0",
2626
"@yarnpkg/eslint-config": "^3.0.0",
2727
"@yarnpkg/fslib": "^3.0.0-rc.48",
2828
"@zkochan/cmd-shim": "^6.0.0",
29-
"better-sqlite3": "^11.7.2",
3029
"clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch",
3130
"debug": "^4.1.1",
32-
"esbuild": "^0.25.0",
31+
"esbuild": "^0.28.0",
3332
"eslint": "^9.22.0",
34-
"proxy-from-env": "^1.1.0",
3533
"semver": "^7.6.3",
3634
"supports-color": "^10.0.0",
37-
"tar": "^7.5.4",
35+
"tar": "^7.5.11",
3836
"tsx": "^4.16.2",
3937
"typescript": "^5.7.3",
40-
"undici": "^6.21.2",
4138
"v8-compile-cache": "^2.3.0",
42-
"vitest": "^3.0.5",
43-
"which": "^5.0.0"
39+
"vitest": "^4.0.5",
40+
"which": "^7.0.0"
4441
},
45-
"resolutions": {
46-
"undici-types": "6.x"
42+
"dependenciesMeta": {
43+
"esbuild": {
44+
"built": true
45+
}
4746
},
4847
"scripts": {
4948
"build": "run clean && run build:bundle && tsx ./mkshims.ts",
50-
"build:bundle": "esbuild ./sources/_lib.ts --bundle --platform=node --target=node18.17.0 --external:corepack --outfile='./dist/lib/corepack.cjs' --resolve-extensions='.ts,.mjs,.js'",
49+
"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'",
5150
"clean": "run rimraf dist shims",
5251
"corepack": "tsx ./sources/_cli.ts",
5352
"lint": "eslint .",

0 commit comments

Comments
 (0)