@foretag/tanstack-db-surrealdb 0.6.7 → 0.6.9
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 +5 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -8,6 +8,10 @@ TanStack DB collection adapter for SurrealDB JS with:
|
|
|
8
8
|
- Optional Loro CRDT replication (`json`, `richtext`)
|
|
9
9
|
- Query-driven sync modes (`eager`, `on-demand`, `progressive`)
|
|
10
10
|
|
|
11
|
+
### Roadmap
|
|
12
|
+
|
|
13
|
+
- Persistence: [Issue](https://github.com/TanStack/db/issues/865)
|
|
14
|
+
|
|
11
15
|
## Install
|
|
12
16
|
|
|
13
17
|
```sh
|
|
@@ -283,6 +287,7 @@ type CalendarEvent = {
|
|
|
283
287
|
};
|
|
284
288
|
|
|
285
289
|
await calendarEvents.insert({
|
|
290
|
+
// id is Optional on insert
|
|
286
291
|
id: new RecordId('calendar_event', 'evt-001'),
|
|
287
292
|
owner: new RecordId('account', 'user-123'),
|
|
288
293
|
title: 'Planning',
|
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.6.
|
|
4
|
+
"version": "0.6.9",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"surrealdb": "^2.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@biomejs/biome": "^2.4.
|
|
55
|
+
"@biomejs/biome": "^2.4.6",
|
|
56
56
|
"@standard-schema/spec": "^1.1.0",
|
|
57
|
-
"@tanstack/db": "^0.5.
|
|
57
|
+
"@tanstack/db": "^0.5.30",
|
|
58
58
|
"@tanstack/query-core": "^5.90.20",
|
|
59
|
-
"@tanstack/query-db-collection": "^1.0.
|
|
60
|
-
"@tanstack/react-db": "^0.1.
|
|
59
|
+
"@tanstack/query-db-collection": "^1.0.27",
|
|
60
|
+
"@tanstack/react-db": "^0.1.74",
|
|
61
61
|
"@tanstack/react-query": "^5.90.21",
|
|
62
|
-
"@types/bun": "^1.3.
|
|
63
|
-
"surrealdb": "^2.0.
|
|
62
|
+
"@types/bun": "^1.3.10",
|
|
63
|
+
"surrealdb": "^2.0.1",
|
|
64
64
|
"tsup": "^8.5.1"
|
|
65
65
|
}
|
|
66
66
|
}
|