-
Notifications
You must be signed in to change notification settings - Fork 17
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
chore!: upgrade to Node 18 #353
Conversation
sofisl
commented
Feb 12, 2025
•
edited
Loading
edited
- runs https://paste.googleplex.com/5722106875871232
- updates all dependencies to their latest version if compatible
- updates CI/CD and Kokoro to use Node 18
- runs lint
- updates post-processor version to latest
- removes outdated Kokoro folders
- upgrades node-fetch to v3
- drops UUID
Warning: This pull request is touching the following templated files:
|
package.json
Outdated
@@ -40,27 +40,27 @@ | |||
"dependencies": { | |||
"http-proxy-agent": "^5.0.0", | |||
"https-proxy-agent": "^5.0.0", | |||
"node-fetch": "^2.6.9", | |||
"node-fetch": "^2.7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need this bumped to v3 in order to avoid punycode
warnings in Node v22. Here are a few examples:
- DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead google-auth-library-nodejs#1829 - punycode deprecation warning gaxios#640
Here’s an example migration:
package.json
Outdated
"stream-events": "^1.0.5", | ||
"uuid": "^9.0.0" | ||
"uuid": "^11.0.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UUID is globally available as of Node 18+. Here’s how we can drop this dependency:
@d-goog thank you for the review and pointers! TBH, I had tried to upgrade to node-fetch v3 but couldn't figure it out. Thanks for the pointers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!