Skip to content

Commit

Permalink
feat! Drop support for node < v16
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires minimum node version v16
  • Loading branch information
plasticrake committed Nov 8, 2023
1 parent 628f341 commit 0ffe9ab
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2019,
project: ['./tsconfig.json', './tsconfig.eslint.json'],
ecmaVersion: 2022,
project: ['./tsconfig.json'],
},
env: {
browser: false,
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
os: [ubuntu-latest]
include:
- node-version: 14.x
os: ubuntu-latest
npm-version: '7'

runs-on: ${{ matrix.os }}

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@
},
"license": "MIT",
"author": "Patrick Seal",
"type": "commonjs",
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {
"prebuild": "npm run clean",
"build": "tsc && tsc --project tsconfig.examples.json",
"build": "tsc && tsc --project tsconfig.source.json",
"clean": "rimraf lib/ build/",
"coverage-report-lcov": "nyc report --reporter=lcov",
"lint": "eslint --ignore-path .gitignore . --ext .js,.ts --format=pretty && tsc --noEmit && tsc --noEmit --project tsconfig.examples.json",
"lint": "eslint --ignore-path .gitignore . --ext .js,.ts --format=pretty && tsc --noEmit",
"prepare": "npm run build",
"release": "commit-and-tag-version --sign",
"spellcheck": "cspell '{examples,src,test}/**/*' *.md",
Expand Down Expand Up @@ -86,7 +87,7 @@
"typescript": "^4.9.4"
},
"engines": {
"node": ">=14"
"node": ">=16"
},
"commit-and-tag-version": {
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"target": "es2019",
"lib": ["es2019"],
"target": "es2022",
"lib": ["es2022"],
"allowJs": true, // temporary relaxing
"alwaysStrict": true,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUncheckedIndexedAccess": true,
Expand Down
10 changes: 0 additions & 10 deletions tsconfig.eslint.json

This file was deleted.

7 changes: 0 additions & 7 deletions tsconfig.examples.json

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./lib"
"outDir": "./build"
},
"include": ["src/**/*"]
"include": ["src/**/*", "test/**/*", "examples/**/*", ".eslintrc.js"]
}
7 changes: 7 additions & 0 deletions tsconfig.source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./lib"
},
"include": ["src/**/*"]
}

0 comments on commit 0ffe9ab

Please sign in to comment.