@fluidframework/presence 2.42.0 → 2.43.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.
Files changed (54) hide show
  1. package/README.md +56 -32
  2. package/dist/alpha.d.ts +14 -5
  3. package/dist/beta.d.ts +14 -5
  4. package/dist/exposedInternalTypes.d.ts +12 -0
  5. package/dist/exposedInternalTypes.d.ts.map +1 -1
  6. package/dist/exposedInternalTypes.js.map +1 -1
  7. package/dist/index.d.ts +3 -3
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/latestMapValueManager.d.ts +72 -14
  11. package/dist/latestMapValueManager.d.ts.map +1 -1
  12. package/dist/latestMapValueManager.js +15 -9
  13. package/dist/latestMapValueManager.js.map +1 -1
  14. package/dist/latestValueManager.d.ts +68 -13
  15. package/dist/latestValueManager.d.ts.map +1 -1
  16. package/dist/latestValueManager.js +7 -5
  17. package/dist/latestValueManager.js.map +1 -1
  18. package/dist/latestValueTypes.d.ts +60 -5
  19. package/dist/latestValueTypes.d.ts.map +1 -1
  20. package/dist/latestValueTypes.js.map +1 -1
  21. package/dist/presence.d.ts +20 -2
  22. package/dist/presence.d.ts.map +1 -1
  23. package/dist/presence.js.map +1 -1
  24. package/dist/stateFactory.d.ts +15 -10
  25. package/dist/stateFactory.d.ts.map +1 -1
  26. package/dist/stateFactory.js +12 -10
  27. package/dist/stateFactory.js.map +1 -1
  28. package/lib/alpha.d.ts +14 -5
  29. package/lib/beta.d.ts +14 -5
  30. package/lib/exposedInternalTypes.d.ts +12 -0
  31. package/lib/exposedInternalTypes.d.ts.map +1 -1
  32. package/lib/exposedInternalTypes.js.map +1 -1
  33. package/lib/index.d.ts +3 -3
  34. package/lib/index.d.ts.map +1 -1
  35. package/lib/index.js.map +1 -1
  36. package/lib/latestMapValueManager.d.ts +72 -14
  37. package/lib/latestMapValueManager.d.ts.map +1 -1
  38. package/lib/latestMapValueManager.js +15 -9
  39. package/lib/latestMapValueManager.js.map +1 -1
  40. package/lib/latestValueManager.d.ts +68 -13
  41. package/lib/latestValueManager.d.ts.map +1 -1
  42. package/lib/latestValueManager.js +7 -5
  43. package/lib/latestValueManager.js.map +1 -1
  44. package/lib/latestValueTypes.d.ts +60 -5
  45. package/lib/latestValueTypes.d.ts.map +1 -1
  46. package/lib/latestValueTypes.js.map +1 -1
  47. package/lib/presence.d.ts +20 -2
  48. package/lib/presence.d.ts.map +1 -1
  49. package/lib/presence.js.map +1 -1
  50. package/lib/stateFactory.d.ts +15 -10
  51. package/lib/stateFactory.d.ts.map +1 -1
  52. package/lib/stateFactory.js +11 -9
  53. package/lib/stateFactory.js.map +1 -1
  54. package/package.json +19 -19
@@ -2,21 +2,26 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { latestMap } from "./latestMapValueManager.js";
6
- import { latest } from "./latestValueManager.js";
5
+ import type { LatestMapFactory } from "./latestMapValueManager.js";
6
+ import type { LatestFactory } from "./latestValueManager.js";
7
7
  /**
8
8
  * Factory for creating presence State objects.
9
+ */
10
+ export declare const StateFactoryInternal: {
11
+ latest: import("./latestValueManager.js").LatestFactoryInternal;
12
+ latestMap: import("./latestMapValueManager.js").LatestMapFactoryInternal;
13
+ };
14
+ /**
15
+ * Factory for creating presence State objects.
16
+ *
17
+ * @remarks
18
+ * Use `latest` to create a {@link LatestRaw} State object.
19
+ * Use `latestMap` to create a {@link LatestMapRaw} State object.
9
20
  *
10
21
  * @beta
11
22
  */
12
23
  export declare const StateFactory: {
13
- /**
14
- * {@inheritdoc latest}
15
- */
16
- latest: typeof latest;
17
- /**
18
- * {@inheritdoc latestMap}
19
- */
20
- latestMap: typeof latestMap;
24
+ latest: LatestFactory;
25
+ latestMap: LatestMapFactory;
21
26
  };
22
27
  //# sourceMappingURL=stateFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stateFactory.d.ts","sourceRoot":"","sources":["../src/stateFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,YAAY;IACxB;;OAEG;;IAEH;;OAEG;;CAEH,CAAC"}
