@sovereignbase/sequencer 1.0.1 → 1.0.2

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.cts CHANGED
@@ -24,10 +24,12 @@ footage?: ReadonlyArray<T | undefined>]>;
24
24
  /**
25
25
  * Describes one Actor's acknowledgement frontier.
26
26
  * `[actorID, sessionID, sessionEnd, ...]` contains removal Session/frontier pairs.
27
- * The application is responsible for acknowledging complete received Session prefixes.
27
+ * Actor-only tuples establish membership before removals, including offline Actors.
28
+ * Compaction requires equal complete Session frontiers from every active Actor.
29
+ * The application must deliver pending history before claiming that frontier.
28
30
  */
29
31
  type Acknowledgement = U32List;
30
- /** Ordered replication batch; delivery may be duplicated or causally reordered. */
32
+ /** Replication batch within retained history; delivery may be duplicated or causally reordered. */
31
33
  type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
32
34
  /**
33
35
  * Retained state required to hydrate the same visible Projection.
@@ -35,7 +37,9 @@ type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
35
37
  * Small snapshots use six-word insertion records after length-prefixed ACKs;
36
38
  * `words[0]` locates those records. Large snapshots begin with
37
39
  * `[0, frontiersEnd, insertionCount]` and omit predictable coordinate fields.
38
- * Both layouts retain complete coordinates and acknowledgements.
40
+ * Both layouts encode the retained coordinates and acknowledgements.
41
+ * Eligible masks, deleted Footage and compacted Session claims are omitted;
42
+ * Actor membership remains. Compaction may translate retained coordinates.
39
43
  * Positive insertion diffs consume successive spans of `footage`.
40
44
  * `[[], []]` is an empty Sequence. Both numeric arrays and typed views are accepted.
41
45
  */
