Skip to content

Commit

Permalink
Bump min Node version to 18.18; use LTS for dev
Browse files Browse the repository at this point in the history
Now that both extension and mobile are using Node 18, we can follow
suit.
  • Loading branch information
mcmire committed Dec 1, 2023
1 parent 6523f99 commit a978a06
Show file tree
Hide file tree
Showing 64 changed files with 98 additions and 38 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
outputs:
child-workspace-package-names: ${{ steps.workspace-package-names.outputs.child-workspace-package-names }}
steps:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
needs: prepare
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
package-name: ${{ fromJson(needs.prepare.outputs.child-workspace-package-names) }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
lts/*
4 changes: 2 additions & 2 deletions constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, 'peerDep
DependencyIdent \= '@metamask/polling-controller',
is_controller(DependencyIdent).

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

% All published packages are public.
gen_enforced_field(WorkspaceCwd, 'publishConfig.access', 'public') :-
Expand Down
4 changes: 2 additions & 2 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Getting started

- Install [Node.js](https://nodejs.org) version 16.
- If you're using [NVM](https://github.com/creationix/nvm#installation) (recommended), `nvm use` will ensure that the right version is installed.
- Install the current LTS version of [Node.js](https://nodejs.org)
- 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.
- Install [Yarn v3](https://yarnpkg.com/getting-started/install).
- Run `yarn install` to install dependencies and run any required post-install scripts.
- 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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
"packageManager": "[email protected]",
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"lavamoat": {
"allowScripts": {
Expand Down
2 changes: 2 additions & 0 deletions packages/accounts-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [6.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@metamask/keyring-controller": "^10.0.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/address-book-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [3.1.5]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/address-book-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/announcement-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [5.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/announcement-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/approval-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [5.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/approval-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [20.0.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/assets-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@metamask/preferences-controller": "^5.0.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/base-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [4.0.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/base-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/build-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [1.0.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/build-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/composable-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [4.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/composable-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/controller-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [6.1.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/controller-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/ens-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [7.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/ens-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@metamask/network-controller": "^17.0.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/eth-json-rpc-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [2.3.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/eth-json-rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"packageManager": "[email protected]",
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/gas-fee-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [11.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/gas-fee-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@metamask/network-controller": "^17.0.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/json-rpc-engine/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [7.3.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/json-rpc-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"packageManager": "[email protected]",
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/json-rpc-middleware-stream/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [6.0.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/json-rpc-middleware-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"webextension-polyfill-ts": "^0.26.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/keyring-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [10.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/keyring-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@metamask/preferences-controller": "^5.0.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/logging-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [2.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/logging-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/message-manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [7.3.6]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/message-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/name-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [4.0.0]
### Changed
Expand Down
2 changes: 1 addition & 1 deletion packages/name-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 3 additions & 0 deletions packages/network-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `getNetworkConfigurationByNetworkClientId` method which can be used to retrieve details for both custom and built-in networks (using the network configuration object shape) ([#2055](https://github.com/MetaMask/core/pull/2055))
- Add `NetworkController:getNetworkConfigurationByNetworkClientId` messenger action for the previous method ([#2055](https://github.com/MetaMask/core/pull/2055))

### Changed
- **BREAKING:** Bump minimum Node version to 18.18

## [17.0.0]
### Changed
- **BREAKING:** Bump `@metamask/base-controller` to ^4.0.0 ([#2063](https://github.com/MetaMask/core/pull/2063))
Expand Down
2 changes: 1 addition & 1 deletion packages/network-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"typescript": "~4.8.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.18 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
Loading

0 comments on commit a978a06

Please sign in to comment.