-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
build: add node v18 support #7812
Conversation
Note for myself: need to update Line 40 in 9c6501d
|
@@ -37,7 +37,7 @@ | |||
"@microsoft/api-extractor": "^7.22.2", | |||
"@types/fs-extra": "^9.0.13", | |||
"@types/jest": "^27.4.1", | |||
"@types/node": "^16.11.27", | |||
"@types/node": "^17.0.25", |
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.
Awaiting v18 types
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.
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.
It's due to this breaking change: nodejs/node#41431
vite/packages/vite/src/node/logger.ts
Line 193 in ba43c29
.filter((detail) => detail && detail.address && detail.family === 'IPv4') |
In Node.js < 18, detail.family
is a string; in Node.js >= 18, it's an integer.
I'm not 💯 % sure, but maybe the failing node-18-windows job is a jest node-18 |
About the failing test on WIndows:
|
Done a little research and found a possible culprit: jprichardson/node-fs-extra#646 Now that we also have Related commits:
|
I may do this this evening or weekend in a separate PR, need to be "afk" for a while |
@Shinigami92 I see that this was marked for 3.0, this is ok to be released in 2.9 though, no? |
Yes, I marked it with 3.0 as I also deprecated v12 in one PR |
Description
Remove support for node v12 and v17I will split the node v12 support removal into it's own PR (build!: remove node v12 support #7833)Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).