@fluid-internal/client-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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluid-internal/client-utils
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
  Dependency updates only.
package/README.md CHANGED
@@ -3,11 +3,32 @@
3
3
  This package is intended for sharing and promoting utility functions across packages in the Fluid Framework repo,
4
4
  primarily within the client release group.
5
5
 
6
- <!-- AUTO-GENERATED-CONTENT:START (README_PACKAGE_SCOPE_NOTICE) -->
6
+ <!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_HEADER) -->
7
+
8
+ <!-- prettier-ignore-start -->
9
+ <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
7
10
 
8
11
  **IMPORTANT: This package is intended strictly as an implementation detail of the Fluid Framework and is not intended for public consumption.**
9
12
  **We make no stability guarantees regarding its APIs.**
10
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
+
22
+ ## Installation
23
+
24
+ To get started, install the package by running the following command:
25
+
26
+ ```bash
27
+ npm i @fluid-internal/client-utils
28
+ ```
29
+
30
+ <!-- prettier-ignore-end -->
31
+
11
32
  <!-- AUTO-GENERATED-CONTENT:END -->
12
33
 
13
34
  ## Adding code to this package
@@ -72,27 +93,36 @@ be the same as browser. (Both report sets use the same target files.)
72
93
  Package scripts `check:exports:esm:indexBrowser:legacy` and `check:exports:esm:indexNode:legacy` are not
73
94
  verifying actual exports, but the consistency of tags within the legacy API set.
74
95
 
75
- <!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
96
+ <!-- AUTO-GENERATED-CONTENT:START (LIBRARY_PACKAGE_README_FOOTER) -->
76
97
 
77
98
  <!-- prettier-ignore-start -->
78
99
  <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
79
100
 
80
- ## Using Fluid Framework libraries
101
+ ## Contribution Guidelines
81
102
 
82
- When taking a dependency on a Fluid Framework library's public APIs, we recommend using a `^` (caret) version range, such as `^1.3.4`.
83
- While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
84
- library consumers should always prefer `^`.
103
+ There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
85
104
 
86
- If using any of Fluid Framework's unstable APIs (for example, its `beta` APIs), we recommend using a more constrained version range, such as `~`.
105
+ - Participate in Q&A in our [GitHub Discussions](https://github.com/microsoft/FluidFramework/discussions).
106
+ - [Submit bugs](https://github.com/microsoft/FluidFramework/issues) and help us verify fixes as they are checked in.
107
+ - Review the [source code changes](https://github.com/microsoft/FluidFramework/pulls).
108
+ - [Contribute bug fixes](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md).
87
109
 
88
- <!-- prettier-ignore-end -->
110
+ Detailed instructions for working in the repo can be found in the [Wiki](https://github.com/microsoft/FluidFramework/wiki).
89
111
 
90
- <!-- AUTO-GENERATED-CONTENT:END -->
112
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
113
+ 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.
91
114
 
92
- <!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
115
+ This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
116
+ Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
117
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
93
118
 
94
- <!-- prettier-ignore-start -->
95
- <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
119
+ ## Help
120
+
121
+ Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
122
+
123
+ Still not finding what you're looking for? Please [file an issue](https://github.com/microsoft/FluidFramework/wiki/Submitting-Bugs-and-Feature-Requests).
124
+
125
+ Thank you!
96
126
 
97
127
  ## Trademark
98
128
 
@@ -1,5 +1,5 @@
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
  "mainEntryPointFilePath": "<projectFolder>/lib/indexBrowser.d.ts"
5
5
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../../common/build/build-common/api-extractor-report.esm.current.json",
4
+ "mainEntryPointFilePath": "<projectFolder>/lib/indexBrowser.d.ts"
5
+ }
@@ -1,5 +1,5 @@
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
  "mainEntryPointFilePath": "<projectFolder>/lib/<unscopedPackageName>.browser.legacy.d.ts"
5
5
  }
@@ -1,5 +1,5 @@
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-report.esm.current.json",
4
4
  "mainEntryPointFilePath": "<projectFolder>/lib/indexNode.d.ts"
5
5
  }
@@ -1,5 +1,5 @@
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
  "mainEntryPointFilePath": "<projectFolder>/lib/<unscopedPackageName>.node.legacy.d.ts"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-internal/client-utils",
3
- "version": "2.1.0-276985",
3
+ "version": "2.1.0",
4
4
  "description": "Not intended for use outside the Fluid Framework.",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -67,8 +67,8 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluidframework/core-interfaces": "2.1.0-276985",
71
- "@fluidframework/core-utils": "2.1.0-276985",
70
+ "@fluidframework/core-interfaces": "~2.1.0",
71
+ "@fluidframework/core-utils": "~2.1.0",
72
72
  "@types/events_pkg": "npm:@types/events@^3.0.0",
73
73
  "base64-js": "^1.5.1",
74
74
  "buffer": "^6.0.3",
@@ -77,17 +77,17 @@
77
77
  },
