fluid-framework 2.117.0 → 3.0.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/README.md CHANGED
@@ -17,15 +17,15 @@ There are some packages there are not included as part of this `fluid-framework`
17
17
 
18
18
  ## Using Fluid Framework libraries
19
19
 
20
- When taking a dependency on a Fluid Framework library's public APIs, we recommend using a `^` (caret) version range, such as `^1.3.4`.
21
- While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
22
- library consumers should always prefer `^`.
20
+ For a dependency on a Fluid Framework library's public APIs, we recommend a `^` (caret) version range.
21
+ For example, use `^1.3.4`.
23
22
 
24
- If using any of Fluid Framework's unstable APIs (for example, its `beta` APIs), we recommend using a more constrained version range, such as `~`.
23
+ For a dependency on an unstable API, such as a `beta` API, we recommend a more restrictive version range.
24
+ For example, use a `~` version range.
25
25
 
26
26
  ## Installation
27
27
 
28
- To get started, install the package by running the following command:
28
+ Run this command to install the package:
29
29
 
30
30
  ```bash
31
31
  npm i fluid-framework
@@ -33,20 +33,20 @@ npm i fluid-framework
33
33
 
34
34
  ## Importing from this package
35
35
 
36
- This package leverages [package.json exports](https://nodejs.org/api/packages.html#exports) to separate its APIs by support level.
37
- For more information on the related support guarantees, see [API Support Levels](https://fluidframework.com/docs/build/releases-and-apitags/#api-support-levels).
36
+ This package uses [package.json exports](https://nodejs.org/api/packages.html#exports) to separate APIs by support level.
37
+ For information about the support guarantees, read [API Support Levels](https://fluidframework.com/docs/build/releases-and-apitags/#api-support-levels).
38
38
 
39
- To access the `public` ([SemVer](https://semver.org/)) APIs, import via `fluid-framework` like normal.
39
+ Import the `public` APIs from `fluid-framework`.
40
40
 
41
- To access the `beta` APIs, import via `fluid-framework/beta`.
41
+ Import the `beta` APIs from `fluid-framework/beta`.
42
42
 
43
- To access the `alpha` APIs, import via `fluid-framework/alpha`.
43
+ Import the `alpha` APIs from `fluid-framework/alpha`.
44
44
 
45
- To access the `legacy` APIs, import via `fluid-framework/legacy`.
45
+ Import the `legacy` APIs from `fluid-framework/legacy`.
46
46
 
47
47
  ## API Documentation
48
48
 
49
- API documentation for **fluid-framework** is available at <https://fluidframework.com/docs/apis/fluid-framework>.
49
+ Read the **fluid-framework** API documentation at <https://fluidframework.com/docs/apis/fluid-framework>.
50
50
 
51
51
  <!-- prettier-ignore-end -->
52
52
 
@@ -81,62 +81,69 @@ Check out the [Hello World tutorial](https://fluidframework.com/docs/start/tutor
81
81
 
82
82
  ## Minimum Client Requirements
83
83
 
84
- These are the platform requirements for the current version of Fluid Framework Client Packages.
85
- 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.
86
- For Long Term Support (LTS) versions this can require supporting these platforms for several years.
84
+ Fluid Framework client libraries support the platforms in this document.
85
+ These requirements are intentionally restrictive.
86
+ Within a major version series, we can relax these requirements, but we cannot make them stricter.
87
+ For a Long Term Support (LTS) version, we might need to support these platforms for several years.
87
88
 
88
- It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
89
- If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
90
- 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.
89
+ Other configurations can work, but Fluid Framework does not support them.
90
+ If an unsupported configuration stops working, we do not classify this as a bug.
91
+ To request support for a configuration that is not listed, file an issue.
92
+ The product team will evaluate your request.
93
+ In the issue, specify the current status of the configuration:
94
+
95
+ - The configuration works but needs official support.
96
+ - The configuration does not work and requires changes.
91
97
 
92
98
  ### Supported Runtimes
93
99
 
94
- - NodeJs ^22.22.2 except that we will drop support for it [when NodeJs 22 loses its upstream support on 2027-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS at least 1 year before 22 is end-of-life.
95
- - Running Fluid in a Node.js environment with the `--no-experimental-fetch` flag is not supported.
96
- - 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).
100
+ - Fluid Framework supports Node.js versions 22 and 24 while they receive [upstream support](https://nodejs.org/en/about/previous-releases).
101
+ - Fluid Framework will stop support for version 22 [when upstream support ends on 2027-04-30](https://github.com/nodejs/release#release-schedule).
102
+ - Fluid Framework does not support Node.js with the `--no-experimental-fetch` flag.
103
+ - Fluid Framework supports modern browsers that support the ES2022 standard library.
97
104
 
98
105
  ### Supported Tools
99
106
 
100
- - TypeScript 5.4:
101
- - All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
102
- - [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
103
- - [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
104
- - `exactOptionalPropertyTypes` is currently not fully supported.
105
- 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.
107
+ - [TypeScript 6.0](https://typescriptdocs.com/release-notes/TypeScript%206.0):
108
+ - Fluid Framework supports all [`strict`](https://www.typescriptlang.org/tsconfig) options.
109
+ - Set the build targets (`lib`, `target`) to `ES2022` or later.
110
+ - Enable [`strictNullChecks`](https://www.typescriptlang.org/tsconfig).
111
+ - Fluid Framework does not support [configuration options deprecated in TypeScript 6.0](https://typescriptdocs.com/release-notes/TypeScript%206.0#breaking-changes-and-deprecations-in-typescript-6-0).
112
+ - Fluid Framework does not fully support `exactOptionalPropertyTypes`.
113
+ If you enable this option, do not use `in`, `Reflect.has`, `Object.hasOwn`, or `Object.prototype.hasOwnProperty` to narrow members of Fluid Framework types.
114
+ These methods can incorrectly exclude `undefined` from the possible values.
106
115
  - [webpack](https://webpack.js.org/) 5
107
- - We are not intending to be prescriptive about what bundler to use.
108
- Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
116
+ - We do not require a specific bundler.
117
+ Other bundlers that handle ES Modules can work, but we actively test only webpack.
109
118
 
110
119
  ### Module Resolution
111
120
 
112
- [`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).
113
- 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.
121
+ In TypeScript `compilerOptions`, use [`Node16`, `Node20`, `NodeNext`, or `Bundler`](https://www.typescriptlang.org/tsconfig#moduleResolution) module resolution.
122
+ These settings follow the [Node.js v12+ ESM Resolution and Loading algorithm](https://nodejs.github.io/nodejs.dev/en/api/v20/esm/#resolution-and-loading-algorithm).
123
+
124
+ Do not use `Node10` module resolution.
114
125
 
115
126
  ### Module Formats
116
127
 
117
128
  - ES Modules:
118
- 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.
119
- - CommonJs:
120
- Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
121
- This is done to accommodate some workflows without good ES Module support.
122
- If you have a workflow you would like included in this list, file an issue.
123
- 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.
124
-
125
- - 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))
129
+ Use ES Modules to consume Fluid Framework client packages, including in Node.js.
130
+ - CommonJS:
131
+ Fluid Framework does not officially support CommonJS in version 3.0 or later.
126
132
 
