diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cdddbfd..1c0ee1d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "18.19" registry-url: "https://registry.npmjs.org" - name: Update NPM to support `--provenance`` run: npm install -g npm diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d45195f..7c66ba7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.19, 20] steps: - name: Install Mermaid `trebuchet ms` font run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 135a133..e336c19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### BREAKING CHANGES + +- Bump required Node.JS version to 18.19 + ## [2.1.1] - 2023-05-11 ### Fixed diff --git a/package-lock.json b/package-lock.json index 19629fa..2bb0c3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "vfile": "^5.3.7" }, "devDependencies": { - "@tsconfig/node14": "^14.1.0", + "@tsconfig/node18": "^18.0.0", "eslint": "^8.18.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-node": "^11.1.0", @@ -36,7 +36,7 @@ "typescript": "^5.0.2" }, "engines": { - "node": "^14.13 || >=16.0" + "node": "^18.19 || >=20.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1351,11 +1351,12 @@ "tslib": "^2.4.0" } }, - "node_modules/@tsconfig/node14": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-14.1.0.tgz", - "integrity": "sha512-VmsCG04YR58ciHBeJKBDNMWWfYbyP8FekWVuTlpstaUPlat1D0x/tXzkWP7yCMU0eSz9V4OZU0LBWTFJ3xZf6w==", - "dev": true + "node_modules/@tsconfig/node18": { + "version": "18.2.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node18/-/node18-18.2.4.tgz", + "integrity": "sha512-5xxU8vVs9/FNcvm3gE07fPbn9tl6tqGGWA9tSlwsUEkBxtRnTsNmwrV8gasZ9F/EobaSv9+nu8AxUKccw77JpQ==", + "dev": true, + "license": "MIT" }, "node_modules/@types/babel__core": { "version": "7.20.1", @@ -8801,10 +8802,10 @@ "tslib": "^2.4.0" } }, - "@tsconfig/node14": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-14.1.0.tgz", - "integrity": "sha512-VmsCG04YR58ciHBeJKBDNMWWfYbyP8FekWVuTlpstaUPlat1D0x/tXzkWP7yCMU0eSz9V4OZU0LBWTFJ3xZf6w==", + "@tsconfig/node18": { + "version": "18.2.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node18/-/node18-18.2.4.tgz", + "integrity": "sha512-5xxU8vVs9/FNcvm3gE07fPbn9tl6tqGGWA9tSlwsUEkBxtRnTsNmwrV8gasZ9F/EobaSv9+nu8AxUKccw77JpQ==", "dev": true }, "@types/babel__core": { diff --git a/package.json b/package.json index 8d86a7a..0a03c77 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "prepare": "husky install && tsc" }, "engines": { - "node": "^14.13 || >=16.0" + "node": "^18.19 || >=20.0" }, "files": [ "index.js", @@ -41,7 +41,7 @@ "vfile": "^5.3.7" }, "devDependencies": { - "@tsconfig/node14": "^14.1.0", + "@tsconfig/node18": "^18.0.0", "eslint": "^8.18.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-node": "^11.1.0", diff --git a/tsconfig.json b/tsconfig.json index 9606192..596f25e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { - // our minimum supported Node version is Node v14 - "extends": "@tsconfig/node14/tsconfig.json", + // our minimum supported Node version is Node v18 + "extends": "@tsconfig/node18/tsconfig.json", "include": ["src/*", "index.js"], "compilerOptions": {