diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 164d6c9..8e82268 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -24,7 +24,7 @@ jobs: - prepare strategy: matrix: - node-version: [14.x, 16.x, 18.x, 19.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -49,7 +49,7 @@ jobs: - prepare strategy: matrix: - node-version: [14.x, 16.x, 18.x, 19.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -80,7 +80,7 @@ jobs: - prepare strategy: matrix: - node-version: [14.x, 16.x, 18.x, 19.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.nvmrc b/.nvmrc index 6f7f377..3f430af 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16 +v18 diff --git a/README.md b/README.md index ed2a6ad..a9f42a0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See our documentation: ### 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 f87f8d9..696a9dc 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@metamask/eslint-config-nodejs": "^11.0.1", "@metamask/eslint-config-typescript": "^11.0.0", "@types/jest": "^28.1.6", - "@types/node": "^17.0.23", + "@types/node": "^16.18.39", "@typescript-eslint/eslint-plugin": "^5.43.0", "@typescript-eslint/parser": "^5.43.0", "depcheck": "^1.4.3", @@ -60,7 +60,7 @@ }, "packageManager": "yarn@3.2.1", "engines": { - "node": ">=14.0.0" + "node": "^16.20 || ^18.16 || >=20" }, "publishConfig": { "access": "public", diff --git a/yarn.lock b/yarn.lock index 38c3593..90b3864 100644 --- a/yarn.lock +++ b/yarn.lock @@ -955,7 +955,7 @@ __metadata: "@metamask/safe-event-emitter": ^3.0.0 "@metamask/utils": ^5.0.1 "@types/jest": ^28.1.6 - "@types/node": ^17.0.23 + "@types/node": ^16.18.39 "@typescript-eslint/eslint-plugin": ^5.43.0 "@typescript-eslint/parser": ^5.43.0 depcheck: ^1.4.3 @@ -1345,13 +1345,20 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^17.0.23": +"@types/node@npm:*": version: 17.0.23 resolution: "@types/node@npm:17.0.23" checksum: a3517554737cbb042e76c30d0e5482192ac4d9bea0eeb086e2622d9cabf460a0eb52a696b99fcd18e7fcc93c96db6cc7ae507f6608f256ef0b5c1d8c87a5a470 languageName: node linkType: hard +"@types/node@npm:^16.18.39": + version: 16.18.39 + resolution: "@types/node@npm:16.18.39" + checksum: eac9b202b76013256cb517ca8d3e3f61df206edb1615ca8d8df4c80616e92879fe4d3f8570a11d60f4216a82724a3265d5888b24c6994c80b057a0423c9ff1d2 + languageName: node + linkType: hard + "@types/parse-json@npm:^4.0.0": version: 4.0.0 resolution: "@types/parse-json@npm:4.0.0"