@fluidframework/request-handler 2.30.0 → 2.31.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 +50 -46
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +9 -12
- package/prettier.config.cjs +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @fluidframework/request-handler
|
|
2
2
|
|
|
3
|
+
## 2.31.0
|
|
4
|
+
|
|
5
|
+
Dependency updates only.
|
|
6
|
+
|
|
3
7
|
## 2.30.0
|
|
4
8
|
|
|
5
9
|
Dependency updates only.
|
|
@@ -60,9 +64,9 @@ Dependency updates only.
|
|
|
60
64
|
|
|
61
65
|
### Minor Changes
|
|
62
66
|
|
|
63
|
-
-
|
|
67
|
+
- Update to TypeScript 5.4 ([#21214](https://github.com/microsoft/FluidFramework/pull/21214)) [0e6256c722](https://github.com/microsoft/FluidFramework/commit/0e6256c722d8bf024f4325bf02547daeeb18bfa6)
|
|
64
68
|
|
|
65
|
-
|
|
69
|
+
Update package implementations to use TypeScript 5.4.5.
|
|
66
70
|
|
|
67
71
|
## 2.0.0-rc.4.0.0
|
|
68
72
|
|
|
@@ -72,24 +76,24 @@ Dependency updates only.
|
|
|
72
76
|
|
|
73
77
|
### Major Changes
|
|
74
78
|
|
|
75
|
-
-
|
|
79
|
+
- Packages now use package.json "exports" and require modern module resolution [97d68aa06b](https://github.com/microsoft/FluidFramework/commit/97d68aa06bd5c022ecb026655814aea222a062ae)
|
|
76
80
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
Fluid Framework packages have been updated to use the [package.json "exports"
|
|
82
|
+
field](https://nodejs.org/docs/latest-v18.x/api/packages.html#exports) to define explicit entry points for both
|
|
83
|
+
TypeScript types and implementation code.
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
This means that using Fluid Framework packages require the following TypeScript settings in tsconfig.json:
|
|
82
86
|
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
- `"moduleResolution": "Node16"` with `"module": "Node16"`
|
|
88
|
+
- `"moduleResolution": "Bundler"` with `"module": "ESNext"`
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
We recommend using Node16/Node16 unless absolutely necessary. That will produce transpiled JavaScript that is suitable
|
|
91
|
+
for use with modern versions of Node.js _and_ Bundlers.
|
|
92
|
+
[See the TypeScript documentation](https://www.typescriptlang.org/tsconfig#moduleResolution) for more information
|
|
93
|
+
regarding the module and moduleResolution options.
|
|
90
94
|
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
**Node10 moduleResolution is not supported; it does not support Fluid Framework's API structuring pattern that is used
|
|
96
|
+
to distinguish stable APIs from those that are in development.**
|
|
93
97
|
|
|
94
98
|
## 2.0.0-rc.2.0.0
|
|
95
99
|
|
|
@@ -103,22 +107,22 @@ Dependency updates only.
|
|
|
103
107
|
|
|
104
108
|
### Major Changes
|
|
105
109
|
|
|
106
|
-
-
|
|
110
|
+
- aqueduct: Removed requestHandler utilities [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
|
|
107
111
|
|
|
108
|
-
|
|
112
|
+
The following `requestHandler` utilities have been removed:
|
|
109
113
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
- `makeModelRequestHandler`
|
|
115
|
+
- `defaultFluidObjectRequestHandler`
|
|
116
|
+
- `defaultRouteRequestHandler`
|
|
117
|
+
- `mountableViewRequestHandler`
|
|
118
|
+
- `createFluidObjectResponse`
|
|
119
|
+
- `rootDataStoreRequestHandler`
|
|
120
|
+
- `handleFromLegacyUri`
|
|
121
|
+
- `RuntimeRequestHandlerBuilder`
|
|
118
122
|
|
|
119
|
-
|
|
123
|
+
Please migrate all usage to the new `entryPoint` pattern.
|
|
120
124
|
|
|
121
|
-
|
|
125
|
+
See [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md) for more details.
|
|
122
126
|
|
|
123
127
|
## 2.0.0-internal.7.4.0
|
|
124
128
|
|
|
@@ -140,34 +144,34 @@ Dependency updates only.
|
|
|
140
144
|
|
|
141
145
|
### Major Changes
|
|
142
146
|
|
|
143
|
-
-
|
|
147
|
+
- DEPRECATED: container-runtime: requestHandlers are deprecated [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
144
148
|
|
|
145
|
-
|
|
149
|
+
The concept of `requestHandlers` has been deprecated. Please migrate all usage of the following APIs to the new `entryPoint` pattern:
|
|
146
150
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
151
|
+
- `requestHandler` property in `ContainerRuntime.loadRuntime(...)`
|
|
152
|
+
- `RuntimeRequestHandler`
|
|
153
|
+
- `RuntimeRequestHandlerBuilder`
|
|
154
|
+
- `defaultFluidObjectRequestHandler(...)`
|
|
155
|
+
- `defaultRouteRequestHandler(...)`
|
|
156
|
+
- `mountableViewRequestHandler(...)`
|
|
157
|
+
- `buildRuntimeRequestHandler(...)`
|
|
158
|
+
- `createFluidObjectResponse(...)`
|
|
159
|
+
- `handleFromLegacyUri(...)`
|
|
160
|
+
- `rootDataStoreRequestHandler(...)`
|
|
157
161
|
|
|
158
|
-
|
|
162
|
+
See [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md) for more details.
|
|
159
163
|
|
|
160
|
-
-
|
|
164
|
+
- Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
161
165
|
|
|
162
|
-
|
|
166
|
+
The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
|
|
163
167
|
|
|
164
168
|
## 2.0.0-internal.6.4.0
|
|
165
169
|
|
|
166
170
|
### Minor Changes
|
|
167
171
|
|
|
168
|
-
-
|
|
172
|
+
- Some stack traces are improved ([#17380](https://github.com/microsoft/FluidFramework/issues/17380)) [34f2808ee9](https://github.com/microsoft/FluidFramework/commits/34f2808ee9764aef21b990f8b48860d9e3ce27a5)
|
|
169
173
|
|
|
170
|
-
|
|
174
|
+
Some stack traces have been improved and might now include frames for async functions that weren't previously included.
|
|
171
175
|
|
|
172
176
|
## 2.0.0-internal.6.3.0
|
|
173
177
|
|
|
@@ -185,9 +189,9 @@ Dependency updates only.
|
|
|
185
189
|
|
|
186
190
|
### Major Changes
|
|
187
191
|
|
|
188
|
-
-
|
|
192
|
+
- Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
|
|
189
193
|
|
|
190
|
-
|
|
194
|
+
Upgraded typescript transpilation target to ES2020. This is done in order to decrease the bundle sizes of Fluid Framework packages. This has provided size improvements across the board for ex. Loader, Driver, Runtime etc. Reduced bundle sizes helps to load lesser code in apps and hence also helps to improve the perf.If any app wants to target any older versions of browsers with which this target version is not compatible, then they can use packages like babel to transpile to a older target.
|
|
191
195
|
|
|
192
196
|
## 2.0.0-internal.5.4.0
|
|
193
197
|
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/request-handler",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.0",
|
|
4
4
|
"description": "A simple request handling library for Fluid Framework",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -69,22 +69,22 @@
|
|
|
69
69
|
"temp-directory": "nyc/.nyc_output"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@fluidframework/container-runtime-definitions": "~2.
|
|
73
|
-
"@fluidframework/core-interfaces": "~2.
|
|
74
|
-
"@fluidframework/core-utils": "~2.
|
|
75
|
-
"@fluidframework/runtime-definitions": "~2.
|
|
76
|
-
"@fluidframework/runtime-utils": "~2.
|
|
72
|
+
"@fluidframework/container-runtime-definitions": "~2.31.0",
|
|
73
|
+
"@fluidframework/core-interfaces": "~2.31.0",
|
|
74
|
+
"@fluidframework/core-utils": "~2.31.0",
|
|
75
|
+
"@fluidframework/runtime-definitions": "~2.31.0",
|
|
76
|
+
"@fluidframework/runtime-utils": "~2.31.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
80
80
|
"@biomejs/biome": "~1.9.3",
|
|
81
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
81
|
+
"@fluid-internal/mocha-test-setup": "~2.31.0",
|
|
82
82
|
"@fluid-tools/build-cli": "^0.54.0",
|
|
83
83
|
"@fluidframework/build-common": "^2.0.3",
|
|
84
84
|
"@fluidframework/build-tools": "^0.54.0",
|
|
85
85
|
"@fluidframework/eslint-config-fluid": "^5.7.3",
|
|
86
|
-
"@fluidframework/request-handler-previous": "npm:@fluidframework/request-handler@2.
|
|
87
|
-
"@microsoft/api-extractor": "7.
|
|
86
|
+
"@fluidframework/request-handler-previous": "npm:@fluidframework/request-handler@2.30.0",
|
|
87
|
+
"@microsoft/api-extractor": "7.50.1",
|
|
88
88
|
"@types/diff": "^3.5.1",
|
|
89
89
|
"@types/mocha": "^10.0.10",
|
|
90
90
|
"@types/node": "^18.19.0",
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
"mocha": "^10.8.2",
|
|
98
98
|
"mocha-multi-reporters": "^1.5.1",
|
|
99
99
|
"moment": "^2.21.0",
|
|
100
|
-
"prettier": "~3.0.3",
|
|
101
100
|
"rimraf": "^4.4.0",
|
|
102
101
|
"typescript": "~5.4.5"
|
|
103
102
|
},
|
|
@@ -129,7 +128,6 @@
|
|
|
129
128
|
"check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json",
|
|
130
129
|
"check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json",
|
|
131
130
|
"check:format": "npm run check:biome",
|
|
132
|
-
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
133
131
|
"ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"",
|
|
134
132
|
"ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json",
|
|
135
133
|
"ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json",
|
|
@@ -139,7 +137,6 @@
|
|
|
139
137
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
140
138
|
"format": "npm run format:biome",
|
|
141
139
|
"format:biome": "biome check . --write",
|
|
142
|
-
"format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
143
140
|
"lint": "fluid-build . --task lint",
|
|
144
141
|
"lint:fix": "fluid-build . --task eslint:fix --task format",
|
|
145
142
|
"test": "npm run test:mocha",
|