@fluidframework/runtime-definitions 2.0.0-internal.6.1.2 → 2.0.0-internal.6.2.1

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +4 -3
  3. package/dist/dataStoreContext.d.ts +1 -2
  4. package/dist/dataStoreContext.d.ts.map +1 -1
  5. package/dist/dataStoreContext.js.map +1 -1
  6. package/dist/id-compressor/idCompressor.d.ts +32 -50
  7. package/dist/id-compressor/idCompressor.d.ts.map +1 -1
  8. package/dist/id-compressor/idCompressor.js.map +1 -1
  9. package/dist/id-compressor/identifiers.d.ts +10 -51
  10. package/dist/id-compressor/identifiers.d.ts.map +1 -1
  11. package/dist/id-compressor/identifiers.js.map +1 -1
  12. package/dist/id-compressor/index.d.ts +2 -2
  13. package/dist/id-compressor/index.d.ts.map +1 -1
  14. package/dist/id-compressor/index.js +3 -0
  15. package/dist/id-compressor/index.js.map +1 -1
  16. package/dist/id-compressor/persisted-types/0.0.1.d.ts +18 -136
  17. package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +1 -1
  18. package/dist/id-compressor/persisted-types/0.0.1.js +6 -0
  19. package/dist/id-compressor/persisted-types/0.0.1.js.map +1 -1
  20. package/dist/id-compressor/persisted-types/index.d.ts +1 -1
  21. package/dist/id-compressor/persisted-types/index.d.ts.map +1 -1
  22. package/dist/id-compressor/persisted-types/index.js +3 -0
  23. package/dist/id-compressor/persisted-types/index.js.map +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +3 -1
  27. package/dist/index.js.map +1 -1
  28. package/package.json +125 -9
  29. package/src/dataStoreContext.ts +2 -1
  30. package/src/id-compressor/idCompressor.ts +32 -59
  31. package/src/id-compressor/identifiers.ts +10 -58
  32. package/src/id-compressor/index.ts +2 -19
  33. package/src/id-compressor/persisted-types/0.0.1.ts +18 -159
  34. package/src/id-compressor/persisted-types/index.ts +1 -8
  35. 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 { FinalCompressedId, LocalCompressedId, OpSpaceCompressedId, SessionId } from "../identifiers";
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 interface SerializedIdCompressor extends VersionedSerializedIdCompressor {
92
- /** The cluster capacity of this compressor */
93
- readonly clusterCapacity: number;
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 interface SerializedIdCompressorWithNoSession extends SerializedIdCompressor {
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 interface SerializedIdCompressorWithOngoingSession extends SerializedIdCompressor {
21
+ export declare type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
109
22
  readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
110
- /** The session ID of the local session, by index into `sessions`. */
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. Some of these may have overrides.
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?: IdCreationRange.Ids;
143
- }
144
- export declare type UnackedLocalId = LocalCompressedId & OpSpaceCompressedId;
145
- export declare namespace IdCreationRange {
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":"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"}
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 {\n\tFinalCompressedId,\n\tLocalCompressedId,\n\tOpSpaceCompressedId,\n\tSessionId,\n} from \"../identifiers\";\n\n/**\n * A serialized ID allocation session for an `IdCompressor`.\n */\nexport type SerializedSessionData = readonly [\n\t/**\n\t * The ID of the session.\n\t */\n\tsessionId: SessionId,\n];\n\nexport type SerializedClusterOverrides = readonly [\n\t/** The overridden final ID, represented as an index into the cluster's ID range */\n\toverriddenFinalIndex: number, // A cluster with base UUID '...beef' and an `overriddenFinalIndex` of 3 would correspond to '...bef2'\n\t/** The override string */\n\toverride: string,\n\t/** The first ID that was finalized and associated with this override, set only if different than the `overriddenFinalIndex` */\n\toverriddenId?: FinalCompressedId,\n][];\n\n/**\n * A serialized final ID cluster.\n */\nexport type SerializedCluster = readonly [\n\t/**\n\t * Index into the serialized sessions array. Can be converted into a baseUuid via its order in `clusters`.\n\t * If negative, then this cluster was created by the local session.\n\t */\n\tsessionIndex: number,\n\n\t/**\n\t * The capacity of the cluster.\n\t */\n\tcapacity: number,\n\n\t/**\n\t * The number of IDs in the cluster. Omitted if count === capacity.\n\t * --OR--\n\t * The overrides in this cluster. Omitted if no overrides exist in the cluster.\n\t */\n\tcountOrOverrides?: number | SerializedClusterOverrides,\n\n\t/**\n\t * Overrides in this cluster. Omitted if no overrides exist in the cluster.\n\t */\n\toverrides?: SerializedClusterOverrides,\n];\n\nexport type SerializedLocalOverrides = readonly (readonly [LocalCompressedId, string])[];\n\nexport interface SerializedLocalState {\n\t/**\n\t * The total number of local IDs created by this session\n\t */\n\treadonly localIdCount: number;\n\t/**\n\t * Overrides generated by this session. Omitted if no local overrides exist in the session.\n\t */\n\treadonly overrides?: SerializedLocalOverrides;\n\n\t/**\n\t * The most recent local ID in a range returned by `takeNextCreationRange`.\n\t */\n\treadonly lastTakenLocalId: LocalCompressedId | undefined;\n\n\t/**\n\t * Serialized table for normalizing IDs made by the local session.\n\t */\n\treadonly sessionNormalizer: SerializedSessionIdNormalizer;\n}\n\n/**\n * Serialized table for normalizing IDs made by the local session.\n */\nexport interface SerializedSessionIdNormalizer {\n\treadonly nextLocalId: LocalCompressedId;\n\treadonly localRanges: readonly (readonly [\n\t\tfirstLocal: LocalCompressedId,\n\t\tlastLocal: LocalCompressedId,\n\t\tfinalRanges?: readonly (readonly [\n\t\t\talignedLocal: LocalCompressedId,\n\t\t\tfirstFinal: FinalCompressedId,\n\t\t\tlastFinal: FinalCompressedId,\n\t\t])[],\n\t])[];\n}\n\n/**\n * The minimal required contents of a serialized IdCompressor.\n */\nexport interface VersionedSerializedIdCompressor {\n\treadonly _versionedSerializedIdCompressor: \"8c73c57c-1cf4-4278-8915-6444cb4f6af5\";\n\treadonly version: string;\n}\n\n/**\n * The serialized contents of an IdCompressor, suitable for persistence in a summary.\n */\nexport interface SerializedIdCompressor extends VersionedSerializedIdCompressor {\n\t/** The cluster capacity of this compressor */\n\treadonly clusterCapacity: number;\n\t/** All sessions except the local session. */\n\treadonly sessions: readonly SerializedSessionData[];\n\t/** All clusters in the compressor in the order they were created. */\n\treadonly clusters: readonly SerializedCluster[];\n}\n\n/**\n * The serialized contents of an IdCompressor, suitable for persistence in a summary.\n */\nexport interface SerializedIdCompressorWithNoSession extends 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 interface SerializedIdCompressorWithOngoingSession extends SerializedIdCompressor {\n\treadonly _hasLocalState: \"1281acae-6d14-47e7-bc92-71c8ee0819cb\";\n\t/** The session ID of the local session, by index into `sessions`. */\n\treadonly localSessionIndex: number;\n\t/** This is only present if the local session made any IDs. */\n\treadonly localState?: SerializedLocalState;\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. Some of these may have overrides.\n *\n * @example\n * Suppose an IdCompressor generated a sequence of local IDs as follows:\n * ```\n * compressor.generateLocalId()\n * compressor.generateLocalId('0093cf29-9454-4034-8940-33b1077b41c3')\n * compressor.generateLocalId()\n * compressor.generateLocalId('0ed545f8-e97e-4dc1-acf9-c4a783258bdf')\n * compressor.generateLocalId()\n * compressor.generateLocalId()\n * compressor.takeNextCreationRange()\n * ```\n * This would result in the following range:\n * ```\n * {\n * first: localId1,\n * last: localId6,\n * overrides: [[localId2, '0093cf29-9454-4034-8940-33b1077b41c3'], [localId4, '0ed545f8-e97e-4dc1-acf9-c4a783258bdf']]\n * }\n * ```\n */\nexport interface IdCreationRange {\n\treadonly sessionId: SessionId;\n\treadonly ids?: IdCreationRange.Ids;\n}\n\nexport type UnackedLocalId = LocalCompressedId & OpSpaceCompressedId;\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace IdCreationRange {\n\texport type Ids =\n\t\t| {\n\t\t\t\treadonly first: UnackedLocalId;\n\t\t\t\treadonly last: UnackedLocalId;\n\t\t }\n\t\t| ({\n\t\t\t\treadonly first?: UnackedLocalId;\n\t\t\t\treadonly last?: UnackedLocalId;\n\t\t } & HasOverrides);\n\n\texport interface HasOverrides {\n\t\treadonly overrides: Overrides;\n\t}\n\n\texport type Override = readonly [id: UnackedLocalId, override: string];\n\texport type Overrides = readonly [Override, ...Override[]];\n}\n\nexport type IdCreationRangeWithStashedState = IdCreationRange & {\n\tstashedState: SerializedIdCompressorWithOngoingSession;\n};\n"]}
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, SerializedCluster, SerializedClusterOverrides, SerializedIdCompressor, SerializedIdCompressorWithNoSession, SerializedIdCompressorWithOngoingSession, SerializedLocalOverrides, SerializedLocalState, SerializedSessionData, SerializedSessionIdNormalizer, UnackedLocalId, VersionedSerializedIdCompressor, IdCreationRangeWithStashedState, } from "./0.0.1";
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,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,EACtB,mCAAmC,EACnC,wCAAwC,EACxC,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,6BAA6B,EAC7B,cAAc,EACd,+BAA+B,EAC/B,+BAA+B,GAC/B,MAAM,SAAS,CAAC"}
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\tSerializedCluster,\n\tSerializedClusterOverrides,\n\tSerializedIdCompressor,\n\tSerializedIdCompressorWithNoSession,\n\tSerializedIdCompressorWithOngoingSession,\n\tSerializedLocalOverrides,\n\tSerializedLocalState,\n\tSerializedSessionData,\n\tSerializedSessionIdNormalizer,\n\tUnackedLocalId,\n\tVersionedSerializedIdCompressor,\n\tIdCreationRangeWithStashedState,\n} from \"./0.0.1\";\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, FinalCompressedId, StableId, UuidString, CompressedId, SessionUnique, LocalCompressedId, IdCreationRange, VersionedSerializedIdCompressor, SerializedCluster, SerializedSessionData, SerializedLocalState, SerializedClusterOverrides, SerializedLocalOverrides, SerializedSessionIdNormalizer, UnackedLocalId, IdCreationRangeWithStashedState, } from "./id-compressor";
12
+ export { IIdCompressorCore, IIdCompressor, SerializedIdCompressor, SerializedIdCompressorWithOngoingSession, SerializedIdCompressorWithNoSession, SessionSpaceCompressedId, OpSpaceCompressedId, SessionId, StableId, IdCreationRange, IdCreationRangeWithStashedState, initialClusterCapacity, } from "./id-compressor";
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -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,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,+BAA+B,EAC/B,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC7B,cAAc,EACd,+BAA+B,GAC/B,MAAM,iBAAiB,CAAC"}
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\tFinalCompressedId,\n\tStableId,\n\tUuidString,\n\tCompressedId,\n\tSessionUnique,\n\tLocalCompressedId,\n\tIdCreationRange,\n\tVersionedSerializedIdCompressor,\n\tSerializedCluster,\n\tSerializedSessionData,\n\tSerializedLocalState,\n\tSerializedClusterOverrides,\n\tSerializedLocalOverrides,\n\tSerializedSessionIdNormalizer,\n\tUnackedLocalId,\n\tIdCreationRangeWithStashedState,\n} from \"./id-compressor\";\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.1.2",
3
+ "version": "2.0.0-internal.6.2.1",
4
4
  "description": "Fluid Runtime definitions",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -14,18 +14,17 @@