78
78
  "devDependencies": {
79
79
  "@arethetypeswrong/cli": "^0.15.2",
80
- "@biomejs/biome": "^1.7.3",
81
- "@fluid-internal/client-utils-previous": "npm:@fluid-internal/client-utils@2.0.0-rc.5.0.0",
82
- "@fluid-internal/mocha-test-setup": "2.1.0-276985",
83
- "@fluid-tools/build-cli": "^0.39.0",
80
+ "@biomejs/biome": "~1.8.3",
81
+ "@fluid-internal/client-utils-previous": "npm:@fluid-internal/client-utils@2.0.0",
82
+ "@fluid-internal/mocha-test-setup": "~2.1.0",
83
+ "@fluid-tools/build-cli": "^0.41.0",
84
84
  "@fluidframework/build-common": "^2.0.3",
85
- "@fluidframework/build-tools": "^0.39.0",
85
+ "@fluidframework/build-tools": "^0.41.0",
86
86
  "@fluidframework/eslint-config-fluid": "^5.3.0",
87
87
  "@microsoft/api-extractor": "^7.45.1",
88
88
  "@types/base64-js": "^1.3.0",
89
89
  "@types/jest": "29.5.3",
90
- "@types/jest-environment-puppeteer": "2.1.0-276985",
90
+ "@types/jest-environment-puppeteer": "~2.1.0",
91
91
  "@types/mocha": "^9.1.1",
92
92
  "@types/node": "^18.19.0",
93
93
  "@types/rewire": "^2.5.28",
@@ -125,17 +125,17 @@
125
125
  "build:test:jest",
126
126
  "build:test:types"
127
127
  ],
