From 4e009d337a50b74a0ba1b2c14c90ec6ec92a4f77 Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Thu, 25 Apr 2024 10:52:56 -0400 Subject: [PATCH] internal: Bump node to 22 for github actions --- .github/workflows/benchmark.yml | 3 ++- .github/workflows/release.yml | 2 +- examples/benchmark/core.js | 4 ++-- examples/benchmark/entity.js | 2 +- examples/benchmark/normalizr.js | 4 ++-- examples/benchmark/old-normalizr/normalizr.js | 4 ++-- website/gqlRedirects.ts | 2 +- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 3f487b0c5a88..2957dfbc9781 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -18,6 +18,7 @@ on: - 'packages/endpoint/src/schemas/**' - 'packages/core/src/**' - 'examples/benchmark/**' + - '.github/workflows/benchmark.yml' jobs: benchmark: @@ -29,7 +30,7 @@ jobs: fetch-depth: 1 - uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'yarn' - name: Install packages run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04f179a15401..183ffe5c3919 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'yarn' - name: Install packages run: | diff --git a/examples/benchmark/core.js b/examples/benchmark/core.js index 2503d456007a..d55fee8ff457 100644 --- a/examples/benchmark/core.js +++ b/examples/benchmark/core.js @@ -1,4 +1,4 @@ -import data from './data.json' assert { type: 'json' }; +import data from './data.json' with { type: 'json' }; import { createReducer, initialState, @@ -17,7 +17,7 @@ import { User, ProjectSchemaCollection, } from './schemas.js'; -import userData from './user.json' assert { type: 'json' }; +import userData from './user.json' with { type: 'json' }; export default function addReducerSuite(suite) { let state = initialState; diff --git a/examples/benchmark/entity.js b/examples/benchmark/entity.js index b9fa824c32c0..e8c411714c05 100644 --- a/examples/benchmark/entity.js +++ b/examples/benchmark/entity.js @@ -1,4 +1,4 @@ -import data from './data.json' assert { type: 'json' }; +import data from './data.json' with { type: 'json' }; import { Entity } from './dist/index.js'; import { printStatus } from './printStatus.js'; import { diff --git a/examples/benchmark/normalizr.js b/examples/benchmark/normalizr.js index 5d92fb063daf..e4fa744810f0 100644 --- a/examples/benchmark/normalizr.js +++ b/examples/benchmark/normalizr.js @@ -1,4 +1,4 @@ -import data from './data.json' assert { type: 'json' }; +import data from './data.json' with { type: 'json' }; import { Entity, normalize, @@ -16,7 +16,7 @@ import { ProjectSchemaMixin, User, } from './schemas.js'; -import userData from './user.json' assert { type: 'json' }; +import userData from './user.json' with { type: 'json' }; const { result, entities } = normalize(data, ProjectSchema); const queryState = normalize(data, ProjectQuery); diff --git a/examples/benchmark/old-normalizr/normalizr.js b/examples/benchmark/old-normalizr/normalizr.js index 71de0ed91702..964408961032 100644 --- a/examples/benchmark/old-normalizr/normalizr.js +++ b/examples/benchmark/old-normalizr/normalizr.js @@ -5,10 +5,10 @@ import { ProjectWithBuildTypesDescription, User, } from './schemas.js'; -import data from '../data.json' assert { type: 'json' }; +import data from '../data.json' with { type: 'json' }; import { initialState } from '../dist/index.js'; import { printStatus } from '../printStatus.js'; -import userData from '../user.json' assert { type: 'json' }; +import userData from '../user.json' with { type: 'json' }; const { result, entities } = normalize(data, ProjectSchema); diff --git a/website/gqlRedirects.ts b/website/gqlRedirects.ts index c40d0baeba2a..0b15db02969d 100644 --- a/website/gqlRedirects.ts +++ b/website/gqlRedirects.ts @@ -1,4 +1,4 @@ -import linkData from './sidebars-endpoint.json' assert { type: 'json' }; +import linkData from './sidebars-endpoint.json' with { type: 'json' }; const redirects = linkData .filter(({ id }) => id !== 'api/Index')