@fluidframework/tool-utils 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 +54 -1
- 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 +1 -1
- 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 +1 -1
- package/package.json +12 -12
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Shared utilities for tools.
|
|
4
4
|
|
|
5
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
5
|
+
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_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. -->
|
|
@@ -27,6 +27,59 @@ npm i @fluidframework/tool-utils
|
|
|
27
27
|
|
|
28
28
|
API documentation for **@fluidframework/tool-utils** is available at <https://fluidframework.com/docs/apis/tool-utils>.
|
|
29
29
|
|
|
30
|
+
<!-- prettier-ignore-end -->
|
|
31
|
+
|
|
32
|
+
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
33
|
+
|
|
34
|
+
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_FOOTER) -->
|
|
35
|
+
|
|
36
|
+
<!-- prettier-ignore-start -->
|
|
37
|
+
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
38
|
+
|
|
39
|
+
## Minimum Client Requirements
|
|
40
|
+
|
|
41
|
+
These are the platform requirements for the current version of Fluid Framework Client Packages.
|
|
42
|
+
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.
|
|
43
|
+
For Long Term Support (LTS) versions this can require supporting these platforms for several years.
|
|
44
|
+
|
|
45
|
+
It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
|
|
46
|
+
If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
### Supported Runtimes
|
|
50
|
+
|
|
51
|
+
- 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).
|
|
52
|
+
- 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).
|
|
53
|
+
|
|
54
|
+
### Supported Tools
|
|
55
|
+
|
|
56
|
+
- TypeScript 5.4:
|
|
57
|
+
- All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
|
|
58
|
+
- [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
|
|
59
|
+
- [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
|
|
60
|
+
- `exactOptionalPropertyTypes` is currently not fully supported.
|
|
61
|
+
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.
|
|
62
|
+
- [webpack](https://webpack.js.org/) 5
|
|
63
|
+
- We are not intending to be prescriptive about what bundler to use.
|
|
64
|
+
Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
|
|
65
|
+
|
|
66
|
+
### Module Resolution
|
|
67
|
+
|
|
68
|
+
[`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).
|
|
69
|
+
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.
|
|
70
|
+
|
|
71
|
+
### Module Formats
|
|
72
|
+
|
|
73
|
+
- ES Modules:
|
|
74
|
+
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.
|
|
75
|
+
- CommonJs:
|
|
76
|
+
Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
|
|
77
|
+
This is done to accommodate some workflows without good ES Module support.
|
|
78
|
+
If you have a workflow you would like included in this list, file an issue.
|
|
79
|
+
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.
|
|
80
|
+
|
|
81
|
+
- 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))
|
|
82
|
+
|
|
30
83
|
## Contribution Guidelines
|
|
31
84
|
|
|
32
85
|
There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/tool-utils";
|
|
8
|
-
export declare const pkgVersion = "2.1.0
|
|
8
|
+
export declare const pkgVersion = "2.1.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,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/tool-utils";
|
|
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,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,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/tool-utils\";\nexport const pkgVersion = \"2.1.0\";\n"]}
|
package/dist/public.d.ts
CHANGED
package/internal.d.ts
CHANGED
package/lib/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/tool-utils";
|
|
8
|
-
export declare const pkgVersion = "2.1.0
|
|
8
|
+
export declare const pkgVersion = "2.1.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,+BAA+B,CAAC;AACpD,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,4BAA4B,CAAC;AACpD,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,4BAA4B,CAAC;AACpD,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/tool-utils\";\nexport const pkgVersion = \"2.1.0\";\n"]}
|
package/lib/public.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/tool-utils",
|
|
3
|
-
"version": "2.1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Common utilities for Fluid tools",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"temp-directory": "nyc/.nyc_output"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@fluidframework/core-utils": "2.1.0
|
|
61
|
-
"@fluidframework/driver-definitions": "2.1.0
|
|
62
|
-
"@fluidframework/driver-utils": "2.1.0
|
|
63
|
-
"@fluidframework/odsp-doclib-utils": "2.1.0
|
|
60
|
+
"@fluidframework/core-utils": "~2.1.0",
|
|
61
|
+
"@fluidframework/driver-definitions": "~2.1.0",
|
|
62
|
+
"@fluidframework/driver-utils": "~2.1.0",
|
|
63
|
+
"@fluidframework/odsp-doclib-utils": "~2.1.0",
|
|
64
64
|
"async-mutex": "^0.3.1",
|
|
65
65
|
"debug": "^4.3.4",
|
|
66
66
|
"jwt-decode": "^4.0.0",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
71
|
-
"@biomejs/biome": "
|
|
72
|
-
"@fluid-internal/mocha-test-setup": "2.1.0
|
|
73
|
-
"@fluid-tools/build-cli": "^0.
|
|
71
|
+
"@biomejs/biome": "~1.8.3",
|
|
72
|
+
"@fluid-internal/mocha-test-setup": "~2.1.0",
|
|
73
|
+
"@fluid-tools/build-cli": "^0.41.0",
|
|
74
74
|
"@fluidframework/build-common": "^2.0.3",
|
|
75
|
-
"@fluidframework/build-tools": "^0.
|
|
75
|
+
"@fluidframework/build-tools": "^0.41.0",
|
|
76
76
|
"@fluidframework/eslint-config-fluid": "^5.3.0",
|
|
77
|
-
"@fluidframework/tool-utils-previous": "npm:@fluidframework/tool-utils@2.0.0
|
|
77
|
+
"@fluidframework/tool-utils-previous": "npm:@fluidframework/tool-utils@2.0.0",
|
|
78
78
|
"@microsoft/api-extractor": "^7.45.1",
|
|
79
79
|
"@types/debug": "^4.1.5",
|
|
80
80
|
"@types/mocha": "^9.1.1",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
111
111
|
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
112
112
|
"check:are-the-types-wrong": "attw --pack .",
|
|
113
|
-
"check:biome": "biome check .
|
|
113
|
+
"check:biome": "biome check .",
|
|
114
114
|
"check:exports": "concurrently \"npm:check:exports:*\"",
|
|
115
115
|
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
|
|
116
116
|
"check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"eslint": "eslint --format stylish src",
|
|
123
123
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
124
124
|
"format": "npm run format:biome",
|
|
125
|
-
"format:biome": "biome check . --
|
|
125
|
+
"format:biome": "biome check . --write",
|
|
126
126
|
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
127
127
|
"lint": "fluid-build . --task lint",
|
|
128
128
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
package/src/packageVersion.ts
CHANGED