1
+ {"version":3,"file":"stateFactory.d.ts","sourceRoot":"","sources":["../src/stateFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;CAGhC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;CACL,CAAC"}
@@ -6,17 +6,19 @@ import { latestMap } from "./latestMapValueManager.js";
6
6
  import { latest } from "./latestValueManager.js";
7
7
  /**
8
8
  * Factory for creating presence State objects.
9
- *
10
- * @beta
11
9
  */
12
- export const StateFactory = {
13
- /**
14
- * {@inheritdoc latest}
15
- */
10
+ export const StateFactoryInternal = {
16
11
  latest,
17
- /**
18
- * {@inheritdoc latestMap}
19
- */
20
12
  latestMap,
21
13
  };
14
+ /**
15
+ * Factory for creating presence State objects.
16
+ *
17
+ * @remarks
18
+ * Use `latest` to create a {@link LatestRaw} State object.
19
+ * Use `latestMap` to create a {@link LatestMapRaw} State object.
20
+ *
21
+ * @beta
22
+ */
23
+ export const StateFactory = StateFactoryInternal;
22
24
  //# sourceMappingURL=stateFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stateFactory.js","sourceRoot":"","sources":["../src/stateFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,MAAM;IACN;;OAEG;IACH,SAAS;CACT,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { latestMap } from \"./latestMapValueManager.js\";\nimport { latest } from \"./latestValueManager.js\";\n\n/**\n * Factory for creating presence State objects.\n *\n * @beta\n */\nexport const StateFactory = {\n\t/**\n\t * {@inheritdoc latest}\n\t */\n\tlatest,\n\t/**\n\t * {@inheritdoc latestMap}\n\t */\n\tlatestMap,\n};\n"]}
1
+ {"version":3,"file":"stateFactory.js","sourceRoot":"","sources":["../src/stateFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,MAAM;IACN,SAAS;CACT,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAGrB,oBAAoB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { LatestMapFactory } from \"./latestMapValueManager.js\";\nimport { latestMap } from \"./latestMapValueManager.js\";\nimport type { LatestFactory } from \"./latestValueManager.js\";\nimport { latest } from \"./latestValueManager.js\";\n\n/**\n * Factory for creating presence State objects.\n */\nexport const StateFactoryInternal = {\n\tlatest,\n\tlatestMap,\n};\n\n/**\n * Factory for creating presence State objects.\n *\n * @remarks\n * Use `latest` to create a {@link LatestRaw} State object.\n * Use `latestMap` to create a {@link LatestMapRaw} State object.\n *\n * @beta\n */\nexport const StateFactory: {\n\tlatest: LatestFactory;\n\tlatestMap: LatestMapFactory;\n} = StateFactoryInternal;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/presence",
3
- "version": "2.42.0",
3
+ "version": "2.43.0",
4
4
  "description": "A component for lightweight data sharing within a single session",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -63,30 +63,30 @@
63
63
  "temp-directory": "nyc/.nyc_output"
64
64
  },
65
65
  "dependencies": {
66
- "@fluid-internal/client-utils": "~2.42.0",
67
- "@fluidframework/container-definitions": "~2.42.0",
68
- "@fluidframework/container-runtime-definitions": "~2.42.0",
69
- "@fluidframework/core-interfaces": "~2.42.0",
70
- "@fluidframework/core-utils": "~2.42.0",
71
- "@fluidframework/datastore": "~2.42.0",
72
- "@fluidframework/datastore-definitions": "~2.42.0",
73
- "@fluidframework/fluid-static": "~2.42.0",
74
- "@fluidframework/id-compressor": "~2.42.0",
75
- "@fluidframework/runtime-definitions": "~2.42.0",
76
- "@fluidframework/runtime-utils": "~2.42.0",
77
- "@fluidframework/shared-object-base": "~2.42.0",
78
- "@fluidframework/telemetry-utils": "~2.42.0"
66
+ "@fluid-internal/client-utils": "~2.43.0",
67
+ "@fluidframework/container-definitions": "~2.43.0",
68
+ "@fluidframework/container-runtime-definitions": "~2.43.0",
69
+ "@fluidframework/core-interfaces": "~2.43.0",
70
+ "@fluidframework/core-utils": "~2.43.0",
71
+ "@fluidframework/datastore": "~2.43.0",
72
+ "@fluidframework/datastore-definitions": "~2.43.0",
73
+ "@fluidframework/fluid-static": "~2.43.0",
74
+ "@fluidframework/id-compressor": "~2.43.0",
75
+ "@fluidframework/runtime-definitions": "~2.43.0",
76
+ "@fluidframework/runtime-utils": "~2.43.0",
77
+ "@fluidframework/shared-object-base": "~2.43.0",
78
+ "@fluidframework/telemetry-utils": "~2.43.0"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@arethetypeswrong/cli": "^0.17.1",
82
82
  "@biomejs/biome": "~1.9.3",
83
- "@fluid-tools/build-cli": "^0.55.0",
83
+ "@fluid-tools/build-cli": "^0.56.0",
84
84
  "@fluidframework/build-common": "^2.0.3",
85
- "@fluidframework/build-tools": "^0.55.0",
86
- "@fluidframework/driver-definitions": "~2.42.0",
85
+ "@fluidframework/build-tools": "^0.56.0",
86
+ "@fluidframework/driver-definitions": "~2.43.0",
87
87
  "@fluidframework/eslint-config-fluid": "^5.7.4",
88
- "@fluidframework/test-runtime-utils": "~2.42.0",
89
- "@fluidframework/test-utils": "~2.42.0",
88
+ "@fluidframework/test-runtime-utils": "~2.43.0",
89
+ "@fluidframework/test-utils": "~2.43.0",
90
90
  "@microsoft/api-extractor": "7.52.8",
91
91
  "@types/mocha": "^10.0.10",
92
92
  "@types/node": "^18.19.0",