@spooky-sync/client-solid 0.0.1-canary.235 → 0.0.1-canary.237

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 +2 -1
  2. package/package.json +3 -3
package/AGENTS.md CHANGED
@@ -39,7 +39,8 @@ export const dbConfig: SyncedDbConfig<typeof schema> = {
39
39
  - `db.preload(query, options?)` — cache-aware, awaitable prewarm. Cold (nothing cached in the bucket) fetches + persists and the promise awaits it (blocks); warm returns instantly. `options.refresh` (`'onUse'` default / `'background'` / `'stale'`) + `options.staleTime` control warm-refresh. One-shot snapshot, no live view — freshens on use.
40
40
  - `db.run(backend, route, payload)` — call a backend RPC route.
41
41
  - `db.bucket(name)` — get a `BucketHandle` for file storage.
42
- - `db.useRemote(fn)` — escape hatch to the raw `Surreal` client (skips cache).
42
+ - `db.remoteQuery(sql, vars?)` — one-shot remote read through the client's queued, connect-gated path (skips cache).
43
+ - `db.useRemote(fn)` — escape hatch to the raw `Surreal` client (skips cache AND the connect gate).
43
44
  - `db.authenticate(token)`, `db.signOut()`, `db.auth`.
44
45
  - `db.pendingMutationCount`, `db.subscribeToPendingMutations(cb)`.
45
46
  - **`useQuery(() => db.query(...).build())`** — reactive query. Returns `{ data, status, error, ... }` accessors. The factory function is tracked, so passing reactive params (signals) re-runs the query.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spooky-sync/client-solid",
3
- "version": "0.0.1-canary.235",
3
+ "version": "0.0.1-canary.237",
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.235",
47
- "@spooky-sync/core": "0.0.1-canary.235",
46
+ "@spooky-sync/query-builder": "0.0.1-canary.237",
47
+ "@spooky-sync/core": "0.0.1-canary.237",
48
48
  "@surrealdb/wasm": "^3.0.3",
49
49
  "surrealdb": "2.0.3",
50
50
  "valtio": "^2.1.8"