@fluid-experimental/dds-interceptions 2.1.0-281041 → 2.2.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 +8 -0
- package/README.md +89 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This package provides factory methods to create a wrapper around some of the basic Distributed Data Structures (DDS) that support an interception callback. Apps can provide a callback when creating these wrappers and this callback will be called when the DDS is modified. This allows apps to support features such as basic user attribution on a SharedString.
|
|
4
4
|
|
|
5
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
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. -->
|
|
9
9
|
|
|
10
|
+
**IMPORTANT: This package is experimental.**
|
|
11
|
+
**Its APIs may change without notice.**
|
|
12
|
+
|
|
13
|
+
**Do not use in production scenarios.**
|
|
14
|
+
|
|
10
15
|
## Using Fluid Framework libraries
|
|
11
16
|
|
|
12
17
|
When taking a dependency on a Fluid Framework library's public APIs, we recommend using a `^` (caret) version range, such as `^1.3.4`.
|
|
@@ -15,6 +20,18 @@ library consumers should always prefer `^`.
|
|
|
15
20
|
|
|
16
21
|
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
22
|
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
To get started, install the package by running the following command:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm i @fluid-experimental/dds-interceptions
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## API Documentation
|
|
32
|
+
|
|
33
|
+
API documentation for **@fluid-experimental/dds-interceptions** is available at <https://fluidframework.com/docs/apis/dds-interceptions>.
|
|
34
|
+
|
|
18
35
|
<!-- prettier-ignore-end -->
|
|
19
36
|
|
|
20
37
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
@@ -79,11 +96,81 @@ The original set operation and any operations in the callback function are batch
|
|
|
79
96
|
|
|
80
97
|
Example: To support a feature like simple user attribution, in the callback, the app can set the user information in a sub directory of the original object against the same key.
|
|
81
98
|
|
|
82
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
99
|
+
<!-- AUTO-GENERATED-CONTENT:START (README_FOOTER) -->
|
|
83
100
|
|
|
84
101
|
<!-- prettier-ignore-start -->
|
|
85
102
|
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
86
103
|
|
|
104
|
+
## Minimum Client Requirements
|
|
105
|
+
|
|
106
|
+
These are the platform requirements for the current version of Fluid Framework Client Packages.
|
|
107
|
+
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.
|
|
108
|
+
For Long Term Support (LTS) versions this can require supporting these platforms for several years.
|
|
109
|
+
|
|
110
|
+
It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
|
|
111
|
+
If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
|
|
112
|
+
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.
|
|
113
|
+
|
|
114
|
+
### Supported Runtimes
|
|
115
|
+
|
|
116
|
+
- 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).
|
|
117
|
+
- 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).
|
|
118
|
+
|
|
119
|
+
### Supported Tools
|
|
120
|
+
|
|
121
|
+
- TypeScript 5.4:
|
|
122
|
+
- All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
|
|
123
|
+
- [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
|
|
124
|
+
- [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
|
|
125
|
+
- `exactOptionalPropertyTypes` is currently not fully supported.
|
|
126
|
+
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.
|
|
127
|
+
- [webpack](https://webpack.js.org/) 5
|
|
128
|
+
- We are not intending to be prescriptive about what bundler to use.
|
|
129
|
+
Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
|
|
130
|
+
|
|
131
|
+
### Module Resolution
|
|
132
|
+
|
|
133
|
+
[`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).
|
|
134
|
+
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.
|
|
135
|
+
|
|
136
|
+
### Module Formats
|
|
137
|
+
|
|
138
|
+
- ES Modules:
|
|
139
|
+
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.
|
|
140
|
+
- CommonJs:
|
|
141
|
+
Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
|
|
142
|
+
This is done to accommodate some workflows without good ES Module support.
|
|
143
|
+
If you have a workflow you would like included in this list, file an issue.
|
|
144
|
+
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.
|
|
145
|
+
|
|
146
|
+
- 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))
|
|
147
|
+
|
|
148
|
+
## Contribution Guidelines
|
|
149
|
+
|
|
150
|
+
There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
|
|
151
|
+
|
|
152
|
+
- Participate in Q&A in our [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions).
|
|
153
|
+
- [Submit bugs](https://github.com/microsoft/FluidFramework/issues) and help us verify fixes as they are checked in.
|
|
154
|
+
- Review the [source code changes](https://github.com/microsoft/FluidFramework/pulls).
|
|
155
|
+
- [Contribute bug fixes](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md).
|
|
156
|
+
|
|
157
|
+
Detailed instructions for working in the repo can be found in the [Wiki](https://github.com/microsoft/FluidFramework/wiki).
|
|
158
|
+
|
|
159
|
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
160
|
+
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.
|
|
161
|
+
|
|
162
|
+
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
|
163
|
+
Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
|
|
164
|
+
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
|
|
165
|
+
|
|
166
|
+
## Help
|
|
167
|
+
|
|
168
|
+
Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
|
|
169
|
+
|
|
170
|
+
Still not finding what you're looking for? Please [file an issue](https://github.com/microsoft/FluidFramework/wiki/Submitting-Bugs-and-Feature-Requests).
|
|
171
|
+
|
|
172
|
+
Thank you!
|
|
173
|
+
|
|
87
174
|
## Trademark
|
|
88
175
|
|
|
89
176
|
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/dds-interceptions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Distributed Data Structures that support an interception callback",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
"temp-directory": "nyc/.nyc_output"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fluidframework/core-utils": "2.
|
|
51
|
-
"@fluidframework/map": "2.
|
|
52
|
-
"@fluidframework/merge-tree": "2.
|
|
53
|
-
"@fluidframework/runtime-definitions": "2.
|
|
54
|
-
"@fluidframework/sequence": "2.
|
|
50
|
+
"@fluidframework/core-utils": "~2.2.0",
|
|
51
|
+
"@fluidframework/map": "~2.2.0",
|
|
52
|
+
"@fluidframework/merge-tree": "~2.2.0",
|
|
53
|
+
"@fluidframework/runtime-definitions": "~2.2.0",
|
|
54
|
+
"@fluidframework/sequence": "~2.2.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
58
58
|
"@biomejs/biome": "~1.8.3",
|
|
59
|
-
"@fluid-internal/mocha-test-setup": "2.
|
|
60
|
-
"@fluid-tools/build-cli": "^0.
|
|
59
|
+
"@fluid-internal/mocha-test-setup": "~2.2.0",
|
|
60
|
+
"@fluid-tools/build-cli": "^0.43.0",
|
|
61
61
|
"@fluidframework/build-common": "^2.0.3",
|
|
62
|
-
"@fluidframework/build-tools": "^0.
|
|
62
|
+
"@fluidframework/build-tools": "^0.43.0",
|
|
63
63
|
"@fluidframework/eslint-config-fluid": "^5.3.0",
|
|
64
|
-
"@fluidframework/test-runtime-utils": "2.
|
|
64
|
+
"@fluidframework/test-runtime-utils": "~2.2.0",
|
|
65
65
|
"@microsoft/api-extractor": "^7.45.1",
|
|
66
66
|
"@types/diff": "^3.5.1",
|
|
67
67
|
"@types/mocha": "^9.1.1",
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
"test": "npm run test:mocha",
|
|
115
115
|
"test:coverage": "c8 npm test",
|
|
116
116
|
"test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
|
|
117
|
-
"test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\" --exit
|
|
118
|
-
"test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit
|
|
117
|
+
"test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\" --exit",
|
|
118
|
+
"test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit",
|
|
119
119
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
120
120
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
121
121
|
"typetests:gen": "flub generate typetests --dir . -v",
|