@fluidframework/id-compressor 2.0.2 → 2.1.0-276326

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 (46) hide show
  1. package/api-extractor/api-extractor.legacy.json +4 -0
  2. package/api-report/id-compressor.beta.api.md +0 -3
  3. package/api-report/{id-compressor.alpha.api.md → id-compressor.legacy.alpha.api.md} +0 -3
  4. package/api-report/id-compressor.public.api.md +0 -3
  5. package/dist/idCompressor.d.ts +4 -0
  6. package/dist/idCompressor.d.ts.map +1 -1
  7. package/dist/idCompressor.js.map +1 -1
  8. package/dist/legacy.d.ts +1 -1
  9. package/dist/packageVersion.d.ts +1 -1
  10. package/dist/packageVersion.d.ts.map +1 -1
  11. package/dist/packageVersion.js +1 -1
  12. package/dist/packageVersion.js.map +1 -1
  13. package/dist/types/idCompressor.d.ts +1 -0
  14. package/dist/types/idCompressor.d.ts.map +1 -1
  15. package/dist/types/idCompressor.js.map +1 -1
  16. package/dist/types/persisted-types/0.0.1.d.ts +4 -0
  17. package/dist/types/persisted-types/0.0.1.d.ts.map +1 -1
  18. package/dist/types/persisted-types/0.0.1.js.map +1 -1
  19. package/dist/utilities.d.ts +1 -0
  20. package/dist/utilities.d.ts.map +1 -1
  21. package/dist/utilities.js +1 -0
  22. package/dist/utilities.js.map +1 -1
  23. package/lib/idCompressor.d.ts +4 -0
  24. package/lib/idCompressor.d.ts.map +1 -1
  25. package/lib/idCompressor.js.map +1 -1
  26. package/lib/legacy.d.ts +1 -1
  27. package/lib/packageVersion.d.ts +1 -1
  28. package/lib/packageVersion.d.ts.map +1 -1
  29. package/lib/packageVersion.js +1 -1
  30. package/lib/packageVersion.js.map +1 -1
  31. package/lib/types/idCompressor.d.ts +1 -0
  32. package/lib/types/idCompressor.d.ts.map +1 -1
  33. package/lib/types/idCompressor.js.map +1 -1
  34. package/lib/types/persisted-types/0.0.1.d.ts +4 -0
  35. package/lib/types/persisted-types/0.0.1.d.ts.map +1 -1
  36. package/lib/types/persisted-types/0.0.1.js.map +1 -1
  37. package/lib/utilities.d.ts +1 -0
  38. package/lib/utilities.d.ts.map +1 -1
  39. package/lib/utilities.js +1 -0
  40. package/lib/utilities.js.map +1 -1
  41. package/package.json +16 -12
  42. package/src/idCompressor.ts +4 -0
  43. package/src/packageVersion.ts +1 -1
  44. package/src/types/idCompressor.ts +1 -0
  45. package/src/types/persisted-types/0.0.1.ts +4 -0
  46. package/src/utilities.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/id-compressor",
3
- "version": "2.0.2",
3
+ "version": "2.1.0-276326",
4
4
  "description": "ID compressor",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -79,24 +79,24 @@
79
79
  "temp-directory": "nyc/.nyc_output"
80
80
  },
81
81
  "dependencies": {
82
- "@fluid-internal/client-utils": "~2.0.2",
83
- "@fluidframework/core-interfaces": "~2.0.2",
84
- "@fluidframework/core-utils": "~2.0.2",
85
- "@fluidframework/telemetry-utils": "~2.0.2",
82
+ "@fluid-internal/client-utils": "2.1.0-276326",
83
+ "@fluidframework/core-interfaces": "2.1.0-276326",
84
+ "@fluidframework/core-utils": "2.1.0-276326",
85
+ "@fluidframework/telemetry-utils": "2.1.0-276326",
86
86
  "@tylerbu/sorted-btree-es6": "^1.8.0",
87
87
  "uuid": "^9.0.0"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@arethetypeswrong/cli": "^0.15.2",
91
91
  "@biomejs/biome": "^1.7.3",
92
- "@fluid-internal/mocha-test-setup": "~2.0.2",
93
- "@fluid-private/stochastic-test-utils": "~2.0.2",
92
+ "@fluid-internal/mocha-test-setup": "2.1.0-276326",
93
+ "@fluid-private/stochastic-test-utils": "2.1.0-276326",
94
94
  "@fluid-tools/benchmark": "^0.48.0",
95
95
  "@fluid-tools/build-cli": "^0.39.0",
96
96
  "@fluidframework/build-common": "^2.0.3",
97
97
  "@fluidframework/build-tools": "^0.39.0",
98
98
  "@fluidframework/eslint-config-fluid": "^5.3.0",
99
- "@fluidframework/id-compressor-previous": "npm:@fluidframework/id-compressor@2.0.0-rc.4.0.0",
99
+ "@fluidframework/id-compressor-previous": "npm:@fluidframework/id-compressor@2.0.0-rc.5.0.0",
100
100
  "@microsoft/api-extractor": "^7.45.1",
101
101
  "@types/mocha": "^9.1.1",
102
102
  "@types/node": "^18.19.0",
@@ -119,12 +119,14 @@
119
119
  },
