Skip to content

Commit

Permalink
chore(node): update support to node v22
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduy1407 committed Nov 30, 2024
1 parent 0ffd197 commit 4e03b13
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['16', '18', '20']
node: ['16', '18', '20', '22']
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['16', '18', '20']
node: ['16', '18', '20', '22']
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['16', '18', '20']
node: ['16', '18', '20', '22']
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['16', '18', '20']
node: ['16', '18', '20', '22']
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@types/graceful-fs": "^4.1.5",
"@types/jest": "^27.0.3",
"@types/listr": "^0.14.4",
"@types/node": "^20.1.1",
"@types/node": "^20.12.11",
"@types/pixelmatch": "^5.2.4",
"@types/pngjs": "^6.0.1",
"@types/prompts": "^2.0.9",
Expand Down Expand Up @@ -143,7 +143,7 @@
],
"prettier": "@familyjs/prettier-config",
"volta": {
"node": "20.12.2",
"node": "22.1.0",
"npm": "10.7.0"
}
}
26 changes: 13 additions & 13 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
packageRules: [
{
matchPackageNames: ['@types/node'],
allowedVersions: '<21.0.0',
allowedVersions: '<23.0.0',
},
{
// Increment this value as a part of updating TypeScript
matchPackageNames: ['typescript'],
allowedVersions: '<5.5.0',
commitMessagePrefix: "feat(typescript):"
commitMessagePrefix: 'feat(typescript):',
},
{
// disable Jest updates until the new testing architecture is in place
Expand All @@ -77,7 +77,7 @@
groupName: 'TypeScript-ESLint',
// these packages can be released often, let's look at them every week
// Note: Timezone for the schedule is specified as UTC
schedule: ["before 11am on monday"]
schedule: ['before 11am on monday'],
},
{
// group these two, as they may rely on one another during major version bumps (see #5191)
Expand All @@ -88,27 +88,27 @@
matchPackageNames: ['eslint-plugin-jsdoc'],
// this package can be released often, let's look at it every week
// Note: Timezone for the schedule is specified as UTC
schedule: ["before 11am on monday"]
schedule: ['before 11am on monday'],
},
{
"matchFileNames": ["src/testing/jest/jest-27-and-under/package.json"],
matchFileNames: ['src/testing/jest/jest-27-and-under/package.json'],
matchPackageNames: ['@types/jest', 'jest'],
allowedVersions: '<=27'
allowedVersions: '<=27',
},
{
"matchFileNames": ["src/testing/jest/jest-28/package.json"],
matchFileNames: ['src/testing/jest/jest-28/package.json'],
matchPackageNames: ['@types/jest', 'jest'],
allowedVersions: '<=28'
allowedVersions: '<=28',
},
{
"matchFileNames": ["src/testing/jest/jest-29/package.json"],
matchFileNames: ['src/testing/jest/jest-29/package.json'],
matchPackageNames: ['@types/jest', 'jest'],
allowedVersions: '<=29'
allowedVersions: '<=29',
},
{
matchPackageNames: ['rollup'],
matchPackagePrefixes: ['@rollup'],
groupName: 'rollup,'
groupName: 'rollup,',
},
// TODO(RINDO-1088): remove once support for Node v16 is dropped
{
Expand All @@ -119,7 +119,7 @@
{
matchPackageNames: ['puppeteer'],
allowedVersions: '<=21',
}
},
],
// Never rebase the branch or update it unless manually requested to avoid noisy PR emails
rebaseWhen: 'never',
Expand All @@ -142,5 +142,5 @@
* By default, Angular-style semantic commits will have a type of 'chore' and a scope of 'deps':
* `chore(deps): _your git commit title here_`
*/
semanticCommits: "enabled",
semanticCommits: 'enabled',
}
2 changes: 1 addition & 1 deletion src/utils/test/util.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('util', () => {
const expectedDiagnostic: d.Diagnostic = stubDiagnostic({
absFilePath: mockPackageJsonPath,
header: 'Error Parsing JSON',
messageText: expect.stringMatching(/.*in JSON at position 13$/),
messageText: expect.stringMatching(/.*in JSON at position 13/),
type: 'build',
});

Expand Down
9 changes: 5 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@
"@sys-api-node": ["src/sys/node/index.ts"],
"@utils": ["src/utils/index.ts"],
"@utils/*": ["src/utils/*"],
"@utils/shadow-css": ["src/utils/shadow-css"]
"@utils/shadow-css": ["src/utils/shadow-css"],
},
"pretty": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"target": "es2018",
"useUnknownInCatchVariables": true
"useUnknownInCatchVariables": true,
},
"files": [
"src/app-data/index.ts",
Expand All @@ -75,7 +76,7 @@
"src/sys/node/public.ts",
"src/sys/node/worker.ts",
"src/testing/index.ts",
"src/testing/platform/index.ts"
"src/testing/platform/index.ts",
],
"include": ["types/*.d.ts", "src/declarations/*.ts", "src/**/*.spec.ts", "src/utils/**/*.ts"]
"include": ["types/*.d.ts", "src/declarations/*.ts", "src/**/*.spec.ts", "src/utils/**/*.ts"],
}

0 comments on commit 4e03b13

Please sign in to comment.