Skip to content

Commit a978a06

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 6523f99 commit a978a06

File tree

64 files changed

+98
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+98
-38
lines changed

Diff for: .github/workflows/lint-build-test.yml

+2-2
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

Diff for: .nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
lts/*

Diff for: constraints.pro

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, 'peerDep
336336
DependencyIdent \= '@metamask/polling-controller',
337337
is_controller(DependencyIdent).
338338

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

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

Diff for: docs/contributing.md

+2-2

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
"packageManager": "[email protected]",
7777
"engines": {
78-
"node": ">=16.0.0"
78+
"node": ">=18.18 || >=20"
7979
},
8080
"lavamoat": {
8181
"allowScripts": {

Diff for: packages/accounts-controller/CHANGELOG.md

+2

Diff for: packages/accounts-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@metamask/keyring-controller": "^10.0.0"
5757
},
5858
"engines": {
59-
"node": ">=16.0.0"
59+
"node": ">=18.18 || >=20"
6060
},
6161
"publishConfig": {
6262
"access": "public",

Diff for: packages/address-book-controller/CHANGELOG.md

+2

Diff for: packages/address-book-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typescript": "~4.8.4"
4646
},
4747
"engines": {
48-
"node": ">=16.0.0"
48+
"node": ">=18.18 || >=20"
4949
},
5050
"publishConfig": {
5151
"access": "public",

Diff for: packages/announcement-controller/CHANGELOG.md

+2

Diff for: packages/announcement-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"typescript": "~4.8.4"
4444
},
4545
"engines": {
46-
"node": ">=16.0.0"
46+
"node": ">=18.18 || >=20"
4747
},
4848
"publishConfig": {
4949
"access": "public",

Diff for: packages/approval-controller/CHANGELOG.md

+2

Diff for: packages/approval-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"typescript": "~4.8.4"
4848
},
4949
"engines": {
50-
"node": ">=16.0.0"
50+
"node": ">=18.18 || >=20"
5151
},
5252
"publishConfig": {
5353
"access": "public",

Diff for: packages/assets-controllers/CHANGELOG.md

+2

Diff for: packages/assets-controllers/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@metamask/preferences-controller": "^5.0.0"
7575
},
7676
"engines": {
77-
"node": ">=16.0.0"
77+
"node": ">=18.18 || >=20"
7878
},
7979
"publishConfig": {
8080
"access": "public",

Diff for: packages/base-controller/CHANGELOG.md

+2

Diff for: packages/base-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"typescript": "~4.8.4"
4747
},
4848
"engines": {
49-
"node": ">=16.0.0"
49+
"node": ">=18.18 || >=20"
5050
},
5151
"publishConfig": {
5252
"access": "public",

Diff for: packages/build-utils/CHANGELOG.md

+2

Diff for: packages/build-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typescript": "~4.8.4"
4646
},
4747
"engines": {
48-
"node": ">=16.0.0"
48+
"node": ">=18.18 || >=20"
4949
},
5050
"publishConfig": {
5151
"access": "public",

Diff for: packages/composable-controller/CHANGELOG.md

+2

Diff for: packages/composable-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typescript": "~4.8.4"
4646
},
4747
"engines": {
48-
"node": ">=16.0.0"
48+
"node": ">=18.18 || >=20"
4949
},
5050
"publishConfig": {
5151
"access": "public",

Diff for: packages/controller-utils/CHANGELOG.md

+2

Diff for: packages/controller-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"typescript": "~4.8.4"
5252
},
5353
"engines": {
54-
"node": ">=16.0.0"
54+
"node": ">=18.18 || >=20"
5555
},
5656
"publishConfig": {
5757
"access": "public",

Diff for: packages/ens-controller/CHANGELOG.md

+2

Diff for: packages/ens-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@metamask/network-controller": "^17.0.0"
5353
},
5454
"engines": {
55-
"node": ">=16.0.0"
55+
"node": ">=18.18 || >=20"
5656
},
5757
"publishConfig": {
5858
"access": "public",

Diff for: packages/eth-json-rpc-provider/CHANGELOG.md

+2

Diff for: packages/eth-json-rpc-provider/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"packageManager": "[email protected]",
5656
"engines": {
57-
"node": ">=16.0.0"
57+
"node": ">=18.18 || >=20"
5858
},
5959
"publishConfig": {
6060
"access": "public",

Diff for: packages/gas-fee-controller/CHANGELOG.md

+2

Diff for: packages/gas-fee-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@metamask/network-controller": "^17.0.0"
6060
},
6161
"engines": {
62-
"node": ">=16.0.0"
62+
"node": ">=18.18 || >=20"
6363
},
6464
"publishConfig": {
6565
"access": "public",

Diff for: packages/json-rpc-engine/CHANGELOG.md

+2

Diff for: packages/json-rpc-engine/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
"packageManager": "[email protected]",
6161
"engines": {
62-
"node": ">=16.0.0"
62+
"node": ">=18.18 || >=20"
6363
},
6464
"publishConfig": {
6565
"access": "public",

Diff for: packages/json-rpc-middleware-stream/CHANGELOG.md

+2

Diff for: packages/json-rpc-middleware-stream/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"webextension-polyfill-ts": "^0.26.0"
5151
},
5252
"engines": {
53-
"node": ">=16.0.0"
53+
"node": ">=18.18 || >=20"
5454
},
5555
"publishConfig": {
5656
"access": "public",

Diff for: packages/keyring-controller/CHANGELOG.md

+2

Diff for: packages/keyring-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@metamask/preferences-controller": "^5.0.0"
6464
},
6565
"engines": {
66-
"node": ">=16.0.0"
66+
"node": ">=18.18 || >=20"
6767
},
6868
"publishConfig": {
6969
"access": "public",

Diff for: packages/logging-controller/CHANGELOG.md

+2

Diff for: packages/logging-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typescript": "~4.8.4"
4646
},
4747
"engines": {
48-
"node": ">=16.0.0"
48+
"node": ">=18.18 || >=20"
4949
},
5050
"publishConfig": {
5151
"access": "public",

Diff for: packages/message-manager/CHANGELOG.md

+2

Diff for: packages/message-manager/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"typescript": "~4.8.4"
5151
},
5252
"engines": {
53-
"node": ">=16.0.0"
53+
"node": ">=18.18 || >=20"
5454
},
5555
"publishConfig": {
5656
"access": "public",

Diff for: packages/name-controller/CHANGELOG.md

+2

Diff for: packages/name-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"typescript": "~4.8.4"
4747
},
4848
"engines": {
49-
"node": ">=16.0.0"
49+
"node": ">=18.18 || >=20"
5050
},
5151
"publishConfig": {
5252
"access": "public",

Diff for: packages/network-controller/CHANGELOG.md

+3

Diff for: packages/network-controller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"typescript": "~4.8.4"
6464
},
6565
"engines": {
66-
"node": ">=16.0.0"
66+
"node": ">=18.18 || >=20"
6767
},
6868
"publishConfig": {
6969
"access": "public",

0 commit comments

Comments
 (0)