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 runners #729

Merged
merged 9 commits into from
Sep 1, 2023
Merged

Update node runners #729

merged 9 commits into from
Sep 1, 2023

Conversation

rictic
Copy link
Member

@rictic rictic commented Mar 29, 2023

16 is now the most recent maintenance release, 18 the LTS and 20 the current

This came up because pnpm v8 doesn't support node 14

The operating system options haven't changed yet: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners

@aomarks
Copy link
Member

aomarks commented Mar 29, 2023

I was thinking we'd end Node 14 support when Node 14 goes out of LTS, which is in 1 month

https://github.com/nodejs/Release#release-schedule

Then we could also update the docs here https://github.com/google/wireit#requirements, and we should also be able to ship native private fields I think?

@rictic
Copy link
Member Author

rictic commented Mar 29, 2023

+1, delaying this change until then

@rictic rictic marked this pull request as draft March 29, 2023 21:28
@rictic rictic marked this pull request as ready for review May 1, 2023 20:26
@rictic
Copy link
Member Author

rictic commented May 1, 2023

This is ready for review. After review we'll need to drop Node 14 and 19 from the required checks in github, and add Node 20 here: https://github.com/google/wireit/settings/branch_protection_rules/25374611

Copy link
Member

@aomarks aomarks left a comment

Choose a reason for hiding this comment

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

Nice!

WDYT about also changing the JS we emit so that this is actually breaking? We could bump up the ES level, and turn on native class fields. Could also migrate to #private class fields.

Otherwise when we eventually do rely on a newer feature, we might in practice need another breaking change, because people won't have realized that this change was the breaking one.

@rictic
Copy link
Member Author

rictic commented May 2, 2023

Hm, github caching tests are locking up in CI with node 20. I don't have time to debug today though.

@rictic rictic changed the base branch from main to release-12 September 1, 2023 18:35
Copy link
Member

@aomarks aomarks left a comment

Choose a reason for hiding this comment

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

Awesome!

We could now also migrate from uvu to the new built-in Node test runner, since that's available since 18.

Base automatically changed from release-12 to main September 1, 2023 19:49
@rictic rictic enabled auto-merge (squash) September 1, 2023 20:19
@rictic rictic merged commit f46dccb into main Sep 1, 2023
18 checks passed
@rictic rictic deleted the bump-node branch September 1, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants