Skip to content

Commit

Permalink
chore: drop support for Node.js 12
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `tedious` no longer supports Node.js 12.x.
  • Loading branch information
arthurschreiber authored Jul 11, 2022
1 parent 600a104 commit 121f3a5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14

- name: Determine npm cache directory
id: npm-cache
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [14.x, 16.x, 18.x]
fail-fast: false

services:
Expand Down Expand Up @@ -175,18 +175,18 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}

azure:
name: Azure SQL Server / Node.js 12.x
name: Azure SQL Server / Node.js 14.x
runs-on: ubuntu-latest

# Only run these tests if we have access to the secrets
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}

steps:
- uses: actions/checkout@v1
- name: Use Node.js 12
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14

- name: Determine npm cache directory
id: npm-cache
Expand Down Expand Up @@ -292,10 +292,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Use Node.js 12
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14

- name: Determine npm cache directory
id: npm-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14

- name: Tag latest release
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
read next latest <<< $(npm info tedious --json | jq -r '."dist-tags".next, ."dist-tags".latest')
if [ "$(printf '%s\n' "$latest" "$next" | sort -V | tail -n 1)" != "$latest" ]; then
date_format="%Y-%m-%dT%H:%M:%SZ"
Expand Down
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: "{build}"

environment:
matrix:
- nodejs_version: "12"
- nodejs_version: "14"
- nodejs_version: "16"
- nodejs_version: "18"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"url": "https://github.com/tediousjs/tedious.git"
},
"engines": {
"node": ">=12.3.0"
"node": ">=14"
},
"publishConfig": {
"tag": "next"
Expand Down Expand Up @@ -109,7 +109,7 @@
"@babel/preset-env",
{
"targets": {
"node": 12
"node": 14
}
}
],
Expand Down

0 comments on commit 121f3a5

Please sign in to comment.