Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
fail-fast: false
matrix:
node:
- 20
- 22
- 24
- 26
platform:
- ubuntu-latest
- macos-latest
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@
"url": "https://github.com/nodejs/corepack.git"
},
"engines": {
"node": "^20.10.0 || ^22.11.0 || >=24.0.0"
"node": "^22.22.0 || ^24.15.0 || >=26.0.0"
},
"exports": {
"./package.json": "./package.json"
},
"license": "MIT",
"packageManager": "yarn@4.11.0+sha224.209a3e277c6bbc03df6e4206fbfcb0c1621c27ecf0688f79a0c619f0",
"packageManager": "yarn@4.14.1+sha224.88b7a7244bbd9040380c417f7eb556d85c67640b651f113cb4c72113",
"devDependencies": {
"@types/debug": "^4.1.5",
"@types/node": "^20.4.6",
"@types/node": "^22.0.0",
"@types/proxy-from-env": "^1",
"@types/semver": "^7.1.0",
"@types/which": "^3.0.0",
"@yarnpkg/eslint-config": "^3.0.0",
"@yarnpkg/fslib": "^3.0.0-rc.48",
"@zkochan/cmd-shim": "^6.0.0",
"better-sqlite3": "^11.7.2",
"clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch",
"debug": "^4.1.1",
"esbuild": "^0.27.0",
Expand All @@ -42,6 +41,11 @@
"vitest": "^3.0.5",
"which": "^5.0.0"
},
"dependenciesMeta": {
"esbuild": {
"built": true
}
},
"resolutions": {
"undici-types": "6.x"
},
Expand Down
3 changes: 0 additions & 3 deletions sources/corepackUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ export async function runVersion(locator: Locator, installSpec: InstallSpec & {s
if (!binPath)
throw new Error(`Assertion failed: Unable to locate path for bin '${binName}'`);

// @ts-expect-error - Missing types
if (!Module.enableCompileCache) {
// Node.js segfaults when using npm@>=9.7.0 and v8-compile-cache
// $ docker run -it node:20.3.0-slim corepack npm@9.7.1 --version
Expand Down Expand Up @@ -443,9 +442,7 @@ export async function runVersion(locator: Locator, installSpec: InstallSpec & {s
// the stack trace of the package manager.
process.nextTick(Module.runMain, binPath);

// @ts-expect-error - No types
if (Module.flushCompileCache) {
// @ts-expect-error - No types
setImmediate(Module.flushCompileCache);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/recordRequests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
const path = require(`node:path`);
const crypto = require(`node:crypto`);
const SQLite3 = require(`better-sqlite3`);
const {DatabaseSync: SQLite3} = require(`node:sqlite`);

const db = new SQLite3(path.join(__dirname, `nocks.db`));
process.once(`exit`, () => {
Expand Down
Loading
Loading