@foretag/tanstack-db-surrealdb 0.1.18 → 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/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +6 -6
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,
|
|
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?:
|
|
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,
|
|
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?:
|
|
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.
|
|
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.
|
|
43
|
+
"loro-crdt": "^1.10.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@tanstack/db": "^0.5.
|
|
46
|
+
"@tanstack/db": "^0.5.16",
|
|
47
47
|
"@tanstack/query-db-collection": "^1.0.0",
|
|
48
|
-
"surrealdb": "2.0.0-alpha.
|
|
48
|
+
"surrealdb": "2.0.0-alpha.15"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@biomejs/biome": "^2.3.
|
|
52
|
-
"@tanstack/svelte-db": "^0.1.
|
|
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
|
}
|