Skip to content

Commit

Permalink
Merge pull request #18 from funbox/feature/node18
Browse files Browse the repository at this point in the history
Drop Node.js 12 support, support Node.js 16 & 18
  • Loading branch information
igoradamenko authored May 22, 2023
2 parents 5928c9f + fbac46f commit 28bc032
Show file tree
Hide file tree
Showing 6 changed files with 9,563 additions and 6,628 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ 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 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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.0.0 (22.05.2023)

Dropped Node.js 12 support.

Added Node.js 16 & 18 support.

Read more in the [migration guide](./MIGRATION.md).


## 2.1.1 (10.06.2021)

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

## 2.1.1 → 3.0.0

We've dropped Node.js 12 support, which means that de jure this plugin does not work with Node.js 12.

However, de facto we have not changed the source code of the plugin in 3.0.0, so it should work with Node.js 12.

Anyway, be sure that you use Node.js 14, 16, or 18. Otherwise test the plugin prior using.
Loading

0 comments on commit 28bc032

Please sign in to comment.