@fluidframework/merge-tree 2.102.0 → 2.110.0
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 +8 -0
- package/dist/client.d.ts +3 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/snapshotChunks.d.ts +4 -4
- package/dist/snapshotChunks.d.ts.map +1 -1
- package/dist/snapshotChunks.js.map +1 -1
- package/dist/snapshotLoader.d.ts +2 -2
- package/dist/snapshotLoader.d.ts.map +1 -1
- package/dist/snapshotLoader.js.map +1 -1
- package/dist/snapshotV1.d.ts +4 -4
- package/dist/snapshotV1.d.ts.map +1 -1
- package/dist/snapshotV1.js.map +1 -1
- package/dist/snapshotlegacy.d.ts +2 -2
- package/dist/snapshotlegacy.d.ts.map +1 -1
- package/dist/snapshotlegacy.js.map +1 -1
- package/dist/test/testUtils.js +3 -1
- package/dist/test/testUtils.js.map +1 -1
- package/lib/client.d.ts +3 -3
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js.map +1 -1
- package/lib/snapshotChunks.d.ts +4 -4
- package/lib/snapshotChunks.d.ts.map +1 -1
- package/lib/snapshotChunks.js.map +1 -1
- package/lib/snapshotLoader.d.ts +2 -2
- package/lib/snapshotLoader.d.ts.map +1 -1
- package/lib/snapshotLoader.js +1 -1
- package/lib/snapshotLoader.js.map +1 -1
- package/lib/snapshotV1.d.ts +4 -4
- package/lib/snapshotV1.d.ts.map +1 -1
- package/lib/snapshotV1.js.map +1 -1
- package/lib/snapshotlegacy.d.ts +2 -2
- package/lib/snapshotlegacy.d.ts.map +1 -1
- package/lib/snapshotlegacy.js.map +1 -1
- package/lib/test/testUtils.js +3 -1
- package/lib/test/testUtils.js.map +1 -1
- package/package.json +17 -17
- package/src/client.ts +2 -2
- package/src/snapshotChunks.ts +4 -4
- package/src/snapshotLoader.ts +4 -4
- package/src/snapshotV1.ts +5 -5
- package/src/snapshotlegacy.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/merge-tree",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.110.0",
|
|
4
4
|
"description": "Merge tree",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -81,30 +81,30 @@
|
|
|
81
81
|
"temp-directory": "nyc/.nyc_output"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@fluid-internal/client-utils": "~2.
|
|
85
|
-
"@fluidframework/container-definitions": "~2.
|
|
86
|
-
"@fluidframework/core-interfaces": "~2.
|
|
87
|
-
"@fluidframework/core-utils": "~2.
|
|
88
|
-
"@fluidframework/datastore-definitions": "~2.
|
|
89
|
-
"@fluidframework/driver-definitions": "~2.
|
|
90
|
-
"@fluidframework/runtime-definitions": "~2.
|
|
91
|
-
"@fluidframework/runtime-utils": "~2.
|
|
92
|
-
"@fluidframework/shared-object-base": "~2.
|
|
93
|
-
"@fluidframework/telemetry-utils": "~2.
|
|
84
|
+
"@fluid-internal/client-utils": "~2.110.0",
|
|
85
|
+
"@fluidframework/container-definitions": "~2.110.0",
|
|
86
|
+
"@fluidframework/core-interfaces": "~2.110.0",
|
|
87
|
+
"@fluidframework/core-utils": "~2.110.0",
|
|
88
|
+
"@fluidframework/datastore-definitions": "~2.110.0",
|
|
89
|
+
"@fluidframework/driver-definitions": "~2.110.0",
|
|
90
|
+
"@fluidframework/runtime-definitions": "~2.110.0",
|
|
91
|
+
"@fluidframework/runtime-utils": "~2.110.0",
|
|
92
|
+
"@fluidframework/shared-object-base": "~2.110.0",
|
|
93
|
+
"@fluidframework/telemetry-utils": "~2.110.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
97
97
|
"@biomejs/biome": "~2.4.5",
|
|
98
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
99
|
-
"@fluid-private/stochastic-test-utils": "~2.
|
|
100
|
-
"@fluid-private/test-pairwise-generator": "~2.
|
|
98
|
+
"@fluid-internal/mocha-test-setup": "~2.110.0",
|
|
99
|
+
"@fluid-private/stochastic-test-utils": "~2.110.0",
|
|
100
|
+
"@fluid-private/test-pairwise-generator": "~2.110.0",
|
|
101
101
|
"@fluid-tools/benchmark": "^0.59.0",
|
|
102
102
|
"@fluid-tools/build-cli": "^0.65.0",
|
|
103
103
|
"@fluidframework/build-common": "^2.0.3",
|
|
104
104
|
"@fluidframework/build-tools": "^0.65.0",
|
|
105
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
106
|
-
"@fluidframework/merge-tree-previous": "npm:@fluidframework/merge-tree@2.
|
|
107
|
-
"@fluidframework/test-runtime-utils": "~2.
|
|
105
|
+
"@fluidframework/eslint-config-fluid": "^13.0.0",
|
|
106
|
+
"@fluidframework/merge-tree-previous": "npm:@fluidframework/merge-tree@2.103.0",
|
|
107
|
+
"@fluidframework/test-runtime-utils": "~2.110.0",
|
|
108
108
|
"@microsoft/api-extractor": "7.58.1",
|
|
109
109
|
"@types/diff": "^3.5.1",
|
|
110
110
|
"@types/mocha": "^10.0.10",
|
package/src/client.ts
CHANGED
|
@@ -25,8 +25,8 @@ import type { ISummaryTreeWithStats } from "@fluidframework/runtime-definitions/
|
|
|
25
25
|
import { toDeltaManagerInternal } from "@fluidframework/runtime-utils/internal";
|
|
26
26
|
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
27
27
|
import {
|
|
28
|
-
type ITelemetryLoggerExt,
|
|
29
28
|
LoggingError,
|
|
29
|
+
type TelemetryLoggerExt,
|
|
30
30
|
UsageError,
|
|
31
31
|
} from "@fluidframework/telemetry-utils/internal";
|
|
32
32
|
|
|
@@ -193,7 +193,7 @@ export class Client extends TypedEventEmitter<IClientEvents> {
|
|
|
193
193
|
*/
|
|
194
194
|
constructor(
|
|
195
195
|
public readonly specToSegment: (spec: IJSONSegment) => ISegment,
|
|
196
|
-
public readonly logger:
|
|
196
|
+
public readonly logger: TelemetryLoggerExt,
|
|
197
197
|
options?: IMergeTreeOptionsInternal & PropertySet,
|
|
198
198
|
private readonly getMinInFlightRefSeq: () => number | undefined = (): undefined =>
|
|
199
199
|
undefined,
|
package/src/snapshotChunks.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { IFluidHandle } from "@fluidframework/core-interfaces";
|
|
9
9
|
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
10
|
-
import type {
|
|
10
|
+
import type { TelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
11
11
|
|
|
12
12
|
import type { SerializedAttributionCollection } from "./attributionCollection.js";
|
|
13
13
|
import type { IJSONSegment } from "./ops.js";
|
|
@@ -85,7 +85,7 @@ export function hasMergeInfo(
|
|
|
85
85
|
export function serializeAsMinSupportedVersion(
|
|
86
86
|
path: string,
|
|
87
87
|
chunk: VersionedMergeTreeChunk,
|
|
88
|
-
logger:
|
|
88
|
+
logger: TelemetryLoggerExt,
|
|
89
89
|
options: PropertySet | undefined,
|
|
90
90
|
serializer: IFluidSerializer,
|
|
91
91
|
bind: IFluidHandle,
|
|
@@ -141,7 +141,7 @@ export function serializeAsMinSupportedVersion(
|
|
|
141
141
|
export function serializeAsMaxSupportedVersion(
|
|
142
142
|
path: string,
|
|
143
143
|
chunk: VersionedMergeTreeChunk,
|
|
144
|
-
logger:
|
|
144
|
+
logger: TelemetryLoggerExt,
|
|
145
145
|
options: PropertySet | undefined,
|
|
146
146
|
serializer: IFluidSerializer,
|
|
147
147
|
bind: IFluidHandle,
|
|
@@ -153,7 +153,7 @@ export function serializeAsMaxSupportedVersion(
|
|
|
153
153
|
export function toLatestVersion(
|
|
154
154
|
path: string,
|
|
155
155
|
chunk: VersionedMergeTreeChunk,
|
|
156
|
-
logger:
|
|
156
|
+
logger: TelemetryLoggerExt,
|
|
157
157
|
options: PropertySet | undefined,
|
|
158
158
|
): MergeTreeChunkV1 {
|
|
159
159
|
switch (chunk.version) {
|
package/src/snapshotLoader.ts
CHANGED
|
@@ -15,9 +15,9 @@ import type {
|
|
|
15
15
|
import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal";
|
|
16
16
|
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
17
17
|
import {
|
|
18
|
-
type ITelemetryLoggerExt,
|
|
19
|
-
UsageError,
|
|
20
18
|
createChildLogger,
|
|
19
|
+
type TelemetryLoggerExt,
|
|
20
|
+
UsageError,
|
|
21
21
|
} from "@fluidframework/telemetry-utils/internal";
|
|
22
22
|
|
|
23
23
|
import type { Client } from "./client.js";
|
|
@@ -43,14 +43,14 @@ import type { RemoveOperationStamp } from "./stamps.js";
|
|
|
43
43
|
import * as opstampUtils from "./stamps.js";
|
|
44
44
|
|
|
45
45
|
export class SnapshotLoader {
|
|
46
|
-
private readonly logger:
|
|
46
|
+
private readonly logger: TelemetryLoggerExt;
|
|
47
47
|
|
|
48
48
|
constructor(
|
|
49
49
|
private readonly runtime: IFluidDataStoreRuntime,
|
|
50
50
|
|
|
51
51
|
private readonly client: Client,
|
|
52
52
|
private readonly mergeTree: MergeTree,
|
|
53
|
-
logger:
|
|
53
|
+
logger: TelemetryLoggerExt,
|
|
54
54
|
private readonly serializer: IFluidSerializer,
|
|
55
55
|
) {
|
|
56
56
|
this.logger = createChildLogger({ logger, namespace: "SnapshotLoader" });
|
package/src/snapshotV1.ts
CHANGED
|
@@ -14,8 +14,8 @@ import type {
|
|
|
14
14
|
import { SummaryTreeBuilder } from "@fluidframework/runtime-utils/internal";
|
|
15
15
|
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
16
16
|
import {
|
|
17
|
-
type ITelemetryLoggerExt,
|
|
18
17
|
createChildLogger,
|
|
18
|
+
type TelemetryLoggerExt,
|
|
19
19
|
} from "@fluidframework/telemetry-utils/internal";
|
|
20
20
|
|
|
21
21
|
import type { IAttributionCollection } from "./attributionCollection.js";
|
|
@@ -52,12 +52,12 @@ export class SnapshotV1 {
|
|
|
52
52
|
private readonly segments: JsonSegmentSpecs[];
|
|
53
53
|
private readonly segmentLengths: number[];
|
|
54
54
|
private readonly attributionCollections: IAttributionCollection<AttributionKey>[];
|
|
55
|
-
private readonly logger:
|
|
55
|
+
private readonly logger: TelemetryLoggerExt;
|
|
56
56
|
private readonly chunkSize: number;
|
|
57
57
|
|
|
58
58
|
constructor(
|
|
59
59
|
public mergeTree: MergeTree,
|
|
60
|
-
logger:
|
|
60
|
+
logger: TelemetryLoggerExt,
|
|
61
61
|
private readonly getLongClientId: (id: number) => string,
|
|
62
62
|
public filename?: string,
|
|
63
63
|
public onCompletion?: () => void,
|
|
@@ -367,7 +367,7 @@ export class SnapshotV1 {
|
|
|
367
367
|
public static async loadChunk(
|
|
368
368
|
storage: IChannelStorageService,
|
|
369
369
|
path: string,
|
|
370
|
-
logger:
|
|
370
|
+
logger: TelemetryLoggerExt,
|
|
371
371
|
options: PropertySet | undefined,
|
|
372
372
|
serializer?: IFluidSerializer,
|
|
373
373
|
): Promise<MergeTreeChunkV1> {
|
|
@@ -379,7 +379,7 @@ export class SnapshotV1 {
|
|
|
379
379
|
public static processChunk(
|
|
380
380
|
path: string,
|
|
381
381
|
chunk: string,
|
|
382
|
-
logger:
|
|
382
|
+
logger: TelemetryLoggerExt,
|
|
383
383
|
options: PropertySet | undefined,
|
|
384
384
|
serializer?: IFluidSerializer,
|
|
385
385
|
): MergeTreeChunkV1 {
|
package/src/snapshotlegacy.ts
CHANGED
|
@@ -12,8 +12,8 @@ import type { ISummaryTreeWithStats } from "@fluidframework/runtime-definitions/
|
|
|
12
12
|
import { SummaryTreeBuilder } from "@fluidframework/runtime-utils/internal";
|
|
13
13
|
import type { IFluidSerializer } from "@fluidframework/shared-object-base/internal";
|
|
14
14
|
import {
|
|
15
|
-
type ITelemetryLoggerExt,
|
|
16
15
|
createChildLogger,
|
|
16
|
+
type TelemetryLoggerExt,
|
|
17
17
|
} from "@fluidframework/telemetry-utils/internal";
|
|
18
18
|
|
|
19
19
|
import { NonCollabClient } from "./constants.js";
|
|
@@ -57,12 +57,12 @@ export class SnapshotLegacy {
|
|
|
57
57
|
private header: SnapshotHeader | undefined;
|
|
58
58
|
private seq: number | undefined;
|
|
59
59
|
private segments: ISegmentPrivate[] | undefined;
|
|
60
|
-
private readonly logger:
|
|
60
|
+
private readonly logger: TelemetryLoggerExt;
|
|
61
61
|
private readonly chunkSize: number;
|
|
62
62
|
|
|
63
63
|
constructor(
|
|
64
64
|
public mergeTree: MergeTree,
|
|
65
|
-
logger:
|
|
65
|
+
logger: TelemetryLoggerExt,
|
|
66
66
|
public filename?: string,
|
|
67
67
|
public onCompletion?: () => void,
|
|
68
68
|
) {
|