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

Bump @types/node to ^20.2.3 #9060

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@types/chai-dom": "^1.11.0",
"@types/enzyme": "^3.10.12",
"@types/mocha": "^10.0.1",
"@types/node": "^20.1.4",
"@types/node": "^20.2.3",
Copy link
Member

Choose a reason for hiding this comment

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

Just a thought: shouldn't we keep this version in sync with the version of engines used to avoid any potential issues, where IDE would suggest that a certain API is usable, but it would fail on CI due to a different version of the engine used? πŸ€”
cc @oliviertassinari @flaviendelangle @cherniavskii @michaldudak @ZeeshanTamboli

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, we can set it to v14 because this is the version of node we use in our CI:

- image: cimg/node:14.21

Copy link
Member

Choose a reason for hiding this comment

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

Although we will end up with multiple versions on @types/node installed anyway, because other dependencies depend on it - see current lock file:

mui-x/yarn.lock

Lines 3002 to 3010 in d6761b8

"@types/node@*", "@types/node@>= 8", "@types/node@>=10.0.0", "@types/node@^20.1.4":
version "20.1.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.4.tgz#83f148d2d1f5fe6add4c53358ba00d97fc4cdb71"
integrity sha512-At4pvmIOki8yuwLtd7BNHl3CiWNbtclUbNtScGx4OHfBd4/oWoJC8KRCIxXwkdndzhxOsPXihrsOoydxBjlE9Q==
"@types/node@^14.0.1":
version "14.18.36"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.36.tgz#c414052cb9d43fab67d679d5f3c641be911f5835"
integrity sha512-FXKWbsJ6a1hIrRxv+FoukuHnGTgEzKYGi7kilfMae96AL9UNkPFNWJEEYWzdRI9ooIkbr4AKldyuSTLql06vLQ==

I'm not sure which one will be picked up by VSCode.

Copy link
Member

Choose a reason for hiding this comment

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

Or we could wait and see how mui/material-ui#37173 unfolds and possibly lock it on v18 for the time being. πŸ€”

Copy link
Member

Choose a reason for hiding this comment

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

Although we will end up with multiple versions on @types/node installed anyway, because other dependencies depend on it

Ahh, yes, that specific v14 coming from the @fast-csv/format a sub-dep of exceljs library πŸ™ˆ
Honestly, I have no idea why they have @types/node as their dependency... I might be missing something, but it seems like an oversight/bug...

"@types/prettier": "^2.7.2",
"@types/react": "^18.2.4",
"@types/react-dom": "^18.2.4",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2993,10 +2993,10 @@
dependencies:
moment ">=2.14.0"

"@types/node@*", "@types/node@>= 8", "@types/node@>=10.0.0", "@types/node@^20.1.4":
version "20.1.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.4.tgz#83f148d2d1f5fe6add4c53358ba00d97fc4cdb71"
integrity sha512-At4pvmIOki8yuwLtd7BNHl3CiWNbtclUbNtScGx4OHfBd4/oWoJC8KRCIxXwkdndzhxOsPXihrsOoydxBjlE9Q==
"@types/node@*", "@types/node@>= 8", "@types/node@>=10.0.0", "@types/node@^20.2.3":
version "20.2.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.3.tgz#b31eb300610c3835ac008d690de6f87e28f9b878"
integrity sha512-pg9d0yC4rVNWQzX8U7xb4olIOFuuVL9za3bzMT2pu2SU0SNEi66i2qrvhE2qt0HvkhuCaWJu7pLNOt/Pj8BIrw==

"@types/node@^14.0.1":
version "14.18.36"
Expand Down