Upgrade to Node 18 #2002
Labels
status: blocked
The issue is blocked from progressing, waiting for another piece of work to be done.
type: enhancement
The issue is a request for an enhancement.
Details
This issue is for upgrading the Node version since 14 (current version) has reached the end of it’s security support period. Since we rely on WP and WC components we should probably follow along with the Gutenberg issue:
WordPress/gutenberg#48588
Their current plan is to jump to Node 18.
This issue will also be helpful to collect any blockers which might be preventing us from upgrading the Node version.
Is your feature request related to a problem?
Node 14 (current version) has reached the end of it’s [security support period]
Describe the solution you'd like
Update to Node 18
📌 Blockers to check
Why blocked
With the current dependency tree, there are some packages do not / will not support Node.js v18, for example:
@es-joy/jsdoccomment@0.20.1
, a child dependency of@wordpress/scripts@24.6.0
, doesn't support v18.@woocommerce/components@10.3.0
, but@woocommerce/components@12.0.0
(the current L-2 WC) only supports v16.The first example blocks this extension to use v18 for now, and the second one may force it to downgrade to v16 in the future.
How to check
Since packages don't always accurately reflect the scope of Node.js support for children dependencies, confirming that these blocks have been removed usually requires actually upgrading the dependencies and testing the installation with Node.js v18 to see if it completes successfully.
Until then, another way to get a quick overview of package's Node.js support is
npm view <packageName> engines
, for example:Acceptance criteria
The text was updated successfully, but these errors were encountered: