Skip to content
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

Update Node to version 20 #6487

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Update Node to version 20 #6487

merged 3 commits into from
Dec 21, 2023

Conversation

fluiddot
Copy link
Contributor

@fluiddot fluiddot commented Dec 21, 2023

This PR is a follow-up on the Gutenberg PR WordPress/gutenberg#56331 to update Node to the same version used in Gutenberg.

More information can be found in:
https://make.wordpress.org/core/2023/12/20/updating-wordpress-to-use-more-modern-versions-of-node-js-npm-2/

Jetpack repository

No updates are needed as it already uses node 20 (reference).

Block Experiments repository

It currently uses node 16, so eventually we'd need to update it (reference). Similar to what happened in GBM, we need to update the dependency eslint-plugin-jsdoc. Since the affected package is not strictly related to editor/block logic, looks safe to continue this PR without updating node in this repository.

In any case, I opened Automattic/block-experiments#340 as a follow-up.

To test:

  • Smoke test the editor.
  • Check that all CI jobs succeed.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@fluiddot fluiddot added the dependencies Pull requests that update a dependency file label Dec 21, 2023
"eslint-plugin-jsdoc": "^39.6.9",
"eslint-plugin-jsdoc": "^46.4.6",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dependency has been updated to support node 20.

Comment on lines -10 to +11
"node": ">=16.0.0",
"npm": ">=8 <9"
"node": ">=20.10.0",
"npm": ">=10.2.3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This configuration matches the one used in Gutenberg (reference).

@fluiddot fluiddot marked this pull request as ready for review December 21, 2023 10:55
@geriux geriux self-requested a review December 21, 2023 12:33
Copy link
Contributor

@geriux geriux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for updating these, I've smoke-tested the demo app and all of the CI jobs passed correctly 🚀

@geriux geriux added this to the 1.110.0 (24.0) milestone Dec 21, 2023
@fluiddot fluiddot merged commit 75c05d4 into trunk Dec 21, 2023
23 checks passed
@fluiddot fluiddot deleted the update/node-20 branch December 21, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants