-
Notifications
You must be signed in to change notification settings - Fork 85
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 version 20 (FE-6252) #6424
Conversation
4cbd51b
to
2b726e8
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ecbe103:
|
89b2f58
to
c856ee3
Compare
c856ee3
to
edc65ef
Compare
@@ -4,5 +4,5 @@ | |||
"carbon-quickstart-typescript-6sjfuz" | |||
], | |||
"buildCommand": "precompile", | |||
"node": "16" | |||
"node": "18" |
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.
note: the Codesandbox CI bot currently doesn't support Node 20, Node 18 is the latest version it supports
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.
Yeah they're usually a bit behind on updating (understandably)
edc65ef
to
6d14434
Compare
6141b7e
to
8339132
Compare
@@ -1,4 +1,4 @@ | |||
import { Page } from "playwright-core"; | |||
import { Page } from "@playwright/test"; |
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.
note: for future Playwright migrations, we should import any needed TypeScript types from this package as opposed to playwright-core
, since playwright-core
is an internal package and the Playwright team could change this at any time.
Temporarily restrict the following packages to assist with updating: - @playwright/experimental-ct-react17 - @axe-core/playwright - @types/styled-components - @sage/design-tokens (dev dependency only) - @floating-ui/dom - @floating-ui/react-dom - @tanstack/react-virtual - cypress Install @playwright/test at same version as @playwright/experimental-ct-react17, to address issue with imported TypeScript types not being found.
Override version of playwright-core, so @axe-core/playwright and @playwright-experiment-ct-react17 reference the same package. Without this, npm would install two different versions of playwright-core, which would cause TypeScript types between the two versions to clash.
ecbe103
8339132
to
ecbe103
Compare
🎉 This PR is included in version 124.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Proposed behaviour
package-lock.json
to use the latest file format (more details in the npm docs)Current behaviour
Checklist
d.ts
file added or updated if requiredQA
Additional context
To assist with regenerating the package lock file, several packages have been locked to specific versions/ restricted to specific version ranges. These packages and their locked versions are below:
@playwright/experimental-core-react17
to~1.36.2
@playwright/test
to~1.36.2
@axe-core/playwright
to~4.7.3
@sage/design-tokens
(dev dependency only) to~4.17.0
@floating-ui/dom
to~1.2.9
@floating-ui/react-dom
to~1.3.0
cypress
to~12.13.0
@types/styled-components
to5.1.17
1@tanstack/react-virtual
to3.0.0-beta.54
These will eventually need updating to later versions.
Testing instructions
Pre-setup
nvm install lts/iron
npm ci
Tests
npm
scriptsFootnotes
Should be
4.4.x
to match[email protected]
, but type errors were encountered on the latest4.4.x
version. ↩