From 9a267ff59170fd0665295520dfeff46640f24095 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 194a018..bc5224c 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, 18.x, 20.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 7996853..a042d1b 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@metamask/eslint-config-nodejs": "^12.1.0", "@metamask/eslint-config-typescript": "^12.1.0", "@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": "^5.42.1", "@typescript-eslint/parser": "^5.42.1", @@ -61,7 +61,7 @@ "typescript": "~4.8.4" }, "engines": { - "node": ">=14.0.0" + "node": "^16.20 || ^18.16 || >=20" }, "publishConfig": { "access": "public", diff --git a/yarn.lock b/yarn.lock index 3bdb311..a54b86e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1213,10 +1213,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/prettier@^2.1.5": version "2.7.3"