@contrail/documents 2.5.0-alpha.fe0fdf8 → 2.5.1-alpha.0564dd2

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/CHANGELOG.md CHANGED
@@ -5,14 +5,30 @@ All notable changes to `@contrail/documents` are documented here.
5
5
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
  Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [2.5.0] - 2026-10-07
8
+ ## [2.5.1] - 2026-10-30
9
+
10
+ ### Added
11
+
12
+ - A conformance test over the 80 dynamic texts on a real board, run through the evaluator and
13
+ compared against the values the deployed documents service stored. The library and the server
14
+ are held to one answer.
15
+
16
+ ### Changed
17
+
18
+ - `DYNAMIC_TEXT_SPEC.md` now says where the property level comes from: the text's own
19
+ `propertyBindingsMetaData`, falling back to the property's own level only where that level is
20
+ `family` or `option`.
21
+
22
+ ## [2.5.0] - 2026-10-10
9
23
 
10
24
  Also shipped on the 1.x line as 1.22.0.
11
25
 
12
26
  ### Added
13
27
 
14
- - `DocumentChange.keepSortIndex`: set on an add to keep the sortIndex its element carries when no
15
- element holds it, instead of appending it on top.
28
+ - `clientCreatedOn` on `WriteTransactionRequest`, `DocumentTransactionPayload`, and
29
+ `DocumentTransactionMessage`: when the writing client created the transaction (ISO 8601, client
30
+ clock). The server stores it with the transaction and passes it through in the broadcast, so a
31
+ receiver can measure how long the edit took to reach it.
16
32
 
17
33
  ## [2.4.0] - 2026-09-26
18
34
 
@@ -19,5 +19,4 @@ export interface DocumentChange {
19
19
  targetSortIndex?: number;
20
20
  skipUndo?: boolean;
21
21
  gestureId?: string;
22
- keepSortIndex?: boolean;
23
22
  }
@@ -13,6 +13,7 @@ export type DocumentOperation = {
13
13
  export type DocumentElementPatch = Partial<Omit<DocumentElement, 'id' | 'documentId'>>;
14
14
  interface WriteTransactionRequestBase {
15
15
  clientTransactionId?: string;
16
+ clientCreatedOn?: string;
16
17
  }
17
18
  export interface InlineWriteTransactionRequest extends WriteTransactionRequestBase {
18
19
  operations: DocumentOperation[];
@@ -53,6 +54,7 @@ interface DocumentTransactionMessageBase {
53
54
  sequenceNumber: number;
54
55
  createdOn: string;
55
56
  clientTransactionId?: string;
57
+ clientCreatedOn?: string;
56
58
  }
57
59
  export type DocumentTransactionMessage = (DocumentTransactionMessageBase & {
58
60
  operations: DocumentOperation[];
@@ -68,6 +70,7 @@ export interface TransactionUploadTarget {
68
70
  }
69
71
  export type DocumentTransactionPayload = {
70
72
  clientTransactionId?: string;
73
+ clientCreatedOn?: string;
71
74
  } & ({
72
75
  operations: DocumentOperation[];
73
76
  operationsS3Key?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "2.5.0-alpha.fe0fdf8",
3
+ "version": "2.5.1-alpha.0564dd2",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",