Skip to content

Commit

Permalink
fix: drop support for EOL versions of node (#85)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Supported version range of node is now ^12.22.0 || ^14.17.0 || >=16.0.0
  • Loading branch information
SimenB committed Sep 29, 2021
1 parent 8ed1384 commit 7351933
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
node-version: [12.x, 14.x, 16.x]
runs-on: ubuntu-latest

steps:
Expand Down
19 changes: 19 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-extraneous-dependencies
const semver = require('semver');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const pkg = require('./package.json');

const supportedNodeVersion = semver.minVersion(pkg.engines.node).version;

module.exports = {
ignore: ['**/__mocks__/**'],
presets: [
[
'@babel/preset-env',
{
targets: { node: supportedNodeVersion },
},
],
'@babel/preset-typescript',
],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"prettier": "^2.1.1",
"rimraf": "^3.0.2",
"semantic-release": "^17.4.3",
"semver": "^7.3.5",
"typescript": "^4.0.2"
},
"peerDependencies": {
Expand All @@ -79,7 +80,7 @@
]
},
"engines": {
"node": ">=10"
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},
"resolutions": {
"semantic-release/@semantic-release/github/fs-extra": "^9.0.0",
Expand Down

0 comments on commit 7351933

Please sign in to comment.