@fluidframework/azure-service-utils 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +71 -24
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @fluidframework/azure-service-utils
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,11 @@
2
2
 
3
3
  A set of helper utilities for building backend APIs for use with Azure Fluid Relay service.
4
4
 
5
- <!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
5
+ ## generateToken
6
+
7
+ This function will generate a JWT token that can be sent to an `ITokenProvider` instance that is being passed into the constructor of `AzureClient`. The `tenantId` and `key` map to the values provided to you as part of the onboarding process for the Azure Fluid Relay service. The `user` objects allows you to define the properties for the current user that this token will be used to authenticate for. The values passed in here represent the values that will be supplied as part of the `audience` in the `FluidContainer` that will be provided by the `AzureClient`.
8
+
9
+ <!-- AUTO-GENERATED-CONTENT:START (LIBRARY_README_HEADER) -->
6
10
 
7
11
  <!-- prettier-ignore-start -->
8
12
  <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
@@ -15,19 +19,80 @@ library consumers should always prefer `^`.
15
19
 
16
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 `~`.
17
21
 
18
- <!-- prettier-ignore-end -->
22
+ ## Installation
19
23
 
20
- <!-- AUTO-GENERATED-CONTENT:END -->
24
+ To get started, install the package by running the following command:
21
25
 
22
- ## generateToken
26
+ ```bash
27
+ npm i @fluidframework/azure-service-utils
28
+ ```
23
29
 
24
- This function will generate a JWT token that can be sent to an `ITokenProvider` instance that is being passed into the constructor of `AzureClient`. The `tenantId` and `key` map to the values provided to you as part of the onboarding process for the Azure Fluid Relay service. The `user` objects allows you to define the properties for the current user that this token will be used to authenticate for. The values passed in here represent the values that will be supplied as part of the `audience` in the `FluidContainer` that will be provided by the `AzureClient`.
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/azure-service-utils` like normal.
36
+
37
+ To access the `legacy` APIs, import via `@fluidframework/azure-service-utils/legacy`.
38
+
39
+ ## API Documentation
25
40
 
26
- <!-- AUTO-GENERATED-CONTENT:START (README_CONTRIBUTION_GUIDELINES_SECTION:includeHeading=TRUE) -->
41
+ API documentation for **@fluidframework/azure-service-utils** is available at <https://fluidframework.com/docs/apis/azure-service-utils>.
42
+
43
+ <!-- prettier-ignore-end -->
44
+
45
+ <!-- AUTO-GENERATED-CONTENT:END -->
46
+
47
+ <!-- AUTO-GENERATED-CONTENT:START (README_FOOTER) -->
27
48
 
28
49
  <!-- prettier-ignore-start -->
29
50
  <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
30
51
 
52
+ ## Minimum Client Requirements
53
+
54
+ These are the platform requirements for the current version of Fluid Framework Client Packages.
55
+ 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.
56
+ For Long Term Support (LTS) versions this can require supporting these platforms for several years.
57
+
58
+ It is likely that other configurations will work, but they are not supported: if they stop working, we do not consider that a bug.
59
+ If you would benefit from support for something not listed here, file an issue and the product team will evaluate your request.
60
+ 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.
61
+
62
+ ### Supported Runtimes
63
+
64
+ - 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).
65
+ - 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).
66
+
67
+ ### Supported Tools
68
+
69
+ - TypeScript 5.4:
70
+ - All [`strict`](https://www.typescriptlang.org/tsconfig) options are supported.
71
+ - [`strictNullChecks`](https://www.typescriptlang.org/tsconfig) is required.
72
+ - [Configuration options deprecated in 5.0](https://github.com/microsoft/TypeScript/issues/51909) are not supported.
73
+ - `exactOptionalPropertyTypes` is currently not fully supported.
74
+ 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.
75
+ - [webpack](https://webpack.js.org/) 5
76
+ - We are not intending to be prescriptive about what bundler to use.
77
+ Other bundlers which can handle ES Modules should work, but webpack is the only one we actively test.
78
+
79
+ ### Module Resolution
80
+
81
+ [`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).
82
+ 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.
83
+
84
+ ### Module Formats
85
+
86
+ - ES Modules:
87
+ 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.
88
+ - CommonJs:
89
+ Consuming our client packages as CommonJs is supported only in NodeJS and only for the cases listed below.
90
+ This is done to accommodate some workflows without good ES Module support.
91
+ If you have a workflow you would like included in this list, file an issue.
92
+ 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.
93
+
94
+ - 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))
95
+
31
96
  ## Contribution Guidelines
32
97
 
33
98
  There are many ways to [contribute](https://github.com/microsoft/FluidFramework/blob/main/CONTRIBUTING.md) to Fluid.
@@ -46,15 +111,6 @@ This project may contain Microsoft trademarks or logos for Microsoft projects, p
46
111
  Use of these trademarks or logos must follow Microsoft’s [Trademark & Brand Guidelines](https://www.microsoft.com/trademarks).
47
112
  Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
48
113
 
49
- <!-- prettier-ignore-end -->
50
-
51
- <!-- AUTO-GENERATED-CONTENT:END -->
52
-
53
- <!-- AUTO-GENERATED-CONTENT:START (README_HELP_SECTION:includeHeading=TRUE) -->
54
-
55
- <!-- prettier-ignore-start -->
56
- <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
57
-
58
114
  ## Help
59
115
 
60
116
  Not finding what you're looking for in this README? Check out [fluidframework.com](https://fluidframework.com/docs/).
@@ -63,15 +119,6 @@ Still not finding what you're looking for? Please [file an issue](https://github
63
119
 
64
120
  Thank you!
65
121
 
66
- <!-- prettier-ignore-end -->
67
-
68
- <!-- AUTO-GENERATED-CONTENT:END -->
69
-
70
- <!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
71
-
72
- <!-- prettier-ignore-start -->
73
- <!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
74
-
75
122
  ## Trademark
76
123
 
77
124
  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/azure-service-utils",
3
- "version": "2.1.0-281041",
3
+ "version": "2.2.0",
4
4
  "description": "Helper service-side utilities for connecting to Azure Fluid Relay service",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -47,17 +47,17 @@
47
47
  "main": "lib/index.js",
48
48
  "types": "lib/public.d.ts",
49
49
  "dependencies": {
50
- "@fluidframework/driver-definitions": "2.1.0-281041",
50
+ "@fluidframework/driver-definitions": "~2.2.0",
51
51
  "jsrsasign": "^11.0.0",
52
52
  "uuid": "^9.0.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@arethetypeswrong/cli": "^0.15.2",
56
56
  "@biomejs/biome": "~1.8.3",
57
- "@fluid-tools/build-cli": "^0.40.0",
58
- "@fluidframework/azure-service-utils-previous": "npm:@fluidframework/azure-service-utils@2.0.0",
57
+ "@fluid-tools/build-cli": "^0.43.0",
58
+ "@fluidframework/azure-service-utils-previous": "npm:@fluidframework/azure-service-utils@2.1.0",
59
59
  "@fluidframework/build-common": "^2.0.3",
60
- "@fluidframework/build-tools": "^0.40.0",
60
+ "@fluidframework/build-tools": "^0.43.0",
61
61
  "@fluidframework/eslint-config-fluid": "^5.3.0",
62
62
  "@microsoft/api-extractor": "^7.45.1",
63
63
  "@types/jsrsasign": "^10.5.12",