diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f630701b4dc..0df1623e91f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Primer React", - "image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:18", + "image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:22", "extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "DavidAnson.vscode-markdownlint"], "forwardPorts": [8000], "onCreateCommand": ["/bin/bash", "-c", "npm run setup"], diff --git a/.github/actions/pagerduty/action.yml b/.github/actions/pagerduty/action.yml index 00065517dd8..83d5ff951d3 100644 --- a/.github/actions/pagerduty/action.yml +++ b/.github/actions/pagerduty/action.yml @@ -38,7 +38,7 @@ runs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 22 - name: Get PagerDuty Schedule id: pagerduty uses: actions/github-script@v6 diff --git a/.github/workflows/assign_release_conductor.yml b/.github/workflows/assign_release_conductor.yml index 8cbc24e21c0..baacf81c019 100644 --- a/.github/workflows/assign_release_conductor.yml +++ b/.github/workflows/assign_release_conductor.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - run: npm i -g npm@^10.5.1 - run: npm ci - uses: ./.github/actions/pagerduty diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4298feee3e0..098af6b11c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -41,7 +41,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -61,7 +61,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -79,7 +79,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -97,7 +97,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -116,7 +116,7 @@ jobs: - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -157,7 +157,7 @@ jobs: - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: install dependencies @@ -190,7 +190,7 @@ jobs: - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -231,7 +231,7 @@ jobs: - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: install dependencies @@ -261,7 +261,7 @@ jobs: - name: Use Node.js 20.x uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies @@ -277,7 +277,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies diff --git a/.github/workflows/codescan.yml b/.github/workflows/codescan.yml index ed6bcb78c9a..3ebb8186f6c 100644 --- a/.github/workflows/codescan.yml +++ b/.github/workflows/codescan.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies diff --git a/.github/workflows/consumer_test.yml b/.github/workflows/consumer_test.yml index 52276a5257a..f9bccebd6ce 100644 --- a/.github/workflows/consumer_test.yml +++ b/.github/workflows/consumer_test.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: npm - run: npm i -g npm@^10.5.1 - name: Remove "prepare" script diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index ac9266642fc..f8d7810bedd 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies diff --git a/.github/workflows/deploy_preview_forks.yml b/.github/workflows/deploy_preview_forks.yml index 0c59811c9fd..ae3fa7f9845 100644 --- a/.github/workflows/deploy_preview_forks.yml +++ b/.github/workflows/deploy_preview_forks.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies diff --git a/.github/workflows/figma_connect_publish.yml b/.github/workflows/figma_connect_publish.yml index 18a0336f1bc..b9992d7741b 100644 --- a/.github/workflows/figma_connect_publish.yml +++ b/.github/workflows/figma_connect_publish.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Cache dependencies uses: actions/cache@v4 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1da519d0301..d35991ca6e5 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Get or Create Comment uses: actions/github-script@v7 diff --git a/.github/workflows/release-schedule.yml b/.github/workflows/release-schedule.yml index 05ea7c517cb..d032decd5ca 100644 --- a/.github/workflows/release-schedule.yml +++ b/.github/workflows/release-schedule.yml @@ -30,7 +30,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - run: npm i -g npm@^10.5.1 - name: Install packages for github-script run: npm i date-fns diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22b6809159d..c27d25e24a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 diff --git a/.github/workflows/release_canary.yml b/.github/workflows/release_canary.yml index a58ac8bcc33..4d2c650469c 100644 --- a/.github/workflows/release_canary.yml +++ b/.github/workflows/release_canary.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies diff --git a/.github/workflows/release_candidate.yml b/.github/workflows/release_candidate.yml index 9ce3dfb396b..bc2431774a8 100644 --- a/.github/workflows/release_candidate.yml +++ b/.github/workflows/release_candidate.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 diff --git a/.github/workflows/statuses.yml b/.github/workflows/statuses.yml index cf29166af88..58caad824a6 100644 --- a/.github/workflows/statuses.yml +++ b/.github/workflows/statuses.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Install node deps run: npm ci - name: Install ruby deps diff --git a/.github/workflows/storybook-tests.yml b/.github/workflows/storybook-tests.yml index 41308daa00f..c4a15304970 100644 --- a/.github/workflows/storybook-tests.yml +++ b/.github/workflows/storybook-tests.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - name: Install dependencies run: npm i diff --git a/.github/workflows/vrt.yml b/.github/workflows/vrt.yml index ae2efa5521a..81a7be8f420 100644 --- a/.github/workflows/vrt.yml +++ b/.github/workflows/vrt.yml @@ -37,7 +37,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm i -g npm@^10.5.1 - name: Install dependencies diff --git a/.nvmrc b/.nvmrc index 9a2a0e219c9..53d1c14db37 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20 +v22 diff --git a/packages/react/rollup.config.mjs b/packages/react/rollup.config.mjs index 6b40253473f..0264079ae5b 100644 --- a/packages/react/rollup.config.mjs +++ b/packages/react/rollup.config.mjs @@ -11,7 +11,7 @@ import {importCSS} from 'rollup-plugin-import-css' import postcss from 'rollup-plugin-postcss' import postcssPresetPrimer from 'postcss-preset-primer' import MagicString from 'magic-string' -import packageJson from './package.json' assert {type: 'json'} +import packageJson from './package.json' with {type: 'json'} const __dirname = path.dirname(fileURLToPath(import.meta.url)) diff --git a/packages/rollup-plugin-import-css/rollup.config.js b/packages/rollup-plugin-import-css/rollup.config.js index bd170e7977f..da639769421 100644 --- a/packages/rollup-plugin-import-css/rollup.config.js +++ b/packages/rollup-plugin-import-css/rollup.config.js @@ -2,7 +2,7 @@ import {nodeResolve} from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' import typescript from 'rollup-plugin-typescript2' import esbuild from 'rollup-plugin-esbuild' -import packageJson from './package.json' assert {type: 'json'} +import packageJson from './package.json' with {type: 'json'} const dependencyTypes = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'] const dependencies = new Set(