diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 09d7ce3d..908fa8d6 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -14,7 +14,7 @@ jobs: YARN_VERSION: ${{ steps.yarn-version.outputs.YARN_VERSION }} strategy: matrix: - node-version: [14.x, 16.x, 18.x, 19.x] + node-version: [16.x, 18.x, 20.5] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -41,7 +41,7 @@ jobs: - prepare strategy: matrix: - node-version: [14.x, 16.x, 18.x, 19.x] + node-version: [16.x, 18.x, 20.5] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -69,7 +69,7 @@ jobs: - prepare strategy: matrix: - node-version: [14.x, 16.x, 18.x, 19.x] + node-version: [16.x, 18.x, 20.5] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -103,7 +103,7 @@ jobs: - prepare strategy: matrix: - node-version: [14.x, 16.x, 18.x, 19.x] + node-version: [16.x, 18.x, 20.5] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.nvmrc b/.nvmrc index 958b5a36..3f430af8 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v14 +v18 diff --git a/README.md b/README.md index 6bd99d76..b8d3b182 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The full API documentation for the latest published version of this library is [ ### Setup -- Install [Node.js](https://nodejs.org) version 14 +- Install [Node.js](https://nodejs.org) version 18 - If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) 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 diff --git a/package.json b/package.json index f665d7e2..2bc8ea16 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "@metamask/eslint-config-nodejs": "^11.1.0", "@metamask/eslint-config-typescript": "^11.1.0", "@types/jest": "^27.0.6", - "@types/node": "^14.14.25", + "@types/node": "^16.18.50", "@typescript-eslint/eslint-plugin": "^5.59.1", "@typescript-eslint/parser": "^5.59.1", "ajv": "^8.11.0", @@ -81,7 +81,7 @@ }, "packageManager": "yarn@3.2.2", "engines": { - "node": ">=14.0.0" + "node": "^16.20 || ^18.16 || >=20" }, "publishConfig": { "access": "public", diff --git a/yarn.lock b/yarn.lock index 9d5d5cf1..4b5e8bf7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -902,7 +902,7 @@ __metadata: "@metamask/eslint-config-typescript": ^11.1.0 "@metamask/utils": ^5.0.2 "@types/jest": ^27.0.6 - "@types/node": ^14.14.25 + "@types/node": ^16.18.50 "@typescript-eslint/eslint-plugin": ^5.59.1 "@typescript-eslint/parser": ^5.59.1 ajv: ^8.11.0 @@ -1250,10 +1250,10 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^14.14.25": - version: 14.18.24 - resolution: "@types/node@npm:14.18.24" - checksum: 631b86787a2110048bcd45d2555e6b9265594a6c65bcdc9947004cbdf1b4b9c8f84b7f0c4f03e4b0b1d24fd821c8d39b931073e21832c8c29dc74de060efd11d +"@types/node@npm:^16.18.50": + version: 16.18.50 + resolution: "@types/node@npm:16.18.50" + checksum: 8aec1eaf83407197ec2fe947182c238f49b82a7aace867cee1f81f72eb8a76c3c8b2adb1fd356e7443317cffb2546708da8934299a579edd25e3160bf7af30a1 languageName: node linkType: hard