@fluidframework/cell 2.1.0-276985 → 2.1.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/README.md +49 -39
- 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/public.d.ts +6 -2
- package/internal.d.ts +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/public.d.ts +6 -2
- package/package.json +23 -19
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,11 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
The `SharedCell` Distributed Data Structure (DDS) stores a single, shared value that can be edited or deleted.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package is primarily intended as a minimal example of how distributed data structures work.
|
|
6
|
+
For real-world scenarios, we recommend using one of our other DDSs, like [SharedTree](https://fluidframework.com./docs/data-structures/tree/).
|
|
7
|
+
|
|
8
|
+
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_HEADER:) -->
|
|
6
9
|
|
|
7
10
|
<!-- prettier-ignore-start -->
|
|
8
11
|
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
9
12
|
|
|
13
|
+
## Using Fluid Framework libraries
|
|
14
|
+
|
|
15
|
+
When taking a dependency on a Fluid Framework library's public APIs, we recommend using a `^` (caret) version range, such as `^1.3.4`.
|
|
16
|
+
While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
|
|
17
|
+
library consumers should always prefer `^`.
|
|
18
|
+
|
|
19
|
+
If using any of Fluid Framework's unstable APIs (for example, its `beta` APIs), we recommend using a more constrained version range, such as `~`.
|
|
20
|
+
|
|
10
21
|
## Installation
|
|
11
22
|
|
|
12
23
|
To get started, install the package by running the following command:
|
|
@@ -15,45 +26,62 @@ To get started, install the package by running the following command:
|
|
|
15
26
|
npm i @fluidframework/cell
|
|
16
27
|
```
|
|
17
28
|
|
|
29
|
+
## API Documentation
|
|
30
|
+
|
|
31
|
+
API documentation for **@fluidframework/cell** is available at <https://fluidframework.com/docs/apis/cell>.
|
|
32
|
+
|
|
18
33
|
<!-- prettier-ignore-end -->
|
|
19
34
|
|
|
20
35
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
21
36
|
|
|
22
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
37
|
+
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_FOOTER:) -->
|
|
23
38
|
|
|
24
39
|
<!-- prettier-ignore-start -->
|
|
25
40
|
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
26
41
|
|
|
27
|
-
##
|
|
42
|
+
## Minimum Client Requirements
|
|
28
43
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
44
|
+
These are the platform requirements for the current version of Fluid Framework Client Packages.
|
|
45
|
+
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.
|
|
46
|
+
For Long Term Support (LTS) versions this can require supporting these platforms for several years.
|
|
32
47
|
|
|
33
|
-
|
|
48
|
+
It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
|
|
49
|
+
If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
|
|
50
|
+
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.
|
|
34
51
|
|
|
35
|
-
|
|
52
|
+
### Supported Runtimes
|
|
36
53
|
|
|
37
|
-
|
|
54
|
+
- 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).
|
|
55
|
+
- 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).
|
|
38
56
|
|
|
39
|
-
|
|
57
|
+
### Supported Tools
|
|
40
58
|
|
|
41
|
-
|
|
59
|
+
- TypeScript 5.4:
|
|
60
|
+
- All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
|
|
61
|
+
- [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
|
|
62
|
+
- [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
|
|
63
|
+
- `exactOptionalPropertyTypes` is currently not fully supported.
|
|
64
|
+
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.
|
|
65
|
+
- [webpack](https://webpack.js.org/) 5
|
|
66
|
+
- We are not intending to be prescriptive about what bundler to use.
|
|
67
|
+
Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
|
|
42
68
|
|
|
43
|
-
|
|
69
|
+
### Module Resolution
|
|
44
70
|
|
|
45
|
-
|
|
71
|
+
[`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).
|
|
72
|
+
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.
|
|
46
73
|
|
|
47
|
-
|
|
74
|
+
### Module Formats
|
|
48
75
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
76
|
+
- ES Modules:
|
|
77
|
+
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.
|
|
78
|
+
- CommonJs:
|
|
79
|
+
Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
|
|
80
|
+
This is done to accommodate some workflows without good ES Module support.
|
|
81
|
+
If you have a workflow you would like included in this list, file an issue.
|
|
82
|
+
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.
|
|
52
83
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<!-- prettier-ignore-start -->
|
|
56
|
-
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
84
|
+
- 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))
|
|
57
85
|
|
|
58
86
|
## Contribution Guidelines
|
|
59
87
|
|
|
@@ -73,15 +101,6 @@ This project may contain Microsoft trademarks or logos for Microsoft projects, p
|
|
|
73
101
|
Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
|
|
74
102
|
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
|
|
75
103
|
|
|
76
|
-
<!-- prettier-ignore-end -->
|
|
77
|
-
|
|
78
|
-
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
79
|
-
|
|
80
|
-
<!-- AUTO-GENERATED-CONTENT:START (README_HELP_SECTION:includeHeading=TRUE) -->
|
|
81
|
-
|
|
82
|
-
<!-- prettier-ignore-start -->
|
|
83
|
-
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
84
|
-
|
|
85
104
|
## Help
|
|
86
105
|
|
|
87
106
|
Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
|
|
@@ -90,15 +109,6 @@ Still not finding what you're looking for? Please [file an issue](https://github
|
|
|
90
109
|
|
|
91
110
|
Thank you!
|
|
92
111
|
|
|
93
|
-
<!-- prettier-ignore-end -->
|
|
94
|
-
|
|
95
|
-
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
96
|
-
|
|
97
|
-
<!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
|
|
98
|
-
|
|
99
|
-
<!-- prettier-ignore-start -->
|
|
100
|
-
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
101
|
-
|
|
102
112
|
## Trademark
|
|
103
113
|
|
|
104
114
|
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAC9C,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAC9C,eAAO,MAAM,UAAU,UAAU,CAAC"}
|
package/dist/packageVersion.js
CHANGED
|
@@ -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/cell";
|
|
11
|
-
exports.pkgVersion = "2.1.0
|
|
11
|
+
exports.pkgVersion = "2.1.0";
|
|
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,sBAAsB,CAAC;AACjC,QAAA,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,sBAAsB,CAAC;AACjC,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/cell\";\nexport const pkgVersion = \"2.1.0\";\n"]}
|
package/dist/public.d.ts
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The `SharedCell` Distributed Data Structure (DDS) stores a single, shared value that can be edited or deleted.
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
*/export {}
|
|
12
16
|
|
package/internal.d.ts
CHANGED
package/lib/packageVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAC9C,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAC9C,eAAO,MAAM,UAAU,UAAU,CAAC"}
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,sBAAsB,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,sBAAsB,CAAC;AAC9C,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/cell\";\nexport const pkgVersion = \"2.1.0\";\n"]}
|
package/lib/public.d.ts
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The `SharedCell` Distributed Data Structure (DDS) stores a single, shared value that can be edited or deleted.
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
*/export {}
|
|
12
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/cell",
|
|
3
|
-
"version": "2.1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Distributed data structure for a single value",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -57,26 +57,26 @@
|
|
|
57
57
|
"temp-directory": "nyc/.nyc_output"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@fluidframework/core-interfaces": "2.1.0
|
|
61
|
-
"@fluidframework/core-utils": "2.1.0
|
|
62
|
-
"@fluidframework/datastore-definitions": "2.1.0
|
|
63
|
-
"@fluidframework/driver-definitions": "2.1.0
|
|
64
|
-
"@fluidframework/driver-utils": "2.1.0
|
|
65
|
-
"@fluidframework/runtime-definitions": "2.1.0
|
|
66
|
-
"@fluidframework/shared-object-base": "2.1.0
|
|
60
|
+
"@fluidframework/core-interfaces": "~2.1.0",
|
|
61
|
+
"@fluidframework/core-utils": "~2.1.0",
|
|
62
|
+
"@fluidframework/datastore-definitions": "~2.1.0",
|
|
63
|
+
"@fluidframework/driver-definitions": "~2.1.0",
|
|
64
|
+
"@fluidframework/driver-utils": "~2.1.0",
|
|
65
|
+
"@fluidframework/runtime-definitions": "~2.1.0",
|
|
66
|
+
"@fluidframework/shared-object-base": "~2.1.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
70
|
-
"@biomejs/biome": "
|
|
71
|
-
"@fluid-internal/mocha-test-setup": "2.1.0
|
|
72
|
-
"@fluid-private/test-dds-utils": "2.1.0
|
|
73
|
-
"@fluid-tools/build-cli": "^0.
|
|
70
|
+
"@biomejs/biome": "~1.8.3",
|
|
71
|
+
"@fluid-internal/mocha-test-setup": "~2.1.0",
|
|
72
|
+
"@fluid-private/test-dds-utils": "~2.1.0",
|
|
73
|
+
"@fluid-tools/build-cli": "^0.41.0",
|
|
74
74
|
"@fluidframework/build-common": "^2.0.3",
|
|
75
|
-
"@fluidframework/build-tools": "^0.
|
|
76
|
-
"@fluidframework/cell-previous": "npm:@fluidframework/cell@2.0.0
|
|
77
|
-
"@fluidframework/container-definitions": "2.1.0
|
|
75
|
+
"@fluidframework/build-tools": "^0.41.0",
|
|
76
|
+
"@fluidframework/cell-previous": "npm:@fluidframework/cell@2.0.0",
|
|
77
|
+
"@fluidframework/container-definitions": "~2.1.0",
|
|
78
78
|
"@fluidframework/eslint-config-fluid": "^5.3.0",
|
|
79
|
-
"@fluidframework/test-runtime-utils": "2.1.0
|
|
79
|
+
"@fluidframework/test-runtime-utils": "~2.1.0",
|
|
80
80
|
"@microsoft/api-extractor": "^7.45.1",
|
|
81
81
|
"@types/mocha": "^9.1.1",
|
|
82
82
|
"@types/node": "^18.19.0",
|
|
@@ -95,7 +95,11 @@
|
|
|
95
95
|
"typescript": "~5.4.5"
|
|
96
96
|
},
|
|
97
97
|
"typeValidation": {
|
|
98
|
-
"broken": {
|
|
98
|
+
"broken": {
|
|
99
|
+
"Variable_SharedCell": {
|
|
100
|
+
"forwardCompat": false
|
|
101
|
+
}
|
|
102
|
+
}
|
|
99
103
|
},
|
|
100
104
|
"scripts": {
|
|
101
105
|
"api": "fluid-build . --task api",
|
|
@@ -111,7 +115,7 @@
|
|
|
111
115
|
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
112
116
|
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
113
117
|
"check:are-the-types-wrong": "attw --pack .",
|
|
114
|
-
"check:biome": "biome check .
|
|
118
|
+
"check:biome": "biome check .",
|
|
115
119
|
"check:exports": "concurrently \"npm:check:exports:*\"",
|
|
116
120
|
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
|
|
117
121
|
"check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json",
|
|
@@ -123,7 +127,7 @@
|
|
|
123
127
|
"eslint": "eslint --format stylish src",
|
|
124
128
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
125
129
|
"format": "npm run format:biome",
|
|
126
|
-
"format:biome": "biome check . --
|
|
130
|
+
"format:biome": "biome check . --write",
|
|
127
131
|
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
128
132
|
"lint": "fluid-build . --task lint",
|
|
129
133
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
package/src/packageVersion.ts
CHANGED