@livestore/wa-sqlite 1.0.5-dev.2 → 1.0.8-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/dist/fts5/wa-sqlite.node.mjs +1 -6117
- package/dist/fts5/wa-sqlite.node.wasm +0 -0
- package/dist/fts5/wa-sqlite.wasm +0 -0
- package/dist/wa-sqlite.node.mjs +1 -6115
- package/dist/wa-sqlite.node.wasm +0 -0
- package/dist/wa-sqlite.wasm +0 -0
- package/package.json +3 -3
- package/src/FacadeVFS.js +219 -46
- package/src/examples/IDBBatchAtomicVFS.js +33 -26
- package/src/examples/IDBMirrorVFS.js +6 -0
- package/src/examples/MemoryVFS.js +1 -1
- package/src/examples/OPFSCoopSyncVFS.js +1 -1
- package/src/sqlite-api.js +5 -3
- package/src/types/globals.d.ts +1 -1
- package/test/api_statements.js +21 -0
package/README.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
## LiveStore fork
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This fork adds synchronous APIs and session extensions needed for LiveStore's real-time collaborative database features. **This fork is intended for LiveStore use only** - external users should use [upstream wa-sqlite](https://github.com/rhashimoto/wa-sqlite).
|
|
4
|
+
|
|
5
|
+
### Why this fork?
|
|
6
|
+
|
|
7
|
+
- **Synchronous API**: LiveStore requires synchronous database operations for performance-critical paths
|
|
8
|
+
- **Session extensions**: Enables change tracking and replication for collaborative features
|
|
9
|
+
- **Node.js compatibility**: Additional build targets for server-side testing
|
|
10
|
+
|
|
11
|
+
### Changes include:
|
|
4
12
|
|
|
5
13
|
- `src/sqlite-api.js`:
|
|
6
14
|
- Change API to expose synchronous functions
|
|
@@ -14,6 +22,9 @@ Changes include:
|
|
|
14
22
|
- `dist`
|
|
15
23
|
- Added Node.js build target (mostly used for testing)
|
|
16
24
|
|
|
25
|
+
### Staying current
|
|
26
|
+
This fork is regularly rebased against [upstream wa-sqlite](https://github.com/rhashimoto/wa-sqlite) to incorporate latest improvements and security fixes.
|
|
27
|
+
|
|
17
28
|
---
|
|
18
29
|
|
|
19
30
|
[](https://github.com/rhashimoto/wa-sqlite/actions/workflows/ci.yml)
|