diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 676e65128c..6ca50270e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [22.x] steps: - name: Setup timezone diff --git a/.github/workflows/lerna-version.yml b/.github/workflows/lerna-version.yml index b99d3cbe03..cb88a67428 100644 --- a/.github/workflows/lerna-version.yml +++ b/.github/workflows/lerna-version.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [22.x] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/update-docs-etc.yml b/.github/workflows/update-docs-etc.yml index 137db6e834..37949214ba 100644 --- a/.github/workflows/update-docs-etc.yml +++ b/.github/workflows/update-docs-etc.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [22.x] # Only if it contains a certain label. if: "contains( github.event.pull_request.labels.*.name, 'eve: update docs etc')" diff --git a/.nvmrc b/.nvmrc index 209e3ef4b6..2bd5a0a98a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 +22 diff --git a/package.json b/package.json index 50fbb70e95..a9f65a064b 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@types/klaw-sync": "^6.0.5", "@types/lodash": "^4.17.7", "@types/meow": "^5.0.0", - "@types/node": "^20.16.2", + "@types/node": "^22.9.0", "@types/react": "^18.3.4", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.18.0", diff --git a/packages/brick-container/build.config.js b/packages/brick-container/build.config.js index 4353476747..15ac24dfab 100644 --- a/packages/brick-container/build.config.js +++ b/packages/brick-container/build.config.js @@ -4,7 +4,7 @@ import { createRequire } from "node:module"; import HtmlWebpackPlugin from "html-webpack-plugin"; import CopyPlugin from "copy-webpack-plugin"; import webpack from "webpack"; -import packageJson from "./package.json" assert { type: "json" }; +import packageJson from "./package.json" with { type: "json" }; const require = createRequire(import.meta.url); diff --git a/packages/inject/src/__snapshots__/syntax.spec.ts.snap b/packages/inject/src/__snapshots__/syntax.spec.ts.snap index 9fd7f7e681..acac094ac2 100644 --- a/packages/inject/src/__snapshots__/syntax.spec.ts.snap +++ b/packages/inject/src/__snapshots__/syntax.spec.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`parseInjectableString should throw when parsing "\${a=[{}}{]}" 1`] = `"Expected ',' or ']' after array element in JSON at position 3"`; +exports[`parseInjectableString should throw when parsing "\${a=[{}}{]}" 1`] = `"Expected ',' or ']' after array element in JSON at position 3 (line 1 column 4)"`; exports[`parseInjectableString should throw when parsing "\${a=[}" 1`] = `"Failed to match a JSON value at index 4 near: "[}""`; diff --git a/yarn.lock b/yarn.lock index 4a104b856e..51378c2228 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2986,12 +2986,12 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@^20.16.2": - version "20.16.2" - resolved "https://registry.npmjs.org/@types/node/-/node-20.16.2.tgz#9e388f503a5af306e8c63319334887390966a11e" - integrity sha512-91s/n4qUPV/wg8eE9KHYW1kouTfDk2FPGjXbBMfRWP/2vg1rCXNQL1OCabwGs0XSdukuK+MwCDXE30QpSeMUhQ== +"@types/node@*", "@types/node@^22.9.0": + version "22.9.0" + resolved "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz#b7f16e5c3384788542c72dc3d561a7ceae2c0365" + integrity sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ== dependencies: - undici-types "~6.19.2" + undici-types "~6.19.8" "@types/node@^18.11.9": version "18.19.45" @@ -13251,10 +13251,10 @@ undici-types@~5.26.4: resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== -undici-types@~6.19.2: - version "6.19.6" - resolved "https://registry.npmjs.org/undici-types/-/undici-types-6.19.6.tgz#e218c3df0987f4c0e0008ca00d6b6472d9b89b36" - integrity sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org== +undici-types@~6.19.8: + version "6.19.8" + resolved "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0"