@@ -155,6 +159,11 @@ export declare class Projection<T> {
155
159
  /**
156
160
  * Sequences state into a compact serializable format.
157
161
  *
162
+ * @remarks
163
+ * Register active Actors before removal. Equal complete Session frontiers
164
+ * permit masks and deleted Footage to be omitted from the retained checkpoint.
165
+ * Compaction may translate retained anchors without rewriting this instance.
166
+ *
158
167
  * @returns A Sequence with acknowledged removals compacted in the exported state.
159
168
  * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
160
169
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/errors/class.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;;KAUxB,iBAAiB;;;;;;KAOjB,UAAU,KAAK;;AAGvB,OAAO;;AAEP,UAAU,cAAc;;;;;;KAShB,kBAAkB;;KAGlB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;;;;KAYtD,SAAS,KAAK;;AAGtB,OAAO;;AAEP,SAAS,cAAc;;KAKf,OAAO,KAAK;;AAGpB;;AAEA;;AAEA,SAAS,cAAc;;KAKf,OAAO,KAAK,cAAc,OAAO;;KAEjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;KCtEzD;;qBAIC,uBAAuB;;WAEzB,MAAM;;;;;;;;EAUb,YAAA,MAAM,oBACN,kBACA,UAAU;;;;;qBCdD,WAAW;WAYJ;;UAVV;;;;;;;;EAUU,YAAA,iBAChB;;;;;;;;;EAaF,MAAM,kBAAkB,OAAO;;;;;;;;;EAY/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;;;;;;;EAU7C;;;;;;;;;EAYA,MAAM,oBAAoB,OAAO;;;;;;;;;EAYjC,OAAO,kBAAkB,mBAAmB,OAAO;;;;;;;;;;EAanD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;;;;;;;;;;;EAoB1E,OAAO;;;;;;;EAUP,YAAY,SAAS;;;;;;;;EAWrB,MAAM,aAAa;;;;;;;;;EAYnB,OAAO,kBAAkB,mBAAmB,MAAM;;EAKlD"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/errors/class.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;;KAUxB,iBAAiB;;;;;;KAOjB,UAAU,KAAK;;AAGvB,OAAO;;AAEP,UAAU,cAAc;;;;;;;;KAWhB,kBAAkB;;KAGlB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;;;;;;KActD,SAAS,KAAK;;AAGtB,OAAO;;AAEP,SAAS,cAAc;;KAKf,OAAO,KAAK;;AAGpB;;AAEA;;AAEA,SAAS,cAAc;;KAKf,OAAO,KAAK,cAAc,OAAO;;KAEjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;KC1EzD;;qBAIC,uBAAuB;;WAEzB,MAAM;;;;;;;;EAUb,YAAA,MAAM,oBACN,kBACA,UAAU;;;;;qBCdD,WAAW;WAYJ;;UAVV;;;;;;;;EAUU,YAAA,iBAChB;;;;;;;;;EAaF,MAAM,kBAAkB,OAAO;;;;;;;;;EAY/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;;;;;;;EAU7C;;;;;;;;;EAYA,MAAM,oBAAoB,OAAO;;;;;;;;;EAYjC,OAAO,kBAAkB,mBAAmB,OAAO;;;;;;;;;;EAanD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;;;;;;;;;;;EAoB1E,OAAO;;;;;;;;;;;;EAeP,YAAY,SAAS;;;;;;;;EAWrB,MAAM,aAAa;;;;;;;;;EAYnB,OAAO,kBAAkB,mBAAmB,MAAM;;EAKlD"}
package/dist/index.d.ts CHANGED
@@ -24,10 +24,12 @@ footage?: ReadonlyArray<T | undefined>]>;
24
24
  /**
25
25
  * Describes one Actor's acknowledgement frontier.
26
26
  * `[actorID, sessionID, sessionEnd, ...]` contains removal Session/frontier pairs.
27
- * The application is responsible for acknowledging complete received Session prefixes.
27
+ * Actor-only tuples establish membership before removals, including offline Actors.
28
+ * Compaction requires equal complete Session frontiers from every active Actor.
29
+ * The application must deliver pending history before claiming that frontier.
28
30
  */
29
31
  type Acknowledgement = U32List;
30
- /** Ordered replication batch; delivery may be duplicated or causally reordered. */
32
+ /** Replication batch within retained history; delivery may be duplicated or causally reordered. */
31
33
  type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
32
34
  /**
33
35
  * Retained state required to hydrate the same visible Projection.
@@ -35,7 +37,9 @@ type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
35
37
  * Small snapshots use six-word insertion records after length-prefixed ACKs;
36
38
  * `words[0]` locates those records. Large snapshots begin with
37
39
  * `[0, frontiersEnd, insertionCount]` and omit predictable coordinate fields.
38
- * Both layouts retain complete coordinates and acknowledgements.
40
+ * Both layouts encode the retained coordinates and acknowledgements.
41
+ * Eligible masks, deleted Footage and compacted Session claims are omitted;
42
+ * Actor membership remains. Compaction may translate retained coordinates.
39
43
  * Positive insertion diffs consume successive spans of `footage`.
40
44
  * `[[], []]` is an empty Sequence. Both numeric arrays and typed views are accepted.
41
45
  */
@@ -155,6 +159,11 @@ export declare class Projection<T> {
155
159
  /**
156
160
  * Sequences state into a compact serializable format.
157
161
  *
162
+ * @remarks
163
+ * Register active Actors before removal. Equal complete Session frontiers
164
+ * permit masks and deleted Footage to be omitted from the retained checkpoint.
165
+ * Compaction may translate retained anchors without rewriting this instance.
166
+ *
158
167
  * @returns A Sequence with acknowledged removals compacted in the exported state.
159
168
  * @throws {@link SequencerError} if destroyed or the native runtime reports an operation failure.
160
169
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/errors/class.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;;KAUxB,iBAAiB;;;;;;KAOjB,UAAU,KAAK;;AAGvB,OAAO;;AAEP,UAAU,cAAc;;;;;;KAShB,kBAAkB;;KAGlB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;;;;KAYtD,SAAS,KAAK;;AAGtB,OAAO;;AAEP,SAAS,cAAc;;KAKf,OAAO,KAAK;;AAGpB;;AAEA;;AAEA,SAAS,cAAc;;KAKf,OAAO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