chore(rivetkit): remove wasm sqlite runtime#4614
chore(rivetkit): remove wasm sqlite runtime#4614NathanFlurry wants to merge 1 commit into04-12-fix_sqlite-native_restore_native_startup_kv_preloadfrom
Conversation
PR Review: chore(rivetkit): remove wasm sqlite runtimeThis PR removes the WASM/KV-backed SQLite path from RivetKit, making native SQLite via Bug: ArrayBuffer and typed array support dropped
// old wrapper.js — handled both:
if (value instanceof ArrayBuffer) { ... Buffer.from(value) }
if (ArrayBuffer.isView(value)) { ... Buffer.from(value.buffer, value.byteOffset, value.byteLength) }The new code only handles Bug: bigint precision loss in native-database.ts
Edge case: named params with no placeholders In Orphaned KV data
Removed error poisoning — verify native layer handles it The old path poisoned the KV store before acquiring the mutex on Static import of openDatabaseFromEnvoy The engine driver now statically imports Minor: duplicate interface
Overall The architectural direction is correct — eliminating the WASM/KV complexity in favor of native-only is a clear win for maintainability. The dynamic actor DB bridge ( Items to address before merging:
|
Preview packages published to npmInstall with: npm install rivetkit@pr-4614All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-822b57f
docker pull rivetdev/engine:full-822b57fIndividual packagesnpm install rivetkit@pr-4614
npm install @rivetkit/react@pr-4614
npm install @rivetkit/rivetkit-native@pr-4614
npm install @rivetkit/workflow-engine@pr-4614 |
4bd0fb1 to
ab9f56f
Compare
a145cda to
2e5abc9
Compare
2e5abc9 to
ac6753a
Compare
ab9f56f to
d00c2b0
Compare
9da1113 to
e792448
Compare
d6a0ba8 to
bd95874
Compare
e792448 to
c0e0e30
Compare
bd95874 to
ebe7c80
Compare
c0e0e30 to
7158470
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: