From 832fa31e4bfbb9506516cda5021f9b2a06643db7 Mon Sep 17 00:00:00 2001
From: Daniel Hauser
Date: Fri, 17 Oct 2025 23:41:54 +0300
Subject: [PATCH 1/2] Update Node.js version requirements and build
configuration to support v25
---
.github/workflows/build.yml | 5 +++--
README.md | 2 +-
package.json | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 03648776..818d1b20 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,8 +14,8 @@ on:
env:
# See https://github.com/nodejs/release#release-schedule
- # Node.js v20 EOL = 2026-04-30. v22 EOL = 2027-04-30. v23 EOL = 2025-06-01. v24 EOL = 2028-04-30.
- NODE_BUILD_CMD: npx --no-install prebuild -r node -t 20.0.0 -t 22.0.0 -t 23.0.0 -t 24.0.0 --include-regex 'better_sqlite3.node$'
+ # Node.js v20 EOL = 2026-04-30. v22 EOL = 2027-04-30. v23 EOL = 2025-06-01. v24 EOL = 2028-04-30. v25 EOL = 2026-06-01.
+ NODE_BUILD_CMD: npx --no-install prebuild -r node -t 20.0.0 -t 22.0.0 -t 23.0.0 -t 24.0.0 -t 25.0.0 --include-regex 'better_sqlite3.node$'
# See https://www.electronjs.org/docs/latest/tutorial/electron-timelines#version-support-policy
# Electron v29 EOL = 2024-08-20. v30 EOL = 2024-10-15. v31 EOL = 2025-01-14. v32 EOL = 2025-03-11. v33 EOL = 2025-05-13. v34 EOL = 2025-06-24. v35 EOL = 2025-09-02. v36 EOL = 2025-10-28. v37 EOL = 2026-01-13.
@@ -35,6 +35,7 @@ jobs:
- 22
- 23
- 24
+ - 25
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
diff --git a/README.md b/README.md
index 2c753185..6fe75c9f 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ The fastest and simplest library for SQLite in Node.js.
npm install better-sqlite3
```
-> Requires Node.js v14.21.1 or later. Prebuilt binaries are available for [LTS versions](https://nodejs.org/en/about/releases/). If you have trouble installing, check the [troubleshooting guide](./docs/troubleshooting.md).
+> Requires Node.js v20.0.0 or later. Prebuilt binaries are available for [LTS versions](https://nodejs.org/en/about/releases/). If you have trouble installing, check the [troubleshooting guide](./docs/troubleshooting.md).
## Usage
diff --git a/package.json b/package.json
index d281e977..2035c8ad 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
"deps/**"
],
"engines": {
- "node": "20.x || 22.x || 23.x || 24.x"
+ "node": "20.x || 22.x || 23.x || 24.x || 25.x"
},
"dependencies": {
"bindings": "^1.5.0",
From f4ba32a99392dc06feb5deb69dbc4bca7e86291c Mon Sep 17 00:00:00 2001
From: Daniel Hauser <36034483+daniel-hauser@users.noreply.github.com>
Date: Mon, 20 Oct 2025 22:12:18 +0300
Subject: [PATCH 2/2] [ubuntu] Update GCC version to 11
---
.github/workflows/build.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 818d1b20..cf489545 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -52,8 +52,8 @@ jobs:
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt update
- sudo apt install gcc-10 g++-10 -y
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
+ sudo apt install gcc-11 g++-11 -y
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
- run: npm install --ignore-scripts
- run: npm run build-debug
- run: npm test