@fluidframework/runtime-definitions 2.0.0-internal.6.1.1 → 2.0.0-internal.6.3.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 +35 -0
- package/README.md +4 -3
- package/dist/dataStoreContext.d.ts +1 -2
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/id-compressor/idCompressor.d.ts +32 -50
- package/dist/id-compressor/idCompressor.d.ts.map +1 -1
- package/dist/id-compressor/idCompressor.js.map +1 -1
- package/dist/id-compressor/identifiers.d.ts +10 -51
- package/dist/id-compressor/identifiers.d.ts.map +1 -1
- package/dist/id-compressor/identifiers.js.map +1 -1
- package/dist/id-compressor/index.d.ts +2 -2
- package/dist/id-compressor/index.d.ts.map +1 -1
- package/dist/id-compressor/index.js +3 -0
- package/dist/id-compressor/index.js.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.d.ts +18 -136
- package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.js +6 -0
- package/dist/id-compressor/persisted-types/0.0.1.js.map +1 -1
- package/dist/id-compressor/persisted-types/index.d.ts +1 -1
- package/dist/id-compressor/persisted-types/index.d.ts.map +1 -1
- package/dist/id-compressor/persisted-types/index.js +3 -0
- package/dist/id-compressor/persisted-types/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +125 -11
- package/src/dataStoreContext.ts +2 -1
- package/src/id-compressor/idCompressor.ts +32 -59
- package/src/id-compressor/identifiers.ts +10 -58
- package/src/id-compressor/index.ts +2 -19
- package/src/id-compressor/persisted-types/0.0.1.ts +18 -159
- package/src/id-compressor/persisted-types/index.ts +1 -8
- package/src/index.ts +1 -13
|
@@ -2,160 +2,42 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import type {
|
|
6
|
-
/**
|
|
7
|
-
* A serialized ID allocation session for an `IdCompressor`.
|
|
8
|
-
*/
|
|
9
|
-
export declare type SerializedSessionData = readonly [
|
|
10
|
-
/**
|
|
11
|
-
* The ID of the session.
|
|
12
|
-
*/
|
|
13
|
-
sessionId: SessionId
|
|
14
|
-
];
|
|
15
|
-
export declare type SerializedClusterOverrides = readonly [
|
|
16
|
-
/** The overridden final ID, represented as an index into the cluster's ID range */
|
|
17
|
-
overriddenFinalIndex: number,
|
|
18
|
-
/** The override string */
|
|
19
|
-
override: string,
|
|
20
|
-
/** The first ID that was finalized and associated with this override, set only if different than the `overriddenFinalIndex` */
|
|
21
|
-
overriddenId?: FinalCompressedId
|
|
22
|
-
][];
|
|
23
|
-
/**
|
|
24
|
-
* A serialized final ID cluster.
|
|
25
|
-
*/
|
|
26
|
-
export declare type SerializedCluster = readonly [
|
|
27
|
-
/**
|
|
28
|
-
* Index into the serialized sessions array. Can be converted into a baseUuid via its order in `clusters`.
|
|
29
|
-
* If negative, then this cluster was created by the local session.
|
|
30
|
-
*/
|
|
31
|
-
sessionIndex: number,
|
|
32
|
-
/**
|
|
33
|
-
* The capacity of the cluster.
|
|
34
|
-
*/
|
|
35
|
-
capacity: number,
|
|
36
|
-
/**
|
|
37
|
-
* The number of IDs in the cluster. Omitted if count === capacity.
|
|
38
|
-
* --OR--
|
|
39
|
-
* The overrides in this cluster. Omitted if no overrides exist in the cluster.
|
|
40
|
-
*/
|
|
41
|
-
countOrOverrides?: number | SerializedClusterOverrides,
|
|
42
|
-
/**
|
|
43
|
-
* Overrides in this cluster. Omitted if no overrides exist in the cluster.
|
|
44
|
-
*/
|
|
45
|
-
overrides?: SerializedClusterOverrides
|
|
46
|
-
];
|
|
47
|
-
export declare type SerializedLocalOverrides = readonly (readonly [LocalCompressedId, string])[];
|
|
48
|
-
export interface SerializedLocalState {
|
|
49
|
-
/**
|
|
50
|
-
* The total number of local IDs created by this session
|
|
51
|
-
*/
|
|
52
|
-
readonly localIdCount: number;
|
|
53
|
-
/**
|
|
54
|
-
* Overrides generated by this session. Omitted if no local overrides exist in the session.
|
|
55
|
-
*/
|
|
56
|
-
readonly overrides?: SerializedLocalOverrides;
|
|
57
|
-
/**
|
|
58
|
-
* The most recent local ID in a range returned by `takeNextCreationRange`.
|
|
59
|
-
*/
|
|
60
|
-
readonly lastTakenLocalId: LocalCompressedId | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Serialized table for normalizing IDs made by the local session.
|
|
63
|
-
*/
|
|
64
|
-
readonly sessionNormalizer: SerializedSessionIdNormalizer;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Serialized table for normalizing IDs made by the local session.
|
|
68
|
-
*/
|
|
69
|
-
export interface SerializedSessionIdNormalizer {
|
|
70
|
-
readonly nextLocalId: LocalCompressedId;
|
|
71
|
-
readonly localRanges: readonly (readonly [
|
|
72
|
-
firstLocal: LocalCompressedId,
|
|
73
|
-
lastLocal: LocalCompressedId,
|
|
74
|
-
finalRanges?: readonly (readonly [
|
|
75
|
-
alignedLocal: LocalCompressedId,
|
|
76
|
-
firstFinal: FinalCompressedId,
|
|
77
|
-
lastFinal: FinalCompressedId
|
|
78
|
-
])[]
|
|
79
|
-
])[];
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* The minimal required contents of a serialized IdCompressor.
|
|
83
|
-
*/
|
|
84
|
-
export interface VersionedSerializedIdCompressor {
|
|
85
|
-
readonly _versionedSerializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
|
|
86
|
-
readonly version: string;
|
|
87
|
-
}
|
|
5
|
+
import type { SessionId } from "../identifiers";
|
|
88
6
|
/**
|
|
89
7
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
90
8
|
*/
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
/** All sessions except the local session. */
|
|
95
|
-
readonly sessions: readonly SerializedSessionData[];
|
|
96
|
-
/** All clusters in the compressor in the order they were created. */
|
|
97
|
-
readonly clusters: readonly SerializedCluster[];
|
|
98
|
-
}
|
|
9
|
+
export declare type SerializedIdCompressor = string & {
|
|
10
|
+
readonly _serializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
|
|
11
|
+
};
|
|
99
12
|
/**
|
|
100
13
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
101
14
|
*/
|
|
102
|
-
export
|
|
15
|
+
export declare type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
|
|
103
16
|
readonly _noLocalState: "3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb";
|
|
104
|
-
}
|
|
17
|
+
};
|
|
105
18
|
/**
|
|
106
19
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
107
20
|
*/
|
|
108
|
-
export
|
|
21
|
+
export declare type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
|
|
109
22
|
readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
|
|
110
|
-
|
|
111
|
-
readonly localSessionIndex: number;
|
|
112
|
-
/** This is only present if the local session made any IDs. */
|
|
113
|
-
readonly localState?: SerializedLocalState;
|
|
114
|
-
}
|
|
23
|
+
};
|
|
115
24
|
/**
|
|
116
25
|
* Data describing a range of session-local IDs (from a remote or local session).
|
|
117
26
|
*
|
|
118
|
-
* A range is composed of local IDs that were generated.
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* Suppose an IdCompressor generated a sequence of local IDs as follows:
|
|
122
|
-
* ```
|
|
123
|
-
* compressor.generateLocalId()
|
|
124
|
-
* compressor.generateLocalId('0093cf29-9454-4034-8940-33b1077b41c3')
|
|
125
|
-
* compressor.generateLocalId()
|
|
126
|
-
* compressor.generateLocalId('0ed545f8-e97e-4dc1-acf9-c4a783258bdf')
|
|
127
|
-
* compressor.generateLocalId()
|
|
128
|
-
* compressor.generateLocalId()
|
|
129
|
-
* compressor.takeNextCreationRange()
|
|
130
|
-
* ```
|
|
131
|
-
* This would result in the following range:
|
|
132
|
-
* ```
|
|
133
|
-
* {
|
|
134
|
-
* first: localId1,
|
|
135
|
-
* last: localId6,
|
|
136
|
-
* overrides: [[localId2, '0093cf29-9454-4034-8940-33b1077b41c3'], [localId4, '0ed545f8-e97e-4dc1-acf9-c4a783258bdf']]
|
|
137
|
-
* }
|
|
138
|
-
* ```
|
|
27
|
+
* A range is composed of local IDs that were generated.
|
|
139
28
|
*/
|
|
140
29
|
export interface IdCreationRange {
|
|
141
30
|
readonly sessionId: SessionId;
|
|
142
|
-
readonly ids?:
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
type Ids = {
|
|
147
|
-
readonly first: UnackedLocalId;
|
|
148
|
-
readonly last: UnackedLocalId;
|
|
149
|
-
} | ({
|
|
150
|
-
readonly first?: UnackedLocalId;
|
|
151
|
-
readonly last?: UnackedLocalId;
|
|
152
|
-
} & HasOverrides);
|
|
153
|
-
interface HasOverrides {
|
|
154
|
-
readonly overrides: Overrides;
|
|
155
|
-
}
|
|
156
|
-
type Override = readonly [id: UnackedLocalId, override: string];
|
|
157
|
-
type Overrides = readonly [Override, ...Override[]];
|
|
31
|
+
readonly ids?: {
|
|
32
|
+
readonly firstGenCount: number;
|
|
33
|
+
readonly count: number;
|
|
34
|
+
};
|
|
158
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Roughly equates to a minimum of 1M sessions before we start allocating 64 bit IDs.
|
|
38
|
+
* This value must *NOT* change without careful consideration to compatibility.
|
|
39
|
+
*/
|
|
40
|
+
export declare const initialClusterCapacity = 512;
|
|
159
41
|
export declare type IdCreationRangeWithStashedState = IdCreationRange & {
|
|
160
42
|
stashedState: SerializedIdCompressorWithOngoingSession;
|
|
161
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0.0.1.d.ts","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/0.0.1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"0.0.1.d.ts","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/0.0.1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;GAEG;AACH,oBAAY,sBAAsB,GAAG,MAAM,GAAG;IAC7C,QAAQ,CAAC,uBAAuB,EAAE,sCAAsC,CAAC;CACzE,CAAC;AAEF;;GAEG;AACH,oBAAY,mCAAmC,GAAG,sBAAsB,GAAG;IAC1E,QAAQ,CAAC,aAAa,EAAE,sCAAsC,CAAC;CAC/D,CAAC;AAEF;;GAEG;AACH,oBAAY,wCAAwC,GAAG,sBAAsB,GAAG;IAC/E,QAAQ,CAAC,cAAc,EAAE,sCAAsC,CAAC;CAChE,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,GAAG,CAAC,EAAE;QACd,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACvB,CAAC;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,oBAAY,+BAA+B,GAAG,eAAe,GAAG;IAC/D,YAAY,EAAE,wCAAwC,CAAC;CACvD,CAAC"}
|
|
@@ -4,4 +4,10 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.initialClusterCapacity = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Roughly equates to a minimum of 1M sessions before we start allocating 64 bit IDs.
|
|
10
|
+
* This value must *NOT* change without careful consideration to compatibility.
|
|
11
|
+
*/
|
|
12
|
+
exports.initialClusterCapacity = 512;
|
|
7
13
|
//# sourceMappingURL=0.0.1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0.0.1.js","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/0.0.1.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {
|
|
1
|
+
{"version":3,"file":"0.0.1.js","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/0.0.1.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAsCH;;;GAGG;AACU,QAAA,sBAAsB,GAAG,GAAG,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { SessionId } from \"../identifiers\";\n\n/**\n * The serialized contents of an IdCompressor, suitable for persistence in a summary.\n */\nexport type SerializedIdCompressor = string & {\n\treadonly _serializedIdCompressor: \"8c73c57c-1cf4-4278-8915-6444cb4f6af5\";\n};\n\n/**\n * The serialized contents of an IdCompressor, suitable for persistence in a summary.\n */\nexport type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {\n\treadonly _noLocalState: \"3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb\";\n};\n\n/**\n * The serialized contents of an IdCompressor, suitable for persistence in a summary.\n */\nexport type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {\n\treadonly _hasLocalState: \"1281acae-6d14-47e7-bc92-71c8ee0819cb\";\n};\n\n/**\n * Data describing a range of session-local IDs (from a remote or local session).\n *\n * A range is composed of local IDs that were generated.\n */\nexport interface IdCreationRange {\n\treadonly sessionId: SessionId;\n\treadonly ids?: {\n\t\treadonly firstGenCount: number;\n\t\treadonly count: number;\n\t};\n}\n\n/**\n * Roughly equates to a minimum of 1M sessions before we start allocating 64 bit IDs.\n * This value must *NOT* change without careful consideration to compatibility.\n */\nexport const initialClusterCapacity = 512;\n\nexport type IdCreationRangeWithStashedState = IdCreationRange & {\n\tstashedState: SerializedIdCompressorWithOngoingSession;\n};\n"]}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export { IdCreationRange,
|
|
5
|
+
export { IdCreationRange, SerializedIdCompressor, SerializedIdCompressorWithNoSession, SerializedIdCompressorWithOngoingSession, IdCreationRangeWithStashedState, initialClusterCapacity, } from "./0.0.1";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,eAAe,EACf,sBAAsB,EACtB,mCAAmC,EACnC,wCAAwC,EACxC,+BAA+B,EAC/B,sBAAsB,GACtB,MAAM,SAAS,CAAC"}
|
|
@@ -4,4 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.initialClusterCapacity = void 0;
|
|
8
|
+
var _0_0_1_1 = require("./0.0.1");
|
|
9
|
+
Object.defineProperty(exports, "initialClusterCapacity", { enumerable: true, get: function () { return _0_0_1_1.initialClusterCapacity; } });
|
|
7
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/index.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tIdCreationRange,\n\
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/id-compressor/persisted-types/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,kCAOiB;AADhB,gHAAA,sBAAsB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tIdCreationRange,\n\tSerializedIdCompressor,\n\tSerializedIdCompressorWithNoSession,\n\tSerializedIdCompressorWithOngoingSession,\n\tIdCreationRangeWithStashedState,\n\tinitialClusterCapacity,\n} from \"./0.0.1\";\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export { FluidDataStoreRegistryEntry, IFluidDataStoreRegistry, IProvideFluidData
|
|
|
9
9
|
export { gcBlobPrefix, gcDeletedBlobKey, gcTombstoneBlobKey, gcTreeKey, IGarbageCollectionData, IGarbageCollectionDetailsBase, } from "./garbageCollection";
|
|
10
10
|
export { IAttachMessage, IEnvelope, IInboundSignalMessage, InboundAttachMessage, ISignalEnvelope, } from "./protocol";
|
|
11
11
|
export { blobCountPropertyName, channelsTreeName, CreateChildSummarizerNodeParam, CreateSummarizerNodeSource, IExperimentalIncrementalSummaryContext, ISummarizeInternalResult, ISummarizeResult, ISummarizerNode, ISummarizerNodeConfig, ISummarizerNodeConfigWithGC, ISummarizerNodeWithGC, ISummaryStats, ISummaryTreeWithStats, ITelemetryContext, SummarizeInternalFn, totalBlobSizePropertyName, } from "./summary";
|
|
12
|
-
export { IIdCompressorCore, IIdCompressor, SerializedIdCompressor, SerializedIdCompressorWithOngoingSession, SerializedIdCompressorWithNoSession, SessionSpaceCompressedId, OpSpaceCompressedId, SessionId,
|
|
12
|
+
export { IIdCompressorCore, IIdCompressor, SerializedIdCompressor, SerializedIdCompressorWithOngoingSession, SerializedIdCompressorWithNoSession, SessionSpaceCompressedId, OpSpaceCompressedId, SessionId, StableId, IdCreationRange, IdCreationRangeWithStashedState, initialClusterCapacity, } from "./id-compressor";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,WAAW,EACX,2BAA2B,EAC3B,SAAS,EACT,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,eAAe,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACN,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC9B,kCAAkC,EAClC,gCAAgC,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,sBAAsB,EACtB,6BAA6B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,cAAc,EACd,SAAS,EACT,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,0BAA0B,EAC1B,sCAAsC,EACtC,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACtB,wCAAwC,EACxC,mCAAmC,EACnC,wBAAwB,EACxB,mBAAmB,EACnB,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,WAAW,EACX,2BAA2B,EAC3B,SAAS,EACT,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,eAAe,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACN,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC9B,kCAAkC,EAClC,gCAAgC,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,sBAAsB,EACtB,6BAA6B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,cAAc,EACd,SAAS,EACT,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,0BAA0B,EAC1B,sCAAsC,EACtC,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,GACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACtB,wCAAwC,EACxC,mCAAmC,EACnC,wBAAwB,EACxB,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,eAAe,EACf,+BAA+B,EAC/B,sBAAsB,GACtB,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.totalBlobSizePropertyName = exports.CreateSummarizerNodeSource = exports.channelsTreeName = exports.blobCountPropertyName = exports.gcTreeKey = exports.gcTombstoneBlobKey = exports.gcDeletedBlobKey = exports.gcBlobPrefix = exports.IFluidDataStoreRegistry = exports.IFluidDataStoreFactory = exports.VisibilityState = exports.FlushModeExperimental = exports.FlushMode = void 0;
|
|
7
|
+
exports.initialClusterCapacity = exports.totalBlobSizePropertyName = exports.CreateSummarizerNodeSource = exports.channelsTreeName = exports.blobCountPropertyName = exports.gcTreeKey = exports.gcTombstoneBlobKey = exports.gcDeletedBlobKey = exports.gcBlobPrefix = exports.IFluidDataStoreRegistry = exports.IFluidDataStoreFactory = exports.VisibilityState = exports.FlushModeExperimental = exports.FlushMode = void 0;
|
|
8
8
|
var dataStoreContext_1 = require("./dataStoreContext");
|
|
9
9
|
Object.defineProperty(exports, "FlushMode", { enumerable: true, get: function () { return dataStoreContext_1.FlushMode; } });
|
|
10
10
|
Object.defineProperty(exports, "FlushModeExperimental", { enumerable: true, get: function () { return dataStoreContext_1.FlushModeExperimental; } });
|
|
@@ -23,4 +23,6 @@ Object.defineProperty(exports, "blobCountPropertyName", { enumerable: true, get:
|
|
|
23
23
|
Object.defineProperty(exports, "channelsTreeName", { enumerable: true, get: function () { return summary_1.channelsTreeName; } });
|
|
24
24
|
Object.defineProperty(exports, "CreateSummarizerNodeSource", { enumerable: true, get: function () { return summary_1.CreateSummarizerNodeSource; } });
|
|
25
25
|
Object.defineProperty(exports, "totalBlobSizePropertyName", { enumerable: true, get: function () { return summary_1.totalBlobSizePropertyName; } });
|
|
26
|
+
var id_compressor_1 = require("./id-compressor");
|
|
27
|
+
Object.defineProperty(exports, "initialClusterCapacity", { enumerable: true, get: function () { return id_compressor_1.initialClusterCapacity; } });
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH,uDAa4B;AAV3B,6GAAA,SAAS,OAAA;AACT,yHAAA,qBAAqB,OAAA;AAQrB,mHAAA,eAAe,OAAA;AAEhB,uDAA2F;AAAlF,0HAAA,sBAAsB,OAAA;AAC/B,yDAM6B;AAJ5B,4HAAA,uBAAuB,OAAA;AAKxB,yDAO6B;AAN5B,iHAAA,YAAY,OAAA;AACZ,qHAAA,gBAAgB,OAAA;AAChB,uHAAA,kBAAkB,OAAA;AAClB,8GAAA,SAAS,OAAA;AAWV,qCAiBmB;AAhBlB,gHAAA,qBAAqB,OAAA;AACrB,2GAAA,gBAAgB,OAAA;AAEhB,qHAAA,0BAA0B,OAAA;AAY1B,oHAAA,yBAAyB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tAttributionInfo,\n\tAttributionKey,\n\tDetachedAttributionKey,\n\tLocalAttributionKey,\n\tOpAttributionKey,\n} from \"./attribution\";\nexport {\n\tAliasResult,\n\tCreateChildSummarizerNodeFn,\n\tFlushMode,\n\tFlushModeExperimental,\n\tIContainerRuntimeBase,\n\tIContainerRuntimeBaseEvents,\n\tIDataStore,\n\tIFluidDataStoreChannel,\n\tIFluidDataStoreContext,\n\tIFluidDataStoreContextDetached,\n\tIFluidDataStoreContextEvents,\n\tVisibilityState,\n} from \"./dataStoreContext\";\nexport { IFluidDataStoreFactory, IProvideFluidDataStoreFactory } from \"./dataStoreFactory\";\nexport {\n\tFluidDataStoreRegistryEntry,\n\tIFluidDataStoreRegistry,\n\tIProvideFluidDataStoreRegistry,\n\tNamedFluidDataStoreRegistryEntries,\n\tNamedFluidDataStoreRegistryEntry,\n} from \"./dataStoreRegistry\";\nexport {\n\tgcBlobPrefix,\n\tgcDeletedBlobKey,\n\tgcTombstoneBlobKey,\n\tgcTreeKey,\n\tIGarbageCollectionData,\n\tIGarbageCollectionDetailsBase,\n} from \"./garbageCollection\";\nexport {\n\tIAttachMessage,\n\tIEnvelope,\n\tIInboundSignalMessage,\n\tInboundAttachMessage,\n\tISignalEnvelope,\n} from \"./protocol\";\nexport {\n\tblobCountPropertyName,\n\tchannelsTreeName,\n\tCreateChildSummarizerNodeParam,\n\tCreateSummarizerNodeSource,\n\tIExperimentalIncrementalSummaryContext,\n\tISummarizeInternalResult,\n\tISummarizeResult,\n\tISummarizerNode,\n\tISummarizerNodeConfig,\n\tISummarizerNodeConfigWithGC,\n\tISummarizerNodeWithGC,\n\tISummaryStats,\n\tISummaryTreeWithStats,\n\tITelemetryContext,\n\tSummarizeInternalFn,\n\ttotalBlobSizePropertyName,\n} from \"./summary\";\nexport {\n\tIIdCompressorCore,\n\tIIdCompressor,\n\tSerializedIdCompressor,\n\tSerializedIdCompressorWithOngoingSession,\n\tSerializedIdCompressorWithNoSession,\n\tSessionSpaceCompressedId,\n\tOpSpaceCompressedId,\n\tSessionId,\n\
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH,uDAa4B;AAV3B,6GAAA,SAAS,OAAA;AACT,yHAAA,qBAAqB,OAAA;AAQrB,mHAAA,eAAe,OAAA;AAEhB,uDAA2F;AAAlF,0HAAA,sBAAsB,OAAA;AAC/B,yDAM6B;AAJ5B,4HAAA,uBAAuB,OAAA;AAKxB,yDAO6B;AAN5B,iHAAA,YAAY,OAAA;AACZ,qHAAA,gBAAgB,OAAA;AAChB,uHAAA,kBAAkB,OAAA;AAClB,8GAAA,SAAS,OAAA;AAWV,qCAiBmB;AAhBlB,gHAAA,qBAAqB,OAAA;AACrB,2GAAA,gBAAgB,OAAA;AAEhB,qHAAA,0BAA0B,OAAA;AAY1B,oHAAA,yBAAyB,OAAA;AAE1B,iDAayB;AADxB,uHAAA,sBAAsB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport {\n\tAttributionInfo,\n\tAttributionKey,\n\tDetachedAttributionKey,\n\tLocalAttributionKey,\n\tOpAttributionKey,\n} from \"./attribution\";\nexport {\n\tAliasResult,\n\tCreateChildSummarizerNodeFn,\n\tFlushMode,\n\tFlushModeExperimental,\n\tIContainerRuntimeBase,\n\tIContainerRuntimeBaseEvents,\n\tIDataStore,\n\tIFluidDataStoreChannel,\n\tIFluidDataStoreContext,\n\tIFluidDataStoreContextDetached,\n\tIFluidDataStoreContextEvents,\n\tVisibilityState,\n} from \"./dataStoreContext\";\nexport { IFluidDataStoreFactory, IProvideFluidDataStoreFactory } from \"./dataStoreFactory\";\nexport {\n\tFluidDataStoreRegistryEntry,\n\tIFluidDataStoreRegistry,\n\tIProvideFluidDataStoreRegistry,\n\tNamedFluidDataStoreRegistryEntries,\n\tNamedFluidDataStoreRegistryEntry,\n} from \"./dataStoreRegistry\";\nexport {\n\tgcBlobPrefix,\n\tgcDeletedBlobKey,\n\tgcTombstoneBlobKey,\n\tgcTreeKey,\n\tIGarbageCollectionData,\n\tIGarbageCollectionDetailsBase,\n} from \"./garbageCollection\";\nexport {\n\tIAttachMessage,\n\tIEnvelope,\n\tIInboundSignalMessage,\n\tInboundAttachMessage,\n\tISignalEnvelope,\n} from \"./protocol\";\nexport {\n\tblobCountPropertyName,\n\tchannelsTreeName,\n\tCreateChildSummarizerNodeParam,\n\tCreateSummarizerNodeSource,\n\tIExperimentalIncrementalSummaryContext,\n\tISummarizeInternalResult,\n\tISummarizeResult,\n\tISummarizerNode,\n\tISummarizerNodeConfig,\n\tISummarizerNodeConfigWithGC,\n\tISummarizerNodeWithGC,\n\tISummaryStats,\n\tISummaryTreeWithStats,\n\tITelemetryContext,\n\tSummarizeInternalFn,\n\ttotalBlobSizePropertyName,\n} from \"./summary\";\nexport {\n\tIIdCompressorCore,\n\tIIdCompressor,\n\tSerializedIdCompressor,\n\tSerializedIdCompressorWithOngoingSession,\n\tSerializedIdCompressorWithNoSession,\n\tSessionSpaceCompressedId,\n\tOpSpaceCompressedId,\n\tSessionId,\n\tStableId,\n\tIdCreationRange,\n\tIdCreationRangeWithStashedState,\n\tinitialClusterCapacity,\n} from \"./id-compressor\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/runtime-definitions",
|
|
3
|
-
"version": "2.0.0-internal.6.
|
|
3
|
+
"version": "2.0.0-internal.6.3.0",
|
|
4
4
|
"description": "Fluid Runtime definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -14,21 +14,18 @@
|
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@fluidframework/
|
|
18
|
-
"@fluidframework/
|
|
19
|
-
"@fluidframework/
|
|
20
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.6.1.1 <2.0.0-internal.6.2.0",
|
|
21
|
-
"@fluidframework/driver-definitions": ">=2.0.0-internal.6.1.1 <2.0.0-internal.6.2.0",
|
|
17
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
18
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
19
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.6.3.0 <2.0.0-internal.6.4.0",
|
|
22
20
|
"@fluidframework/protocol-definitions": "^1.1.0"
|
|
23
21
|
},
|
|
24
22
|
"devDependencies": {
|
|
25
23
|
"@fluid-tools/build-cli": "^0.22.0",
|
|
26
24
|
"@fluidframework/build-common": "^2.0.0",
|
|
27
25
|
"@fluidframework/build-tools": "^0.22.0",
|
|
28
|
-
"@fluidframework/eslint-config-fluid": "^2.
|
|
29
|
-
"@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.6.
|
|
26
|
+
"@fluidframework/eslint-config-fluid": "^2.1.0",
|
|
27
|
+
"@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.6.1.1",
|
|
30
28
|
"@microsoft/api-extractor": "^7.34.4",
|
|
31
|
-
"concurrently": "^7.6.0",
|
|
32
29
|
"copyfiles": "^2.4.1",
|
|
33
30
|
"eslint": "~8.6.0",
|
|
34
31
|
"eslint-plugin-deprecation": "~1.5.0",
|
|
@@ -37,7 +34,124 @@
|
|
|
37
34
|
"typescript": "~4.5.5"
|
|
38
35
|
},
|
|
39
36
|
"typeValidation": {
|
|
40
|
-
"broken": {
|
|
37
|
+
"broken": {
|
|
38
|
+
"RemovedTypeAliasDeclaration_CompressedId": {
|
|
39
|
+
"forwardCompat": false,
|
|
40
|
+
"backCompat": false
|
|
41
|
+
},
|
|
42
|
+
"RemovedTypeAliasDeclaration_FinalCompressedId": {
|
|
43
|
+
"forwardCompat": false,
|
|
44
|
+
"backCompat": false
|
|
45
|
+
},
|
|
46
|
+
"InterfaceDeclaration_IIdCompressorCore": {
|
|
47
|
+
"backCompat": false
|
|
48
|
+
},
|
|
49
|
+
"InterfaceDeclaration_IdCreationRange": {
|
|
50
|
+
"forwardCompat": false,
|
|
51
|
+
"backCompat": false
|
|
52
|
+
},
|
|
53
|
+
"RemovedInterfaceDeclaration_IdCreationRange.HasOverrides": {
|
|
54
|
+
"forwardCompat": false,
|
|
55
|
+
"backCompat": false
|
|
56
|
+
},
|
|
57
|
+
"RemovedTypeAliasDeclaration_IdCreationRange.Ids": {
|
|
58
|
+
"forwardCompat": false,
|
|
59
|
+
"backCompat": false
|
|
60
|
+
},
|
|
61
|
+
"RemovedTypeAliasDeclaration_IdCreationRange.Override": {
|
|
62
|
+
"forwardCompat": false,
|
|
63
|
+
"backCompat": false
|
|
64
|
+
},
|
|
65
|
+
"RemovedTypeAliasDeclaration_IdCreationRange.Overrides": {
|
|
66
|
+
"forwardCompat": false,
|
|
67
|
+
"backCompat": false
|
|
68
|
+
},
|
|
69
|
+
"RemovedTypeAliasDeclaration_IdCreationRangeWithStashedState": {
|
|
70
|
+
"forwardCompat": false,
|
|
71
|
+
"backCompat": false
|
|
72
|
+
},
|
|
73
|
+
"RemovedTypeAliasDeclaration_LocalCompressedId": {
|
|
74
|
+
"forwardCompat": false,
|
|
75
|
+
"backCompat": false
|
|
76
|
+
},
|
|
77
|
+
"TypeAliasDeclaration_OpSpaceCompressedId": {
|
|
78
|
+
"backCompat": false
|
|
79
|
+
},
|
|
80
|
+
"RemovedTypeAliasDeclaration_SerializedCluster": {
|
|
81
|
+
"forwardCompat": false,
|
|
82
|
+
"backCompat": false
|
|
83
|
+
},
|
|
84
|
+
"RemovedTypeAliasDeclaration_SerializedClusterOverrides": {
|
|
85
|
+
"forwardCompat": false,
|
|
86
|
+
"backCompat": false
|
|
87
|
+
},
|
|
88
|
+
"RemovedInterfaceDeclaration_SerializedIdCompressor": {
|
|
89
|
+
"forwardCompat": false,
|
|
90
|
+
"backCompat": false
|
|
91
|
+
},
|
|
92
|
+
"RemovedInterfaceDeclaration_SerializedIdCompressorWithNoSession": {
|
|
93
|
+
"forwardCompat": false,
|
|
94
|
+
"backCompat": false
|
|
95
|
+
},
|
|
96
|
+
"RemovedInterfaceDeclaration_SerializedIdCompressorWithOngoingSession": {
|
|
97
|
+
"forwardCompat": false,
|
|
98
|
+
"backCompat": false
|
|
99
|
+
},
|
|
100
|
+
"RemovedTypeAliasDeclaration_SerializedLocalOverrides": {
|
|
101
|
+
"forwardCompat": false,
|
|
102
|
+
"backCompat": false
|
|
103
|
+
},
|
|
104
|
+
"RemovedInterfaceDeclaration_SerializedLocalState": {
|
|
105
|
+
"forwardCompat": false,
|
|
106
|
+
"backCompat": false
|
|
107
|
+
},
|
|
108
|
+
"RemovedTypeAliasDeclaration_SerializedSessionData": {
|
|
109
|
+
"forwardCompat": false,
|
|
110
|
+
"backCompat": false
|
|
111
|
+
},
|
|
112
|
+
"RemovedInterfaceDeclaration_SerializedSessionIdNormalizer": {
|
|
113
|
+
"forwardCompat": false,
|
|
114
|
+
"backCompat": false
|
|
115
|
+
},
|
|
116
|
+
"TypeAliasDeclaration_SessionSpaceCompressedId": {
|
|
117
|
+
"backCompat": false
|
|
118
|
+
},
|
|
119
|
+
"RemovedInterfaceDeclaration_SessionUnique": {
|
|
120
|
+
"forwardCompat": false,
|
|
121
|
+
"backCompat": false
|
|
122
|
+
},
|
|
123
|
+
"TypeAliasDeclaration_StableId": {
|
|
124
|
+
"backCompat": false
|
|
125
|
+
},
|
|
126
|
+
"RemovedTypeAliasDeclaration_UnackedLocalId": {
|
|
127
|
+
"forwardCompat": false,
|
|
128
|
+
"backCompat": false
|
|
129
|
+
},
|
|
130
|
+
"RemovedTypeAliasDeclaration_UuidString": {
|
|
131
|
+
"forwardCompat": false,
|
|
132
|
+
"backCompat": false
|
|
133
|
+
},
|
|
134
|
+
"RemovedInterfaceDeclaration_VersionedSerializedIdCompressor": {
|
|
135
|
+
"forwardCompat": false,
|
|
136
|
+
"backCompat": false
|
|
137
|
+
},
|
|
138
|
+
"TypeAliasDeclaration_IdCreationRangeWithStashedState": {
|
|
139
|
+
"forwardCompat": false,
|
|
140
|
+
"backCompat": false
|
|
141
|
+
},
|
|
142
|
+
"InterfaceDeclaration_IFluidDataStoreContext": {
|
|
143
|
+
"backCompat": false
|
|
144
|
+
},
|
|
145
|
+
"InterfaceDeclaration_IFluidDataStoreContextDetached": {
|
|
146
|
+
"backCompat": false
|
|
147
|
+
},
|
|
148
|
+
"InterfaceDeclaration_IIdCompressor": {
|
|
149
|
+
"backCompat": false
|
|
150
|
+
},
|
|
151
|
+
"TypeAliasDeclaration_SessionId": {
|
|
152
|
+
"backCompat": false
|
|
153
|
+
}
|
|
154
|
+
}
|
|
41
155
|
},
|
|
42
156
|
"scripts": {
|
|
43
157
|
"build": "fluid-build . --task build",
|
|
@@ -45,7 +159,7 @@
|
|
|
45
159
|
"build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
|
|
46
160
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
47
161
|
"ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
|
|
48
|
-
"clean": "rimraf --glob
|
|
162
|
+
"clean": "rimraf --glob 'dist' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp'",
|
|
49
163
|
"eslint": "eslint --format stylish src",
|
|
50
164
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
51
165
|
"format": "npm run prettier:fix",
|