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
42 changes: 0 additions & 42 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,48 +101,6 @@ jobs:
echo "SELECT 'wrapper test';" | node shell.js
node shell.js --version

test-bun:
strategy:
matrix:
os:
- ubuntu-22.04
- macos-15
- macos-15-intel
bun:
- 1.3.5
name: Testing Bun ${{ matrix.bun }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: ${{ matrix.bun }}
- if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install python-setuptools icu4c
- if: ${{ !startsWith(matrix.os, 'macos') }}
run: python3 -m pip install setuptools
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt update
sudo apt install -y gcc-10 g++-10 libreadline-dev libncurses5-dev libicu-dev
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
- run: bun install --ignore-scripts
- run: bun run build-debug
- run: bun run test
- run: bun run build-release
- name: Test shell wrapper (Windows)
if: ${{ startsWith(matrix.os, 'windows') }}
shell: powershell
run: |
echo "SELECT 'wrapper test';" | bun shell.js
bun shell.js --version
- name: Test shell wrapper (Unix)
if: ${{ !startsWith(matrix.os, 'windows') }}
shell: bash
run: |
echo "SELECT 'wrapper test';" | bun shell.js
bun shell.js --version

publish:
if: ${{ github.event_name == 'release' }}
name: Publishing to NPM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ So far the changes are:

* Build the [bedrock](https://sqlite.org/src/timeline?r=bedrock) branch of SQLite to enable [`begin concurrent`](https://www.sqlite.org/src/doc/begin-concurrent/doc/begin_concurrent.md).
* Create a shell too, so we can debug db files created
* Supports both Node.js (22.x, 24.x) and Bun (>=1.1.0) runtimes
* Supports Node.js 22.x and 24.x

Other changes will be likely be made over time.
10 changes: 0 additions & 10 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ If you still have issues, try these steps:
1. Delete your `$HOME/.node-gyp` directory
1. Run `npm install`

## Bun

If you're using Bun and encounter issues:

1. Ensure you're using Bun 1.1.0 or later
2. Try rebuilding: `bun run build-release`
3. Check that prebuilt binaries are available for your platform

Note: Bun uses the same native module system as Node.js, so most Node.js troubleshooting steps apply.

## Still stuck?

Browse [previous installation issues](https://github.com/WiseLibs/better-sqlite3/issues?q=is%3Aissue).
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"shell.js"
],
"engines": {
"node": "22.x || 24.x",
"bun": ">=1.1.0"
"node": "22.x || 24.x"
},
"types": "lib/index.d.ts",
"dependencies": {
Expand Down
Loading