@spooky-sync/client-solid 0.0.1-canary.287 → 0.0.1-canary.289

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.
Files changed (2) hide show
  1. package/AGENTS.md +1 -1
  2. package/package.json +3 -3
package/AGENTS.md CHANGED
@@ -33,7 +33,7 @@ export const dbConfig: SyncedDbConfig<typeof schema> = {
33
33
 
34
34
  - **`useDb<typeof schema>()`** — returns the `SyncedDb<S>` instance. Methods:
35
35
  - `db.create(id, payload)` — `id` is a full record ID like `'thread:abc'`.
36
- - `db.update(table, id, payload, options?)` — `options.debounced` coalesces updates.
36
+ - `db.update(table, id, payload, options?)` — `options.debounced` coalesces updates; with `flushOnHide` (default `true`) a pending patch survives a reload or closed tab.
37
37
  - `db.delete(table, idOrSelector)`.
38
38
  - `db.query(table)` — returns a `QueryBuilder`. Chain `.related()`, `.orderBy()`, `.limit()`, etc., end with `.build()`.
39
39
  - `db.preload(query, options?)` — registers the query without subscribing. Resolved before on this device: returns instantly. Never resolved: awaits the server's membership and every record. `options.signal` aborts a cold wait; `refresh`/`staleTime` are ignored. Evicted a ttl after registration unless a view mounts the same query.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spooky-sync/client-solid",
3
- "version": "0.0.1-canary.287",
3
+ "version": "0.0.1-canary.289",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "SurrealDB client with local and remote database support for browser applications",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "packageManager": "pnpm@9.0.0",
45
45
  "dependencies": {
46
- "@spooky-sync/query-builder": "0.0.1-canary.287",
47
- "@spooky-sync/core": "0.0.1-canary.287",
46
+ "@spooky-sync/query-builder": "0.0.1-canary.289",
47
+ "@spooky-sync/core": "0.0.1-canary.289",
48
48
  "@surrealdb/wasm": "^3.0.3",
49
49
  "surrealdb": "2.0.3",
50
50
  "valtio": "^2.1.8"