14
14
  "main": "dist/index.js",
15
15
  "types": "dist/index.d.ts",
16
16
  "dependencies": {
17
- "@fluidframework/common-definitions": "^0.20.1",
18
17
  "@fluidframework/common-utils": "^1.1.1",
19
- "@fluidframework/container-definitions": ">=2.0.0-internal.6.1.2 <2.0.0-internal.6.2.0",
20
- "@fluidframework/core-interfaces": ">=2.0.0-internal.6.1.2 <2.0.0-internal.6.2.0",
21
- "@fluidframework/driver-definitions": ">=2.0.0-internal.6.1.2 <2.0.0-internal.6.2.0",
18
+ "@fluidframework/container-definitions": ">=2.0.0-internal.6.2.1 <2.0.0-internal.6.3.0",
19
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.6.2.1 <2.0.0-internal.6.3.0",
20
+ "@fluidframework/driver-definitions": ">=2.0.0-internal.6.2.1 <2.0.0-internal.6.3.0",
22
21
  "@fluidframework/protocol-definitions": "^1.1.0"
23
22
  },
24
23
  "devDependencies": {
25
- "@fluid-tools/build-cli": "^0.22.0",
24
+ "@fluid-tools/build-cli": "^0.23.0",
26
25
  "@fluidframework/build-common": "^2.0.0",
27
- "@fluidframework/build-tools": "^0.22.0",
28
- "@fluidframework/eslint-config-fluid": "^2.0.0",
26
+ "@fluidframework/build-tools": "^0.23.0",
27
+ "@fluidframework/eslint-config-fluid": "^2.1.0",
29
28
  "@fluidframework/runtime-definitions-previous": "npm:@fluidframework/runtime-definitions@2.0.0-internal.6.1.1",
30
29
  "@microsoft/api-extractor": "^7.34.4",
31
30
  "concurrently": "^7.6.0",
@@ -37,7 +36,124 @@
37
36
  "typescript": "~4.5.5"
38
37
  },
