@fluid-experimental/tree 2.13.0 → 2.21.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/api-report/experimental-tree.alpha.api.md +6 -0
- package/dist/SharedTree.d.ts.map +1 -1
- package/dist/SharedTree.js +3 -6
- package/dist/SharedTree.js.map +1 -1
- package/dist/SummaryBackCompatibility.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -1
- package/dist/publicContracts.d.ts +18 -0
- package/dist/publicContracts.d.ts.map +1 -0
- package/dist/publicContracts.js +24 -0
- package/dist/publicContracts.js.map +1 -0
- package/lib/SharedTree.d.ts.map +1 -1
- package/lib/SharedTree.js +3 -6
- package/lib/SharedTree.js.map +1 -1
- package/lib/SummaryBackCompatibility.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/publicContracts.d.ts +18 -0
- package/lib/publicContracts.d.ts.map +1 -0
- package/lib/publicContracts.js +21 -0
- package/lib/publicContracts.js.map +1 -0
- package/package.json +24 -24
- package/src/SharedTree.ts +3 -6
- package/src/SummaryBackCompatibility.ts +1 -1
- package/src/index.ts +1 -0
- package/src/publicContracts.ts +24 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publicContracts.js","sourceRoot":"","sources":["../src/publicContracts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAElD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAuB;IACvD,IAAI,EAAE,qBAAqB;IAC3B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;CACrB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IChannelAttributes } from '@fluidframework/datastore-definitions/internal';\n\n/**\n * {@inheritDoc @fluidframework/shared-object-base#ISharedObjectFactory.\"type\"}\n * @alpha\n * @legacy\n */\nexport const SharedTreeFactoryType = 'SharedTree';\n\n/**\n * {@inheritDoc @fluidframework/shared-object-base#ISharedObjectFactory.attributes}\n * @alpha\n * @legacy\n */\nexport const SharedTreeAttributes: IChannelAttributes = {\n\ttype: SharedTreeFactoryType,\n\tsnapshotFormatVersion: '0.1',\n\tpackageVersion: '0.1',\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/tree",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "Distributed tree",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"main": "lib/index.js",
|
|
38
38
|
"types": "lib/index.d.ts",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@fluid-internal/client-utils": "~2.
|
|
41
|
-
"@fluidframework/container-definitions": "~2.
|
|
42
|
-
"@fluidframework/core-interfaces": "~2.
|
|
43
|
-
"@fluidframework/core-utils": "~2.
|
|
44
|
-
"@fluidframework/datastore-definitions": "~2.
|
|
45
|
-
"@fluidframework/driver-definitions": "~2.
|
|
46
|
-
"@fluidframework/id-compressor": "~2.
|
|
47
|
-
"@fluidframework/runtime-definitions": "~2.
|
|
48
|
-
"@fluidframework/runtime-utils": "~2.
|
|
49
|
-
"@fluidframework/shared-object-base": "~2.
|
|
50
|
-
"@fluidframework/telemetry-utils": "~2.
|
|
51
|
-
"@fluidframework/tree": "~2.
|
|
40
|
+
"@fluid-internal/client-utils": "~2.21.0",
|
|
41
|
+
"@fluidframework/container-definitions": "~2.21.0",
|
|
42
|
+
"@fluidframework/core-interfaces": "~2.21.0",
|
|
43
|
+
"@fluidframework/core-utils": "~2.21.0",
|
|
44
|
+
"@fluidframework/datastore-definitions": "~2.21.0",
|
|
45
|
+
"@fluidframework/driver-definitions": "~2.21.0",
|
|
46
|
+
"@fluidframework/id-compressor": "~2.21.0",
|
|
47
|
+
"@fluidframework/runtime-definitions": "~2.21.0",
|
|
48
|
+
"@fluidframework/runtime-utils": "~2.21.0",
|
|
49
|
+
"@fluidframework/shared-object-base": "~2.21.0",
|
|
50
|
+
"@fluidframework/telemetry-utils": "~2.21.0",
|
|
51
|
+
"@fluidframework/tree": "~2.21.0",
|
|
52
52
|
"@tylerbu/sorted-btree-es6": "^1.8.0",
|
|
53
53
|
"buffer": "^6.0.3",
|
|
54
54
|
"denque": "^1.5.1",
|
|
@@ -58,20 +58,20 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
60
60
|
"@biomejs/biome": "~1.9.3",
|
|
61
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
62
|
-
"@fluid-private/stochastic-test-utils": "~2.
|
|
63
|
-
"@fluid-private/test-drivers": "~2.
|
|
61
|
+
"@fluid-internal/mocha-test-setup": "~2.21.0",
|
|
62
|
+
"@fluid-private/stochastic-test-utils": "~2.21.0",
|
|
63
|
+
"@fluid-private/test-drivers": "~2.21.0",
|
|
64
64
|
"@fluid-tools/benchmark": "^0.50.0",
|
|
65
65
|
"@fluidframework/build-common": "^2.0.3",
|
|
66
66
|
"@fluidframework/build-tools": "^0.51.0",
|
|
67
|
-
"@fluidframework/container-definitions": "~2.
|
|
68
|
-
"@fluidframework/container-loader": "~2.
|
|
69
|
-
"@fluidframework/container-runtime": "~2.
|
|
70
|
-
"@fluidframework/eslint-config-fluid": "^5.
|
|
71
|
-
"@fluidframework/runtime-utils": "~2.
|
|
72
|
-
"@fluidframework/test-runtime-utils": "~2.
|
|
73
|
-
"@fluidframework/test-utils": "~2.
|
|
74
|
-
"@fluidframework/undo-redo": "~2.
|
|
67
|
+
"@fluidframework/container-definitions": "~2.21.0",
|
|
68
|
+
"@fluidframework/container-loader": "~2.21.0",
|
|
69
|
+
"@fluidframework/container-runtime": "~2.21.0",
|
|
70
|
+
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
71
|
+
"@fluidframework/runtime-utils": "~2.21.0",
|
|
72
|
+
"@fluidframework/test-runtime-utils": "~2.21.0",
|
|
73
|
+
"@fluidframework/test-utils": "~2.21.0",
|
|
74
|
+
"@fluidframework/undo-redo": "~2.21.0",
|
|
75
75
|
"@microsoft/api-extractor": "7.47.8",
|
|
76
76
|
"@types/chai": "^4.0.0",
|
|
77
77
|
"@types/lru-cache": "^5.1.0",
|
package/src/SharedTree.ts
CHANGED
|
@@ -100,6 +100,7 @@ import {
|
|
|
100
100
|
ghostSessionId,
|
|
101
101
|
reservedIdCount,
|
|
102
102
|
} from './persisted-types/index.js';
|
|
103
|
+
import { SharedTreeAttributes, SharedTreeFactoryType } from './publicContracts.js';
|
|
103
104
|
|
|
104
105
|
/**
|
|
105
106
|
* The write format and associated options used to construct a `SharedTree`
|
|
@@ -200,16 +201,12 @@ export class SharedTreeFactory implements IChannelFactory {
|
|
|
200
201
|
/**
|
|
201
202
|
* {@inheritDoc @fluidframework/shared-object-base#ISharedObjectFactory."type"}
|
|
202
203
|
*/
|
|
203
|
-
public static Type =
|
|
204
|
+
public static Type = SharedTreeFactoryType;
|
|
204
205
|
|
|
205
206
|
/**
|
|
206
207
|
* {@inheritDoc @fluidframework/shared-object-base#ISharedObjectFactory.attributes}
|
|
207
208
|
*/
|
|
208
|
-
public static Attributes: IChannelAttributes =
|
|
209
|
-
type: SharedTreeFactory.Type,
|
|
210
|
-
snapshotFormatVersion: '0.1',
|
|
211
|
-
packageVersion: '0.1',
|
|
212
|
-
};
|
|
209
|
+
public static Attributes: IChannelAttributes = SharedTreeAttributes;
|
|
213
210
|
|
|
214
211
|
private readonly args: SharedTreeArgs;
|
|
215
212
|
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
export function deserialize(jsonSummary: string, serializer: IFluidSerializer): SharedTreeSummaryBase {
|
|
29
29
|
let summary: Partial<SharedTreeSummaryBase>;
|
|
30
30
|
try {
|
|
31
|
-
summary = serializer.parse(jsonSummary)
|
|
31
|
+
summary = serializer.parse(jsonSummary) as Partial<SharedTreeSummaryBase>;
|
|
32
32
|
} catch {
|
|
33
33
|
fail('Json syntax error in Summary');
|
|
34
34
|
}
|
package/src/index.ts
CHANGED
|
@@ -145,6 +145,7 @@ export {
|
|
|
145
145
|
StashedLocalOpMetadata,
|
|
146
146
|
} from './SharedTree.js';
|
|
147
147
|
export { StringInterner } from './StringInterner.js';
|
|
148
|
+
export { SharedTreeAttributes, SharedTreeFactoryType } from './publicContracts.js';
|
|
148
149
|
|
|
149
150
|
/**
|
|
150
151
|
* TODO:#61413: Publish test utilities from a separate test package
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { IChannelAttributes } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* {@inheritDoc @fluidframework/shared-object-base#ISharedObjectFactory."type"}
|
|
10
|
+
* @alpha
|
|
11
|
+
* @legacy
|
|
12
|
+
*/
|
|
13
|
+
export const SharedTreeFactoryType = 'SharedTree';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* {@inheritDoc @fluidframework/shared-object-base#ISharedObjectFactory.attributes}
|
|
17
|
+
* @alpha
|
|
18
|
+
* @legacy
|
|
19
|
+
*/
|
|
20
|
+
export const SharedTreeAttributes: IChannelAttributes = {
|
|
21
|
+
type: SharedTreeFactoryType,
|
|
22
|
+
snapshotFormatVersion: '0.1',
|
|
23
|
+
packageVersion: '0.1',
|
|
24
|
+
};
|