middlewarehq / middleware

✨ Open-source DORA metrics platform for engineering teams ✨
https://middlewarehq.com
Apache License 2.0
1.17k stars 100 forks source link

Upgrade Node to version 22 #553

Closed thesujai closed 1 month ago

thesujai commented 1 month ago

Description:

Node 16 is deprecated, it is receiving no sec updates, so it would be better to update node to 22, as it will soon move to LTS, and updating to any higher versions(20, as 19 is also deprecated) will need next to be updated to 14(Will be a huge refactor). So updating node to 22 would just do fine as it won't require nextjs update

Scope

  1. Upgrade node to v22.x in both cli/ and webserver/
  2. See if any dependency requires an update
  3. Update the docker setup to use node 22.x instead of 16
  4. Do the necessary clean-up if node16 still exists in repo