@foretag/tanstack-db-surrealdb 0.1.17 → 0.1.19

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
@@ -1,8 +1,6 @@
1
1
  # TanstackDB SurrealDB Collections
2
2
 
3
- > Note: Please note this Software is Pre-release pending testing and not yet recommended for production use.
4
-
5
- Add Offline / Local First Caching & Syncing to your SurrealDB app with TanstackDB and Loro (CRDTs). For SurrealDB v3.alpha-13 and SurrealDB JS SDK v2 (and above).
3
+ Add Offline / Local First Caching & Syncing to your SurrealDB app with TanstackDB and Loro (CRDTs). For SurrealDB v3-alpha.16 and SurrealDB JS SDK v2 (and above).
6
4
 
7
5
  - Local / Offline first applications with TanstackDB and Loro
8
6
  - High performance with Low resource consumption
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CollectionConfig, UtilsRecord } from '@tanstack/db';
2
2
  import { Container } from 'loro-crdt';
3
- import { RecordId, Surreal, Expr } from 'surrealdb';
3
+ import { RecordId, Surreal, ExprLike, BoundQuery } from 'surrealdb';
4
4
 
5
5
  type WithId<T> = T & {
6
6
  id: string | RecordId;
@@ -11,7 +11,7 @@ type SyncedTable<T> = WithId<T & {
11
11
  }>;
12
12
  type TableOptions<T> = {
13
13
  name: string;
14
- where?: Expr;
14
+ where?: ExprLike | BoundQuery;
15
15
  fields?: (keyof T)[];
16
16
  };
17
17
  type SurrealCollectionConfig<T extends {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CollectionConfig, UtilsRecord } from '@tanstack/db';
2
2
  import { Container } from 'loro-crdt';
3
- import { RecordId, Surreal, Expr } from 'surrealdb';
3
+ import { RecordId, Surreal, ExprLike, BoundQuery } from 'surrealdb';
4
4
 
5
5
  type WithId<T> = T & {
6
6
  id: string | RecordId;
@@ -11,7 +11,7 @@ type SyncedTable<T> = WithId<T & {
11
11
  }>;
12
12
  type TableOptions<T> = {
13
13
  name: string;
14
- where?: Expr;
14
+ where?: ExprLike | BoundQuery;
15
15
  fields?: (keyof T)[];
16
16
  };
17
17
  type SurrealCollectionConfig<T extends {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foretag/tanstack-db-surrealdb",
3
3
  "description": "Add Offline / Local First Caching & Syncing to your SurrealDB app with TanstackDB and Loro (CRDTs)",
4
- "version": "0.1.17",
4
+ "version": "0.1.19",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -40,16 +40,16 @@
40
40
  "build": "tsup src/index.ts --dts --format esm,cjs"
41
41
  },
42
42
  "dependencies": {
43
- "loro-crdt": "^1.10.2"
43
+ "loro-crdt": "^1.10.3"
44
44
  },
45
45
  "peerDependencies": {
46
- "@tanstack/db": "^0.5.10",
46
+ "@tanstack/db": "^0.5.16",
47
47
  "@tanstack/query-db-collection": "^1.0.0",
48
- "surrealdb": "2.0.0-alpha.14"
48
+ "surrealdb": "2.0.0-alpha.15"
49
49
  },
50
50
  "devDependencies": {
51
- "@biomejs/biome": "^2.3.8",
52
- "@tanstack/svelte-db": "^0.1.53",
51
+ "@biomejs/biome": "^2.3.10",
52
+ "@tanstack/svelte-db": "^0.1.59",
53
53
  "surrealdb": "2.0.0-alpha.14",
54
54
  "tsup": "^8.5.1"
55
55
  }