Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [22, 24]
node-version: [20, 22, 24]
os: [ubuntu-latest]

steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ const json = db.toJSON();
### __WORK IN PROGRESS__
-->
### __WORK IN PROGRESS__
* BREAKING: Drop support for Node.js versions older than v22 (#529)
* BREAKING: Drop support for Node.js versions older than v20
* BREAKING: Removed `exportJson` method in favor of `toJSON`
* BREAKING: Renamed `importJson` method to `importJSON`. Importing from a file is no longer supported. Read the file yourself if you need this functionality.
* Filesystem access is now done using the native `fs.promises` instead of `fs-extra`
* The package is now a hybrid ESM/CJS package (#529)
* The package is now a hybrid ESM/CJS package

### 3.1.1 (2024-01-25)
* Reduced CPU load while idle (#475)
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@alcalzone/release-script-plugin-license": "~3.7.0",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@tsconfig/node22": "^22.0.2",
"@tsconfig/node20": "^20.1.6",
"@types/node": "^22.18.8",
"@types/proper-lockfile": "^4.1.2",
"@vitest/coverage-istanbul": "^3.2.4",
Expand All @@ -70,7 +70,7 @@
},
"scripts": {
"build": "tsc",
"postbuild": "esm2cjs --in ./build/esm --out ./build/cjs -l error -t node22",
"postbuild": "esm2cjs --in ./build/esm --out ./build/cjs -l error -t node20",
"watch": "npm run build -- --watch",
"test:ts": "vitest",
"test:watch": "npm run test:ts -- --watch",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "build/esm",
Expand Down