-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Tools: Update the minimum Node.js version to 12 #27934
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gziolo
added
the
[Type] Breaking Change
For PRs that introduce a change that will break existing functionality
label
Dec 30, 2020
gziolo
added
[Package] Library Export Default Webpack Plugin
[Tool] Dependency Extraction Webpack Plugin
/packages/dependency-extraction-webpack-plugin
labels
Dec 30, 2020
Size Change: 0 B Total Size: 1.29 MB ℹ️ View Unchanged
|
gziolo
changed the title
Scripts: Update the minimum Node.js version to 12
Tools: Update the minimum Node.js version to 12
Dec 31, 2020
gziolo
force-pushed
the
update/node-12-tools
branch
from
January 1, 2021 22:23
47a4605
to
587c257
Compare
gziolo
added
npm Packages
Related to npm packages
and removed
[Tool] Create Block
/packages/create-block
[Tool] Dependency Extraction Webpack Plugin
/packages/dependency-extraction-webpack-plugin
[Package] Library Export Default Webpack Plugin
labels
Jan 1, 2021
gziolo
force-pushed
the
update/node-12-tools
branch
2 times, most recently
from
January 3, 2021 13:31
d180491
to
d868e91
Compare
gziolo
force-pushed
the
update/node-12-tools
branch
3 times, most recently
from
January 4, 2021 09:57
af236b5
to
0141aeb
Compare
gziolo
force-pushed
the
update/node-12-tools
branch
from
January 4, 2021 16:48
0141aeb
to
eba20b7
Compare
gziolo
force-pushed
the
update/node-12-tools
branch
from
January 5, 2021 15:43
eba20b7
to
ff5f90f
Compare
Let's give it a try. The failing e2e test is a known issue that pops up in the main branch as well. |
Just reviewing it now, was going to give it my 👍 and the option disappeared. |
This was referenced Jan 12, 2021
This was referenced Mar 17, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
npm Packages
Related to npm packages
[Tool] WP Scripts
/packages/scripts
[Type] Breaking Change
For PRs that introduce a change that will break existing functionality
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Starting 2020-05-19 Node.js v10 is in maintenance mode. In fact, Node.js v12 is now also in maintenance mode since 2020-11-30. Node.js v14 is active LTS, see:
https://github.com/nodejs/Release
I propose we drop support for Node.js v10 and lower in all WordPress packages, given that the dependent packages slowly start to drop support as well.
Example:
webpack-bundle-analyzer
starting from v4 increased minimum Node.js version to 10.13 (https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/master/CHANGELOG.md#400).wordpress-sources
starting from v2 increased minimum Node.js version to 10.13 (https://github.com/webpack/webpack-sources/releases/tag/v2.0.0).In practice, it’s more like a recommendation rather than a strict contract as npm will only warn when you install packages that defined
engines
inpackage.json
that aren’t satisfied by the current node or npm version declared.This PR sets the minimum Node.js version recommended to v12 in the following packages that are part of
@wordpress/scripts
family:@wordpress/babel-plugin-import-jsx-pragma
@wordpress/babel-plugin-makepot
@wordpress/babel-preset-default
@wordpress/browserslist-config
@wordpress/create-block
@wordpress/custom-templated-path-webpack-plugin
@wordpress/dependency-extraction-webpack-plugin
@wordpress/e2e-test-utils
@wordpress/e2e-tests
@wordpress/eslint-plugin
@wordpress/jest-console
@wordpress/jest-preset-default
@wordpress/jest-puppeteer-axe
@wordpress/library-export-default-webpack-plugin
@wordpress/npm-package-json-lint-config
@wordpress/postcss-plugins-preset
@wordpress/postcss-themes
@wordpress/prettier-config
@wordpress/scripts
@wordpress/stylelint-config
Note: For consistency all tooling related packages get a minimum Node.js version set even when some of them are simple enough to ignore that.
How has this been tested?
The following commands still work:
npm run build
npm run dev
npm run lint-js
nom run test-unit