39
38
  "typeValidation": {
40
- "broken": {}
39
+ "broken": {
40
+ "RemovedTypeAliasDeclaration_CompressedId": {
41
+ "forwardCompat": false,
42
+ "backCompat": false
43
+ },
44
+ "RemovedTypeAliasDeclaration_FinalCompressedId": {
45
+ "forwardCompat": false,
46
+ "backCompat": false
47
+ },
48
+ "InterfaceDeclaration_IIdCompressorCore": {
49
+ "backCompat": false
50
+ },
51
+ "InterfaceDeclaration_IdCreationRange": {
52
+ "forwardCompat": false,
53
+ "backCompat": false
54
+ },
55
+ "RemovedInterfaceDeclaration_IdCreationRange.HasOverrides": {
56
+ "forwardCompat": false,
57
+ "backCompat": false
58
+ },
59
+ "RemovedTypeAliasDeclaration_IdCreationRange.Ids": {
60
+ "forwardCompat": false,
61
+ "backCompat": false
62
+ },
63
+ "RemovedTypeAliasDeclaration_IdCreationRange.Override": {
64
+ "forwardCompat": false,
65
+ "backCompat": false
66
+ },
67
+ "RemovedTypeAliasDeclaration_IdCreationRange.Overrides": {
68
+ "forwardCompat": false,
69
+ "backCompat": false
70
+ },
71
+ "RemovedTypeAliasDeclaration_IdCreationRangeWithStashedState": {
72
+ "forwardCompat": false,
73
+ "backCompat": false
74
+ },
75
+ "RemovedTypeAliasDeclaration_LocalCompressedId": {
76
+ "forwardCompat": false,
77
+ "backCompat": false
78
+ },
79
+ "TypeAliasDeclaration_OpSpaceCompressedId": {
80
+ "backCompat": false
81
+ },
82
+ "RemovedTypeAliasDeclaration_SerializedCluster": {
83
+ "forwardCompat": false,
84
+ "backCompat": false
85
+ },
86
+ "RemovedTypeAliasDeclaration_SerializedClusterOverrides": {
87
+ "forwardCompat": false,
88
+ "backCompat": false
89
+ },
90
+ "RemovedInterfaceDeclaration_SerializedIdCompressor": {
91
+ "forwardCompat": false,
92
+ "backCompat": false
93
+ },
94
+ "RemovedInterfaceDeclaration_SerializedIdCompressorWithNoSession": {
95
+ "forwardCompat": false,
96
+ "backCompat": false
97
+ },
98
+ "RemovedInterfaceDeclaration_SerializedIdCompressorWithOngoingSession": {
99
+ "forwardCompat": false,
100
+ "backCompat": false
101
+ },
102
+ "RemovedTypeAliasDeclaration_SerializedLocalOverrides": {
103
+ "forwardCompat": false,
104
+ "backCompat": false
105
+ },
106
+ "RemovedInterfaceDeclaration_SerializedLocalState": {
107
+ "forwardCompat": false,
108
+ "backCompat": false
109
+ },
110
+ "RemovedTypeAliasDeclaration_SerializedSessionData": {
111
+ "forwardCompat": false,
112
+ "backCompat": false
113
+ },
114
+ "RemovedInterfaceDeclaration_SerializedSessionIdNormalizer": {
115
+ "forwardCompat": false,
116
+ "backCompat": false
117
+ },
118
+ "TypeAliasDeclaration_SessionSpaceCompressedId": {
119
+ "backCompat": false
120
+ },
121
+ "RemovedInterfaceDeclaration_SessionUnique": {
122
+ "forwardCompat": false,
123
+ "backCompat": false
124
+ },
125
+ "TypeAliasDeclaration_StableId": {
126
+ "backCompat": false
127
+ },
128
+ "RemovedTypeAliasDeclaration_UnackedLocalId": {
129
+ "forwardCompat": false,
130
+ "backCompat": false
131
+ },
132
+ "RemovedTypeAliasDeclaration_UuidString": {
133
+ "forwardCompat": false,
134
+ "backCompat": false
135
+ },
136
+ "RemovedInterfaceDeclaration_VersionedSerializedIdCompressor": {
137
+ "forwardCompat": false,
138
+ "backCompat": false
139
+ },
140
+ "TypeAliasDeclaration_IdCreationRangeWithStashedState": {
141
+ "forwardCompat": false,
142
+ "backCompat": false
143
+ },
144
+ "InterfaceDeclaration_IFluidDataStoreContext": {
145
+ "backCompat": false
146
+ },
147
+ "InterfaceDeclaration_IFluidDataStoreContextDetached": {
148
+ "backCompat": false
149
+ },
150
+ "InterfaceDeclaration_IIdCompressor": {
151
+ "backCompat": false
152
+ },
153
+ "TypeAliasDeclaration_SessionId": {
154
+ "backCompat": false
155
+ }
156
+ }
41
157
  },
42
158
  "scripts": {
43
159
  "build": "fluid-build . --task build",
@@ -3,8 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { IEvent, IEventProvider } from "@fluidframework/common-definitions";
7
6
  import {
7
+ IEvent,
8
+ IEventProvider,
8
9
  ITelemetryBaseLogger,
9
10
  IDisposable,
10
11
  IFluidRouter,