@fluidframework/synthesize 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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @fluidframework/synthesize
2
2
 
3
+ ## 2.2.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.1.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.0.0-rc.5.0.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  An Ioc type library for synthesizing a FluidObject based on FluidObject providers.
4
4
 
5
- <!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
5
+
6
+ <!-- AUTO-GENERATED-CONTENT:START (LIBRARY_README_HEADER) -->
6
7
 
7
8
  <!-- prettier-ignore-start -->
8
9
  <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
@@ -15,6 +16,27 @@ library consumers should always prefer `^`.
15
16
 
16
17
  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
18
 
19
+ ## Installation
20
+
21
+ To get started, install the package by running the following command:
22
+
23
+ ```bash
24
+ npm i @fluidframework/synthesize
25
+ ```
26
+
27
+ ## Importing from this package
28
+
29
+ This package leverages [package.json exports](https://nodejs.org/api/packages.html#exports) to separate its APIs by support level.
30
+ For more information on the related support guarantees, see [API Support Levels](https://fluidframework.com/docs/build/releases-and-apitags/#api-support-levels).
31
+
32
+ To access the `public` ([SemVer](https://semver.org/)) APIs, import via `@fluidframework/synthesize` like normal.
33
+
34
+ To access the `legacy` APIs, import via `@fluidframework/synthesize/legacy`.
35
+
36
+ ## API Documentation
37
+
38
+ API documentation for **@fluidframework/synthesize** is available at <https://fluidframework.com/docs/apis/synthesize>.
39
+
18
40
  <!-- prettier-ignore-end -->
19
41
 
20
42
  <!-- AUTO-GENERATED-CONTENT:END -->
@@ -242,11 +264,81 @@ console.log(bar.bar);
242
264
  The `DependencyContainer` takes one optional parameter which is the `parent`. When resolving providers the `DependencyContainer` will first
243
265
  check the current container then look in the parent.
244
266
 
245
- <!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
267
+ <!-- AUTO-GENERATED-CONTENT:START (README_FOOTER) -->
246
268
 
247
269
  <!-- prettier-ignore-start -->
248
270
  <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
249
271
 
272
+ ## Minimum Client Requirements
273
+
274
+ These are the platform requirements for the current version of Fluid Framework Client Packages.
275
+ 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.
276
+ For Long Term Support (LTS) versions this can require supporting these platforms for several years.
277
+
278
+ It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
279
+ If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
280
+ 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.
281
+
282
+ ### Supported Runtimes
283
+
284
+ - 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).
285
+ - 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).
286
+
287
+ ### Supported Tools
288
+
289
+ - TypeScript 5.4:
290
+ - All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
291
+ - [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
292
+ - [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
293
+ - `exactOptionalPropertyTypes` is currently not fully supported.
294
+ 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.
295
+ - [webpack](https://webpack.js.org/) 5
296
+ - We are not intending to be prescriptive about what bundler to use.
297
+ Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
298
+
299
+ ### Module Resolution
300
+
301
+ [`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).
302
+ 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.
303
+
304
+ ### Module Formats
305
+
306
+ - ES Modules:
307
+ 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.
308
+ - CommonJs:
309
+ Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
310
+ This is done to accommodate some workflows without good ES Module support.
311
+ If you have a workflow you would like included in this list, file an issue.
312
+ 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.
313
+
314
+ - 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))
315
+
316
+ ## Contribution Guidelines
317
+
318
+ There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
319
+
320
+ - Participate in Q&A in our [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions).
321
+ - [Submit bugs](https://github.com/microsoft/FluidFramework/issues) and help us verify fixes as they are checked in.
322
+ - Review the [source code changes](https://github.com/microsoft/FluidFramework/pulls).
323
+ - [Contribute bug fixes](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md).
324
+
325
+ Detailed instructions for working in the repo can be found in the [Wiki](https://github.com/microsoft/FluidFramework/wiki).
326
+
327
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
328
+ 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.
329
+
330
+ This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
331
+ Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
332
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
333
+
334
+ ## Help
335
+
336
+ Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
337
+
338
+ Still not finding what you're looking for? Please [file an issue](https://github.com/microsoft/FluidFramework/wiki/Submitting-Bugs-and-Feature-Requests).
339
+
340
+ Thank you!
341
+
250
342
  ## Trademark
251
343
 
252
344
  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": "@fluidframework/synthesize",
3
- "version": "2.1.0-281041",
3
+ "version": "2.2.0",
4
4
  "description": "A library for synthesizing scope objects.",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -67,20 +67,20 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluidframework/core-utils": "2.1.0-281041"
70
+ "@fluidframework/core-utils": "~2.2.0"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@arethetypeswrong/cli": "^0.15.2",
74
74
  "@biomejs/biome": "~1.8.3",
75
- "@fluid-internal/mocha-test-setup": "2.1.0-281041",
76
- "@fluid-tools/build-cli": "^0.40.0",
75
+ "@fluid-internal/mocha-test-setup": "~2.2.0",
76
+ "@fluid-tools/build-cli": "^0.43.0",
77
77
  "@fluidframework/build-common": "^2.0.3",
78
- "@fluidframework/build-tools": "^0.40.0",
79
- "@fluidframework/core-interfaces": "2.1.0-281041",
80
- "@fluidframework/datastore": "2.1.0-281041",
78
+ "@fluidframework/build-tools": "^0.43.0",
79
+ "@fluidframework/core-interfaces": "~2.2.0",
80
+ "@fluidframework/datastore": "~2.2.0",
81
81
  "@fluidframework/eslint-config-fluid": "^5.3.0",
82
- "@fluidframework/runtime-utils": "2.1.0-281041",
83
- "@fluidframework/synthesize-previous": "npm:@fluidframework/synthesize@2.0.0",
82
+ "@fluidframework/runtime-utils": "~2.2.0",
83
+ "@fluidframework/synthesize-previous": "npm:@fluidframework/synthesize@2.1.0",
84
84
  "@microsoft/api-extractor": "^7.45.1",
85
85
  "@types/mocha": "^9.1.1",
86
86
  "@types/node": "^18.19.0",