Skip to content

Commit 69a193b

Browse files
authored
chore: add Node.js 20 back to support matrix (#531)
1 parent 705ece3 commit 69a193b

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/test-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ${{ matrix.os }}
5252
strategy:
5353
matrix:
54-
node-version: [22, 24]
54+
node-version: [20, 22, 24]
5555
os: [ubuntu-latest]
5656

5757
steps:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ const json = db.toJSON();
158158
### __WORK IN PROGRESS__
159159
-->
160160
### __WORK IN PROGRESS__
161-
* BREAKING: Drop support for Node.js versions older than v22 (#529)
161+
* BREAKING: Drop support for Node.js versions older than v20
162162
* BREAKING: Removed `exportJson` method in favor of `toJSON`
163163
* BREAKING: Renamed `importJson` method to `importJSON`. Importing from a file is no longer supported. Read the file yourself if you need this functionality.
164164
* Filesystem access is now done using the native `fs.promises` instead of `fs-extra`
165-
* The package is now a hybrid ESM/CJS package (#529)
165+
* The package is now a hybrid ESM/CJS package
166166

167167
### 3.1.1 (2024-01-25)
168168
* Reduced CPU load while idle (#475)

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@alcalzone/release-script-plugin-license": "~3.7.0",
4545
"@commitlint/cli": "^20.1.0",
4646
"@commitlint/config-conventional": "^20.0.0",
47-
"@tsconfig/node22": "^22.0.2",
47+
"@tsconfig/node20": "^20.1.6",
4848
"@types/node": "^22.18.8",
4949
"@types/proper-lockfile": "^4.1.2",
5050
"@vitest/coverage-istanbul": "^3.2.4",
@@ -70,7 +70,7 @@
7070
},
7171
"scripts": {
7272
"build": "tsc",
73-
"postbuild": "esm2cjs --in ./build/esm --out ./build/cjs -l error -t node22",
73+
"postbuild": "esm2cjs --in ./build/esm --out ./build/cjs -l error -t node20",
7474
"watch": "npm run build -- --watch",
7575
"test:ts": "vitest",
7676
"test:watch": "npm run test:ts -- --watch",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node22/tsconfig.json",
2+
"extends": "@tsconfig/node20/tsconfig.json",
33
"compilerOptions": {
44
"rootDir": "src",
55
"outDir": "build/esm",

0 commit comments

Comments
 (0)