@rocicorp/zero 0.17.2025030600 → 0.17.2025030601

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.
@@ -1,43 +0,0 @@
1
- import { MemorySource } from '../../../zql/src/ivm/memory-source.ts';
2
- import type { TableSchema } from '../../../zero-schema/src/table-schema.ts';
3
- import type { Store } from '../../../replicache/src/dag/store.ts';
4
- import type { Hash } from '../../../replicache/src/hash.ts';
5
- import type { Diff } from '../../../replicache/src/sync/patch.ts';
6
- /**
7
- * Provides handles to IVM sources at different heads.
8
- *
9
- * - sync always matches the server snapshot
10
- * - main is the client's current view of the data
11
- */
12
- export declare class IVMSourceRepo {
13
- #private;
14
- constructor(tables: Record<string, TableSchema>);
15
- get main(): IVMSourceBranch;
16
- /**
17
- * Used for reads in `zero.TransactionImpl`.
18
- * Writes in `zero.TransactionImpl` also get applied to the rebase branch.
19
- *
20
- * The rebase branch is always forked off of the sync branch when a rebase begins.
21
- */
22
- get rebase(): IVMSourceBranch;
23
- advanceSyncHead: (store: Store, syncHeadHash: Hash, patches: readonly Diff[]) => Promise<void>;
24
- }
25
- export declare class IVMSourceBranch {
26
- #private;
27
- constructor(tables: Record<string, TableSchema>, sources?: Map<string, MemorySource | undefined>);
28
- getSource(name: string): MemorySource | undefined;
29
- clear(): void;
30
- /**
31
- * Creates a new IVMSourceBranch that is a copy of the current one.
32
- * This is a cheap operation since the b-trees are shared until a write is performed
33
- * and then only the modified nodes are copied.
34
- *
35
- * This is used when:
36
- * 1. We need to rebase a change. We fork the `sync` branch and run the mutations against the fork.
37
- * 2. We need to create `main` at startup.
38
- * 3. We need to create a new `sync` head because we got a new server snapshot.
39
- * The old `sync` head is forked and the new server snapshot is applied to the fork.
40
- */
41
- fork(): IVMSourceBranch;
42
- }
43
- //# sourceMappingURL=ivm-source-repo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ivm-source-repo.d.ts","sourceRoot":"","sources":["../../../../../zero-client/src/client/ivm-source-repo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,0CAA0C,CAAC;AAE1E,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,sCAAsC,CAAC;AAEhE,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,iCAAiC,CAAC;AAK1D,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,uCAAuC,CAAC;AAGhE;;;;;GAKG;AACH,qBAAa,aAAa;;gBAaZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAK/C,IAAI,IAAI,oBAEP;IAED;;;;;OAKG;IACH,IAAI,MAAM,oBAET;IAED,eAAe,UACN,KAAK,gBACE,IAAI,WACT,SAAS,IAAI,EAAE,KACvB,OAAO,CAAC,IAAI,CAAC,CA4Ed;CACH;AAED,qBAAa,eAAe;;gBAKxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACnC,OAAO,GAAE,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAa;IAM5D,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAajD,KAAK;IAIL;;;;;;;;;;OAUG;IACH,IAAI;CAWL"}