@contrail/documents 1.13.0 → 1.14.0-alpha.7d6b4b6
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,6 +5,12 @@ 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
|
+
## [1.14.0] - 2026-07-29
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- `DocumentTransaction` is now a union of inline `operations` or an `operationsDownloadUrl`, matching the shape `DocumentTransactionMessage` already uses for WebSocket broadcasts. A transaction whose operations overflowed to S3 is read back as a presigned download URL rather than having its operations inlined, so a page of transactions cannot exceed the response size limit. Readers that assumed `operations` was always present must handle both variants.
|
|
13
|
+
|
|
8
14
|
## [1.13.0] - 2026-07-27
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -29,11 +29,17 @@ export interface WriteTransactionResponse {
|
|
|
29
29
|
createdById: string;
|
|
30
30
|
clientTransactionId?: string;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
interface DocumentTransactionBase {
|
|
33
33
|
sequenceNumber: number;
|
|
34
34
|
clientTransactionId?: string;
|
|
35
|
-
operations: DocumentOperation[];
|
|
36
35
|
}
|
|
36
|
+
export type DocumentTransaction = (DocumentTransactionBase & {
|
|
37
|
+
operations: DocumentOperation[];
|
|
38
|
+
operationsDownloadUrl?: never;
|
|
39
|
+
}) | (DocumentTransactionBase & {
|
|
40
|
+
operationsDownloadUrl: string;
|
|
41
|
+
operations?: never;
|
|
42
|
+
});
|
|
37
43
|
export interface GetDocumentTransactionsResponse {
|
|
38
44
|
transactions: DocumentTransaction[];
|
|
39
45
|
hasMore: boolean;
|