127
133
  ## Contribution Guidelines
128
134
 
129
- There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
135
+ You can [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid Framework in these ways:
130
136
 
131
- - Participate in Q&A in our [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions).
132
- - [Submit bugs](https://github.com/microsoft/FluidFramework/issues) and help us verify fixes as they are checked in.
133
- - Review the [source code changes](https://github.com/microsoft/FluidFramework/pulls).
137
+ - Answer questions in [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions).
138
+ - [Submit bug reports](https://github.com/microsoft/FluidFramework/issues) and help verify fixes.
139
+ - Review [source code changes](https://github.com/microsoft/FluidFramework/pulls).
134
140
  - [Contribute bug fixes](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md).
135
141
 
136
- Detailed instructions for working in the repo can be found in the [Wiki](https://github.com/microsoft/FluidFramework/blob/main/docs/content/Home.md).
142
+ For detailed instructions, read the [repo documentation](https://github.com/microsoft/FluidFramework/blob/main/docs/content/Home.md).
137
143
 
138
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
139
- 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.
144
+ This project follows the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
145
+ For more information, read the [Code of Conduct frequently asked questions](https://opensource.microsoft.com/codeofconduct/faq/).
146
+ For questions or comments, contact [opencode@microsoft.com](mailto:opencode@microsoft.com).
140
147
 
141
148
  This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
142
149
  Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
@@ -144,13 +151,9 @@ Use of Microsoft trademarks or logos in modified versions of this project must n
144
151
 
145
152
  ## Help
146
153
 
147
- Not finding what you're looking for in this README?
148
- Check out [fluidframework.com](https://fluidframework.com/docs/).
149
-
150
- Still not finding what you're looking for?
151
- Please [file an issue](https://github.com/microsoft/FluidFramework/blob/main/docs/content/Contributing/Submitting-Bugs-and-Feature-Requests.md).
154
+ Read the [Fluid Framework documentation](https://fluidframework.com/docs/) for information about Fluid Framework concepts and APIs.
152
155
 
153
- Thank you!
156
+ To request information that the documentation does not contain, [create an issue](https://github.com/microsoft/FluidFramework/blob/main/docs/content/Contributing/Submitting-Bugs-and-Feature-Requests.md).
154
157
 
155
158
  ## Trademark
156
159
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "../../../common/build/build-common/api-extractor-model.esm.json",
3
+ "extends": "<projectFolder>/../../../common/build/build-common/api-extractor-model.esm.json",
4
4
  "bundledPackages": ["@fluidframework/*"],
5
5
  "messages": {
6
6
  "extractorMessageReporting": {