@fluidframework/request-handler 2.53.1 → 2.61.0-355054

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/.mocharc.cjs CHANGED
@@ -7,6 +7,5 @@
7
7
 
8
8
  const getFluidTestMochaConfig = require("@fluid-internal/mocha-test-setup/mocharc-common");
9
9
 
10
- const packageDir = __dirname;
11
- const config = getFluidTestMochaConfig(packageDir);
10
+ const config = getFluidTestMochaConfig(__dirname);
12
11
  module.exports = config;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluidframework/request-handler
2
2
 
3
+ ## 2.60.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.53.0
4
8
 
5
9
  Dependency updates only.
@@ -1,10 +1,10 @@
1
- ## Alpha API Report File for "@fluidframework/request-handler"
1
+ ## Beta API Report File for "@fluidframework/request-handler"
2
2
 
3
3
  > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
4
 
5
5
  ```ts
6
6
 
7
- // @alpha @deprecated @legacy
7
+ // @beta @deprecated @legacy
8
8
  export type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
9
9
 
10
10
  // (No @packageDocumentation comment for this package)
package/dist/legacy.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  */
10
10
 
11
11
  export {
12
- // @legacy APIs
12
+ // #region @legacyBeta APIs
13
13
  RuntimeRequestHandler
14
+ // #endregion
14
15
  } from "./index.js";
@@ -13,7 +13,7 @@ import type { RequestParser } from "@fluidframework/runtime-utils/internal";
13
13
  * @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
14
14
  *
15
15
  * @legacy
16
- * @alpha
16
+ * @beta
17
17
  */
18
18
  export type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
19
19
  //# sourceMappingURL=requestHandlers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestHandlers.js","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport type { IResponse } from \"@fluidframework/core-interfaces\";\nimport type { RequestParser } from \"@fluidframework/runtime-utils/internal\";\n\n/**\n * A request handler for the container runtime. Each handler should handle a specific request, and return undefined\n * if it does not apply. These handlers are called in series, so there may be other handlers before or after.\n * A handler should only return error if the request is for a route the handler owns, and there is a problem with\n * the route, or fulling the specific request.\n * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n *\n * @legacy\n * @alpha\n */\nexport type RuntimeRequestHandler = (\n\trequest: RequestParser,\n\truntime: IContainerRuntime,\n) => Promise<IResponse | undefined>;\n"]}
1
+ {"version":3,"file":"requestHandlers.js","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport type { IResponse } from \"@fluidframework/core-interfaces\";\nimport type { RequestParser } from \"@fluidframework/runtime-utils/internal\";\n\n/**\n * A request handler for the container runtime. Each handler should handle a specific request, and return undefined\n * if it does not apply. These handlers are called in series, so there may be other handlers before or after.\n * A handler should only return error if the request is for a route the handler owns, and there is a problem with\n * the route, or fulling the specific request.\n * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n *\n * @legacy\n * @beta\n */\nexport type RuntimeRequestHandler = (\n\trequest: RequestParser,\n\truntime: IContainerRuntime,\n) => Promise<IResponse | undefined>;\n"]}
package/internal.d.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
- export * from "./lib/index.js";
11
+ export * from "lib/index.js";
package/legacy.d.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  * Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
9
9
  */
10
10
 
11
- export * from "./lib/legacy.js";
11
+ export * from "lib/legacy.js";
package/lib/legacy.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  */
10
10
 
11
11
  export {
12
- // @legacy APIs
12
+ // #region @legacyBeta APIs
13
13
  RuntimeRequestHandler
14
+ // #endregion
14
15
  } from "./index.js";
@@ -13,7 +13,7 @@ import type { RequestParser } from "@fluidframework/runtime-utils/internal";
13
13
  * @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
14
14
  *
15
15
  * @legacy
16
- * @alpha
16
+ * @beta
17
17
  */
18
18
  export type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
19
19
  //# sourceMappingURL=requestHandlers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestHandlers.js","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport type { IResponse } from \"@fluidframework/core-interfaces\";\nimport type { RequestParser } from \"@fluidframework/runtime-utils/internal\";\n\n/**\n * A request handler for the container runtime. Each handler should handle a specific request, and return undefined\n * if it does not apply. These handlers are called in series, so there may be other handlers before or after.\n * A handler should only return error if the request is for a route the handler owns, and there is a problem with\n * the route, or fulling the specific request.\n * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n *\n * @legacy\n * @alpha\n */\nexport type RuntimeRequestHandler = (\n\trequest: RequestParser,\n\truntime: IContainerRuntime,\n) => Promise<IResponse | undefined>;\n"]}
1
+ {"version":3,"file":"requestHandlers.js","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport type { IResponse } from \"@fluidframework/core-interfaces\";\nimport type { RequestParser } from \"@fluidframework/runtime-utils/internal\";\n\n/**\n * A request handler for the container runtime. Each handler should handle a specific request, and return undefined\n * if it does not apply. These handlers are called in series, so there may be other handlers before or after.\n * A handler should only return error if the request is for a route the handler owns, and there is a problem with\n * the route, or fulling the specific request.\n * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n *\n * @legacy\n * @beta\n */\nexport type RuntimeRequestHandler = (\n\trequest: RequestParser,\n\truntime: IContainerRuntime,\n) => Promise<IResponse | undefined>;\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
8
+ "packageVersion": "7.52.11"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/request-handler",
3
- "version": "2.53.1",
3
+ "version": "2.61.0-355054",
4
4
  "description": "A simple request handling library for Fluid Framework",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -69,26 +69,26 @@
69
69
  "temp-directory": "nyc/.nyc_output"
70
70
  },
71
71
  "dependencies": {
72
- "@fluidframework/container-runtime-definitions": "~2.53.1",
73
- "@fluidframework/core-interfaces": "~2.53.1",
74
- "@fluidframework/core-utils": "~2.53.1",
75
- "@fluidframework/runtime-definitions": "~2.53.1",
76
- "@fluidframework/runtime-utils": "~2.53.1"
72
+ "@fluidframework/container-runtime-definitions": "2.61.0-355054",
73
+ "@fluidframework/core-interfaces": "2.61.0-355054",
74
+ "@fluidframework/core-utils": "2.61.0-355054",
75
+ "@fluidframework/runtime-definitions": "2.61.0-355054",
76
+ "@fluidframework/runtime-utils": "2.61.0-355054"
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.53.1",
82
- "@fluid-tools/build-cli": "^0.57.0",
81
+ "@fluid-internal/mocha-test-setup": "2.61.0-355054",
82
+ "@fluid-tools/build-cli": "^0.58.2",
83
83
  "@fluidframework/build-common": "^2.0.3",
84
- "@fluidframework/build-tools": "^0.57.0",
85
- "@fluidframework/eslint-config-fluid": "^5.7.4",
86
- "@fluidframework/request-handler-previous": "npm:@fluidframework/request-handler@2.53.0",
87
- "@microsoft/api-extractor": "7.52.8",
84
+ "@fluidframework/build-tools": "^0.58.2",
85
+ "@fluidframework/eslint-config-fluid": "^6.0.0",
86
+ "@fluidframework/request-handler-previous": "npm:@fluidframework/request-handler@2.60.0",
87
+ "@microsoft/api-extractor": "7.52.11",
88
88
  "@types/diff": "^3.5.1",
89
89
  "@types/mocha": "^10.0.10",
90
90
  "@types/node": "^18.19.0",
91
- "c8": "^8.0.1",
91
+ "c8": "^10.1.3",
92
92
  "concurrently": "^8.2.1",
93
93
  "copyfiles": "^2.4.1",
94
94
  "cross-env": "^7.0.3",
@@ -105,8 +105,8 @@
105
105
  },
106
106
  "scripts": {
107
107
  "api": "fluid-build . --task api",
108
- "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
109
- "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat",
108
+ "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist",
109
+ "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat",
110
110
  "build": "fluid-build . --task build",
111
111
  "build:api-reports": "concurrently \"npm:build:api-reports:*\"",
112
112
  "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json",
@@ -141,8 +141,8 @@
141
141
  "test": "npm run test:mocha",
142
142
  "test:coverage": "c8 npm test",
143
143
  "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
144
- "test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\"",
145
- "test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\"",
144
+ "test:mocha:cjs": "cross-env MOCHA_SPEC=dist/test mocha",
145
+ "test:mocha:esm": "mocha",
146
146
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
147
147
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
148
148
  "typetests:gen": "flub generate typetests --dir . -v",
@@ -15,7 +15,7 @@ import type { RequestParser } from "@fluidframework/runtime-utils/internal";
15
15
  * @deprecated Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
16
16
  *
17
17
  * @legacy
18
- * @alpha
18
+ * @beta
19
19
  */
20
20
  export type RuntimeRequestHandler = (
21
21
  request: RequestParser,