@fluidframework/register-collection 2.1.0 → 2.3.0-288113

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluidframework/register-collection
2
2
 
3
+ ## 2.2.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.1.0
4
8
 
5
9
  Dependency updates only.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A consensus register collection is a distributed data structure (DDS), which holds a set of registers and their versions generated during concurrent updates. In the simplest definition, two updates on a single register are concurrent if there is no causal relationship between them (i.e., neither knows about the other). On such cases of concurrent updates, a register internally stores all possible versions of a value.
4
4
 
5
- <!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
5
+ <!-- AUTO-GENERATED-CONTENT:START (LIBRARY_README_HEADER) -->
6
6
 
7
7
  <!-- prettier-ignore-start -->
8
8
  <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
@@ -15,6 +15,27 @@ library consumers should always prefer `^`.
15
15
 
16
16
  If using any of Fluid Framework's unstable APIs (for example, its `beta` APIs), we recommend using a more constrained version range, such as `~`.
17
17
 
18
+ ## Installation
19
+
20
+ To get started, install the package by running the following command:
21
+
22
+ ```bash
23
+ npm i @fluidframework/register-collection
24
+ ```
25
+
26
+ ## Importing from this package
27
+
28
+ This package leverages [package.json exports](https://nodejs.org/api/packages.html#exports) to separate its APIs by support level.
29
+ For more information on the related support guarantees, see [API Support Levels](https://fluidframework.com/docs/build/releases-and-apitags/#api-support-levels).
30
+
31
+ To access the `public` ([SemVer](https://semver.org/)) APIs, import via `@fluidframework/register-collection` like normal.
32
+
33
+ To access the `legacy` APIs, import via `@fluidframework/register-collection/legacy`.
34
+
35
+ ## API Documentation
36
+
37
+ API documentation for **@fluidframework/register-collection** is available at <https://fluidframework.com/docs/apis/register-collection>.
38
+
18
39
  <!-- prettier-ignore-end -->
19
40
 
20
41
  <!-- AUTO-GENERATED-CONTENT:END -->
@@ -34,3 +55,90 @@ Below are the policies that the DDS implements:
34
55
  - LWW: The last write to a key always overwrites any prior writes (aka last write win policy). This is exactly same as Fluid's Shared Map policy.
35
56
 
36
57
  - Atomic: The policy follows the same semantics of a shared distributed lock. Amongst all concurrent updates, only the first writer wins. In distributed systems literature, the register update policy is called `Atomic`. This behavior requires a linearizable register. A linearizable register behaves as if there is only a single copy of the data, and that every operation appears to take effect atomically at one point in time. This definition implies that operations are executed in an well-defined order. On a concurrent update, we perform a `compare-and-set` operation, where we compare a register's stored `seq` with the incoming `refSeq`. The earliest operation overwriting the stored `seq` wins since every client reaches to an agreement on the value. Hence we can safely return the first value.
58
+
59
+ <!-- AUTO-GENERATED-CONTENT:START (README_FOOTER) -->
60
+
61
+ <!-- prettier-ignore-start -->
62
+ <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
63
+
64
+ ## Minimum Client Requirements
65
+
66
+ These are the platform requirements for the current version of Fluid Framework Client Packages.
67
+ These requirements err on the side of being too strict since within a major version they can be relaxed over time, but not made stricter.
68
+ For Long Term Support (LTS) versions this can require supporting these platforms for several years.
69
+
70
+ It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
71
+ If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
72
+ When making such a request please include if the configuration already works (and thus the request is just that it becomes officially supported), or if changes are required to get it working.
73
+
74
+ ### Supported Runtimes
75
+
76
+ - NodeJs ^20.10.0 except that we will drop support for it [when NodeJs 20 loses its upstream support on 2026-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS (22) at least 1 year before 20 is end-of-life. This same policy applies to NodeJS 22 when it is end of life (2027-04-30).
77
+ - Modern browsers supporting the es2022 standard library: in response to asks we can add explicit support for using babel to polyfill to target specific standards or runtimes (meaning we can avoid/remove use of things that don't polyfill robustly, but otherwise target modern standards).
78
+
79
+ ### Supported Tools
80
+
81
+ - TypeScript 5.4:
82
+ - All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
83
+ - [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
84
+ - [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
85
+ - `exactOptionalPropertyTypes` is currently not fully supported.
86
+ If used, narrowing members of Fluid Framework types types using `in`, `Reflect.has`, `Object.hasOwn` or `Object.prototype.hasOwnProperty` should be avoided as they may incorrectly exclude `undefined` from the possible values in some cases.
87
+ - [webpack](https://webpack.js.org/) 5
88
+ - We are not intending to be prescriptive about what bundler to use.
89
+ Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
90
+
91
+ ### Module Resolution
92
+
93
+ [`Node16`, `NodeNext`, or `Bundler`](https://www.typescriptlang.org/tsconfig#moduleResolution) resolution should be used with TypeScript compilerOptions to follow the [Node.js v12+ ESM Resolution and Loading algorithm](https://nodejs.github.io/nodejs.dev/en/api/v20/esm/#resolution-and-loading-algorithm).
94
+ Node10 resolution is not supported as it does not support Fluid Framework's API structuring pattern that is used to distinguish stable APIs from those that are in development.
95
+
96
+ ### Module Formats
97
+
98
+ - ES Modules:
99
+ ES Modules are the preferred way to consume our client packages (including in NodeJs) and consuming our client packages from ES Modules is fully supported.
100
+ - CommonJs:
101
+ Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
102
+ This is done to accommodate some workflows without good ES Module support.
103
+ If you have a workflow you would like included in this list, file an issue.
104
+ Once this list of workflows motivating CommonJS support is empty, we may drop support for CommonJS one year after notice of the change is posted here.
105
+
106
+ - Testing with Jest (which lacks [stable ESM support](https://jestjs.io/docs/ecmascript-modules) due to [unstable APIs in NodeJs](https://github.com/nodejs/node/issues/37648))
107
+
108
+ ## Contribution Guidelines
109
+
110
+ There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
111
+
112
+ - Participate in Q&A in our [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions).
113
+ - [Submit bugs](https://github.com/microsoft/FluidFramework/issues) and help us verify fixes as they are checked in.
114
+ - Review the [source code changes](https://github.com/microsoft/FluidFramework/pulls).
115
+ - [Contribute bug fixes](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md).
116
+
117
+ Detailed instructions for working in the repo can be found in the [Wiki](https://github.com/microsoft/FluidFramework/wiki).
118
+
119
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
120
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
121
+
122
+ This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
123
+ Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
124
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
125
+
126
+ ## Help
127
+
128
+ Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
129
+
130
+ Still not finding what you're looking for? Please [file an issue](https://github.com/microsoft/FluidFramework/wiki/Submitting-Bugs-and-Feature-Requests).
131
+
132
+ Thank you!
133
+
134
+ ## Trademark
135
+
136
+ This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
137
+
138
+ Use of these trademarks or logos must follow Microsoft's [Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
139
+
140
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
141
+
142
+ <!-- prettier-ignore-end -->
143
+
144
+ <!-- AUTO-GENERATED-CONTENT:END -->
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/register-collection";
8
- export declare const pkgVersion = "2.1.0";
8
+ export declare const pkgVersion = "2.3.0-288113";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,UAAU,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,iBAAiB,CAAC"}
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/register-collection";
11
- exports.pkgVersion = "2.1.0";
11
+ exports.pkgVersion = "2.3.0-288113";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/register-collection\";\nexport const pkgVersion = \"2.1.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,cAAc,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/register-collection\";\nexport const pkgVersion = \"2.3.0-288113\";\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/register-collection";
8
- export declare const pkgVersion = "2.1.0";
8
+ export declare const pkgVersion = "2.3.0-288113";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,UAAU,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,iBAAiB,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/register-collection";
8
- export const pkgVersion = "2.1.0";
8
+ export const pkgVersion = "2.3.0-288113";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/register-collection\";\nexport const pkgVersion = \"2.1.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/register-collection\";\nexport const pkgVersion = \"2.3.0-288113\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/register-collection",
3
- "version": "2.1.0",
3
+ "version": "2.3.0-288113",
4
4
  "description": "Consensus Register",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -67,26 +67,26 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluid-internal/client-utils": "~2.1.0",
71
- "@fluidframework/core-interfaces": "~2.1.0",
72
- "@fluidframework/core-utils": "~2.1.0",
73
- "@fluidframework/datastore-definitions": "~2.1.0",
74
- "@fluidframework/driver-definitions": "~2.1.0",
75
- "@fluidframework/driver-utils": "~2.1.0",
76
- "@fluidframework/runtime-definitions": "~2.1.0",
77
- "@fluidframework/shared-object-base": "~2.1.0"
70
+ "@fluid-internal/client-utils": "2.3.0-288113",
71
+ "@fluidframework/core-interfaces": "2.3.0-288113",
72
+ "@fluidframework/core-utils": "2.3.0-288113",
73
+ "@fluidframework/datastore-definitions": "2.3.0-288113",
74
+ "@fluidframework/driver-definitions": "2.3.0-288113",
75
+ "@fluidframework/driver-utils": "2.3.0-288113",
76
+ "@fluidframework/runtime-definitions": "2.3.0-288113",
77
+ "@fluidframework/shared-object-base": "2.3.0-288113"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@arethetypeswrong/cli": "^0.15.2",
81
81
  "@biomejs/biome": "~1.8.3",
82
- "@fluid-internal/mocha-test-setup": "~2.1.0",
83
- "@fluid-private/test-dds-utils": "~2.1.0",
84
- "@fluid-tools/build-cli": "^0.41.0",
82
+ "@fluid-internal/mocha-test-setup": "2.3.0-288113",
83
+ "@fluid-private/test-dds-utils": "2.3.0-288113",
84
+ "@fluid-tools/build-cli": "^0.43.0",
85
85
  "@fluidframework/build-common": "^2.0.3",
86
- "@fluidframework/build-tools": "^0.41.0",
86
+ "@fluidframework/build-tools": "^0.43.0",
87
87
  "@fluidframework/eslint-config-fluid": "^5.3.0",
88
- "@fluidframework/register-collection-previous": "npm:@fluidframework/register-collection@2.0.0",
89
- "@fluidframework/test-runtime-utils": "~2.1.0",
88
+ "@fluidframework/register-collection-previous": "npm:@fluidframework/register-collection@2.2.0",
89
+ "@fluidframework/test-runtime-utils": "2.3.0-288113",
90
90
  "@microsoft/api-extractor": "^7.45.1",
91
91
  "@types/mocha": "^9.1.1",
92
92
  "@types/node": "^18.19.0",
@@ -105,11 +105,7 @@
105
105
  "typescript": "~5.4.5"
106
106
  },
107
107
  "typeValidation": {
108
- "broken": {
109
- "Variable_ConsensusRegisterCollection": {
110
- "forwardCompat": false
111
- }
112
- }
108
+ "broken": {}
113
109
  },
114
110
  "scripts": {
115
111
  "api": "fluid-build . --task api",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/register-collection";
9
- export const pkgVersion = "2.1.0";
9
+ export const pkgVersion = "2.3.0-288113";