Skip to content

Bumps Node requirements from 14 to 18 #5445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jun 24, 2023
Merged
Show file tree
Hide file tree
Changes from 10 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
14 changes: 7 additions & 7 deletions .github/workflows/integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,19 @@ jobs:
fail-fast: false
matrix:
# We run the ubuntu tests on multiple Node versions with 2 shards since they're the fastest.
node: [14, 16, 18, 19]
node: [18, 19, 20]
platform: [ubuntu-latest]
shard: ['1/2', '2/2']
# We run the rest of the tests on the minimum Node version we support with 3 shards.
include:
# Windows tests
- {node: 14, platform: windows-latest, shard: 1/3}
- {node: 14, platform: windows-latest, shard: 2/3}
- {node: 14, platform: windows-latest, shard: 3/3}
- {node: 18, platform: windows-latest, shard: 1/3}
- {node: 18, platform: windows-latest, shard: 2/3}
- {node: 18, platform: windows-latest, shard: 3/3}
# macOS tests
- {node: 14, platform: macos-latest, shard: 1/3}
- {node: 14, platform: macos-latest, shard: 2/3}
- {node: 14, platform: macos-latest, shard: 3/3}
- {node: 18, platform: macos-latest, shard: 1/3}
- {node: 18, platform: macos-latest, shard: 2/3}
- {node: 18, platform: macos-latest, shard: 3/3}

name: '${{matrix.platform}} w/ Node.js ${{matrix.node}}.x (${{matrix.shard}})'
runs-on: ${{matrix.platform}}
Expand Down
35 changes: 5 additions & 30 deletions .pnp.loader.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions .yarn/versions/da27efee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
releases:
"@yarnpkg/builder": major
"@yarnpkg/cli": major
"@yarnpkg/core": major
"@yarnpkg/doctor": major
"@yarnpkg/eslint-config": major
"@yarnpkg/extensions": major
"@yarnpkg/fslib": 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
"@yarnpkg/types": major
vscode-zipfs: major
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Yarn now accepts sponsorships! Please give a look at our [OpenCollective](https:

### **Major Changes**

- With Node.js 16's End of Life [approaching fast](https://nodejs.org/en/blog/announcements/nodejs16-eol), we dropped support for Node.js versions lower than 18.12.
- The `yarn set version` command will now skip generating the `yarnPath` configuration on new projects if it detects you're using [Corepack](https://nodejs.org/api/corepack.html)
- All official Yarn plugins are now included by default in the bundle we provide. You no longer need to run `yarn plugin import` for *official* plugins (you still need to do it for third-party plugins, of course).
- This doesn't change anything to the plugin API we provide, which will keep being maintained (Yarn still has a modular architecture and uses the exact same APIs as contrib plugins; all that changes is how we distribute our own features).
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
targets: {
node: `14.15.0`,
node: `18.12.0`,
},
presets: [
[`@babel/preset-env`, {modules: `commonjs`}],
Expand Down
2 changes: 1 addition & 1 deletion constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ gen_enforced_field(WorkspaceCwd, 'license', 'BSD-2-Clause').

% 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', '>=14.15.0').
gen_enforced_field(WorkspaceCwd, 'engines.node', '>=18.12.0').

% Required to make the package work with the GitHub Package Registry
gen_enforced_field(WorkspaceCwd, 'repository.type', 'git').
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@
"directory": "."
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/acceptance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"directory": "packages/acceptance-tests"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/acceptance-tests/pkg-tests-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"directory": "packages/acceptance-tests/pkg-tests-core"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"dependencies": {
"typanion": "^3.12.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/acceptance-tests/pkg-tests-fixtures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"directory": "packages/acceptance-tests/pkg-tests-fixtures"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/acceptance-tests/pkg-tests-specs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"tslib": "^2.4.0"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
]
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"license": "BSD-2-Clause",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"directory": "packages/eslint-config"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"react": "*"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"license": "BSD-2-Clause",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/gatsby-plugin-clipanion-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"gatsby": "^3.7.0"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"license": "BSD-2-Clause",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@yarnpkg/monorepo": "workspace:^"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"license": "BSD-2-Clause",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@
"@types/tinycolor2": "1.4.2"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/gatsby/typedoc-plugin-yarn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"typescript": "5.1.1-rc"
},
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"license": "BSD-2-Clause",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-constraints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-dlx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-exec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "2.3.1"
}
2 changes: 1 addition & 1 deletion packages/plugin-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "2.3.1"
}
2 changes: 1 addition & 1 deletion packages/plugin-git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "2.6.6"
}
2 changes: 1 addition & 1 deletion packages/plugin-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "2.3.1"
}
2 changes: 1 addition & 1 deletion packages/plugin-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "2.2.1"
}
2 changes: 1 addition & 1 deletion packages/plugin-init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "3.2.1"
}
2 changes: 1 addition & 1 deletion packages/plugin-interactive-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "2.2.1"
}
2 changes: 1 addition & 1 deletion packages/plugin-nm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "3.1.5"
}
2 changes: 1 addition & 1 deletion packages/plugin-npm-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "3.4.0"
}
2 changes: 1 addition & 1 deletion packages/plugin-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"/lib/**/*"
],
"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
},
"stableVersion": "3.2.0"
}
Loading