Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Node.js 12 support, support Node.js 16 & 18 #18

Merged
merged 9 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,21 @@ jobs:

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci

# npm of 14.x is not compatible with lockfileVersion 3, that's why we use `install` here instead of `ci`
- if: matrix.node-version == '14.x'
run: npm install
- if: matrix.node-version != '14.x'
run: npm ci

- run: npm run build --if-present
- run: npm run lint
- run: npm test
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.18.0'
node-version: '18.15.0'
registry-url: 'https://registry.npmjs.org'
scope: '@funboxteam'
- run: npm ci
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 4.0.0 (05.06.2023)

Dropped Node.js 12 support. Ensured 16 & 18 support.

Check out [migration guide](./MIGRATION.md).


## 3.1.1 (10.06.2021)

Fixed several security vulnerabilities:
Expand Down
7 changes: 7 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Migration

## 3.1.1 → 4.0.0

We've dropped Node.js 12 support.

But probably you still may continue to use this lib there if you need to. But be careful.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const net = require('net');
const net = require('node:net');

const isPortFree = (port, host = '0.0.0.0') => new Promise((resolve) => {
const server = net.createServer();
Expand Down
Loading