Skip to content

Commit 4e009d3

Browse files
committed
internal: Bump node to 22 for github actions
1 parent 4a70d3e commit 4e009d3

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

.github/workflows/benchmark.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- 'packages/endpoint/src/schemas/**'
1919
- 'packages/core/src/**'
2020
- 'examples/benchmark/**'
21+
- '.github/workflows/benchmark.yml'
2122
jobs:
2223
benchmark:
2324

@@ -29,7 +30,7 @@ jobs:
2930
fetch-depth: 1
3031
- uses: actions/setup-node@v4
3132
with:
32-
node-version: '20'
33+
node-version: '22'
3334
cache: 'yarn'
3435
- name: Install packages
3536
run: |

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: '20'
19+
node-version: '22'
2020
cache: 'yarn'
2121
- name: Install packages
2222
run: |

examples/benchmark/core.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import data from './data.json' assert { type: 'json' };
1+
import data from './data.json' with { type: 'json' };
22
import {
33
createReducer,
44
initialState,
@@ -17,7 +17,7 @@ import {
1717
User,
1818
ProjectSchemaCollection,
1919
} from './schemas.js';
20-
import userData from './user.json' assert { type: 'json' };
20+
import userData from './user.json' with { type: 'json' };
2121

2222
export default function addReducerSuite(suite) {
2323
let state = initialState;

examples/benchmark/entity.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import data from './data.json' assert { type: 'json' };
1+
import data from './data.json' with { type: 'json' };
22
import { Entity } from './dist/index.js';
33
import { printStatus } from './printStatus.js';
44
import {

examples/benchmark/normalizr.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import data from './data.json' assert { type: 'json' };
1+
import data from './data.json' with { type: 'json' };
22
import {
33
Entity,
44
normalize,
@@ -16,7 +16,7 @@ import {
1616
ProjectSchemaMixin,
1717
User,
1818
} from './schemas.js';
19-
import userData from './user.json' assert { type: 'json' };
19+
import userData from './user.json' with { type: 'json' };
2020

2121
const { result, entities } = normalize(data, ProjectSchema);
2222
const queryState = normalize(data, ProjectQuery);

examples/benchmark/old-normalizr/normalizr.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import {
55
ProjectWithBuildTypesDescription,
66
User,
77
} from './schemas.js';
8-
import data from '../data.json' assert { type: 'json' };
8+
import data from '../data.json' with { type: 'json' };
99
import { initialState } from '../dist/index.js';
1010
import { printStatus } from '../printStatus.js';
11-
import userData from '../user.json' assert { type: 'json' };
11+
import userData from '../user.json' with { type: 'json' };
1212

1313
const { result, entities } = normalize(data, ProjectSchema);
1414

website/gqlRedirects.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import linkData from './sidebars-endpoint.json' assert { type: 'json' };
1+
import linkData from './sidebars-endpoint.json' with { type: 'json' };
22

33
const redirects = linkData
44
.filter(({ id }) => id !== 'api/Index')

0 commit comments

Comments
 (0)