From f96d45b1b8cea607c23a849a19072839c4cfba46 Mon Sep 17 00:00:00 2001 From: yakovmeister Date: Thu, 5 Sep 2024 22:32:17 +0800 Subject: [PATCH] drop node 16 support --- .github/workflows/lint.yml | 4 ++-- .github/workflows/npm-publish.yml | 2 +- .github/workflows/test.yml | 2 +- package.json | 9 ++++++--- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2dcc830..6a38624 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,9 +12,9 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 16.x + - name: Use Node.js 18.x uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - run: npm install - run: npm run lint diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3abb2bc..e7f85ab 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x registry-url: https://registry.npmjs.org - run: | sudo apt-get update diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 447d31e..7bf572a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x, 20.x] + node-version: [18.x, 20.x, 22.x] name: Node.js ${{ matrix.node-version }} diff --git a/package.json b/package.json index 4eb0b9f..0f6101a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@types/chai": "^4.3.5", "@types/gm": "^1.25.1", "@types/mocha": "^10.0.1", - "@types/node": "^16.18.39", + "@types/node": "^18.19.50", "@types/rimraf": "^4.0.5", "@typescript-eslint/eslint-plugin": "^6.2.1", "@typescript-eslint/parser": "^6.2.1", @@ -44,7 +44,7 @@ "prepare": "husky install" }, "engines": { - "node": ">=14" + "node": ">=18" }, "repository": { "type": "git", @@ -78,6 +78,9 @@ }, "homepage": "https://github.com/yakovmeister/pdf2image#readme", "lint-staged": { - "*.{js,ts}": ["prettier --write", "eslint --fix"] + "*.{js,ts}": [ + "prettier --write", + "eslint --fix" + ] } }