@fluidframework/request-handler 2.0.0-dev-rc.3.0.0.254513 → 2.0.0-dev-rc.3.0.0.254866

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.
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
10
+ export {
11
+ // alpha APIs
12
+ RuntimeRequestHandler
13
+ } from "./index.js";
package/dist/beta.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/lib/alpha.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
10
+ export {
11
+ // alpha APIs
12
+ RuntimeRequestHandler
13
+ } from "./index.js";
package/lib/beta.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/request-handler",
3
- "version": "2.0.0-dev-rc.3.0.0.254513",
3
+ "version": "2.0.0-dev-rc.3.0.0.254866",
4
4
  "description": "A simple request handling library for Fluid Framework",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -15,21 +15,21 @@
15
15
  "exports": {
16
16
  ".": {
17
17
  "import": {
18
- "types": "./lib/request-handler-public.d.ts",
18
+ "types": "./lib/public.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
21
  "require": {
22
- "types": "./dist/request-handler-public.d.ts",
22
+ "types": "./dist/public.d.ts",
23
23
  "default": "./dist/index.js"
24
24
  }
25
25
  },
26
26
  "./alpha": {
27
27
  "import": {
28
- "types": "./lib/request-handler-alpha.d.ts",
28
+ "types": "./lib/alpha.d.ts",
29
29
  "default": "./lib/index.js"
30
30
  },
31
31
  "require": {
32
- "types": "./dist/request-handler-alpha.d.ts",
32
+ "types": "./dist/alpha.d.ts",
33
33
  "default": "./dist/index.js"
34
34
  }
35
35
  },
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "main": "dist/index.js",
48
- "types": "./dist/request-handler-public.d.ts",
48
+ "types": "./dist/public.d.ts",
49
49
  "c8": {
50
50
  "all": true,
51
51
  "cache-dir": "nyc/.cache",
@@ -67,16 +67,16 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.3.0.0.254513",
71
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254513",
72
- "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254513",
73
- "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.254513",
74
- "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.254513"
70
+ "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.3.0.0.254866",
71
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254866",
72
+ "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254866",
73
+ "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.254866",
74
+ "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.254866"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@arethetypeswrong/cli": "^0.15.2",
78
78
  "@biomejs/biome": "^1.6.2",
79
- "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254513",
79
+ "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254866",
80
80
  "@fluid-tools/build-cli": "^0.35.0",
81
81
  "@fluidframework/build-common": "^2.0.3",
82
82
  "@fluidframework/build-tools": "^0.35.0",
@@ -99,29 +99,17 @@
99
99
  "rimraf": "^4.4.0",
100
100
  "typescript": "~5.1.6"
101
101
  },
102
- "fluidBuild": {
103
- "tasks": {
104
- "build:docs": {
105
- "dependsOn": [
106
- "...",
107
- "api-extractor:commonjs",
108
- "api-extractor:esnext"
109
- ],
110
- "script": false
111
- }
112
- }
113
- },
114
102
  "typeValidation": {
115
103
  "broken": {}
116
104
  },
117
105
  "scripts": {
118
106
  "api": "fluid-build . --task api",
119
- "api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json",
120
- "api-extractor:esnext": "api-extractor run --local",
107
+ "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
108
+ "api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
121
109
  "build": "fluid-build . --task build",
122
110
  "build:commonjs": "fluid-build . --task commonjs",
123
111
  "build:compile": "fluid-build . --task compile",
124
- "build:docs": "fluid-build . --task api",
112
+ "build:docs": "api-extractor run --local",
125
113
  "build:esnext": "tsc --project ./tsconfig.json",
126
114
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
127
115
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
4
- // CJS is actually secondary; so, no report.
5
- "apiReport": {
6
- "enabled": false
7
- }
8
- }
@@ -1,19 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /* Excluded from this release type: buildRuntimeRequestHandler */
7
-
8
- /**
9
- * A request handler for the container runtime. Each handler should handle a specific request, and return undefined
10
- * if it does not apply. These handlers are called in series, so there may be other handlers before or after.
11
- * A handler should only return error if the request is for a route the handler owns, and there is a problem with
12
- * the route, or fulling the specific request.
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
- *
15
- * @alpha
16
- */
17
- export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
18
-
19
- export { }
@@ -1,14 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /* Excluded from this release type: buildRuntimeRequestHandler */
7
-
8
- /* Excluded from this release type: IContainerRuntime */
9
-
10
- /* Excluded from this release type: RequestParser */
11
-
12
- /* Excluded from this release type: RuntimeRequestHandler */
13
-
14
- export { }
@@ -1,14 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /* Excluded from this release type: buildRuntimeRequestHandler */
7
-
8
- /* Excluded from this release type: IContainerRuntime */
9
-
10
- /* Excluded from this release type: RequestParser */
11
-
12
- /* Excluded from this release type: RuntimeRequestHandler */
13
-
14
- export { }
@@ -1,26 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /**
7
- * Deprecated.
8
- *
9
- * @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
10
- *
11
- * @internal
12
- */
13
- export declare function buildRuntimeRequestHandler(...handlers: RuntimeRequestHandler[]): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
14
-
15
- /**
16
- * A request handler for the container runtime. Each handler should handle a specific request, and return undefined
17
- * if it does not apply. These handlers are called in series, so there may be other handlers before or after.
18
- * A handler should only return error if the request is for a route the handler owns, and there is a problem with
19
- * the route, or fulling the specific request.
20
- * @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
21
- *
22
- * @alpha
23
- */
24
- export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
25
-
26
- export { }
@@ -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.42.3"
9
- }
10
- ]
11
- }
@@ -1,19 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /* Excluded from this release type: buildRuntimeRequestHandler */
7
-
8
- /**
9
- * A request handler for the container runtime. Each handler should handle a specific request, and return undefined
10
- * if it does not apply. These handlers are called in series, so there may be other handlers before or after.
11
- * A handler should only return error if the request is for a route the handler owns, and there is a problem with
12
- * the route, or fulling the specific request.
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
- *
15
- * @alpha
16
- */
17
- export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
18
-
19
- export { }
@@ -1,14 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /* Excluded from this release type: buildRuntimeRequestHandler */
7
-
8
- /* Excluded from this release type: IContainerRuntime */
9
-
10
- /* Excluded from this release type: RequestParser */
11
-
12
- /* Excluded from this release type: RuntimeRequestHandler */
13
-
14
- export { }
@@ -1,14 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /* Excluded from this release type: buildRuntimeRequestHandler */
7
-
8
- /* Excluded from this release type: IContainerRuntime */
9
-
10
- /* Excluded from this release type: RequestParser */
11
-
12
- /* Excluded from this release type: RuntimeRequestHandler */
13
-
14
- export { }
@@ -1,26 +0,0 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
- import { IRequest } from '@fluidframework/core-interfaces';
3
- import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
-
6
- /**
7
- * Deprecated.
8
- *
9
- * @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
10
- *
11
- * @internal
12
- */
13
- export declare function buildRuntimeRequestHandler(...handlers: RuntimeRequestHandler[]): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
14
-
15
- /**
16
- * A request handler for the container runtime. Each handler should handle a specific request, and return undefined
17
- * if it does not apply. These handlers are called in series, so there may be other handlers before or after.
18
- * A handler should only return error if the request is for a route the handler owns, and there is a problem with
19
- * the route, or fulling the specific request.
20
- * @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
21
- *
22
- * @alpha
23
- */
24
- export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
25
-
26
- export { }