@fluidframework/devtools 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 +69 -23
- package/alpha.d.ts +1 -1
- package/beta.d.ts +1 -1
- package/dist/alpha.d.ts +16 -1
- package/dist/beta.d.ts +16 -1
- package/dist/public.d.ts +15 -2
- package/internal.d.ts +1 -1
- package/lib/alpha.d.ts +16 -1
- package/lib/beta.d.ts +16 -1
- package/lib/public.d.ts +15 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -6,11 +6,19 @@ It is used to power our associated [browser extension][browser-extension].
|
|
|
6
6
|
- Chrome: <https://aka.ms/fluid/devtool/chrome>
|
|
7
7
|
- Edge: <https://aka.ms/fluid/devtool/edge>
|
|
8
8
|
|
|
9
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
9
|
+
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_HEADER:devDependency=TRUE) -->
|
|
10
10
|
|
|
11
11
|
<!-- prettier-ignore-start -->
|
|
12
12
|
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
13
13
|
|
|
14
|
+
## Using Fluid Framework libraries
|
|
15
|
+
|
|
16
|
+
When taking a dependency on a Fluid Framework library's public APIs, we recommend using a `^` (caret) version range, such as `^1.3.4`.
|
|
17
|
+
While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
|
|
18
|
+
library consumers should always prefer `^`.
|
|
19
|
+
|
|
20
|
+
If using any of Fluid Framework's unstable APIs (for example, its `beta` APIs), we recommend using a more constrained version range, such as `~`.
|
|
21
|
+
|
|
14
22
|
## Installation
|
|
15
23
|
|
|
16
24
|
To get started, install the package by running the following command:
|
|
@@ -19,6 +27,21 @@ To get started, install the package by running the following command:
|
|
|
19
27
|
npm i @fluidframework/devtools -D
|
|
20
28
|
```
|
|
21
29
|
|
|
30
|
+
## Importing from this package
|
|
31
|
+
|
|
32
|
+
This package leverages [package.json exports](https://nodejs.org/api/packages.html#exports) to separate its APIs by support level.
|
|
33
|
+
For more information on the related support guarantees, see [API Support Levels](https://fluidframework.com/docs/build/releases-and-apitags/#api-support-levels).
|
|
34
|
+
|
|
35
|
+
To access the `public` ([SemVer](https://semver.org/)) APIs, import via `@fluidframework/devtools` like normal.
|
|
36
|
+
|
|
37
|
+
To access the `beta` APIs, import via `@fluidframework/devtools/beta`.
|
|
38
|
+
|
|
39
|
+
To access the `alpha` APIs, import via `@fluidframework/devtools/alpha`.
|
|
40
|
+
|
|
41
|
+
## API Documentation
|
|
42
|
+
|
|
43
|
+
API documentation for **@fluidframework/devtools** is available at <https://fluidframework.com/docs/apis/devtools>.
|
|
44
|
+
|
|
22
45
|
<!-- prettier-ignore-end -->
|
|
23
46
|
|
|
24
47
|
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
@@ -121,14 +144,55 @@ Next, to build the code, run `npm run build` from the root of the mono-repo, or
|
|
|
121
144
|
To run the tests, first ensure you have followed the [build](#build) steps above.
|
|
122
145
|
Next, run `npm run test` from a terminal within this directory.
|
|
123
146
|
|
|
124
|
-
<!-- AUTO-GENERATED-CONTENT:START (
|
|
125
|
-
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
126
|
-
|
|
127
|
-
<!-- AUTO-GENERATED-CONTENT:START (README_CONTRIBUTION_GUIDELINES_SECTION:includeHeading=TRUE) -->
|
|
147
|
+
<!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_FOOTER) -->
|
|
128
148
|
|
|
129
149
|
<!-- prettier-ignore-start -->
|
|
130
150
|
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
131
151
|
|
|
152
|
+
## Minimum Client Requirements
|
|
153
|
+
|
|
154
|
+
These are the platform requirements for the current version of Fluid Framework Client Packages.
|
|
155
|
+
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.
|
|
156
|
+
For Long Term Support (LTS) versions this can require supporting these platforms for several years.
|
|
157
|
+
|
|
158
|
+
It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
|
|
159
|
+
If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
|
|
160
|
+
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.
|
|
161
|
+
|
|
162
|
+
### Supported Runtimes
|
|
163
|
+
|
|
164
|
+
- 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).
|
|
165
|
+
- 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).
|
|
166
|
+
|
|
167
|
+
### Supported Tools
|
|
168
|
+
|
|
169
|
+
- TypeScript 5.4:
|
|
170
|
+
- All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
|
|
171
|
+
- [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
|
|
172
|
+
- [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
|
|
173
|
+
- `exactOptionalPropertyTypes` is currently not fully supported.
|
|
174
|
+
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.
|
|
175
|
+
- [webpack](https://webpack.js.org/) 5
|
|
176
|
+
- We are not intending to be prescriptive about what bundler to use.
|
|
177
|
+
Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
|
|
178
|
+
|
|
179
|
+
### Module Resolution
|
|
180
|
+
|
|
181
|
+
[`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).
|
|
182
|
+
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.
|
|
183
|
+
|
|
184
|
+
### Module Formats
|
|
185
|
+
|
|
186
|
+
- ES Modules:
|
|
187
|
+
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.
|
|
188
|
+
- CommonJs:
|
|
189
|
+
Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
|
|
190
|
+
This is done to accommodate some workflows without good ES Module support.
|
|
191
|
+
If you have a workflow you would like included in this list, file an issue.
|
|
192
|
+
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.
|
|
193
|
+
|
|
194
|
+
- 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))
|
|
195
|
+
|
|
132
196
|
## Contribution Guidelines
|
|
133
197
|
|
|
134
198
|
There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
|
|
@@ -147,15 +211,6 @@ This project may contain Microsoft trademarks or logos for Microsoft projects, p
|
|
|
147
211
|
Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
|
|
148
212
|
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
|
|
149
213
|
|
|
150
|
-
<!-- prettier-ignore-end -->
|
|
151
|
-
|
|
152
|
-
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
153
|
-
|
|
154
|
-
<!-- AUTO-GENERATED-CONTENT:START (README_HELP_SECTION:includeHeading=TRUE) -->
|
|
155
|
-
|
|
156
|
-
<!-- prettier-ignore-start -->
|
|
157
|
-
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
158
|
-
|
|
159
214
|
## Help
|
|
160
215
|
|
|
161
216
|
Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
|
|
@@ -164,15 +219,6 @@ Still not finding what you're looking for? Please [file an issue](https://github
|
|
|
164
219
|
|
|
165
220
|
Thank you!
|
|
166
221
|
|
|
167
|
-
<!-- prettier-ignore-end -->
|
|
168
|
-
|
|
169
|
-
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
170
|
-
|
|
171
|
-
<!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
|
|
172
|
-
|
|
173
|
-
<!-- prettier-ignore-start -->
|
|
174
|
-
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
175
|
-
|
|
176
222
|
## Trademark
|
|
177
223
|
|
|
178
224
|
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
package/alpha.d.ts
CHANGED
package/beta.d.ts
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -5,7 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Primary entry-point to the Fluid Devtools.
|
|
13
|
+
*
|
|
14
|
+
* To initialize the Devtools alongside your application's {@link @fluidframework/fluid-static#IFluidContainer}, call
|
|
15
|
+
* {@link initializeDevtools}.
|
|
16
|
+
*
|
|
17
|
+
* The Devtools will automatically dispose of themselves upon Window unload, but if you would like to close them
|
|
18
|
+
* earlier, call {@link IDevtools.dispose}.
|
|
19
|
+
*
|
|
20
|
+
* To enable visualization of Telemetry data, you may create a {@link @fluidframework/devtools-core#DevtoolsLogger} and
|
|
21
|
+
* provide it during Devtools initialization.
|
|
22
|
+
*
|
|
23
|
+
* @packageDocumentation
|
|
9
24
|
*/
|
|
10
25
|
|
|
11
26
|
export {
|
package/dist/beta.d.ts
CHANGED
|
@@ -5,7 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Primary entry-point to the Fluid Devtools.
|
|
13
|
+
*
|
|
14
|
+
* To initialize the Devtools alongside your application's {@link @fluidframework/fluid-static#IFluidContainer}, call
|
|
15
|
+
* {@link initializeDevtools}.
|
|
16
|
+
*
|
|
17
|
+
* The Devtools will automatically dispose of themselves upon Window unload, but if you would like to close them
|
|
18
|
+
* earlier, call {@link IDevtools.dispose}.
|
|
19
|
+
*
|
|
20
|
+
* To enable visualization of Telemetry data, you may create a {@link @fluidframework/devtools-core#DevtoolsLogger} and
|
|
21
|
+
* provide it during Devtools initialization.
|
|
22
|
+
*
|
|
23
|
+
* @packageDocumentation
|
|
9
24
|
*/
|
|
10
25
|
|
|
11
26
|
export {
|
package/dist/public.d.ts
CHANGED
|
@@ -5,8 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Primary entry-point to the Fluid Devtools.
|
|
13
|
+
*
|
|
14
|
+
* To initialize the Devtools alongside your application's {@link @fluidframework/fluid-static#IFluidContainer}, call
|
|
15
|
+
* {@link initializeDevtools}.
|
|
16
|
+
*
|
|
17
|
+
* The Devtools will automatically dispose of themselves upon Window unload, but if you would like to close them
|
|
18
|
+
* earlier, call {@link IDevtools.dispose}.
|
|
19
|
+
*
|
|
20
|
+
* To enable visualization of Telemetry data, you may create a {@link @fluidframework/devtools-core#DevtoolsLogger} and
|
|
21
|
+
* provide it during Devtools initialization.
|
|
22
|
+
*
|
|
23
|
+
* @packageDocumentation
|
|
24
|
+
*/export {}
|
|
12
25
|
|
package/internal.d.ts
CHANGED
package/lib/alpha.d.ts
CHANGED
|
@@ -5,7 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Primary entry-point to the Fluid Devtools.
|
|
13
|
+
*
|
|
14
|
+
* To initialize the Devtools alongside your application's {@link @fluidframework/fluid-static#IFluidContainer}, call
|
|
15
|
+
* {@link initializeDevtools}.
|
|
16
|
+
*
|
|
17
|
+
* The Devtools will automatically dispose of themselves upon Window unload, but if you would like to close them
|
|
18
|
+
* earlier, call {@link IDevtools.dispose}.
|
|
19
|
+
*
|
|
20
|
+
* To enable visualization of Telemetry data, you may create a {@link @fluidframework/devtools-core#DevtoolsLogger} and
|
|
21
|
+
* provide it during Devtools initialization.
|
|
22
|
+
*
|
|
23
|
+
* @packageDocumentation
|
|
9
24
|
*/
|
|
10
25
|
|
|
11
26
|
export {
|
package/lib/beta.d.ts
CHANGED
|
@@ -5,7 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Primary entry-point to the Fluid Devtools.
|
|
13
|
+
*
|
|
14
|
+
* To initialize the Devtools alongside your application's {@link @fluidframework/fluid-static#IFluidContainer}, call
|
|
15
|
+
* {@link initializeDevtools}.
|
|
16
|
+
*
|
|
17
|
+
* The Devtools will automatically dispose of themselves upon Window unload, but if you would like to close them
|
|
18
|
+
* earlier, call {@link IDevtools.dispose}.
|
|
19
|
+
*
|
|
20
|
+
* To enable visualization of Telemetry data, you may create a {@link @fluidframework/devtools-core#DevtoolsLogger} and
|
|
21
|
+
* provide it during Devtools initialization.
|
|
22
|
+
*
|
|
23
|
+
* @packageDocumentation
|
|
9
24
|
*/
|
|
10
25
|
|
|
11
26
|
export {
|
package/lib/public.d.ts
CHANGED
|
@@ -5,8 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Primary entry-point to the Fluid Devtools.
|
|
13
|
+
*
|
|
14
|
+
* To initialize the Devtools alongside your application's {@link @fluidframework/fluid-static#IFluidContainer}, call
|
|
15
|
+
* {@link initializeDevtools}.
|
|
16
|
+
*
|
|
17
|
+
* The Devtools will automatically dispose of themselves upon Window unload, but if you would like to close them
|
|
18
|
+
* earlier, call {@link IDevtools.dispose}.
|
|
19
|
+
*
|
|
20
|
+
* To enable visualization of Telemetry data, you may create a {@link @fluidframework/devtools-core#DevtoolsLogger} and
|
|
21
|
+
* provide it during Devtools initialization.
|
|
22
|
+
*
|
|
23
|
+
* @packageDocumentation
|
|
24
|
+
*/export {}
|
|
12
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/devtools",
|
|
3
|
-
"version": "2.1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Fluid Framework developer tools",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
"temp-directory": "nyc/.nyc_output"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@fluidframework/container-definitions": "2.1.0
|
|
81
|
-
"@fluidframework/core-interfaces": "2.1.0
|
|
82
|
-
"@fluidframework/devtools-core": "2.1.0
|
|
83
|
-
"@fluidframework/fluid-static": "2.1.0
|
|
80
|
+
"@fluidframework/container-definitions": "~2.1.0",
|
|
81
|
+
"@fluidframework/core-interfaces": "~2.1.0",
|
|
82
|
+
"@fluidframework/devtools-core": "~2.1.0",
|
|
83
|
+
"@fluidframework/fluid-static": "~2.1.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
87
|
-
"@biomejs/biome": "
|
|
88
|
-
"@fluid-internal/mocha-test-setup": "2.1.0
|
|
89
|
-
"@fluid-tools/build-cli": "^0.
|
|
87
|
+
"@biomejs/biome": "~1.8.3",
|
|
88
|
+
"@fluid-internal/mocha-test-setup": "~2.1.0",
|
|
89
|
+
"@fluid-tools/build-cli": "^0.41.0",
|
|
90
90
|
"@fluidframework/build-common": "^2.0.3",
|
|
91
|
-
"@fluidframework/build-tools": "^0.
|
|
92
|
-
"@fluidframework/devtools-previous": "npm:@fluidframework/devtools@2.0.0
|
|
91
|
+
"@fluidframework/build-tools": "^0.41.0",
|
|
92
|
+
"@fluidframework/devtools-previous": "npm:@fluidframework/devtools@2.0.0",
|
|
93
93
|
"@fluidframework/eslint-config-fluid": "^5.3.0",
|
|
94
94
|
"@microsoft/api-extractor": "^7.45.1",
|
|
95
95
|
"@types/chai": "^4.0.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"build:docs": "api-extractor run --local",
|
|
131
131
|
"build:esnext": "tsc --project ./tsconfig.json",
|
|
132
132
|
"check:are-the-types-wrong": "attw --pack .",
|
|
133
|
-
"check:biome": "biome check .
|
|
133
|
+
"check:biome": "biome check .",
|
|
134
134
|
"check:exports": "concurrently \"npm:check:exports:*\"",
|
|
135
135
|
"check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
|
|
136
136
|
"check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"format": "npm run format:biome",
|
|
149
149
|
"format-and-build": "npm run format && npm run build",
|
|
150
150
|
"format-and-compile": "npm run format && npm run build:compile",
|
|
151
|
-
"format:biome": "biome check . --
|
|
151
|
+
"format:biome": "biome check . --write",
|
|
152
152
|
"format:prettier": "prettier --write . --cache --ignore-path ../../../../.prettierignore",
|
|
153
153
|
"lint": "fluid-build . --task lint",
|
|
154
154
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|