Skip to content

Commit ef75d97

Browse files
committed
Bump min Node version to 18.18; use LTS for dev
Now that both extension and mobile are using Node 18, we can follow suit.
1 parent 7da8ef7 commit ef75d97

File tree

36 files changed

+39
-39
lines changed

36 files changed

+39
-39
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [16.x, 18.x, 20.x]
12+
node-version: [18.x, 20.x]
1313
outputs:
1414
child-workspace-package-names: ${{ steps.workspace-package-names.outputs.child-workspace-package-names }}
1515
steps:
@@ -105,7 +105,7 @@ jobs:
105105
needs: prepare
106106
strategy:
107107
matrix:
108-
node-version: [16.x, 18.x, 20.x]
108+
node-version: [18.x, 20.x]
109109
package-name: ${{ fromJson(needs.prepare.outputs.child-workspace-package-names) }}
110110
steps:
111111
- uses: actions/checkout@v3

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
lts/*

constraints.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, CorrectPeerDependencyRang
408408
atom_concat('^', CurrentDependencyVersion, CorrectPeerDependencyRange)
409409
).
410410

411-
% All packages must specify a minimum Node version of 16.
412-
gen_enforced_field(WorkspaceCwd, 'engines.node', '>=16.0.0').
411+
% All packages must specify a minimum Node version of 18.
412+
gen_enforced_field(WorkspaceCwd, 'engines.node', '^18.18 || >=20').
413413

414414
% All published packages are public.
415415
gen_enforced_field(WorkspaceCwd, 'publishConfig.access', 'public') :-

docs/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Getting started
44

5-
- Install [Node.js](https://nodejs.org) version 16.
6-
- If you're using [NVM](https://github.com/creationix/nvm#installation) (recommended), `nvm use` will ensure that the right version is installed.
5+
- Install the current LTS version of [Node.js](https://nodejs.org)
6+
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm install` will install the latest version and running `nvm use` will automatically choose the right node version for you.
77
- Install [Yarn v3](https://yarnpkg.com/getting-started/install).
88
- Run `yarn install` to install dependencies and run any required post-install scripts.
99
- Run `yarn simple-git-hooks` to add a [Git hook](https://github.com/toplenboren/simple-git-hooks#what-is-a-git-hook) to your local development environment which will ensure that all files pass linting before you push a branch.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
},
9191
"packageManager": "[email protected]",
9292
"engines": {
93-
"node": ">=16.0.0"
93+
"node": "^18.18 || >=20"
9494
},
9595
"lavamoat": {
9696
"allowScripts": {

packages/accounts-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"@metamask/snaps-controllers": "^4.0.0"
7171
},
7272
"engines": {
73-
"node": ">=16.0.0"
73+
"node": "^18.18 || >=20"
7474
},
7575
"publishConfig": {
7676
"access": "public",

packages/address-book-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"typescript": "~4.8.4"
5757
},
5858
"engines": {
59-
"node": ">=16.0.0"
59+
"node": "^18.18 || >=20"
6060
},
6161
"publishConfig": {
6262
"access": "public",

packages/announcement-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"typescript": "~4.8.4"
5555
},
5656
"engines": {
57-
"node": ">=16.0.0"
57+
"node": "^18.18 || >=20"
5858
},
5959
"publishConfig": {
6060
"access": "public",

packages/approval-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"typescript": "~4.8.4"
5959
},
6060
"engines": {
61-
"node": ">=16.0.0"
61+
"node": "^18.18 || >=20"
6262
},
6363
"publishConfig": {
6464
"access": "public",

packages/assets-controllers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"@metamask/preferences-controller": "^9.0.0"
9696
},
9797
"engines": {
98-
"node": ">=16.0.0"
98+
"node": "^18.18 || >=20"
9999
},
100100
"publishConfig": {
101101
"access": "public",

0 commit comments

Comments
 (0)