Skip to content

Commit d61f121

Browse files
committed
build(*): update Node to lts/jod
1 parent 273f831 commit d61f121

8 files changed

Lines changed: 36 additions & 22 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.1
1+
lts/jod

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ We use lerna to manage the packages.
5252
## ES Version
5353
We support two runtimes: `node` and `latest browser versions`.
5454

55-
### Node 20
56-
Node 20 (which is also supported by AWS Lambda) supports [97%](https://node.green/#ES2022) of `es2022` features
55+
### Node 22
56+
Node 22 (which is also supported by AWS Lambda) supports [97%](https://node.green/#ES2022) of `es2022` features
5757
(no version supports 100%) and [100%](https://node.green/#ES2023) of `es2023` features.
5858
The only `es2022` feature that is currently not supported and needs a polyfill when using it is
5959
[RegExp Match Indices (shows up in flags)](https://node.green/#ES2022-features-RegExp-Match-Indices---hasIndices-----d--flag-) (see [2ality blog](https://2ality.com/2019/12/regexp-match-indices.html) for insights).

package-lock.json

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@commitlint/config-angular": "^19.3.0",
2727
"@commitlint/prompt-cli": "^19.3.1",
2828
"@types/jest": "^29.5.12",
29-
"@types/node": "^20.11.1",
29+
"@types/node": "^22.15.0",
3030
"eslint": "^8.56.0",
3131
"husky": "^9.0.11",
3232
"jest": "^29.7.0",
@@ -37,6 +37,6 @@
3737
"typescript": "^5.5.3"
3838
},
3939
"engines": {
40-
"node": ">=20.11.1"
40+
"node": ">=22.15.0"
4141
}
4242
}

packages/branch-utilities/jest.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
import {pathsToModuleNameMapper} from 'ts-jest'
2-
import tsConfig from './tsconfig.jest.json' assert {type: 'json'}
1+
/* eslint-env node,es2023 */
2+
/* eslint-disable import/no-extraneous-dependencies */
3+
import { pathsToModuleNameMapper } from 'ts-jest'
4+
import { readFileSync } from 'node:fs'
5+
6+
const tsConfig = JSON.parse(readFileSync('./tsconfig.jest.json', 'utf-8'))
37

48
export default {
59
testEnvironment: 'node',

packages/logger/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-env node,es2023 */
2-
// eslint-disable-next-line import/no-extraneous-dependencies
2+
/* eslint-disable import/no-extraneous-dependencies */
33
import { pathsToModuleNameMapper } from 'ts-jest'
44
import { readFileSync } from 'node:fs'
55

packages/publish-helper/jest.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
import {pathsToModuleNameMapper} from 'ts-jest'
2-
import tsConfig from './tsconfig.jest.json' assert {type: 'json'}
1+
/* eslint-env node,es2023 */
2+
/* eslint-disable import/no-extraneous-dependencies */
3+
import { pathsToModuleNameMapper } from 'ts-jest'
4+
import { readFileSync } from 'node:fs'
5+
6+
const tsConfig = JSON.parse(readFileSync('./tsconfig.jest.json', 'utf-8'))
37

48
export default {
59
testEnvironment: 'node',

packages/utilities/jest.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
import {pathsToModuleNameMapper} from 'ts-jest'
2-
import tsConfig from './tsconfig.jest.json' assert {type: 'json'}
1+
/* eslint-env node,es2023 */
2+
/* eslint-disable import/no-extraneous-dependencies */
3+
import { pathsToModuleNameMapper } from 'ts-jest'
4+
import { readFileSync } from 'node:fs'
5+
6+
const tsConfig = JSON.parse(readFileSync('./tsconfig.jest.json', 'utf-8'))
37

48
export default {
59
testEnvironment: 'node',

0 commit comments

Comments
 (0)