@fluidframework/runtime-definitions 2.0.0-internal.7.3.0 → 2.0.0-internal.8.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 +52 -0
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +3 -3
- package/api-report/runtime-definitions.api.md +74 -127
- package/dist/attribution.d.ts +1 -4
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js.map +1 -1
- package/dist/dataStoreContext.d.ts +27 -47
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +5 -0
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStoreFactory.d.ts +7 -0
- package/dist/dataStoreFactory.d.ts.map +1 -1
- package/dist/dataStoreFactory.js +3 -0
- package/dist/dataStoreFactory.js.map +1 -1
- package/dist/dataStoreRegistry.d.ts +10 -0
- package/dist/dataStoreRegistry.d.ts.map +1 -1
- package/dist/dataStoreRegistry.js +3 -0
- package/dist/dataStoreRegistry.js.map +1 -1
- package/dist/garbageCollection.d.ts +22 -4
- package/dist/garbageCollection.d.ts.map +1 -1
- package/dist/garbageCollection.js +20 -4
- package/dist/garbageCollection.js.map +1 -1
- package/dist/index.d.ts +45 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +7 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/runtime-definitions-alpha.d.ts +953 -0
- package/dist/runtime-definitions-beta.d.ts +192 -0
- package/dist/runtime-definitions-public.d.ts +192 -0
- package/dist/runtime-definitions-untrimmed.d.ts +1068 -0
- package/dist/summary.d.ts +34 -0
- package/dist/summary.d.ts.map +1 -1
- package/dist/summary.js +12 -0
- package/dist/summary.js.map +1 -1
- package/lib/runtime-definitions-alpha.d.ts +953 -0
- package/lib/runtime-definitions-beta.d.ts +192 -0
- package/lib/runtime-definitions-public.d.ts +192 -0
- package/lib/runtime-definitions-untrimmed.d.ts +1068 -0
- package/package.json +54 -8
- package/src/attribution.ts +1 -4
- package/src/dataStoreContext.ts +26 -54
- package/src/dataStoreFactory.ts +7 -0
- package/src/dataStoreRegistry.ts +10 -0
- package/src/garbageCollection.ts +22 -4
- package/src/index.ts +43 -7
- package/src/protocol.ts +7 -0
- package/src/summary.ts +34 -0
- package/dist/id-compressor/idCompressor.d.ts +0 -136
- package/dist/id-compressor/idCompressor.d.ts.map +0 -1
- package/dist/id-compressor/idCompressor.js +0 -7
- package/dist/id-compressor/idCompressor.js.map +0 -1
- package/dist/id-compressor/identifiers.d.ts +0 -36
- package/dist/id-compressor/identifiers.d.ts.map +0 -1
- package/dist/id-compressor/identifiers.js +0 -7
- package/dist/id-compressor/identifiers.js.map +0 -1
- package/dist/id-compressor/index.d.ts +0 -8
- package/dist/id-compressor/index.d.ts.map +0 -1
- package/dist/id-compressor/index.js +0 -10
- package/dist/id-compressor/index.js.map +0 -1
- package/dist/id-compressor/persisted-types/0.0.1.d.ts +0 -41
- package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +0 -1
- package/dist/id-compressor/persisted-types/0.0.1.js +0 -13
- package/dist/id-compressor/persisted-types/0.0.1.js.map +0 -1
- package/dist/id-compressor/persisted-types/index.d.ts +0 -6
- package/dist/id-compressor/persisted-types/index.d.ts.map +0 -1
- package/dist/id-compressor/persisted-types/index.js +0 -10
- package/dist/id-compressor/persisted-types/index.js.map +0 -1
- package/src/id-compressor/idCompressor.ts +0 -152
- package/src/id-compressor/identifiers.ts +0 -35
- package/src/id-compressor/index.ts +0 -16
- package/src/id-compressor/persisted-types/0.0.1.ts +0 -46
- package/src/id-compressor/persisted-types/README.md +0 -3
- package/src/id-compressor/persisted-types/index.ts +0 -12
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A compressed ID that has been normalized into "session space" (see `IdCompressor` for more).
|
|
8
|
-
* Consumer-facing APIs and data structures should use session-space IDs as their lifetime and equality is stable and tied to
|
|
9
|
-
* the scope of the session (i.e. compressor) that produced them.
|
|
10
|
-
*/
|
|
11
|
-
export type SessionSpaceCompressedId = number & {
|
|
12
|
-
readonly SessionUnique: "cea55054-6b82-4cbf-ad19-1fa645ea3b3e";
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* A compressed ID that has been normalized into "op space".
|
|
17
|
-
* Serialized/persisted structures (e.g. ops) should use op-space IDs as a performance optimization, as they require less normalizing when
|
|
18
|
-
* received by a remote client due to the fact that op space for a given compressor is session space for all other compressors.
|
|
19
|
-
*/
|
|
20
|
-
export type OpSpaceCompressedId = number & {
|
|
21
|
-
readonly OpNormalized: "9209432d-a959-4df7-b2ad-767ead4dbcae";
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* A version 4, variant 1 uuid (https://datatracker.ietf.org/doc/html/rfc4122).
|
|
26
|
-
* A 128-bit Universally Unique IDentifier. Represented here
|
|
27
|
-
* with a string of the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,
|
|
28
|
-
* where x is a lowercase hex digit.
|
|
29
|
-
*/
|
|
30
|
-
export type StableId = string & { readonly StableId: "53172b0d-a3d5-41ea-bd75-b43839c97f5a" };
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* A StableId which is suitable for use as a session identifier
|
|
34
|
-
*/
|
|
35
|
-
export type SessionId = StableId & { readonly SessionId: "4498f850-e14e-4be9-8db0-89ec00997e58" };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
IdCreationRange,
|
|
8
|
-
SerializedIdCompressor,
|
|
9
|
-
SerializedIdCompressorWithNoSession,
|
|
10
|
-
SerializedIdCompressorWithOngoingSession,
|
|
11
|
-
initialClusterCapacity,
|
|
12
|
-
} from "./persisted-types";
|
|
13
|
-
|
|
14
|
-
export { IIdCompressorCore, IIdCompressor } from "./idCompressor";
|
|
15
|
-
|
|
16
|
-
export { SessionSpaceCompressedId, OpSpaceCompressedId, SessionId, StableId } from "./identifiers";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { SessionId } from "../identifiers";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
10
|
-
*/
|
|
11
|
-
export type SerializedIdCompressor = string & {
|
|
12
|
-
readonly _serializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
17
|
-
*/
|
|
18
|
-
export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
|
|
19
|
-
readonly _noLocalState: "3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb";
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
24
|
-
*/
|
|
25
|
-
export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
|
|
26
|
-
readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Data describing a range of session-local IDs (from a remote or local session).
|
|
31
|
-
*
|
|
32
|
-
* A range is composed of local IDs that were generated.
|
|
33
|
-
*/
|
|
34
|
-
export interface IdCreationRange {
|
|
35
|
-
readonly sessionId: SessionId;
|
|
36
|
-
readonly ids?: {
|
|
37
|
-
readonly firstGenCount: number;
|
|
38
|
-
readonly count: number;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Roughly equates to a minimum of 1M sessions before we start allocating 64 bit IDs.
|
|
44
|
-
* This value must *NOT* change without careful consideration to compatibility.
|
|
45
|
-
*/
|
|
46
|
-
export const initialClusterCapacity = 512;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
IdCreationRange,
|
|
8
|
-
SerializedIdCompressor,
|
|
9
|
-
SerializedIdCompressorWithNoSession,
|
|
10
|
-
SerializedIdCompressorWithOngoingSession,
|
|
11
|
-
initialClusterCapacity,
|
|
12
|
-
} from "./0.0.1";
|