Skip to content

Commit

Permalink
chore: set minimum node.js to 18.12.0 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
L2jLiga committed Oct 19, 2023
1 parent d9b28f8 commit 3048e4d
Show file tree
Hide file tree
Showing 16 changed files with 101 additions and 202 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20.x]
node-version: [18.12.0, 18.x, 20.x]

permissions:
checks: write
Expand Down Expand Up @@ -65,7 +65,6 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 20.8.1
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -91,7 +90,6 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 20.8.1
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- BREAKING: dropped Node.js 10-19, minimal required is 20.8.1 LTS
- BREAKING: dropped Node.js 10-19, minimal required is 18.12.0 LTS
- BREAKING: bump minimal TS version to 5.0
- BREAKING: dropped Fastify v3 support
- BREAKING: moved dependency injection functionality into separate package
Expand Down
2 changes: 1 addition & 1 deletion docs/Migration to v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Update dependencies:

| Dependency | Minimal supported version |
| ---------- | ------------------------- |
| Node.js | 20.8.1 |
| Node.js | 18.12.0 |
| TypeScript | 5.0.0 |
| Fastify | 4.0.0 |

Expand Down
6 changes: 3 additions & 3 deletions examples/async-initializer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest"
},
"dependencies": {
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4",
"@fastify-decorators/simple-di": "^4.0.0-next.4"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"ts-jest": "^29.1.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/aws-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
},
"dependencies": {
"@fastify/aws-lambda": "^3.3.0",
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4",
"@fastify-decorators/simple-di": "^4.0.0-next.4"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"@vercel/ncc": "^0.38.0",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest"
},
"dependencies": {
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4",
"@fastify-decorators/simple-di": "^4.0.0-next.4"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"ts-jest": "^29.1.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/injecting-requests-in-services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest"
},
"dependencies": {
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4",
"@fastify-decorators/simple-di": "^4.0.0-next.4"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"ts-jest": "^29.1.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/request-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest"
},
"dependencies": {
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"ts-jest": "^29.1.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/swagger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"@fastify/swagger-ui": "^1.10.1",
"@fastify-decorators/simple-di": "^4.0.0-next.4",
"@sinclair/typebox": "^0.31.17",
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"ts-jest": "^29.1.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/typedi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest"
},
"dependencies": {
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4",
"@fastify-decorators/typedi": "^4.0.0-next.4",
"typedi": "^0.10.0"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"ts-jest": "^29.1.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/typeorm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"dependencies": {
"@fastify/swagger": "^8.12.0",
"@fastify/swagger-ui": "^1.10.1",
"fastify": "^4.24.2",
"fastify": "^4.24.3",
"fastify-decorators": "^4.0.0-next.4",
"@fastify-decorators/simple-di": "^4.0.0-next.4",
"sqlite3": "^5.1.6",
"typeorm": "^0.3.17"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"jest": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"ts-jest": "^29.1.1",
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"email": "[email protected]"
},
"engines": {
"node": "^20.8.1 || >= 21.0.0"
"node": "^18.12.0 || > 20.0.0"
},
"dependencies": {
"fastify-plugin": "^4.0.0"
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,38 @@
"@microsoft/eslint-formatter-sarif": "^3.0.0",
"@prettier/plugin-xml": "^3.2.1",
"@rollup/plugin-typescript": "^11.1.5",
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"cross-env": "^7.0.3",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-prettier": "^5.0.1",
"fastify": "^4.24.2",
"glob": "^10.3.10",
"fastify": "^4.24.3",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"jest-resolve": "^29.7.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"license-checker": "^25.0.1",
"lint-staged": "^15.0.1",
"lint-staged": "^15.0.2",
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"rimraf": "^3.0.2",
"rollup": "^4.1.4",
"string-width": "^4.2.3",
"ts-jest": "^29.1.1",
"tslib": "^2.6",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"wrap-ansi": "^7.0.0"
},
"engines": {
"node": "^20.8.1 || >= 21.0.0",
"node": "^18.12.0 || > 20.0.0",
"yarn": "^1.0.0"
},
"resolutions": {
"@types/node": "~18.18.6",
"npmlog": "^7.0.1",
"string-width": "^4.2.3",
"wrap-ansi": "^7.0.0",
Expand Down
8 changes: 4 additions & 4 deletions plugins/simple-di/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"fastify": "^4.24.2",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"fastify": "^4.24.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"engines": {
"node": "^20.8.1 || >= 21.0.0"
"node": "^18.12.0 || > 20.0.0"
},
"jest-junit": {
"outputDirectory": "../../test-results",
Expand Down
8 changes: 4 additions & 4 deletions plugins/typedi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
"typedi": "^0.10.0"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "~20.8.6",
"fastify": "^4.24.2",
"@types/jest": "^29.5.6",
"@types/node": "~18.18.6",
"fastify": "^4.24.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"engines": {
"node": "^20.8.1 || >= 21.0.0"
"node": "^18.12.0 || > 20.0.0"
},
"jest-junit": {
"outputDirectory": "../../test-results",
Expand Down
Loading

0 comments on commit 3048e4d

Please sign in to comment.