@fluidframework/id-compressor 2.0.0-dev.7.4.0.221926 → 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 +4 -0
- package/api-report/id-compressor.api.md +1 -5
- package/dist/id-compressor-alpha.d.ts +20 -11
- package/dist/id-compressor-beta.d.ts +0 -2
- package/dist/id-compressor-public.d.ts +0 -2
- package/dist/id-compressor-untrimmed.d.ts +20 -16
- package/dist/idCompressor.d.ts +8 -9
- package/dist/idCompressor.d.ts.map +1 -1
- package/dist/idCompressor.js +25 -32
- package/dist/idCompressor.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +1 -1
- package/dist/types/persisted-types/0.0.1.d.ts +12 -6
- package/dist/types/persisted-types/0.0.1.d.ts.map +1 -1
- package/dist/types/persisted-types/0.0.1.js +0 -7
- package/dist/types/persisted-types/0.0.1.js.map +1 -1
- package/dist/types/persisted-types/index.d.ts +1 -1
- package/dist/types/persisted-types/index.d.ts.map +1 -1
- package/dist/types/persisted-types/index.js +0 -3
- package/dist/types/persisted-types/index.js.map +1 -1
- package/lib/id-compressor-alpha.d.ts +20 -11
- package/lib/id-compressor-beta.d.ts +0 -2
- package/lib/id-compressor-public.d.ts +0 -2
- package/lib/id-compressor-untrimmed.d.ts +20 -16
- package/lib/idCompressor.d.ts +8 -9
- package/lib/idCompressor.d.ts.map +1 -1
- package/lib/idCompressor.js +25 -32
- package/lib/idCompressor.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib/types/persisted-types/0.0.1.d.ts +12 -6
- package/lib/types/persisted-types/0.0.1.d.ts.map +1 -1
- package/lib/types/persisted-types/0.0.1.js +1 -6
- package/lib/types/persisted-types/0.0.1.js.map +1 -1
- package/lib/types/persisted-types/index.d.ts +1 -1
- package/lib/types/persisted-types/index.d.ts.map +1 -1
- package/lib/types/persisted-types/index.js +1 -1
- package/lib/types/persisted-types/index.js.map +1 -1
- package/package.json +7 -7
- package/src/idCompressor.ts +28 -32
- package/src/index.ts +0 -1
- package/src/packageVersion.ts +1 -1
- package/src/types/index.ts +0 -1
- package/src/types/persisted-types/0.0.1.ts +14 -7
- package/src/types/persisted-types/index.ts +0 -1
|
@@ -38,14 +38,21 @@ export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor &
|
|
|
38
38
|
export interface IdCreationRange {
|
|
39
39
|
readonly sessionId: SessionId;
|
|
40
40
|
readonly ids?: {
|
|
41
|
+
/**
|
|
42
|
+
* The gen count of the first ID in the range created by `sessionId.`
|
|
43
|
+
*/
|
|
41
44
|
readonly firstGenCount: number;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The number of IDs created in the range created by `sessionId.`
|
|
48
|
+
*/
|
|
42
49
|
readonly count: number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The size of the ID cluster to create if `count` overflows the existing cluster for
|
|
53
|
+
* `sessionId`, if one exists. This request will be respected, and the size of the cluster
|
|
54
|
+
* will be equal to overflow + `requestedClusterSize`.
|
|
55
|
+
*/
|
|
56
|
+
readonly requestedClusterSize: number;
|
|
43
57
|
};
|
|
44
58
|
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Roughly equates to a minimum of 1M sessions before we start allocating 64 bit IDs.
|
|
48
|
-
* This value must *NOT* change without careful consideration to compatibility.
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
export const initialClusterCapacity = 512;
|