@fluidframework/request-handler 2.0.0-internal.7.1.1 → 2.0.0-internal.7.2.1
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/request-handler",
|
|
3
|
-
"version": "2.0.0-internal.7.
|
|
3
|
+
"version": "2.0.0-internal.7.2.1",
|
|
4
4
|
"description": "A simple request handling library for Fluid Framework",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -35,26 +35,25 @@
|
|
|
35
35
|
"temp-directory": "nyc/.nyc_output"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluidframework/container-runtime-definitions": ">=2.0.0-internal.7.
|
|
39
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.7.
|
|
40
|
-
"@fluidframework/core-utils": ">=2.0.0-internal.7.
|
|
41
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-internal.7.
|
|
42
|
-
"@fluidframework/runtime-utils": ">=2.0.0-internal.7.
|
|
38
|
+
"@fluidframework/container-runtime-definitions": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
|
|
39
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
|
|
40
|
+
"@fluidframework/core-utils": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
|
|
41
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
|
|
42
|
+
"@fluidframework/runtime-utils": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@fluid-tools/build-cli": "^0.
|
|
46
|
-
"@fluidframework/build-common": "^2.0.
|
|
47
|
-
"@fluidframework/build-tools": "^0.
|
|
45
|
+
"@fluid-tools/build-cli": "^0.26.1",
|
|
46
|
+
"@fluidframework/build-common": "^2.0.3",
|
|
47
|
+
"@fluidframework/build-tools": "^0.26.1",
|
|
48
48
|
"@fluidframework/eslint-config-fluid": "^3.0.0",
|
|
49
|
-
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.
|
|
49
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
|
|
50
50
|
"@fluidframework/request-handler-previous": "npm:@fluidframework/request-handler@2.0.0-internal.7.1.0",
|
|
51
|
-
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.
|
|
51
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
|
|
52
52
|
"@microsoft/api-extractor": "^7.37.0",
|
|
53
53
|
"@types/diff": "^3.5.1",
|
|
54
54
|
"@types/mocha": "^9.1.1",
|
|
55
55
|
"@types/node": "^16.18.38",
|
|
56
56
|
"c8": "^7.7.1",
|
|
57
|
-
"copyfiles": "^2.4.1",
|
|
58
57
|
"cross-env": "^7.0.3",
|
|
59
58
|
"diff": "^3.5.0",
|
|
60
59
|
"eslint": "~8.50.0",
|
|
@@ -77,7 +76,7 @@
|
|
|
77
76
|
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
|
78
77
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
79
78
|
"ci:build:docs": "api-extractor run",
|
|
80
|
-
"clean": "rimraf --glob
|
|
79
|
+
"clean": "rimraf --glob dist lib \"*.tsbuildinfo\" \"*.build.log\" _api-extractor-temp nyc",
|
|
81
80
|
"eslint": "eslint --format stylish src",
|
|
82
81
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
83
82
|
"format": "npm run prettier:fix",
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
3
|
-
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
|
|
4
|
-
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
6
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
7
|
-
import { IResponse } from '@fluidframework/core-interfaces';
|
|
8
|
-
import { RequestParser } from '@fluidframework/runtime-utils';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export declare function buildRuntimeRequestHandler(...handlers: RuntimeRequestHandler[]): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export declare const createFluidObjectResponse: (fluidObject: FluidObject) => {
|
|
23
|
-
status: 200;
|
|
24
|
-
mimeType: "fluid/object";
|
|
25
|
-
value: FluidObject;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
30
|
-
*
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare function handleFromLegacyUri<T = FluidObject & IFluidLoadable>(uri: string, runtime: IContainerRuntimeBase): IFluidHandle<T>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* A request handler to expose access to all root data stores in the container by id.
|
|
37
|
-
* @param request - the request for the root data store. The first path part must be the data store's ID.
|
|
38
|
-
* @param runtime - the container runtime
|
|
39
|
-
* @returns the result of the request
|
|
40
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare const rootDataStoreRequestHandler: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* A request handler for the container runtime. Each handler should handle a specific request, and return undefined
|
|
48
|
-
* if it does not apply. These handlers are called in series, so there may be other handlers before or after.
|
|
49
|
-
* A handler should only return error if the request is for a route the handler owns, and there is a problem with
|
|
50
|
-
* the route, or fulling the specific request.
|
|
51
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.
|
|
59
|
-
* The provided handlers sequentially applied until one is able to satisfy the request.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
62
|
-
*
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
|
-
export declare class RuntimeRequestHandlerBuilder {
|
|
66
|
-
private readonly handlers;
|
|
67
|
-
pushHandler(...handlers: RuntimeRequestHandler[]): void;
|
|
68
|
-
handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { }
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
3
|
-
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
|
|
4
|
-
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
6
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
7
|
-
import { IResponse } from '@fluidframework/core-interfaces';
|
|
8
|
-
import { RequestParser } from '@fluidframework/runtime-utils';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export declare function buildRuntimeRequestHandler(...handlers: RuntimeRequestHandler[]): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export declare const createFluidObjectResponse: (fluidObject: FluidObject) => {
|
|
23
|
-
status: 200;
|
|
24
|
-
mimeType: "fluid/object";
|
|
25
|
-
value: FluidObject;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
30
|
-
*
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare function handleFromLegacyUri<T = FluidObject & IFluidLoadable>(uri: string, runtime: IContainerRuntimeBase): IFluidHandle<T>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* A request handler to expose access to all root data stores in the container by id.
|
|
37
|
-
* @param request - the request for the root data store. The first path part must be the data store's ID.
|
|
38
|
-
* @param runtime - the container runtime
|
|
39
|
-
* @returns the result of the request
|
|
40
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare const rootDataStoreRequestHandler: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* A request handler for the container runtime. Each handler should handle a specific request, and return undefined
|
|
48
|
-
* if it does not apply. These handlers are called in series, so there may be other handlers before or after.
|
|
49
|
-
* A handler should only return error if the request is for a route the handler owns, and there is a problem with
|
|
50
|
-
* the route, or fulling the specific request.
|
|
51
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.
|
|
59
|
-
* The provided handlers sequentially applied until one is able to satisfy the request.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
62
|
-
*
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
|
-
export declare class RuntimeRequestHandlerBuilder {
|
|
66
|
-
private readonly handlers;
|
|
67
|
-
pushHandler(...handlers: RuntimeRequestHandler[]): void;
|
|
68
|
-
handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { }
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
3
|
-
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
|
|
4
|
-
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
6
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
7
|
-
import { IResponse } from '@fluidframework/core-interfaces';
|
|
8
|
-
import { RequestParser } from '@fluidframework/runtime-utils';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export declare function buildRuntimeRequestHandler(...handlers: RuntimeRequestHandler[]): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export declare const createFluidObjectResponse: (fluidObject: FluidObject) => {
|
|
23
|
-
status: 200;
|
|
24
|
-
mimeType: "fluid/object";
|
|
25
|
-
value: FluidObject;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
30
|
-
*
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare function handleFromLegacyUri<T = FluidObject & IFluidLoadable>(uri: string, runtime: IContainerRuntimeBase): IFluidHandle<T>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* A request handler to expose access to all root data stores in the container by id.
|
|
37
|
-
* @param request - the request for the root data store. The first path part must be the data store's ID.
|
|
38
|
-
* @param runtime - the container runtime
|
|
39
|
-
* @returns the result of the request
|
|
40
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare const rootDataStoreRequestHandler: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* A request handler for the container runtime. Each handler should handle a specific request, and return undefined
|
|
48
|
-
* if it does not apply. These handlers are called in series, so there may be other handlers before or after.
|
|
49
|
-
* A handler should only return error if the request is for a route the handler owns, and there is a problem with
|
|
50
|
-
* the route, or fulling the specific request.
|
|
51
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.
|
|
59
|
-
* The provided handlers sequentially applied until one is able to satisfy the request.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
62
|
-
*
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
|
-
export declare class RuntimeRequestHandlerBuilder {
|
|
66
|
-
private readonly handlers;
|
|
67
|
-
pushHandler(...handlers: RuntimeRequestHandler[]): void;
|
|
68
|
-
handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { }
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
3
|
-
import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
|
|
4
|
-
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
6
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
7
|
-
import { IResponse } from '@fluidframework/core-interfaces';
|
|
8
|
-
import { RequestParser } from '@fluidframework/runtime-utils';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export declare function buildRuntimeRequestHandler(...handlers: RuntimeRequestHandler[]): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export declare const createFluidObjectResponse: (fluidObject: FluidObject) => {
|
|
23
|
-
status: 200;
|
|
24
|
-
mimeType: "fluid/object";
|
|
25
|
-
value: FluidObject;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
30
|
-
*
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export declare function handleFromLegacyUri<T = FluidObject & IFluidLoadable>(uri: string, runtime: IContainerRuntimeBase): IFluidHandle<T>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* A request handler to expose access to all root data stores in the container by id.
|
|
37
|
-
* @param request - the request for the root data store. The first path part must be the data store's ID.
|
|
38
|
-
* @param runtime - the container runtime
|
|
39
|
-
* @returns the result of the request
|
|
40
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare const rootDataStoreRequestHandler: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* A request handler for the container runtime. Each handler should handle a specific request, and return undefined
|
|
48
|
-
* if it does not apply. These handlers are called in series, so there may be other handlers before or after.
|
|
49
|
-
* A handler should only return error if the request is for a route the handler owns, and there is a problem with
|
|
50
|
-
* the route, or fulling the specific request.
|
|
51
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
export declare type RuntimeRequestHandler = (request: RequestParser, runtime: IContainerRuntime) => Promise<IResponse | undefined>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.
|
|
59
|
-
* The provided handlers sequentially applied until one is able to satisfy the request.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
62
|
-
*
|
|
63
|
-
* @public
|
|
64
|
-
*/
|
|
65
|
-
export declare class RuntimeRequestHandlerBuilder {
|
|
66
|
-
private readonly handlers;
|
|
67
|
-
pushHandler(...handlers: RuntimeRequestHandler[]): void;
|
|
68
|
-
handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { }
|