@fluidframework/synthesize 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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluidframework/synthesize
2
2
 
3
+ ## 2.1.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.0.0-rc.5.0.0
4
8
 
5
9
  ### 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_PACKAGE_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 (LIBRARY_PACKAGE_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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "<projectFolder>/../../../common/build/build-common/api-extractor-report.esm.current.json",
4
+ "mainEntryPointFilePath": "<projectFolder>/lib/public.d.ts"
5
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "<projectFolder>/../../../common/build/build-common/api-extractor-base.esm.legacy.json"
3
+ "extends": "<projectFolder>/../../../common/build/build-common/api-extractor-report.esm.legacy.json"
4
4
  }
@@ -1,4 +1,4 @@
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-base.esm.current.json"
3
+ "extends": "../../../common/build/build-common/api-extractor-model.esm.json"
4
4
  }
@@ -0,0 +1,9 @@
1
+ ## Public API Report File for "@fluidframework/synthesize"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ // (No @packageDocumentation comment for this package)
8
+
9
+ ```
package/dist/legacy.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
- * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
8
+ * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
11
  export {
package/dist/public.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
- * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
8
+ * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
11
  export {}
package/internal.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
- * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
8
+ * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
11
  export * from "./lib/index.js";
package/legacy.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
- * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
8
+ * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
11
  export * from "./lib/legacy.js";
package/lib/legacy.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
- * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
8
+ * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
11
  export {
package/lib/public.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*
7
7
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
- * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
8
+ * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
11
  export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/synthesize",
3
- "version": "2.1.0-276985",
3
+ "version": "2.1.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-276985"
70
+ "@fluidframework/core-utils": "~2.1.0"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@arethetypeswrong/cli": "^0.15.2",
74
- "@biomejs/biome": "^1.7.3",
75
- "@fluid-internal/mocha-test-setup": "2.1.0-276985",
76
- "@fluid-tools/build-cli": "^0.39.0",
74
+ "@biomejs/biome": "~1.8.3",
75
+ "@fluid-internal/mocha-test-setup": "~2.1.0",
76
+ "@fluid-tools/build-cli": "^0.41.0",
77
77
  "@fluidframework/build-common": "^2.0.3",
78
- "@fluidframework/build-tools": "^0.39.0",
79
- "@fluidframework/core-interfaces": "2.1.0-276985",
80
- "@fluidframework/datastore": "2.1.0-276985",
78
+ "@fluidframework/build-tools": "^0.41.0",
79
+ "@fluidframework/core-interfaces": "~2.1.0",
80
+ "@fluidframework/datastore": "~2.1.0",
81
81
  "@fluidframework/eslint-config-fluid": "^5.3.0",
82
- "@fluidframework/runtime-utils": "2.1.0-276985",
83
- "@fluidframework/synthesize-previous": "npm:@fluidframework/synthesize@2.0.0-rc.5.0.0",
82
+ "@fluidframework/runtime-utils": "~2.1.0",
83
+ "@fluidframework/synthesize-previous": "npm:@fluidframework/synthesize@2.0.0",
84
84
  "@microsoft/api-extractor": "^7.45.1",
85
85
  "@types/mocha": "^9.1.1",
86
86
  "@types/node": "^18.19.0",
@@ -105,17 +105,18 @@
105
105
  "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
106
106
  "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
107
107
  "build": "fluid-build . --task build",
108
+ "build:api-reports": "concurrently \"npm:build:api-reports:*\"",
109
+ "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json",
110
+ "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json",
108
111
  "build:commonjs": "fluid-build . --task commonjs",
109
112
  "build:compile": "fluid-build . --task compile",
110
- "build:docs": "concurrently \"npm:build:docs:*\"",
111
- "build:docs:current": "api-extractor run --local",
112
- "build:docs:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json",
113
+ "build:docs": "api-extractor run --local",
113
114
  "build:esnext": "tsc --project ./tsconfig.json",
114
115
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
115
116
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
116
117
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
117
118
  "check:are-the-types-wrong": "attw --pack .",
118
- "check:biome": "biome check . --formatter-enabled=true",
119
+ "check:biome": "biome check .",
119
120
  "check:exports": "concurrently \"npm:check:exports:*\"",
120
121
  "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
121
122
  "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json",
@@ -124,14 +125,15 @@
124
125
  "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
125
126
  "check:format": "npm run check:biome",
126
127
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
127
- "ci:build:docs": "concurrently \"npm:ci:build:docs:*\"",
128
- "ci:build:docs:current": "api-extractor run",
129
- "ci:build:docs:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json",
128
+ "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"",
129
+ "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json",
130
+ "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json",
131
+ "ci:build:docs": "api-extractor run",
130
132
  "clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
131
133
  "eslint": "eslint --format stylish src",
132
134
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
133
135
  "format": "npm run format:biome",
134
- "format:biome": "biome check . --formatter-enabled=true --apply",
136
+ "format:biome": "biome check . --write",
135
137
  "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
136
138
  "lint": "fluid-build . --task lint",
137
139
  "lint:fix": "fluid-build . --task eslint:fix --task format",