elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.64k stars 8.23k forks source link

Upgrade Node.js to latest LTS (22.x) #198790

Open legrego opened 1 week ago

legrego commented 1 week ago

Node.js recently bumped their Active LTS line to version 22. We should upgrade from version 20, which is now in maintenance mode:

Image

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 https://github.com/elastic/kibana/issues/106868

elasticmachine commented 1 week ago

Pinging @elastic/kibana-core (Team:Core)

elasticmachine commented 1 week ago

Pinging @elastic/kibana-operations (Team:Operations)

rudolf commented 1 week ago

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.

azasypkin commented 7 hours ago

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 axios & friends.