128
- "build:docs:browser:current": [
128
+ "build:api-report:browser:current": [
129
129
  "build:exports:browser"
130
130
  ],
131
- "build:docs:browser:legacy": [
131
+ "build:api-report:browser:legacy": [
132
132
  "build:exports:browser"
133
133
  ],
134
- "build:docs:node:current": [
135
- "build:docs:browser:current"
134
+ "build:api-report:node:current": [
135
+ "build:api-report:browser:current"
136
136
  ],
137
- "build:docs:node:legacy": [
138
- "build:docs:browser:legacy"
137
+ "build:api-report:node:legacy": [
138
+ "build:api-report:browser:legacy"
139
139
  ],
140
140
  "check:exports:esm:indexBrowser:legacy": [
141
141
  "build:exports:browser"
@@ -155,16 +155,16 @@
155
155
  "build:test:types": [
156
156
  "build:esnext"
157
157
  ],
158
- "ci:build:docs:browser:current": [
158
+ "ci:build:api-report:browser:current": [
159
159
  "build:exports:browser"
160
160
  ],
161
- "ci:build:docs:browser:legacy": [
161
+ "ci:build:api-report:browser:legacy": [
162
162
  "build:exports:browser"
163
163
  ],
164
- "ci:build:docs:node:current": [
164
+ "ci:build:api-report:node:current": [
165
165
  "build:exports:node"
166
166
  ],
167
- "ci:build:docs:node:legacy": [
167
+ "ci:build:api-report:node:legacy": [
168
168
  "build:exports:node"
169
169
  ]
170
170
  }
@@ -174,15 +174,14 @@
174
174
  },
175
175
  "scripts": {
176
176
  "build": "fluid-build . --task build",
177
+ "build:api-report": "concurrently \"npm:build:api-report:browser:*\" && concurrently \"npm:build:api-report:node:*\"",
178
+ "build:api-report:browser:current": "api-extractor run --local --config api-extractor/api-extractor-report-browser.json",
179
+ "build:api-report:browser:legacy": "api-extractor run --local --config api-extractor/api-extractor-report-browser.legacy.json",
180
+ "build:api-report:node:current": "npm run ci:build:api-report:node:current",
181
+ "build:api-report:node:legacy": "npm run ci:build:api-report:node:legacy",
177
182
  "build:commonjs": "fluid-build . --task commonjs",
178
183
  "build:compile": "fluid-build . --task compile",
179
- "build:docs": "npm run build:docs:browser && npm run build:docs:node",
180
- "build:docs:browser": "npm run build:exports:browser && concurrently \"npm:build:docs:browser:*\"",
181
- "build:docs:browser:current": "api-extractor run --local --config api-extractor/api-extractor-browser.json",
182
- "build:docs:browser:legacy": "api-extractor run --local --config api-extractor/api-extractor-browser.legacy.json",
183
- "build:docs:node": "npm run build:exports:node && concurrently \"npm:build:docs:node:*\"",
184
- "build:docs:node:current": "npm run ci:build:docs:node:current",
185
- "build:docs:node:legacy": "npm run ci:build:docs:node:legacy",
184
+ "build:docs": "api-extractor run --local --config api-extractor/api-extractor-model-browser.json",
186
185
  "build:esnext": "tsc --project ./tsconfig.json",
187
186
  "build:exports:browser": "flub generate entrypoints --outFilePrefix {@unscopedPackageName}.browser. --mainEntrypoint ./src/indexBrowser.ts --outDir ./lib",
188
187
  "build:exports:node": "flub generate entrypoints --outFilePrefix {@unscopedPackageName}.node. --mainEntrypoint ./src/indexNode.ts --outDir ./lib",
@@ -193,7 +192,7 @@
193
192
  "build:test:mocha:esm": "tsc --project ./src/test/mocha/tsconfig.json",
194
193
  "build:test:types": "tsc --project ./src/test/types/tsconfig.json",
195
194
  "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints internal-api-report",
196
- "check:biome": "biome check . --formatter-enabled=true",
195
+ "check:biome": "biome check .",
197
196
  "check:exports": "concurrently \"npm:check:exports:*\"",
198
197
  "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json",
199
198
  "check:exports:cjs:indexBrowser": "api-extractor run --config api-extractor/api-extractor-lint-indexBrowser.cjs.json",
@@ -204,16 +203,17 @@
204
203
  "check:exports:esm:indexNode:legacy": "api-extractor run --config api-extractor/api-extractor-lint-indexNode.legacy.esm.json",
205
204
  "check:format": "npm run check:biome",
206
205
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
207
- "ci:build:docs": "concurrently \"npm:ci:build:docs:*\"",
208
- "ci:build:docs:browser:current": "api-extractor run --config api-extractor/api-extractor-browser.json",
209
- "ci:build:docs:browser:legacy": "api-extractor run --config api-extractor/api-extractor-browser.legacy.json",
210
- "ci:build:docs:node:current": "api-extractor run --config api-extractor/api-extractor-node.json",
211
- "ci:build:docs:node:legacy": "api-extractor run --config api-extractor/api-extractor-node.legacy.json",
206
+ "ci:build:api-report": "concurrently \"npm:ci:build:api-report:*\"",
207
+ "ci:build:api-report:browser:current": "api-extractor run --config api-extractor/api-extractor-report-browser.json",
208
+ "ci:build:api-report:browser:legacy": "api-extractor run --config api-extractor/api-extractor-report-browser.legacy.json",
209
+ "ci:build:api-report:node:current": "api-extractor run --config api-extractor/api-extractor-report-node.json",
210
+ "ci:build:api-report:node:legacy": "api-extractor run --config api-extractor/api-extractor-report-node.legacy.json",
211
+ "ci:build:docs": "api-extractor run --config api-extractor/api-extractor-model-browser.json",
212
212
  "clean": "rimraf --glob _api-extractor-temp dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc",
213
213
  "eslint": "eslint --format stylish src",
214
214
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
215
215
  "format": "npm run format:biome",
216
- "format:biome": "biome check . --formatter-enabled=true --apply",
216
+ "format:biome": "biome check . --write",
217
217
  "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
218
218
  "lint": "fluid-build . --task lint",
219
219
  "lint:fix": "fluid-build . --task eslint:fix --task format",
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.45.1"
9
- }
10
- ]
11
- }