clivly 0.19.0 → 0.20.0
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 +14 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,6 +99,13 @@ is what lets your app run a **derived object** authored in Clivly's dashboard
|
|
|
99
99
|
scaffolding it by default is what makes such an object sync with no further code
|
|
100
100
|
on your side. It costs nothing if you never author one.
|
|
101
101
|
|
|
102
|
+
From `0.19.0` the scaffolded config sets `sync: { instant: true }`, with a
|
|
103
|
+
comment naming `insertAndPush`, `updateAndPush` and `deleteAndPush` from
|
|
104
|
+
`clivly/drizzle`. Writes made through those helpers reach Clivly within a
|
|
105
|
+
second — a signup shows up, an edit updates, a deleted row's record is
|
|
106
|
+
archived — while the scheduled sync keeps catching everything else. Existing
|
|
107
|
+
configs are left unchanged; add the line yourself to opt in.
|
|
108
|
+
|
|
102
109
|
| Flag | Purpose |
|
|
103
110
|
| --- | --- |
|
|
104
111
|
| `--dry-run` | Show what would be written; write nothing |
|
|
@@ -305,10 +312,13 @@ This project
|
|
|
305
312
|
```
|
|
306
313
|
|
|
307
314
|
**Sync cursor persists** warns when a config that targets an edge runtime sets
|
|
308
|
-
no `cursorStore`.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
315
|
+
no `cursorStore`. Since `0.19.0` syncs Clivly starts (auto sync, "Run sync")
|
|
316
|
+
resume from the position Clivly keeps, so the warning is about syncs your app
|
|
317
|
+
starts itself — `sdk.sync()` or your own cron. Without a store their in-memory
|
|
318
|
+
cursor is discarded between invocations, so each of them re-reads your entire
|
|
319
|
+
source tables — a full sync on every run, reported as a success. It is a
|
|
320
|
+
warning, not a failure: a long-lived Node host is correct with the in-memory
|
|
321
|
+
default.
|
|
312
322
|
|
|
313
323
|
**Dashboard-authored objects** is new in `0.9.7`. It reports how many derived
|
|
314
324
|
objects authored in Clivly ran on the last sync and how many were quarantined —
|