@oddington/sdk 0.1.63 → 0.1.64
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 +15 -0
- package/dist/browser.js +347 -225
- package/dist/index.js +4 -4
- package/dist/types/packages/sdk/src/data-snapshot-history-types.d.ts +28 -0
- package/dist/types/packages/sdk/src/public.d.ts +2 -0
- package/dist/types/shared/data-snapshot-history.d.ts +40 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -433,6 +433,21 @@ the existing bounded session recovery before a new read or write can proceed.
|
|
|
433
433
|
Snapshot initialization requires a hosted browser app; Node, routines and local
|
|
434
434
|
app contexts receive `DataOperationError` with `context_unavailable`.
|
|
435
435
|
|
|
436
|
+
When the named snapshot selects history, `accounting.history.records({ collection,
|
|
437
|
+
at: '2026-10-01T00:00:00Z' })` returns `{ commit, records }`, with ref-sorted
|
|
438
|
+
Records shaped as `{ $ref, values }` containing only the selected historical
|
|
439
|
+
fields. It includes Records later deleted. The timestamp chooses the first
|
|
440
|
+
eligible commit walking backward from the snapshot tip, then replays that
|
|
441
|
+
first-parent ancestry prefix; equal or backward clocks never reorder history.
|
|
442
|
+
Before the collection's first event it returns `commit: null` and no Records.
|
|
443
|
+
`accounting.history.changes({ collection, ref?, field? })` returns matching commit
|
|
444
|
+
groups in ancestry order. A ref matches the event's visible ref, including the
|
|
445
|
+
new ref on a rename; a field selects only its field-update events. Missing slots
|
|
446
|
+
and explicit null remain distinct. Both reads are local and return detached
|
|
447
|
+
values. Unselected history collections or fields reject with `invalid_query`.
|
|
448
|
+
Newer published Changes and local mutations do not enter Git history; only a
|
|
449
|
+
snapshot replacement advances its current Records and history together.
|
|
450
|
+
|
|
436
451
|
`transact` captures a synchronous callback describing create, update, link,
|
|
437
452
|
unlink and delete operations across selected collections. Record methods chain;
|
|
438
453
|
create followed by edits folds into creation on the host. Generated schema
|