-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Upgrade Node.js to latest LTS (22.x) #198790
Comments
Pinging @elastic/kibana-core (Team:Core) |
Pinging @elastic/kibana-operations (Team:Operations) |
As far as I can tell there isn't obvious breaking changes that should affect us. So I'll remove the Core label for now. If it turns out that we need to make any changes within Core we can of course help out with that. |
Btw, since Node.js 21, the fetch API has been marked as stable, so once we migrate to Node.js 21, we can finally start recommending switching to native fetch instead of |
Just a note for Ops team when we look into doing this upgrade. We should not go past |
#205983 is mostly ready. See linked meta issue for more details. I'm pausing for now based on #198790 (comment). @legrego and @mistic maybe you can sync on timeline and required versions? It would be helpful to not delay getting this into 8.x if that's a pre-release requirement. Can we not use the ESM feature for now, instead of waiting until 22.15.0? |
I believe we need to have this upgrade in all versions of 8.x that we plan to support in a 9.x era (Is that just |
## Summary Related to elastic/ems-client#543 and #198790 Updates `@elastic/[email protected]` adding support for Node 22.x
## Summary Related to elastic/ems-client#543 and elastic#198790 Updates `@elastic/[email protected]` adding support for Node 22.x (cherry picked from commit 2345872) # Conflicts: # package.json # src/dev/license_checker/config.ts
# Backport This will backport the following commits from `main` to `8.x`: - [[Maps] Update @elastic/ems-client to 8.6.3 (#206814)](#206814) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jorge Sanz","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-16T08:46:37Z","message":"[Maps] Update @elastic/ems-client to 8.6.3 (#206814)\n\n## Summary\n\nRelated to elastic/ems-client#543 and\nhttps://github.com//issues/198790\n\nUpdates `@elastic/[email protected]` adding support for Node 22.x","sha":"2345872393d3ec21f0bfe8b76c729edd46d69422","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","v9.0.0","backport:prev-minor","Feature:Maps"],"title":"[Maps] Update @elastic/ems-client to 8.6.3","number":206814,"url":"https://github.com/elastic/kibana/pull/206814","mergeCommit":{"message":"[Maps] Update @elastic/ems-client to 8.6.3 (#206814)\n\n## Summary\n\nRelated to elastic/ems-client#543 and\nhttps://github.com//issues/198790\n\nUpdates `@elastic/[email protected]` adding support for Node 22.x","sha":"2345872393d3ec21f0bfe8b76c729edd46d69422"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206814","number":206814,"mergeCommit":{"message":"[Maps] Update @elastic/ems-client to 8.6.3 (#206814)\n\n## Summary\n\nRelated to elastic/ems-client#543 and\nhttps://github.com//issues/198790\n\nUpdates `@elastic/[email protected]` adding support for Node 22.x","sha":"2345872393d3ec21f0bfe8b76c729edd46d69422"}}]}] BACKPORT-->
Thanks. I added |
## Summary Related to elastic/ems-client#543 and elastic#198790 Updates `@elastic/[email protected]` adding support for Node 22.x
Node.js recently bumped their Active LTS line to version 22. We should upgrade from version 20, which is now in
maintenance
mode:We should plan for this to land no later than the last minor release for 8.x, so that our last supported version of 8 aligns with 9.
Potentially unblocks #106868
The text was updated successfully, but these errors were encountered: