@fluid-experimental/tree 2.70.0-361092 → 2.70.0-361788
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/api-report/experimental-tree.alpha.api.md +1 -1
- package/dist/SharedTree.d.ts +10 -9
- package/dist/SharedTree.d.ts.map +1 -1
- package/dist/SharedTree.js +21 -15
- package/dist/SharedTree.js.map +1 -1
- package/dist/migration-shim/migrationShim.d.ts +1 -1
- package/dist/migration-shim/migrationShim.js +1 -1
- package/dist/migration-shim/migrationShim.js.map +1 -1
- package/lib/SharedTree.d.ts +10 -9
- package/lib/SharedTree.d.ts.map +1 -1
- package/lib/SharedTree.js +21 -15
- package/lib/SharedTree.js.map +1 -1
- package/lib/migration-shim/migrationShim.d.ts +1 -1
- package/lib/migration-shim/migrationShim.js +1 -1
- package/lib/migration-shim/migrationShim.js.map +1 -1
- package/package.json +23 -23
- package/src/SharedTree.ts +31 -22
- package/src/migration-shim/migrationShim.ts +1 -1
|
@@ -668,7 +668,7 @@ export class SharedTree extends SharedObject<ISharedTreeEvents> implements NodeI
|
|
|
668
668
|
get logViewer(): LogViewer;
|
|
669
669
|
mergeEditsFrom(other: SharedTree, edits: Iterable<Edit<InternalizedChange>>, stableIdRemapper?: (id: StableNodeId) => StableNodeId): EditId[];
|
|
670
670
|
protected onDisconnect(): void;
|
|
671
|
-
protected
|
|
671
|
+
protected processMessagesCore(messagesCollection: IRuntimeMessageCollection): void;
|
|
672
672
|
protected registerCore(): void;
|
|
673
673
|
// (undocumented)
|
|
674
674
|
protected reSubmitCore(op: unknown, localOpMetadata?: StashedLocalOpMetadata): void;
|
package/dist/SharedTree.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ITelemetryBaseProperties } from '@fluidframework/core-interfaces';
|
|
6
6
|
import { IChannelAttributes, IChannelFactory, IFluidDataStoreRuntime, IChannelServices, IChannelStorageService } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
import { ISummaryTreeWithStats, ITelemetryContext } from '@fluidframework/runtime-definitions/internal';
|
|
7
|
+
import { ISummaryTreeWithStats, ITelemetryContext, type IRuntimeMessageCollection } from '@fluidframework/runtime-definitions/internal';
|
|
8
8
|
import { IFluidSerializer, ISharedObjectEvents, SharedObject } from '@fluidframework/shared-object-base/internal';
|
|
9
9
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils/internal';
|
|
10
10
|
import { Change } from './ChangeTypes.js';
|
|
@@ -109,8 +109,8 @@ export declare class SharedTreeFactory implements IChannelFactory {
|
|
|
109
109
|
private readonly args;
|
|
110
110
|
/**
|
|
111
111
|
* Get a factory for SharedTree to register with the data store.
|
|
112
|
-
* @param writeFormat - Determines the format version the SharedTree will write ops and summaries in. See
|
|
113
|
-
* documentation
|
|
112
|
+
* @param writeFormat - Determines the format version the SharedTree will write ops and summaries in. See {@link https://github.com/microsoft/FluidFramework/blob/main/experimental/dds/tree/docs/Write-Format.md | the write format
|
|
113
|
+
* documentation} for more information.
|
|
114
114
|
* @param options - Configuration options for this tree
|
|
115
115
|
* @returns A factory that creates `SharedTree`s and loads them from storage.
|
|
116
116
|
*/
|
|
@@ -215,7 +215,7 @@ export interface StashedLocalOpMetadata {
|
|
|
215
215
|
transformedEdit?: Edit<ChangeInternal>;
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* A
|
|
218
|
+
* A {@link https://github.com/microsoft/FluidFramework/blob/main/experimental/dds/tree/README.md | distributed tree}.
|
|
219
219
|
* @alpha
|
|
220
220
|
*/
|
|
221
221
|
export declare class SharedTree extends SharedObject<ISharedTreeEvents> implements NodeIdContext {
|
|
@@ -231,7 +231,7 @@ export declare class SharedTree extends SharedObject<ISharedTreeEvents> implemen
|
|
|
231
231
|
* that was initialized with a newer write version connects to the session. Care must be taken when changing this value,
|
|
232
232
|
* as a staged rollout must of occurred such that all collaborating clients must have the code to read at least the version
|
|
233
233
|
* written.
|
|
234
|
-
* See
|
|
234
|
+
* See {@link https://github.com/microsoft/FluidFramework/blob/main/experimental/dds/tree/docs/Write-Format.md | the write format documentation} for more information.
|
|
235
235
|
* @param options - Configuration options for this tree
|
|
236
236
|
* @returns A factory that creates `SharedTree`s and loads them from storage.
|
|
237
237
|
*/
|
|
@@ -287,8 +287,8 @@ export declare class SharedTree extends SharedObject<ISharedTreeEvents> implemen
|
|
|
287
287
|
* Create a new SharedTree.
|
|
288
288
|
* @param runtime - The runtime the SharedTree will be associated with
|
|
289
289
|
* @param id - Unique ID for the SharedTree
|
|
290
|
-
* @param writeFormat - Determines the format version the SharedTree will write ops and summaries in. See
|
|
291
|
-
* documentation
|
|
290
|
+
* @param writeFormat - Determines the format version the SharedTree will write ops and summaries in. See {@link https://github.com/microsoft/FluidFramework/blob/main/experimental/dds/tree/docs/Write-Format.md | the write format
|
|
291
|
+
* documentation} for more information.
|
|
292
292
|
* @param options - Configuration options for this tree
|
|
293
293
|
*/
|
|
294
294
|
constructor(runtime: IFluidDataStoreRuntime, id: string, ...args: SharedTreeArgs<WriteFormat.v0_0_2>);
|
|
@@ -422,9 +422,10 @@ export declare class SharedTree extends SharedObject<ISharedTreeEvents> implemen
|
|
|
422
422
|
*/
|
|
423
423
|
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
424
424
|
/**
|
|
425
|
-
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.
|
|
425
|
+
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.processMessagesCore}
|
|
426
426
|
*/
|
|
427
|
-
protected
|
|
427
|
+
protected processMessagesCore(messagesCollection: IRuntimeMessageCollection): void;
|
|
428
|
+
private processMessage;
|
|
428
429
|
/**
|
|
429
430
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.registerCore}
|
|
430
431
|
*/
|
package/dist/SharedTree.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedTree.d.ts","sourceRoot":"","sources":["../src/SharedTree.ts"],"names":[],"mapp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AE,eAAe,CAAC,EAAE,sBAAsB,GAAG,IAAI;IAoBnF,OAAO,CAAC,iBAAiB;IAKzB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;CAuB7B"}
|
package/dist/SharedTree.js
CHANGED
|
@@ -38,8 +38,8 @@ const publicContracts_js_1 = require("./publicContracts.js");
|
|
|
38
38
|
class SharedTreeFactory {
|
|
39
39
|
/**
|
|
40
40
|
* Get a factory for SharedTree to register with the data store.
|
|
41
|
-
* @param writeFormat - Determines the format version the SharedTree will write ops and summaries in. See
|
|
42
|
-
* documentation
|
|
41
|
+
* @param writeFormat - Determines the format version the SharedTree will write ops and summaries in. See {@link https://github.com/microsoft/FluidFramework/blob/main/experimental/dds/tree/docs/Write-Format.md | the write format
|
|
42
|
+
* documentation} for more information.
|
|
43
43
|
* @param options - Configuration options for this tree
|
|
44
44
|
* @returns A factory that creates `SharedTree`s and loads them from storage.
|
|
45
45
|
*/
|
|
@@ -111,7 +111,7 @@ const sharedTreeTelemetryProperties = {
|
|
|
111
111
|
/** The SessionId of the temporary IdCompressor that records stashed ops */
|
|
112
112
|
const stashedSessionId = '8477b8d5-cf6c-4673-8345-8f076a8f9bc6';
|
|
113
113
|
/**
|
|
114
|
-
* A
|
|
114
|
+
* A {@link https://github.com/microsoft/FluidFramework/blob/main/experimental/dds/tree/README.md | distributed tree}.
|
|
115
115
|
* @alpha
|
|
116
116
|
*/
|
|
117
117
|
class SharedTree extends internal_2.SharedObject {
|
|
@@ -550,12 +550,18 @@ class SharedTree extends internal_2.SharedObject {
|
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
/**
|
|
553
|
-
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.
|
|
553
|
+
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.processMessagesCore}
|
|
554
554
|
*/
|
|
555
|
-
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
|
|
555
|
+
processMessagesCore(messagesCollection) {
|
|
556
|
+
const { envelope, messagesContent } = messagesCollection;
|
|
557
|
+
for (const messageContent of messagesContent) {
|
|
558
|
+
this.processMessage(envelope, messageContent.contents);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
processMessage(messageEnvelope, contents) {
|
|
562
|
+
const typedContents = contents;
|
|
563
|
+
this.cachingLogViewer.setMinimumSequenceNumber(messageEnvelope.minimumSequenceNumber);
|
|
564
|
+
const op = typedContents;
|
|
559
565
|
if (op.version === undefined) {
|
|
560
566
|
// Back-compat: some legacy documents may contain trailing ops with an unstamped version; normalize them.
|
|
561
567
|
op.version = index_js_2.WriteFormat.v0_0_2;
|
|
@@ -577,7 +583,7 @@ class SharedTree extends internal_2.SharedObject {
|
|
|
577
583
|
if (op.version === index_js_2.WriteFormat.v0_1_1) {
|
|
578
584
|
this.internStringsFromEdit(edit);
|
|
579
585
|
}
|
|
580
|
-
this.processSequencedEdit(edit,
|
|
586
|
+
this.processSequencedEdit(edit, messageEnvelope);
|
|
581
587
|
}
|
|
582
588
|
}
|
|
583
589
|
else if (type === index_js_2.SharedTreeOpType.Update) {
|
|
@@ -619,7 +625,7 @@ class SharedTree extends internal_2.SharedObject {
|
|
|
619
625
|
(0, Common_js_1.fail)('Unknown op version');
|
|
620
626
|
}
|
|
621
627
|
}
|
|
622
|
-
processSequencedEdit(edit,
|
|
628
|
+
processSequencedEdit(edit, messageEnvelope) {
|
|
623
629
|
const { id: editId } = edit;
|
|
624
630
|
const wasLocalEdit = this.editLog.isLocalEdit(editId);
|
|
625
631
|
// If the id of the supplied edit matches a non-local edit already present in the log, this would normally be indicative of an error.
|
|
@@ -632,10 +638,10 @@ class SharedTree extends internal_2.SharedObject {
|
|
|
632
638
|
return;
|
|
633
639
|
}
|
|
634
640
|
if (wasLocalEdit) {
|
|
635
|
-
this.editLog.addSequencedEdit(edit,
|
|
641
|
+
this.editLog.addSequencedEdit(edit, messageEnvelope);
|
|
636
642
|
}
|
|
637
643
|
else {
|
|
638
|
-
this.applyEditLocally(edit,
|
|
644
|
+
this.applyEditLocally(edit, messageEnvelope);
|
|
639
645
|
}
|
|
640
646
|
}
|
|
641
647
|
/**
|
|
@@ -821,10 +827,10 @@ class SharedTree extends internal_2.SharedObject {
|
|
|
821
827
|
(0, Common_js_1.fail)('unexpected change type');
|
|
822
828
|
}
|
|
823
829
|
}
|
|
824
|
-
applyEditLocally(edit,
|
|
825
|
-
const isSequenced =
|
|
830
|
+
applyEditLocally(edit, messageEnvelope) {
|
|
831
|
+
const isSequenced = messageEnvelope !== undefined;
|
|
826
832
|
if (isSequenced) {
|
|
827
|
-
this.editLog.addSequencedEdit(edit,
|
|
833
|
+
this.editLog.addSequencedEdit(edit, messageEnvelope);
|
|
828
834
|
}
|
|
829
835
|
else {
|
|
830
836
|
this.editLog.addLocalEdit(edit);
|