From ddfa397bf8ed4a4d2ded46d98c4a7bed2e37dd72 Mon Sep 17 00:00:00 2001 From: Michael Sun <47126816+MichaelSun90@users.noreply.github.com> Date: Sun, 11 Feb 2024 09:09:39 -0800 Subject: [PATCH] chore!: drop node 16 and 19 support (#1598) BREAKING CHANGE: Node.js 16.x and 19.x are no longer supported by `tedious`. --- .github/workflows/nodejs.yml | 30 +++++++++++++++--------------- .github/workflows/release.yml | 4 ++-- appveyor.yml | 4 ++-- package-lock.json | 2 +- package.json | 4 ++-- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index babe9984d..b341cd781 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -19,10 +19,10 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Use Node.js 16 + - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Determine npm cache directory id: npm-cache @@ -46,7 +46,7 @@ jobs: strategy: matrix: - node-version: [16.x, 18.x, 19.x] + node-version: [18.x, 20.x, 21.x] fail-fast: false steps: @@ -165,7 +165,7 @@ jobs: strategy: matrix: mssql-version: [2016, 2017, 2019, 2022] - node-version: [16.x, 18.x, 19.x, 20.x] + node-version: [18.x, 20.x, 21.x] fail-fast: false steps: @@ -359,7 +359,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} azure-sql-auth: - name: Azure SQL Server / Node.js 16.x + name: Azure SQL Server / Node.js 18.x runs-on: ubuntu-latest timeout-minutes: 20 @@ -368,10 +368,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Determine npm cache directory id: npm-cache @@ -413,7 +413,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} azure-ad-auth: - name: Azure SQL Server / Node.js 16.x + name: Azure SQL Server / Node.js 18.x runs-on: ubuntu-latest timeout-minutes: 20 @@ -422,10 +422,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Determine npm cache directory id: npm-cache @@ -472,7 +472,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} azure-ad-service-principal-auth: - name: Azure SQL Server / Node.js 16.x + name: Azure SQL Server / Node.js 18.x runs-on: ubuntu-latest timeout-minutes: 20 @@ -481,10 +481,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Determine npm cache directory id: npm-cache @@ -537,10 +537,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Determine npm cache directory id: npm-cache diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b78e6f59..3d067b5a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Tag latest release run: | diff --git a/appveyor.yml b/appveyor.yml index ebc7bcf3e..2b964a6ad 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,9 +2,9 @@ version: "{build}" environment: matrix: - - nodejs_version: "16" - nodejs_version: "18" - - nodejs_version: "19" + - nodejs_version: "20" + - nodejs_version: "21" branches: only: diff --git a/package-lock.json b/package-lock.json index 83287f2a8..004d0cd0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,7 +54,7 @@ "typescript": "^5.1.6" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index db74fa5fd..3fef2e2cc 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "url": "https://github.com/tediousjs/tedious.git" }, "engines": { - "node": ">=16" + "node": ">=18" }, "publishConfig": { "tag": "next" @@ -104,7 +104,7 @@ "@babel/preset-env", { "targets": { - "node": 16 + "node": 18 } } ],