120
120
  "scripts": {
121
121
  "api": "fluid-build . --task api",
122
- "api-extractor:commonjs": "flub generate entrypoints --outFileAlpha legacy --outDir ./dist",
123
- "api-extractor:esnext": "flub generate entrypoints --outFileAlpha legacy --outDir ./lib --node10TypeCompat",
122
+ "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
123
+ "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
124
124
  "build": "fluid-build . --task build",
125
125
  "build:commonjs": "fluid-build . --task commonjs",
126
126
  "build:compile": "fluid-build . --task compile",
127
- "build:docs": "api-extractor run --local",
127
+ "build:docs": "concurrently \"npm:build:docs:*\"",
128
+ "build:docs:current": "api-extractor run --local",
129
+ "build:docs:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json",
128
130
  "build:esnext": "tsc --project ./tsconfig.json",
129
131
  "build:genver": "gen-version",
130
132
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
@@ -140,7 +142,9 @@
140
142
  "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
141
143
  "check:format": "npm run check:biome",
142
144
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
143
- "ci:build:docs": "api-extractor run",
145
+ "ci:build:docs": "concurrently \"npm:ci:build:docs:*\"",
146
+ "ci:build:docs:current": "api-extractor run",
147
+ "ci:build:docs:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json",
144
148
  "clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
145
149
  "eslint": "eslint --format stylish src",
146
150
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
@@ -742,6 +742,7 @@ export class IdCompressor implements IIdCompressor, IIdCompressorCore {
742
742
 
743
743
  /**
744
744
  * Create a new {@link IIdCompressor}.
745
+ * @legacy
745
746
  * @alpha
746
747
  */
747
748
  export function createIdCompressor(
@@ -750,6 +751,7 @@ export function createIdCompressor(
750
751
  /**
751
752
  * Create a new {@link IIdCompressor}.
752
753
  * @param sessionId - The seed ID for the compressor.
754
+ * @legacy
753
755
  * @alpha
754
756
  */
755
757
  export function createIdCompressor(
@@ -782,6 +784,7 @@ export function createIdCompressor(
782
784
 
783
785
  /**
784
786
  * Deserializes the supplied state into an ID compressor.
787
+ * @legacy
785
788
  * @alpha
786
789
  */
787
790
  export function deserializeIdCompressor(
@@ -790,6 +793,7 @@ export function deserializeIdCompressor(
790
793
  ): IIdCompressor & IIdCompressorCore;
791
794
  /**
792
795
  * Deserializes the supplied state into an ID compressor.
796
+ * @legacy
793
797
  * @alpha
794
798
  */
795
799
  export function deserializeIdCompressor(
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/id-compressor";
9
- export const pkgVersion = "2.0.2";
9
+ export const pkgVersion = "2.1.0-276326";
@@ -75,6 +75,7 @@ import {
75
75
  *
76
76
  * These two spaces naturally define a rule: consumers of compressed IDs should use session-space IDs, but serialized forms such as ops
77
77
  * should use op-space IDs.
78
+ * @legacy
78
79
  * @alpha
79
80
  */
80
81
  export interface IIdCompressorCore {
@@ -7,6 +7,7 @@ import type { SessionId } from "../identifiers.js";
7
7
 
8
8
  /**
9
9
  * The serialized contents of an IdCompressor, suitable for persistence in a summary.
10
+ * @legacy
10
11
  * @alpha
11
12
  */
12
13
  export type SerializedIdCompressor = string & {
@@ -15,6 +16,7 @@ export type SerializedIdCompressor = string & {
15
16
 
16
17
  /**
17
18
  * The serialized contents of an IdCompressor, suitable for persistence in a summary.
19
+ * @legacy
18
20
  * @alpha
19
21
  */
20
22
  export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
@@ -23,6 +25,7 @@ export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
23
25
 
24
26
  /**
25
27
  * The serialized contents of an IdCompressor, suitable for persistence in a summary.
28
+ * @legacy
26
29
  * @alpha
27
30
  */
28
31
  export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
@@ -33,6 +36,7 @@ export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor &
33
36
  * Data describing a range of session-local IDs (from a remote or local session).
34
37
  *
35
38
  * A range is composed of local IDs that were generated.
39
+ * @legacy
36
40
  * @alpha
37
41
  */
38
42
  export interface IdCreationRange {
package/src/utilities.ts CHANGED
@@ -29,6 +29,7 @@ function isHexadecimalCharacter(charCode: number): boolean {
29
29
 
30
30
  /**
31
31
  * Generate a random session ID
32
+ * @legacy
32
33
  * @alpha
33
34
  */
34
35
  export function createSessionId(): SessionId {