From bee44aeddb0641e70c776e7642519bdd6c0bb13d Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Fri, 1 Sep 2023 04:19:30 +0000 Subject: [PATCH] BREAKING: minimum nodejs v16; default v18 --- .github/workflows/lint-test.yml | 2 +- .nvmrc | 2 +- README.md | 2 +- package.json | 4 ++-- yarn.lock | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index ee0bc30..5c3e4e4 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - node-version: [14.x, 16.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.nvmrc b/.nvmrc index 958b5a3..3f430af 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v14 +v18 diff --git a/README.md b/README.md index 1116024..9d4ce20 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ const result = await engine.handle({ ### Setup -- Install [Node.js](https://nodejs.org) version 12 +- 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 v1](https://yarnpkg.com/en/docs/install) - Run `yarn setup` to install dependencies and run any requried post-install scripts diff --git a/package.json b/package.json index a47dc46..5e8db45 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@metamask/eslint-config-nodejs": "^9.0.0", "@metamask/eslint-config-typescript": "^9.0.1", "@types/jest": "^26.0.13", - "@types/node": "^14.18.53", + "@types/node": "^16.18.46", "@types/node-fetch": "^2.6.1", "@typescript-eslint/eslint-plugin": "^4.21.0", "@typescript-eslint/parser": "^4.21.0", @@ -60,7 +60,7 @@ "typescript": "~4.4.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "publishConfig": { "access": "public", diff --git a/yarn.lock b/yarn.lock index b574c02..04ba0af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1150,10 +1150,10 @@ "@types/node" "*" form-data "^3.0.0" -"@types/node@*", "@types/node@^14.18.53": - version "14.18.53" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.53.tgz#42855629b8773535ab868238718745bf56c56219" - integrity sha512-soGmOpVBUq+gaBMwom1M+krC/NNbWlosh4AtGA03SyWNDiqSKtwp7OulO1M6+mg8YkHMvJ/y0AkCeO8d1hNb7A== +"@types/node@^16.18.46", "@types/node@*": + version "16.18.46" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.46.tgz#9f2102d0ba74a318fcbe170cbff5463f119eab59" + integrity sha512-Mnq3O9Xz52exs3mlxMcQuA7/9VFe/dXcrgAyfjLkABIqxXKOgBRjyazTxUbjsxDa4BP7hhPliyjVTP9RDP14xg== "@types/normalize-package-data@^2.4.0": version "2.4.1"