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

Drop Node@12, Node@14, Node@16 support #4777

Closed
5 tasks done
aruniverse opened this issue Dec 8, 2022 · 11 comments
Closed
5 tasks done

Drop Node@12, Node@14, Node@16 support #4777

aruniverse opened this issue Dec 8, 2022 · 11 comments
Assignees
Milestone

Comments

@aruniverse
Copy link
Member

aruniverse commented Dec 8, 2022

See node support https://github.com/nodejs/release#release-schedule

Node12 reached end of life a while back
Node14 reaches end of life 4/30/23, which should be close enough to our hopeful 4.0 release
Node16 reaches end of life later this yr, was moved up due to OpenSSL
- instead of dropping it later in another major (which we don't know when it will be) get ahead and do it now

  • Drop Node 12
  • Drop Node 14
  • Drop Node 16
  • drop custom core-bentley guid in favor of using crypto.randomUUID (available both in node & web) ? crypto is not available in browsers and Crypto is only supported from Node 19.
  • Upgrade to es2021 #5078
@paulius-valiunas
Copy link
Contributor

Interesting note here, seems like the Node API is slightly different than the browser API... it would be good to keep this in mind when migrating:
https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID#browser_compatibility

@paulius-valiunas
Copy link
Contributor

what is our support policy for browser versions? The browser API seems to be relatively new, let's make sure we support the versions we're promising to support.

@aruniverse aruniverse changed the title Drop Node@12, Node@14 support Drop Node@12, Node@14, Node@16 support Jan 17, 2023
@GytisCepk
Copy link
Contributor

@aruniverse Electron is still running on Node 16 (version table).

@aruniverse
Copy link
Member Author

@aruniverse Electron is still running on Node 16 (version table).

Aww man. Thanks for letting me know. Hopefully they'll have it updated by the time we release 4.0. If not we will need to continue supporting 16 then :/

Gytis, mind making an issue for the 4.0 backlog to drop electron support for the version electron doesn't support/maintain anymore based on that table?

@GytisCepk
Copy link
Contributor

GytisCepk commented Jan 19, 2023

Hopefully they'll have it updated by the time we release 4.0. If not we will need to continue supporting 16 then :/

Looks like upcoming Electron 23 will be using Node 18 (DEPS file in Electron repo). Electron 23 should be coming out February 7. One think to keep in mind: if we decide to drop Node 16, we will need to drop all Electron versions what we will support in 3.6 and with no 3.7 in plans, with 4.0 we will jump versions like: "x - 22" to "23". Luckily, Electron major versions usually aren't very disruptive.

@pmconne
Copy link
Member

pmconne commented Jan 19, 2023

We should probably update our matrix of supported platforms in docs/learning/SupportedPlatforms.md to break it down by major release.
That information might also need to be made more visible, perhaps in api-support-policies.md.
Our README simply says "Node 18".

@aruniverse
Copy link
Member Author

Should we also update our es target? right now we target es2019, but if we're saying we support node18+ then we could bump to es2021 or es2022. https://kangax.github.io/compat-table/es2016plus/

@GytisCepk
Copy link
Contributor

Should we also update our es target? right now we target es2019, but if we're saying we support node18+ then we could bump to es2021 or es2022. https://kangax.github.io/compat-table/es2016plus/

Upgrading to es2021 makes sense to me.

Not sure about es2022: es2022 compatibility seems to be a bit "spotty" at the moment.

@aruniverse
Copy link
Member Author

when we start working on this task, id first drop 12 & 14, and then drop 16 a bit later

@GytisCepk
Copy link
Contributor

PR for dropping Node 12 and Node 14: #5012.

@GytisCepk
Copy link
Contributor

PR for dropping Node 16: #5077.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants