SIGN IN SIGN UP

chore(deps): upgrade better-sqlite3 to 13 (#1582)

## Description

Upgrade better-sqlite3 from 12.8.0 to 13.0.3 and align @types/better-sqlite3 at 9.6.0 across every Drizzle consumer.

Version 13 moves to Node-API and bundles eight platform binaries instead of downloading a Node-version-specific prebuild during installation. pnpm 12.2.1 incorrectly synthesizes node-gyp rebuild despite the package declaring gypfile=false, so this change explicitly denies that unnecessary lifecycle and relies on the bundled binary for the documented x64/arm64 platform set.

The install matrix records the concrete gains, compatibility limits, package-size increase, glibc floor, and runtime-failure behavior for unsupported targets.

Supersedes #1578.

## Type of Change

- [ ] ๐Ÿš€ Feature (new functionality)
- [ ] ๐Ÿ› Bug fix (fixes an issue)
- [ ] ๐Ÿ“š Documentation (docs-only change)
- [x] ๐Ÿ”ง Maintenance (refactor, chore, CI, etc.)
- [ ] ๐Ÿงช Testing (test-only changes)

## Testing

- [x] Relevant checks pass locally (`pnpm run tsc`, `pnpm run lint`, `pnpm run test`)
- [ ] Added/updated tests for changes
- [x] Manually verified changes work as expected

Additional validation:

- `pnpm run check` โ€” 235 files, 5,745 tests passed; 3 todo
- `pnpm run build`
- `pnpm install --frozen-lockfile`
- Cloudflare Worker node, integration, bundle, and dry-run checks
- SQLite 3.53.4 runtime probes on Darwin arm64
- Clean Debian Bookworm glibc 2.36 installs and runtime probes on Linux x64 and arm64
- Alpine musl runtime probes with install scripts disabled on Linux x64 and arm64
- One Drizzle 0.45.2 instance and one @types/better-sqlite3 9.6.0 instance confirmed
- Independent CodeReviewer: GO

## Checklist

- [x] Code follows project style (`pnpm run lint` passes for touched files)
- [x] Self-review completed
- [x] Documentation updated (if needed)
- [x] No new warnings introduced
A
Adam Kunicki committed
b8a1dc8abbd21c4a38cb9e1022eec0b61c4d8f54
Parent: d8e7f4f
Committed by GitHub <noreply@github.com> on 9/2/2026, 7:25:31 PM