From 994ef1fcf3d8e67f3d94841c75c0a6c117bb865d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Tue, 8 Mar 2022 09:21:58 +0100 Subject: [PATCH 1/3] Don't run the tests anymore on Node 12 --- .github/workflows/integration-workflow.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-workflow.yml b/.github/workflows/integration-workflow.yml index 95214f279360..fd1862041356 100644 --- a/.github/workflows/integration-workflow.yml +++ b/.github/workflows/integration-workflow.yml @@ -16,10 +16,10 @@ jobs: - run: | git fetch --no-tags --unshallow origin HEAD master - - name: 'Use Node.js 12.x' + - name: 'Use Node.js 16.x' uses: actions/setup-node@master with: - node-version: 12.x + node-version: 16.x - name: 'Check that the Yarn files don''t change on new installs (fix w/ "yarn install")' run: | @@ -146,10 +146,10 @@ jobs: steps: - uses: actions/checkout@master - - name: 'Use Node.js 14.x' + - name: 'Use Node.js 16.x' uses: actions/setup-node@master with: - node-version: 14.x + node-version: 16.x - name: 'Build bundle & plugins' run: | @@ -190,7 +190,6 @@ jobs: fail-fast: false matrix: node: - - 12 - 14 - 16 - 17 From 62e022a7a0898725a57387e55d54d6f4a712741c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Tue, 8 Mar 2022 09:23:50 +0100 Subject: [PATCH 2/3] Bumps version in the CLI check --- .yarn/versions/d7ae2216.yml | 23 +++++++++++++++++++++++ packages/yarnpkg-cli/sources/main.ts | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .yarn/versions/d7ae2216.yml diff --git a/.yarn/versions/d7ae2216.yml b/.yarn/versions/d7ae2216.yml new file mode 100644 index 000000000000..69dbdb38f160 --- /dev/null +++ b/.yarn/versions/d7ae2216.yml @@ -0,0 +1,23 @@ +releases: + "@yarnpkg/cli": major + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/plugin-dlx" + - "@yarnpkg/plugin-essentials" + - "@yarnpkg/plugin-init" + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-nm" + - "@yarnpkg/plugin-npm-cli" + - "@yarnpkg/plugin-pack" + - "@yarnpkg/plugin-patch" + - "@yarnpkg/plugin-pnp" + - "@yarnpkg/plugin-pnpm" + - "@yarnpkg/plugin-stage" + - "@yarnpkg/plugin-typescript" + - "@yarnpkg/plugin-version" + - "@yarnpkg/plugin-workspace-tools" + - "@yarnpkg/builder" + - "@yarnpkg/core" + - "@yarnpkg/doctor" diff --git a/packages/yarnpkg-cli/sources/main.ts b/packages/yarnpkg-cli/sources/main.ts index bbab63f49fb6..c493a6654973 100644 --- a/packages/yarnpkg-cli/sources/main.ts +++ b/packages/yarnpkg-cli/sources/main.ts @@ -58,7 +58,7 @@ export async function main({binaryVersion, pluginConfiguration}: {binaryVersion: // - 14.10.0 broken streams - https://github.com/nodejs/node/pull/34035 (fix: https://github.com/nodejs/node/commit/0f94c6b4e4) const version = process.versions.node; - const range = `>=12 <14 || 14.2 - 14.9 || >14.10.0`; + const range = `14.2 - 14.9 || >14.10.0`; // YARN_IGNORE_NODE is special because this code needs to execute as early as possible. // It's not a regular core setting because Configuration.find may use functions not available From be589b93c582fec0482822e4c111feb99906e9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Tue, 8 Mar 2022 13:34:53 +0100 Subject: [PATCH 3/3] Feedback --- .yarn/versions/d7ae2216.yml | 60 ++++++++++++------- constraints.pro | 4 +- package.json | 2 +- packages/acceptance-tests/package.json | 2 +- .../pkg-tests-core/package.json | 2 +- .../pkg-tests-fixtures/package.json | 2 +- .../pkg-tests-specs/package.json | 2 +- packages/esbuild-plugin-pnp/package.json | 2 +- packages/eslint-config/package.json | 2 +- packages/gatsby/package.json | 2 +- packages/plugin-compat/package.json | 2 +- packages/plugin-constraints/package.json | 2 +- packages/plugin-dlx/package.json | 2 +- packages/plugin-essentials/package.json | 2 +- packages/plugin-exec/package.json | 2 +- packages/plugin-file/package.json | 2 +- packages/plugin-git/package.json | 2 +- packages/plugin-github/package.json | 2 +- packages/plugin-http/package.json | 2 +- packages/plugin-init/package.json | 2 +- .../plugin-interactive-tools/package.json | 2 +- packages/plugin-link/package.json | 2 +- packages/plugin-nm/package.json | 2 +- packages/plugin-npm-cli/package.json | 2 +- packages/plugin-npm/package.json | 2 +- packages/plugin-pack/package.json | 2 +- packages/plugin-patch/package.json | 2 +- packages/plugin-pnp/package.json | 2 +- packages/plugin-pnpm/package.json | 2 +- packages/plugin-stage/package.json | 2 +- packages/plugin-typescript/package.json | 2 +- packages/plugin-version/package.json | 2 +- packages/plugin-workspace-tools/package.json | 2 +- packages/vscode-zipfs/package.json | 2 +- packages/vscode-zipfs/rollup.config.js | 2 +- packages/yarnpkg-builder/package.json | 2 +- .../sources/commands/build/bundle.ts | 2 +- .../sources/commands/build/plugin.ts | 2 +- packages/yarnpkg-cli/package.json | 2 +- packages/yarnpkg-cli/sources/main.ts | 5 +- packages/yarnpkg-core/package.json | 2 +- packages/yarnpkg-core/rollup.config.js | 2 +- packages/yarnpkg-doctor/package.json | 2 +- packages/yarnpkg-fslib/package.json | 2 +- packages/yarnpkg-json-proxy/package.json | 2 +- packages/yarnpkg-libui/package.json | 2 +- packages/yarnpkg-libzip/package.json | 2 +- packages/yarnpkg-nm/package.json | 2 +- packages/yarnpkg-parsers/package.json | 2 +- packages/yarnpkg-pnp/package.json | 2 +- packages/yarnpkg-pnp/rollup.config.js | 6 +- packages/yarnpkg-pnpify/package.json | 2 +- packages/yarnpkg-sdks/package.json | 2 +- packages/yarnpkg-shell/package.json | 2 +- 54 files changed, 96 insertions(+), 79 deletions(-) diff --git a/.yarn/versions/d7ae2216.yml b/.yarn/versions/d7ae2216.yml index 69dbdb38f160..89b271b85902 100644 --- a/.yarn/versions/d7ae2216.yml +++ b/.yarn/versions/d7ae2216.yml @@ -1,23 +1,41 @@ releases: + "@yarnpkg/builder": major "@yarnpkg/cli": major - -declined: - - "@yarnpkg/plugin-compat" - - "@yarnpkg/plugin-constraints" - - "@yarnpkg/plugin-dlx" - - "@yarnpkg/plugin-essentials" - - "@yarnpkg/plugin-init" - - "@yarnpkg/plugin-interactive-tools" - - "@yarnpkg/plugin-nm" - - "@yarnpkg/plugin-npm-cli" - - "@yarnpkg/plugin-pack" - - "@yarnpkg/plugin-patch" - - "@yarnpkg/plugin-pnp" - - "@yarnpkg/plugin-pnpm" - - "@yarnpkg/plugin-stage" - - "@yarnpkg/plugin-typescript" - - "@yarnpkg/plugin-version" - - "@yarnpkg/plugin-workspace-tools" - - "@yarnpkg/builder" - - "@yarnpkg/core" - - "@yarnpkg/doctor" + "@yarnpkg/core": major + "@yarnpkg/doctor": major + "@yarnpkg/esbuild-plugin-pnp": major + "@yarnpkg/eslint-config": major + "@yarnpkg/fslib": major + "@yarnpkg/json-proxy": major + "@yarnpkg/libui": major + "@yarnpkg/libzip": major + "@yarnpkg/nm": major + "@yarnpkg/parsers": major + "@yarnpkg/plugin-compat": major + "@yarnpkg/plugin-constraints": major + "@yarnpkg/plugin-dlx": major + "@yarnpkg/plugin-essentials": major + "@yarnpkg/plugin-exec": major + "@yarnpkg/plugin-file": major + "@yarnpkg/plugin-git": major + "@yarnpkg/plugin-github": major + "@yarnpkg/plugin-http": major + "@yarnpkg/plugin-init": major + "@yarnpkg/plugin-interactive-tools": major + "@yarnpkg/plugin-link": major + "@yarnpkg/plugin-nm": major + "@yarnpkg/plugin-npm": major + "@yarnpkg/plugin-npm-cli": major + "@yarnpkg/plugin-pack": major + "@yarnpkg/plugin-patch": major + "@yarnpkg/plugin-pnp": major + "@yarnpkg/plugin-pnpm": major + "@yarnpkg/plugin-stage": major + "@yarnpkg/plugin-typescript": major + "@yarnpkg/plugin-version": major + "@yarnpkg/plugin-workspace-tools": major + "@yarnpkg/pnp": major + "@yarnpkg/pnpify": major + "@yarnpkg/sdks": major + "@yarnpkg/shell": major + vscode-zipfs: major diff --git a/constraints.pro b/constraints.pro index 1842a14f8d87..68210eed047e 100644 --- a/constraints.pro +++ b/constraints.pro @@ -44,9 +44,9 @@ gen_enforced_dependency(WorkspaceCwd, 'tslib', 'range', 'dependencies') :- % This rule will enforce that all packages must have a "BSD-2-Clause" license field gen_enforced_field(WorkspaceCwd, 'license', 'BSD-2-Clause'). -% This rule will enforce that all packages must have an engines.node field of >=12 <14 || 14.2 - 14.9 || >14.10.0 +% This rule will enforce that all packages must have an correct engines.node field % Keep in sync with the range inside packages/yarnpkg-cli/sources/main.ts -gen_enforced_field(WorkspaceCwd, 'engines.node', '>=12 <14 || 14.2 - 14.9 || >14.10.0'). +gen_enforced_field(WorkspaceCwd, 'engines.node', '>=14.15.0'). % Required to make the package work with the GitHub Package Registry gen_enforced_field(WorkspaceCwd, 'repository.type', 'git'). diff --git a/package.json b/package.json index ba6b1fe4b31a..f8e670477a09 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,6 @@ "directory": "." }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/acceptance-tests/package.json b/packages/acceptance-tests/package.json index 9c09353d2c1b..01025599dd7a 100644 --- a/packages/acceptance-tests/package.json +++ b/packages/acceptance-tests/package.json @@ -25,6 +25,6 @@ "directory": "packages/acceptance-tests" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/acceptance-tests/pkg-tests-core/package.json b/packages/acceptance-tests/pkg-tests-core/package.json index b7f547b28246..f7e7626be951 100644 --- a/packages/acceptance-tests/pkg-tests-core/package.json +++ b/packages/acceptance-tests/pkg-tests-core/package.json @@ -35,7 +35,7 @@ "directory": "packages/acceptance-tests/pkg-tests-core" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" }, "dependencies": { "uuid": "^8.3.2" diff --git a/packages/acceptance-tests/pkg-tests-fixtures/package.json b/packages/acceptance-tests/pkg-tests-fixtures/package.json index 91b5a80df11b..cd1dc652661e 100644 --- a/packages/acceptance-tests/pkg-tests-fixtures/package.json +++ b/packages/acceptance-tests/pkg-tests-fixtures/package.json @@ -14,6 +14,6 @@ "directory": "packages/acceptance-tests/pkg-tests-fixtures" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/acceptance-tests/pkg-tests-specs/package.json b/packages/acceptance-tests/pkg-tests-specs/package.json index 723070cbe828..478a0804863d 100644 --- a/packages/acceptance-tests/pkg-tests-specs/package.json +++ b/packages/acceptance-tests/pkg-tests-specs/package.json @@ -23,6 +23,6 @@ "tar": "^6.0.5" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/esbuild-plugin-pnp/package.json b/packages/esbuild-plugin-pnp/package.json index e141ee7d0347..39ec9f146f07 100644 --- a/packages/esbuild-plugin-pnp/package.json +++ b/packages/esbuild-plugin-pnp/package.json @@ -31,6 +31,6 @@ "directory": "packages/esbuild-plugin-pnp" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index e3a50b448dd4..3268d524b6c8 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -24,6 +24,6 @@ "directory": "packages/eslint-config" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index b2dee15632c9..9f0105180424 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -119,6 +119,6 @@ "@types/tinycolor2": "1.4.2" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-compat/package.json b/packages/plugin-compat/package.json index 731055e99175..be5028ad32b6 100644 --- a/packages/plugin-compat/package.json +++ b/packages/plugin-compat/package.json @@ -38,6 +38,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-constraints/package.json b/packages/plugin-constraints/package.json index bee0f99b1f41..5ba874439717 100644 --- a/packages/plugin-constraints/package.json +++ b/packages/plugin-constraints/package.json @@ -40,6 +40,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-dlx/package.json b/packages/plugin-dlx/package.json index 10f51b24df3e..4d7870d226a0 100644 --- a/packages/plugin-dlx/package.json +++ b/packages/plugin-dlx/package.json @@ -34,6 +34,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-essentials/package.json b/packages/plugin-essentials/package.json index 17ac0bdd9ef7..a261ad87a5a0 100644 --- a/packages/plugin-essentials/package.json +++ b/packages/plugin-essentials/package.json @@ -47,6 +47,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-exec/package.json b/packages/plugin-exec/package.json index 2ff23134ef2b..47cda09ddf3e 100644 --- a/packages/plugin-exec/package.json +++ b/packages/plugin-exec/package.json @@ -33,6 +33,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-file/package.json b/packages/plugin-file/package.json index 7186b70caf21..229e11341d5a 100644 --- a/packages/plugin-file/package.json +++ b/packages/plugin-file/package.json @@ -30,6 +30,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-git/package.json b/packages/plugin-git/package.json index 15c74fa0ad60..24f8d0447bc1 100644 --- a/packages/plugin-git/package.json +++ b/packages/plugin-git/package.json @@ -37,6 +37,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-github/package.json b/packages/plugin-github/package.json index eeb9a924f853..c30b266fc687 100644 --- a/packages/plugin-github/package.json +++ b/packages/plugin-github/package.json @@ -33,6 +33,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-http/package.json b/packages/plugin-http/package.json index 007a8f0b3d3a..e540a9fbf9f1 100644 --- a/packages/plugin-http/package.json +++ b/packages/plugin-http/package.json @@ -30,6 +30,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-init/package.json b/packages/plugin-init/package.json index 03ff2a5a8822..026a51848669 100644 --- a/packages/plugin-init/package.json +++ b/packages/plugin-init/package.json @@ -35,6 +35,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-interactive-tools/package.json b/packages/plugin-interactive-tools/package.json index 1f2e2b855a92..6e4376768961 100644 --- a/packages/plugin-interactive-tools/package.json +++ b/packages/plugin-interactive-tools/package.json @@ -47,6 +47,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-link/package.json b/packages/plugin-link/package.json index df992ccd24c8..88377149ad98 100644 --- a/packages/plugin-link/package.json +++ b/packages/plugin-link/package.json @@ -30,6 +30,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-nm/package.json b/packages/plugin-nm/package.json index 18fdc9c25c77..eaa555fff29d 100644 --- a/packages/plugin-nm/package.json +++ b/packages/plugin-nm/package.json @@ -46,6 +46,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-npm-cli/package.json b/packages/plugin-npm-cli/package.json index 7674e08784f8..8fae4dcb7c1f 100644 --- a/packages/plugin-npm-cli/package.json +++ b/packages/plugin-npm-cli/package.json @@ -42,6 +42,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-npm/package.json b/packages/plugin-npm/package.json index f44b308ae2bb..efc4cfc1e1a0 100644 --- a/packages/plugin-npm/package.json +++ b/packages/plugin-npm/package.json @@ -37,6 +37,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-pack/package.json b/packages/plugin-pack/package.json index 9bf84d11cff2..e7b875a8b079 100644 --- a/packages/plugin-pack/package.json +++ b/packages/plugin-pack/package.json @@ -38,6 +38,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-patch/package.json b/packages/plugin-patch/package.json index 55f86c2e25fb..01348be32fdc 100644 --- a/packages/plugin-patch/package.json +++ b/packages/plugin-patch/package.json @@ -34,6 +34,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-pnp/package.json b/packages/plugin-pnp/package.json index d2f040eb26c2..d099d9650081 100644 --- a/packages/plugin-pnp/package.json +++ b/packages/plugin-pnp/package.json @@ -39,6 +39,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-pnpm/package.json b/packages/plugin-pnpm/package.json index bcb1ae1cb509..fbdd1cadcc01 100644 --- a/packages/plugin-pnpm/package.json +++ b/packages/plugin-pnpm/package.json @@ -36,6 +36,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-stage/package.json b/packages/plugin-stage/package.json index 8f2b9765b412..49bde653c978 100644 --- a/packages/plugin-stage/package.json +++ b/packages/plugin-stage/package.json @@ -36,6 +36,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-typescript/package.json b/packages/plugin-typescript/package.json index e0c65ecadbd1..b361ba7cabcb 100644 --- a/packages/plugin-typescript/package.json +++ b/packages/plugin-typescript/package.json @@ -41,6 +41,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-version/package.json b/packages/plugin-version/package.json index 79e83e9bcea9..7d5b06d6af45 100644 --- a/packages/plugin-version/package.json +++ b/packages/plugin-version/package.json @@ -47,6 +47,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/plugin-workspace-tools/package.json b/packages/plugin-workspace-tools/package.json index 861517caf7a3..86d46164330d 100644 --- a/packages/plugin-workspace-tools/package.json +++ b/packages/plugin-workspace-tools/package.json @@ -42,6 +42,6 @@ "/lib/**/*" ], "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/vscode-zipfs/package.json b/packages/vscode-zipfs/package.json index 3b92fdc12181..b157c4398ebf 100644 --- a/packages/vscode-zipfs/package.json +++ b/packages/vscode-zipfs/package.json @@ -10,7 +10,7 @@ "version": "2.5.0", "engines": { "vscode": "^1.54.0", - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" }, "categories": [ "Other" diff --git a/packages/vscode-zipfs/rollup.config.js b/packages/vscode-zipfs/rollup.config.js index 0c2b6f62aca5..f96f2bdf53d6 100644 --- a/packages/vscode-zipfs/rollup.config.js +++ b/packages/vscode-zipfs/rollup.config.js @@ -24,7 +24,7 @@ export default async () => }), esbuild({ tsconfig: false, - target: `node12`, + target: `node14`, define: { document: `undefined`, XMLHttpRequest: `undefined`, diff --git a/packages/yarnpkg-builder/package.json b/packages/yarnpkg-builder/package.json index d9962e09db54..03b092ce297e 100644 --- a/packages/yarnpkg-builder/package.json +++ b/packages/yarnpkg-builder/package.json @@ -36,6 +36,6 @@ "directory": "packages/yarnpkg-builder" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-builder/sources/commands/build/bundle.ts b/packages/yarnpkg-builder/sources/commands/build/bundle.ts index d5a63b8249a0..be297f69ef0f 100644 --- a/packages/yarnpkg-builder/sources/commands/build/bundle.ts +++ b/packages/yarnpkg-builder/sources/commands/build/bundle.ts @@ -128,7 +128,7 @@ export default class BuildBundleCommand extends Command { plugins: [valLoader, pnpPlugin()], minify: !this.noMinify, sourcemap: this.sourceMap ? `inline` : false, - target: `node12`, + target: `node14`, }); for (const warning of res.warnings) { diff --git a/packages/yarnpkg-builder/sources/commands/build/plugin.ts b/packages/yarnpkg-builder/sources/commands/build/plugin.ts index 13ddefb369bc..529eff993c1d 100644 --- a/packages/yarnpkg-builder/sources/commands/build/plugin.ts +++ b/packages/yarnpkg-builder/sources/commands/build/plugin.ts @@ -120,7 +120,7 @@ export default class BuildPluginCommand extends Command { plugins: [dynamicLibResolver, pnpPlugin()], minify: !this.noMinify, sourcemap: this.sourceMap ? `inline` : false, - target: `node12`, + target: `node14`, }); for (const warning of res.warnings) { diff --git a/packages/yarnpkg-cli/package.json b/packages/yarnpkg-cli/package.json index ba380d0efa4c..f8d68ee1ce81 100644 --- a/packages/yarnpkg-cli/package.json +++ b/packages/yarnpkg-cli/package.json @@ -90,6 +90,6 @@ "directory": "packages/yarnpkg-cli" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-cli/sources/main.ts b/packages/yarnpkg-cli/sources/main.ts index c493a6654973..7cf3a724ad11 100644 --- a/packages/yarnpkg-cli/sources/main.ts +++ b/packages/yarnpkg-cli/sources/main.ts @@ -54,11 +54,10 @@ export async function main({binaryVersion, pluginConfiguration}: {binaryVersion: async function exec(cli: Cli): Promise { // Non-exhaustive known requirements: - // - 14.0 and 14.1 empty http responses - https://github.com/sindresorhus/got/issues/1496 - // - 14.10.0 broken streams - https://github.com/nodejs/node/pull/34035 (fix: https://github.com/nodejs/node/commit/0f94c6b4e4) + // - 14.15 is the first LTS release const version = process.versions.node; - const range = `14.2 - 14.9 || >14.10.0`; + const range = `>=14.15.0`; // YARN_IGNORE_NODE is special because this code needs to execute as early as possible. // It's not a regular core setting because Configuration.find may use functions not available diff --git a/packages/yarnpkg-core/package.json b/packages/yarnpkg-core/package.json index b7ababc56e71..466bc10ef6ab 100644 --- a/packages/yarnpkg-core/package.json +++ b/packages/yarnpkg-core/package.json @@ -76,6 +76,6 @@ "directory": "packages/yarnpkg-core" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-core/rollup.config.js b/packages/yarnpkg-core/rollup.config.js index 44cba5f315d0..fd71a56ff1f7 100644 --- a/packages/yarnpkg-core/rollup.config.js +++ b/packages/yarnpkg-core/rollup.config.js @@ -41,7 +41,7 @@ export default defineConfig({ }), esbuild({ tsconfig: false, - target: `node12`, + target: `node14`, define: { document: `undefined`, XMLHttpRequest: `undefined`, diff --git a/packages/yarnpkg-doctor/package.json b/packages/yarnpkg-doctor/package.json index f39af5da652f..0e45096c4cc6 100644 --- a/packages/yarnpkg-doctor/package.json +++ b/packages/yarnpkg-doctor/package.json @@ -34,6 +34,6 @@ "directory": "packages/yarnpkg-doctor" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-fslib/package.json b/packages/yarnpkg-fslib/package.json index 5c360b24a58f..402d63e63296 100644 --- a/packages/yarnpkg-fslib/package.json +++ b/packages/yarnpkg-fslib/package.json @@ -28,6 +28,6 @@ "directory": "packages/yarnpkg-fslib" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-json-proxy/package.json b/packages/yarnpkg-json-proxy/package.json index 3422c36676fb..3c27d1136508 100644 --- a/packages/yarnpkg-json-proxy/package.json +++ b/packages/yarnpkg-json-proxy/package.json @@ -25,6 +25,6 @@ "directory": "packages/yarnpkg-json-proxy" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-libui/package.json b/packages/yarnpkg-libui/package.json index dda089aaa7b9..2fb49c5ffc24 100644 --- a/packages/yarnpkg-libui/package.json +++ b/packages/yarnpkg-libui/package.json @@ -27,6 +27,6 @@ "prepack": "yarn build:compile-inline \"$(pwd)\"" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-libzip/package.json b/packages/yarnpkg-libzip/package.json index 725d1b45a0b0..4fa062d6dd46 100644 --- a/packages/yarnpkg-libzip/package.json +++ b/packages/yarnpkg-libzip/package.json @@ -31,6 +31,6 @@ "tslib": "^1.13.0" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-nm/package.json b/packages/yarnpkg-nm/package.json index 09d9e6aa8f02..8fe33379b9e4 100644 --- a/packages/yarnpkg-nm/package.json +++ b/packages/yarnpkg-nm/package.json @@ -31,6 +31,6 @@ "directory": "packages/yarnpkg-nm" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-parsers/package.json b/packages/yarnpkg-parsers/package.json index e0f1a9a97433..0d7f48e5646c 100644 --- a/packages/yarnpkg-parsers/package.json +++ b/packages/yarnpkg-parsers/package.json @@ -34,6 +34,6 @@ "directory": "packages/yarnpkg-parsers" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-pnp/package.json b/packages/yarnpkg-pnp/package.json index dfa27f348e9d..a5072957beab 100644 --- a/packages/yarnpkg-pnp/package.json +++ b/packages/yarnpkg-pnp/package.json @@ -39,6 +39,6 @@ "directory": "packages/yarnpkg-pnp" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-pnp/rollup.config.js b/packages/yarnpkg-pnp/rollup.config.js index 5dfa5a5acfd6..5caab7a61f05 100644 --- a/packages/yarnpkg-pnp/rollup.config.js +++ b/packages/yarnpkg-pnp/rollup.config.js @@ -42,7 +42,7 @@ export default defineConfig([ }), esbuild({ tsconfig: false, - target: `node12`, + target: `node14`, define: { document: `undefined`, XMLHttpRequest: `undefined`, @@ -69,7 +69,7 @@ export default defineConfig([ }), esbuild({ tsconfig: false, - target: `node12`, + target: `node14`, define: { document: `undefined`, XMLHttpRequest: `undefined`, @@ -97,7 +97,7 @@ export default defineConfig([ }), esbuild({ tsconfig: false, - target: `node12`, + target: `node14`, define: { document: `undefined`, XMLHttpRequest: `undefined`, diff --git a/packages/yarnpkg-pnpify/package.json b/packages/yarnpkg-pnpify/package.json index cfe32a8a1b0e..d4d42f1b18ee 100644 --- a/packages/yarnpkg-pnpify/package.json +++ b/packages/yarnpkg-pnpify/package.json @@ -40,6 +40,6 @@ "directory": "packages/yarnpkg-pnpify" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-sdks/package.json b/packages/yarnpkg-sdks/package.json index ca1aec8f3504..fc97bcb78dba 100644 --- a/packages/yarnpkg-sdks/package.json +++ b/packages/yarnpkg-sdks/package.json @@ -41,6 +41,6 @@ "directory": "packages/yarnpkg-sdks" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } } diff --git a/packages/yarnpkg-shell/package.json b/packages/yarnpkg-shell/package.json index 3d65bed7b508..e308f5c2a2b4 100644 --- a/packages/yarnpkg-shell/package.json +++ b/packages/yarnpkg-shell/package.json @@ -41,6 +41,6 @@ "directory": "packages/yarnpkg-shell" }, "engines": { - "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0" + "node": ">=14.15.0" } }