Build/Test Tools: Bump the required versions of Node.js and npm.

This changes the minimum required version of Node.js to 16.19.1, and npm to 8.19.3.

Node.js 14.x reached end of life on April 30, 2023. While 18.x is the currently active LTS version, it can’t yet be used due to a systems level constraint on the build server. 

Updating further will be considered once this blocker is resolved.

Gutenberg has also been updated to follow the same version requirements for consistency.

Props youknowriad, gziolo, swissspidy, kevin940726, desrosj.
Fixes #56658.

git-svn-id: https://develop.svn.wordpress.org/trunk@56378 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2023-08-09 18:52:42 +00:00
parent b1d59267af
commit 429de7ae77
12 changed files with 20032 additions and 16258 deletions

1
.npmrc
View File

@ -1,2 +1,3 @@
save-exact = true
engine-strict = true
legacy-peer-deps = true

2
.nvmrc
View File

@ -1 +1 @@
14
16

36263
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,8 @@
"url": "https://develop.svn.wordpress.org/trunk"
},
"engines": {
"node": ">=14.15.0",
"npm": ">=6.14.8 <7"
"node": ">=16.19.1",
"npm": ">=8.19.3 <9"
},
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
@ -37,7 +37,7 @@
"cssnano": "5.1.14",
"dotenv": "16.0.3",
"dotenv-expand": "10.0.0",
"grunt": "~1.5.3",
"grunt": "~1.6.1",
"grunt-banner": "^0.6.0",
"grunt-contrib-clean": "~2.0.1",
"grunt-contrib-concat": "2.1.0",
@ -58,7 +58,7 @@
"grunt-webpack": "5.0.0",
"ink-docstrap": "1.3.2",
"install-changed": "1.1.0",
"jest-image-snapshot": "3.0.1",
"jest-image-snapshot": "^6.1.0",
"matchdep": "~2.0.0",
"postcss": "8.4.24",
"prettier": "npm:wp-prettier@2.6.2",

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'e614f07ba8410b17e456');
<?php return array('dependencies' => array(), 'version' => '2d287354c2e6d72857f3');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '9d287166f699a66eff3b');
<?php return array('dependencies' => array(), 'version' => 'ec37fc1961bd4baeb46a');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'a145d0113e969f692877');
<?php return array('dependencies' => array(), 'version' => '1be33df2c2460f78d1bd');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'b478fa3cd1475dec97d3');
<?php return array('dependencies' => array(), 'version' => '252a2757b4db083871a8');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'e0302ba06467706c7421');
<?php return array('dependencies' => array(), 'version' => '3df3afc90dd8cabb979b');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '886680af40b7521d60fc');
<?php return array('dependencies' => array(), 'version' => '5687b52bb8c84fb4ae68');

View File

@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '1653a74623d252458484');
<?php return array('dependencies' => array(), 'version' => 'b09d25cb6ba004114a2a');