| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,17 @@ | |||
| 1 | 1 | # Changelog | |
| 2 | 2 | ||
| 3 | + ## [0.30.0](https://github.com/nodejs/corepack/compare/v0.29.4...v0.30.0) (2024-11-23) | ||
| 4 | + | ||
| 5 | + | ||
| 6 | + ### Features | ||
| 7 | + | ||
| 8 | + * update package manager versions ([#578](https://github.com/nodejs/corepack/issues/578)) ([a286c8f](https://github.com/nodejs/corepack/commit/a286c8f5537ea9ecf9b6ff53c7bc3e8da4e3c8bb)) | ||
| 9 | + | ||
| 10 | + | ||
| 11 | + ### Performance Improvements | ||
| 12 | + | ||
| 13 | + * prefer `module.enableCompileCache` over `v8-compile-cache` ([#574](https://github.com/nodejs/corepack/issues/574)) ([cba6905](https://github.com/nodejs/corepack/commit/cba690575bd606faeee54bd512ccb8797d49055f)) | ||
| 14 | + | ||
| 3 | 15 | ## [0.29.4](https://github.com/nodejs/corepack/compare/v0.29.3...v0.29.4) (2024-09-07) | |
| 4 | 16 | ||
| 5 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='0'; | |
| 3 | + require('module').enableCompileCache?.(); | ||
| 3 | 4 | require('./lib/corepack.cjs').runMain(process.argv.slice(2)); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21260,7 +21260,7 @@ function String2(descriptor, ...args) { | |||
| 21260 | 21260 | } | |
| 21261 | 21261 | ||
| 21262 | 21262 | // package.json | |
| 21263 | - var version = "0.29.4"; | ||
| 21263 | + var version = "0.30.0"; | ||
| 21264 | 21264 | ||
| 21265 | 21265 | // sources/Engine.ts | |
| 21266 | 21266 | var import_fs9 = __toESM(require("fs")); | |
@@ -21274,7 +21274,7 @@ var import_valid3 = __toESM(require_valid2()); | |||
| 21274 | 21274 | var config_default = { | |
| 21275 | 21275 | definitions: { | |
| 21276 | 21276 | npm: { | |
| 21277 | - default: "10.8.3+sha1.e6085b2864fcfd9b1aad7b602601b5a2fc116699", | ||
| 21277 | + default: "10.9.1+sha1.ab141c1229765c11c8c59060fc9cf450a2207bd6", | ||
| 21278 | 21278 | fetchLatestFrom: { | |
| 21279 | 21279 | type: "npm", | |
| 21280 | 21280 | package: "npm" | |
@@ -21311,7 +21311,7 @@ var config_default = { | |||
| 21311 | 21311 | } | |
| 21312 | 21312 | }, | |
| 21313 | 21313 | pnpm: { | |
| 21314 | - default: "9.9.0+sha1.3edbe440f4e570aa8f049adbd06b9483d55cc2d2", | ||
| 21314 | + default: "9.14.2+sha1.5202b50ab92394b3c922d2e293f196e2df6d441b", | ||
| 21315 | 21315 | fetchLatestFrom: { | |
| 21316 | 21316 | type: "npm", | |
| 21317 | 21317 | package: "pnpm" | |
@@ -21375,7 +21375,7 @@ var config_default = { | |||
| 21375 | 21375 | package: "yarn" | |
| 21376 | 21376 | }, | |
| 21377 | 21377 | transparent: { | |
| 21378 | - default: "4.4.1+sha224.fd21d9eb5fba020083811af1d4953acc21eeb9f6ff97efd1b3f9d4de", | ||
| 21378 | + default: "4.5.2+sha224.c2e2e9ed3cdadd6ec250589b3393f71ae56d5ec297af11cec1eba3b4", | ||
| 21379 | 21379 | commands: [ | |
| 21380 | 21380 | [ | |
| 21381 | 21381 | "yarn", | |
@@ -21965,8 +21965,11 @@ async function runVersion(locator, installSpec, binName, args) { | |||
| 21965 | 21965 | } | |
| 21966 | 21966 | if (!binPath) | |
| 21967 | 21967 | throw new Error(`Assertion failed: Unable to locate path for bin '${binName}'`); | |
| 21968 | - if (locator.name !== `npm` || (0, import_lt.default)(locator.reference, `9.7.0`)) | ||
| 21969 | - await Promise.resolve().then(() => __toESM(require_v8_compile_cache())); | ||
| 21968 | + if (!import_module.default.enableCompileCache) { | ||
| 21969 | + if (locator.name !== `npm` || (0, import_lt.default)(locator.reference, `9.7.0`)) { | ||
| 21970 | + await Promise.resolve().then(() => __toESM(require_v8_compile_cache())); | ||
| 21971 | + } | ||
| 21972 | + } | ||
| 21970 | 21973 | process.env.COREPACK_ROOT = import_path7.default.dirname(require.resolve("corepack/package.json")); | |
| 21971 | 21974 | process.argv = [ | |
| 21972 | 21975 | process.execPath, | |
@@ -21976,6 +21979,9 @@ async function runVersion(locator, installSpec, binName, args) { | |||
| 21976 | 21979 | process.execArgv = []; | |
| 21977 | 21980 | process.mainModule = void 0; | |
| 21978 | 21981 | process.nextTick(import_module.default.runMain, binPath); | |
| 21982 | + if (import_module.default.flushCompileCache) { | ||
| 21983 | + setImmediate(import_module.default.flushCompileCache); | ||
| 21984 | + } | ||
| 21979 | 21985 | } | |
| 21980 | 21986 | function shouldSkipIntegrityCheck() { | |
| 21981 | 21987 | return process.env.COREPACK_INTEGRITY_KEYS === `` || process.env.COREPACK_INTEGRITY_KEYS === `0`; | |
@@ -22553,7 +22559,7 @@ var EnableCommand = class extends Command { | |||
| 22553 | 22559 | [`enable`] | |
| 22554 | 22560 | ]; | |
| 22555 | 22561 | static usage = Command.Usage({ | |
| 22556 | - description: `Add the Corepack shims to the install directories`, | ||
| 22562 | + description: `Add the Corepack shims to the install directory`, | ||
| 22557 | 22563 | details: ` | |
| 22558 | 22564 | When run, this command will check whether the shims for the specified package managers can be found with the correct values inside the install directory. If not, or if they don't exist, they will be created. | |
| 22559 | 22565 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1' | |
| 3 | + require('module').enableCompileCache?.(); | ||
| 3 | 4 | require('./lib/corepack.cjs').runMain(['npm', ...process.argv.slice(2)]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1' | |
| 3 | + require('module').enableCompileCache?.(); | ||
| 3 | 4 | require('./lib/corepack.cjs').runMain(['npx', ...process.argv.slice(2)]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1' | |
| 3 | + require('module').enableCompileCache?.(); | ||
| 3 | 4 | require('./lib/corepack.cjs').runMain(['pnpm', ...process.argv.slice(2)]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1' | |
| 3 | + require('module').enableCompileCache?.(); | ||
| 3 | 4 | require('./lib/corepack.cjs').runMain(['pnpx', ...process.argv.slice(2)]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1' | |
| 3 | + require('module').enableCompileCache?.(); | ||
| 3 | 4 | require('./lib/corepack.cjs').runMain(['yarn', ...process.argv.slice(2)]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | 1 | #!/usr/bin/env node | |
| 2 | 2 | process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1' | |
| 3 | + require('module').enableCompileCache?.(); | ||
| 3 | 4 | require('./lib/corepack.cjs').runMain(['yarnpkg', ...process.argv.slice(2)]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "corepack", | |
| 3 | - "version": "0.29.4", | ||
| 3 | + "version": "0.30.0", | ||
| 4 | 4 | "homepage": "https://github.com/nodejs/corepack#readme", | |
| 5 | 5 | "bugs": { | |
| 6 | 6 | "url": "https://github.com/nodejs/corepack/issues" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments