@fluidframework/runtime-definitions 2.0.0-internal.8.0.0 → 2.0.0-rc.1.0.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 +44 -0
- package/README.md +0 -6
- package/api-extractor-lint.json +1 -10
- package/api-extractor.json +1 -9
- package/api-report/runtime-definitions.api.md +10 -9
- package/dist/dataStoreContext.d.ts +3 -0
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/garbageCollection.d.ts +1 -1
- package/dist/garbageCollection.js.map +1 -1
- package/dist/protocol.d.ts +4 -4
- package/dist/protocol.js.map +1 -1
- package/dist/runtime-definitions-alpha.d.ts +52 -9
- package/dist/runtime-definitions-beta.d.ts +116 -44
- package/dist/runtime-definitions-public.d.ts +116 -44
- package/dist/runtime-definitions-untrimmed.d.ts +12 -9
- package/dist/summary.d.ts +4 -4
- package/dist/summary.js.map +1 -1
- package/package.json +37 -44
- package/src/dataStoreContext.ts +3 -0
- package/src/garbageCollection.ts +1 -1
- package/src/protocol.ts +4 -4
- package/src/summary.ts +4 -4
- package/tsconfig.json +5 -3
- package/lib/runtime-definitions-alpha.d.ts +0 -953
- package/lib/runtime-definitions-beta.d.ts +0 -192
- package/lib/runtime-definitions-public.d.ts +0 -192
- package/lib/runtime-definitions-untrimmed.d.ts +0 -1068
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/runtime-definitions",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.1.0.0",
|
|
4
4
|
"description": "Fluid Runtime definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -11,22 +11,45 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": "Microsoft and contributors",
|
|
13
13
|
"sideEffects": false,
|
|
14
|
+
"type": "commonjs",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./alpha": {
|
|
21
|
+
"types": "./dist/runtime-definitions-alpha.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./beta": {
|
|
25
|
+
"types": "./dist/runtime-definitions-beta.d.ts",
|
|
26
|
+
"default": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./internal": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./public": {
|
|
33
|
+
"types": "./dist/runtime-definitions-public.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
14
37
|
"main": "dist/index.js",
|
|
15
38
|
"types": "dist/index.d.ts",
|
|
16
39
|
"dependencies": {
|
|
17
|
-
"@fluidframework/container-definitions": ">=2.0.0-
|
|
18
|
-
"@fluidframework/core-interfaces": ">=2.0.0-
|
|
19
|
-
"@fluidframework/driver-definitions": ">=2.0.0-
|
|
20
|
-
"@fluidframework/id-compressor": ">=2.0.0-
|
|
21
|
-
"@fluidframework/protocol-definitions": "^3.
|
|
40
|
+
"@fluidframework/container-definitions": ">=2.0.0-rc.1.0.0 <2.0.0-rc.1.1.0",
|
|
41
|
+
"@fluidframework/core-interfaces": ">=2.0.0-rc.1.0.0 <2.0.0-rc.1.1.0",
|
|
42
|
+
"@fluidframework/driver-definitions": ">=2.0.0-rc.1.0.0 <2.0.0-rc.1.1.0",
|
|
43
|
+
"@fluidframework/id-compressor": ">=2.0.0-rc.1.0.0 <2.0.0-rc.1.1.0",
|
|
44
|
+
"@fluidframework/protocol-definitions": "^3.1.0"
|
|
22
45
|
},
|
|
23
46
|
"devDependencies": {
|
|
24
47
|
"@arethetypeswrong/cli": "^0.13.3",
|
|
25
|
-
"@fluid-tools/build-cli": "^0.
|
|
48
|
+
"@fluid-tools/build-cli": "^0.29.0",
|
|
26
49
|
"@fluidframework/build-common": "^2.0.3",
|
|
27
|
-
"@fluidframework/build-tools": "^0.
|
|
28
|
-
"@fluidframework/eslint-config-fluid": "^3.
|
|
29
|
-
"@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.
|
|
50
|
+
"@fluidframework/build-tools": "^0.29.0",
|
|
51
|
+
"@fluidframework/eslint-config-fluid": "^3.2.0",
|
|
52
|
+
"@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.8.0.0",
|
|
30
53
|
"@microsoft/api-extractor": "^7.38.3",
|
|
31
54
|
"copyfiles": "^2.4.1",
|
|
32
55
|
"eslint": "~8.50.0",
|
|
@@ -40,8 +63,7 @@
|
|
|
40
63
|
"build:docs": {
|
|
41
64
|
"dependsOn": [
|
|
42
65
|
"...",
|
|
43
|
-
"api-extractor:commonjs"
|
|
44
|
-
"api-extractor:esnext"
|
|
66
|
+
"api-extractor:commonjs"
|
|
45
67
|
],
|
|
46
68
|
"script": false
|
|
47
69
|
}
|
|
@@ -49,51 +71,22 @@
|
|
|
49
71
|
},
|
|
50
72
|
"typeValidation": {
|
|
51
73
|
"broken": {
|
|
52
|
-
"
|
|
53
|
-
"forwardCompat": false,
|
|
54
|
-
"backCompat": false
|
|
55
|
-
},
|
|
56
|
-
"RemovedTypeAliasDeclaration_IdCreationRangeWithStashedState": {
|
|
57
|
-
"forwardCompat": false,
|
|
58
|
-
"backCompat": false
|
|
59
|
-
},
|
|
60
|
-
"InterfaceDeclaration_IdCreationRange": {
|
|
74
|
+
"InterfaceDeclaration_IIdCompressorCore": {
|
|
61
75
|
"forwardCompat": false
|
|
62
76
|
},
|
|
63
|
-
"
|
|
64
|
-
"backCompat": false,
|
|
77
|
+
"ClassDeclaration_IdCompressor": {
|
|
65
78
|
"forwardCompat": false
|
|
66
|
-
},
|
|
67
|
-
"RemovedVariableDeclaration_initialClusterCapacity": {
|
|
68
|
-
"forwardCompat": false,
|
|
69
|
-
"backCompat": false
|
|
70
|
-
},
|
|
71
|
-
"InterfaceDeclaration_IContainerRuntimeBase": {
|
|
72
|
-
"backCompat": false
|
|
73
|
-
},
|
|
74
|
-
"InterfaceDeclaration_IFluidDataStoreContext": {
|
|
75
|
-
"backCompat": false
|
|
76
|
-
},
|
|
77
|
-
"InterfaceDeclaration_IFluidDataStoreContextDetached": {
|
|
78
|
-
"backCompat": false
|
|
79
|
-
},
|
|
80
|
-
"InterfaceDeclaration_IDataStore": {
|
|
81
|
-
"backCompat": false
|
|
82
|
-
},
|
|
83
|
-
"InterfaceDeclaration_IFluidDataStoreChannel": {
|
|
84
|
-
"backCompat": false
|
|
85
79
|
}
|
|
86
80
|
}
|
|
87
81
|
},
|
|
88
82
|
"scripts": {
|
|
89
83
|
"api": "fluid-build . --task api",
|
|
90
84
|
"api-extractor:commonjs": "api-extractor run --local",
|
|
91
|
-
"api-extractor:esnext": "copyfiles -u 1 \"dist/**/*-@(alpha|beta|public|untrimmed).d.ts\" lib",
|
|
92
85
|
"build": "fluid-build . --task build",
|
|
93
86
|
"build:compile": "fluid-build . --task compile",
|
|
94
87
|
"build:docs": "fluid-build . --task api",
|
|
95
88
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
96
|
-
"check:are-the-types-wrong": "attw --pack",
|
|
89
|
+
"check:are-the-types-wrong": "attw --pack . --entrypoints .",
|
|
97
90
|
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
98
91
|
"ci:build:docs": "api-extractor run",
|
|
99
92
|
"clean": "rimraf --glob dist \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
package/src/dataStoreContext.ts
CHANGED
|
@@ -481,6 +481,9 @@ export interface IFluidDataStoreContext
|
|
|
481
481
|
getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
|
+
* @deprecated There is no replacement for this, its functionality is no longer needed at this layer.
|
|
485
|
+
* It will be removed in a future release, sometime after 2.0.0-internal.8.0.0
|
|
486
|
+
*
|
|
484
487
|
* Called when a new outbound reference is added to another node. This is used by garbage collection to identify
|
|
485
488
|
* all references added in the system.
|
|
486
489
|
* @param srcHandle - The handle of the node that added the reference.
|
package/src/garbageCollection.ts
CHANGED
package/src/protocol.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { ISignalMessage, ITree } from "@fluidframework/protocol-definitions";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* An envelope wraps the contents with the intended target
|
|
10
|
-
* @
|
|
10
|
+
* @alpha
|
|
11
11
|
*/
|
|
12
12
|
export interface IEnvelope {
|
|
13
13
|
/**
|
|
@@ -46,7 +46,7 @@ export interface ISignalEnvelope {
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Represents ISignalMessage with its type.
|
|
49
|
-
* @
|
|
49
|
+
* @public
|
|
50
50
|
*/
|
|
51
51
|
export interface IInboundSignalMessage extends ISignalMessage {
|
|
52
52
|
type: string;
|
|
@@ -55,7 +55,7 @@ export interface IInboundSignalMessage extends ISignalMessage {
|
|
|
55
55
|
/**
|
|
56
56
|
* Message send by client attaching local data structure.
|
|
57
57
|
* Contains snapshot of data structure which is the current state of this data structure.
|
|
58
|
-
* @
|
|
58
|
+
* @alpha
|
|
59
59
|
*/
|
|
60
60
|
export interface IAttachMessage {
|
|
61
61
|
/**
|
|
@@ -79,7 +79,7 @@ export interface IAttachMessage {
|
|
|
79
79
|
* but it should not be used when creating a new attach op.
|
|
80
80
|
* Older versions of attach messages could have null snapshots,
|
|
81
81
|
* so this gives correct typings for writing backward compatible code.
|
|
82
|
-
* @
|
|
82
|
+
* @alpha
|
|
83
83
|
*/
|
|
84
84
|
export type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
|
|
85
85
|
snapshot: IAttachMessage["snapshot"] | null;
|
package/src/summary.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { IGarbageCollectionData, IGarbageCollectionDetailsBase } from "./garbage
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Contains the aggregation data from a Tree/Subtree.
|
|
18
|
-
* @
|
|
18
|
+
* @public
|
|
19
19
|
*/
|
|
20
20
|
export interface ISummaryStats {
|
|
21
21
|
treeNodeCount: number;
|
|
@@ -31,7 +31,7 @@ export interface ISummaryStats {
|
|
|
31
31
|
* each of its DDS.
|
|
32
32
|
* Any component that implements IChannelContext, IFluidDataStoreChannel or extends SharedObject
|
|
33
33
|
* will be taking part of the summarization process.
|
|
34
|
-
* @
|
|
34
|
+
* @public
|
|
35
35
|
*/
|
|
36
36
|
export interface ISummaryTreeWithStats {
|
|
37
37
|
/**
|
|
@@ -81,7 +81,7 @@ export interface ISummarizeInternalResult extends ISummarizeResult {
|
|
|
81
81
|
/**
|
|
82
82
|
* @experimental - Can be deleted/changed at any time
|
|
83
83
|
* Contains the necessary information to allow DDSes to do incremental summaries
|
|
84
|
-
* @
|
|
84
|
+
* @public
|
|
85
85
|
*/
|
|
86
86
|
export interface IExperimentalIncrementalSummaryContext {
|
|
87
87
|
/**
|
|
@@ -330,7 +330,7 @@ export const channelsTreeName = ".channels";
|
|
|
330
330
|
/**
|
|
331
331
|
* Contains telemetry data relevant to summarization workflows.
|
|
332
332
|
* This object is expected to be modified directly by various summarize methods.
|
|
333
|
-
* @
|
|
333
|
+
* @public
|
|
334
334
|
*/
|
|
335
335
|
export interface ITelemetryContext {
|
|
336
336
|
/**
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends":
|
|
2
|
+
"extends": [
|
|
3
|
+
"../../../common/build/build-common/tsconfig.base.json",
|
|
4
|
+
"../../../common/build/build-common/tsconfig.esm-only.json",
|
|
5
|
+
],
|
|
6
|
+
"include": ["src/**/*"],
|
|
3
7
|
"exclude": ["src/test/**/*"],
|
|
4
8
|
"compilerOptions": {
|
|
5
9
|
"rootDir": "./src",
|
|
6
10
|
"outDir": "./dist",
|
|
7
|
-
"composite": true,
|
|
8
11
|
},
|
|
9
|
-
"include": ["src/**/*"],
|
|
10
12
|
}
|