Improve network usage for small text changes #166

Merged
schmelczer merged 9 commits from asch/compact-reconcile into main 2025-11-16 22:10:22 +00:00
Showing only changes of commit fc05bb5145 - Show all commits

View file

@ -112,7 +112,7 @@ export class SyncService {
parentVersionId: VaultUpdateId;
documentId: DocumentId;
relativePath: RelativePath;
content: (number | string | bigint)[];
content: (number | string)[];
}): Promise<DocumentUpdateResponse> {
return this.withRetries(async () => {
this.logger.debug(
@ -122,12 +122,7 @@ export class SyncService {
const request: UpdateTextDocumentVersion = {
parentVersionId,
relativePath,
content: content.map((c) => {
if (typeof c === "bigint") {
return Number(c);
}
return c;
})
content
};
const response = await this.client(