Skip to content

Commit 39b34e2

Browse files
authored
chore: Bump minimum Node version (#154)
Bumps the minimum node version from 16 to 18, updates the minimum versions for 18, 20, and 22.
1 parent 1b7e953 commit 39b34e2

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- prepare
7575
strategy:
7676
matrix:
77-
node-version: [16.x, 18.x, 20.x]
77+
node-version: [18.x, 20.x, 22.x]
7878
steps:
7979
- uses: actions/checkout@v3
8080
- name: Use Node.js ${{ matrix.node-version }}
@@ -99,7 +99,7 @@ jobs:
9999
- prepare
100100
strategy:
101101
matrix:
102-
node-version: [16.x, 18.x, 20.x]
102+
node-version: [18.x, 20.x, 22.x]
103103
steps:
104104
- uses: actions/checkout@v3
105105
- name: Use Node.js ${{ matrix.node-version }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const message5 = getMessageFromCode(code2);
141141

142142
### Setup
143143

144-
- Install [Node.js](https://nodejs.org) version 16
144+
- Install [Node.js](https://nodejs.org) version 18
145145
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.
146146
- Install [Yarn v3](https://yarnpkg.com/getting-started/install)
147147
- Run `yarn install` to install dependencies and run any required post-install scripts

constraints.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, DependencyType) :-
9494
DependencyType == 'devDependencies'.
9595

9696
% The package must specify the expected node version constraint.
97-
gen_enforced_field(WorkspaceCwd, 'engines.node', '>=16.0.0').
97+
gen_enforced_field(WorkspaceCwd, 'engines.node', '^18.20 || ^20.17 || >=22').
9898

9999
% The package is public.
100100
gen_enforced_field(WorkspaceCwd, 'publishConfig.access', 'public').

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@metamask/eslint-config-typescript": "^12.1.0",
6666
"@ts-bridge/cli": "^0.5.1",
6767
"@types/jest": "^28.1.6",
68-
"@types/node": "^16",
68+
"@types/node": "^18",
6969
"@typescript-eslint/eslint-plugin": "^5.43.0",
7070
"@typescript-eslint/parser": "^5.43.0",
7171
"depcheck": "^1.4.7",
@@ -88,7 +88,7 @@
8888
},
8989
"packageManager": "yarn@3.2.4",
9090
"engines": {
91-
"node": ">=16.0.0"
91+
"node": "^18.20 || ^20.17 || >=22"
9292
},
9393
"publishConfig": {
9494
"access": "public",

yarn.lock

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ __metadata:
10181018
"@metamask/utils": ^9.0.0
10191019
"@ts-bridge/cli": ^0.5.1
10201020
"@types/jest": ^28.1.6
1021-
"@types/node": ^16
1021+
"@types/node": ^18
10221022
"@typescript-eslint/eslint-plugin": ^5.43.0
10231023
"@typescript-eslint/parser": ^5.43.0
10241024
depcheck: ^1.4.7
@@ -1473,10 +1473,12 @@ __metadata:
14731473
languageName: node
14741474
linkType: hard
14751475

1476-
"@types/node@npm:*, @types/node@npm:^16":
1477-
version: 16.18.82
1478-
resolution: "@types/node@npm:16.18.82"
1479-
checksum: ace573877c3fe2fad4004a85b1ec72812eef43718a89cea92370777505954dfa59f44cf65db90217f977f2207e4c5de399eb81ab0006e3f7ff57388f585b4fb1
1476+
"@types/node@npm:*, @types/node@npm:^18":
1477+
version: 18.19.54
1478+
resolution: "@types/node@npm:18.19.54"
1479+
dependencies:
1480+
undici-types: ~5.26.4
1481+
checksum: d85bacc7430c2913bcd2cf293f312bc1f9108819707ac25b58404185c3b8f9ca9e3e93c396672f457c18e65f5ba86cc8363803f830207c6b7dd14fd74e1455b0
14801482
languageName: node
14811483
linkType: hard
14821484

@@ -6978,6 +6980,13 @@ __metadata:
69786980
languageName: node
69796981
linkType: hard
69806982

6983+
"undici-types@npm:~5.26.4":
6984+
version: 5.26.5
6985+
resolution: "undici-types@npm:5.26.5"
6986+
checksum: 3192ef6f3fd5df652f2dc1cd782b49d6ff14dc98e5dced492aa8a8c65425227da5da6aafe22523c67f035a272c599bb89cfe803c1db6311e44bed3042fc25487
6987+
languageName: node
6988+
linkType: hard
6989+
69816990
"unique-filename@npm:^2.0.0":
69826991
version: 2.0.1
69836992
resolution: "unique-filename@npm:2.0.1"

0 commit comments

Comments
 (0)