@rotorsoft/act-sqlite 1.22.7 → 2.0.0

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 CHANGED
@@ -111,6 +111,8 @@ The store owns a single libSQL connection, which is what makes the above true: w
111
111
 
112
112
  Raising `busy_timeout` is not the fix, and is worse than it looks. libSQL's busy wait blocks the Node event loop for its full duration: in a single process where both connections share that loop, the other connection's commit cannot run while the wait is in progress, so the wait is guaranteed to reach its timeout — having frozen your server, timers and all, the whole time. Measured, the failure moves from ~1 ms to the full timeout, and still fails.
113
113
 
114
+ If a commit does lose that race, it fails with `StoreError` and stores nothing, and later commits can keep failing with `cannot commit transaction - SQL statements in progress`, for 20 seconds or more in a test, until the driver lets go of its failed statement. Restarting the process ends it at once.
115
+
114
116
  If a second component needs the same data, route it through the store (`query`, `query_streams`) rather than opening its own connection. If it genuinely must have raw SQL access, run it while the app is stopped.
115
117
 
116
118
  ### Database schema reference
@@ -139,8 +141,8 @@ Both adapters pass the same `runStoreTck` suite. Application code doesn't change
139
141
 
140
142
  ## Compatibility
141
143
 
142
- - **Node**: >=22.23.3
143
- - **Peer**: `@rotorsoft/act` >=0.39.0, `zod` ^4.4.3
144
+ - **Node**: >=22.23.4
145
+ - **Peer**: `@rotorsoft/act` of the same major, `zod` ^4.6.7
144
146
  - **Bundled deps**: `@libsql/client` ^0.17.3 (no native bindings)
145
147
  - **Module formats**: ESM + CJS
146
148
  - **Runtimes**: Node, Bun, Deno (libSQL pure-TS implementation); also runs in Turso-compatible edge environments