Skip to content

Commit

Permalink
internal: Bump node to 22 for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Apr 25, 2024
1 parent 4a70d3e commit 4e009d3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
- 'packages/endpoint/src/schemas/**'
- 'packages/core/src/**'
- 'examples/benchmark/**'
- '.github/workflows/benchmark.yml'
jobs:
benchmark:

Expand All @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions examples/benchmark/core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import data from './data.json' assert { type: 'json' };
import data from './data.json' with { type: 'json' };
import {
createReducer,
initialState,
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/benchmark/entity.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions examples/benchmark/normalizr.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import data from './data.json' assert { type: 'json' };
import data from './data.json' with { type: 'json' };
import {
Entity,
normalize,
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions examples/benchmark/old-normalizr/normalizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion website/gqlRedirects.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit 4e009d3

Please sign in to comment.