@fluidframework/request-handler 2.0.0-dev-rc.3.0.0.250606 → 2.0.0-dev-rc.3.0.0.253463

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 (31) hide show
  1. package/api-report/request-handler.api.md +2 -2
  2. package/dist/request-handler-alpha.d.ts +2 -2
  3. package/dist/request-handler-beta.d.ts +2 -2
  4. package/dist/request-handler-public.d.ts +2 -2
  5. package/dist/request-handler-untrimmed.d.ts +2 -2
  6. package/dist/requestHandlers.d.ts +2 -2
  7. package/dist/requestHandlers.d.ts.map +1 -1
  8. package/dist/requestHandlers.js.map +1 -1
  9. package/dist/runtimeRequestHandlerBuilder.d.ts +1 -1
  10. package/dist/runtimeRequestHandlerBuilder.d.ts.map +1 -1
  11. package/dist/runtimeRequestHandlerBuilder.js +3 -3
  12. package/dist/runtimeRequestHandlerBuilder.js.map +1 -1
  13. package/lib/request-handler-alpha.d.ts +2 -2
  14. package/lib/request-handler-beta.d.ts +2 -2
  15. package/lib/request-handler-public.d.ts +2 -2
  16. package/lib/request-handler-untrimmed.d.ts +2 -2
  17. package/lib/requestHandlers.d.ts +2 -2
  18. package/lib/requestHandlers.d.ts.map +1 -1
  19. package/lib/requestHandlers.js.map +1 -1
  20. package/lib/runtimeRequestHandlerBuilder.d.ts +1 -1
  21. package/lib/runtimeRequestHandlerBuilder.d.ts.map +1 -1
  22. package/lib/runtimeRequestHandlerBuilder.js +1 -1
  23. package/lib/runtimeRequestHandlerBuilder.js.map +1 -1
  24. package/lib/tsdoc-metadata.json +11 -0
  25. package/package.json +8 -20
  26. package/src/requestHandlers.ts +2 -2
  27. package/src/runtimeRequestHandlerBuilder.ts +3 -2
  28. package/lib/test/requestHandler.spec.js +0 -8
  29. package/lib/test/requestHandler.spec.js.map +0 -1
  30. package/lib/test/types/validateRequestHandlerPrevious.generated.js +0 -6
  31. package/lib/test/types/validateRequestHandlerPrevious.generated.js.map +0 -1
@@ -4,10 +4,10 @@
4
4
 
5
5
  ```ts
6
6
 
7
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
7
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
8
8
  import { IRequest } from '@fluidframework/core-interfaces';
9
9
  import { IResponse } from '@fluidframework/core-interfaces';
10
- import { RequestParser } from '@fluidframework/runtime-utils';
10
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
11
11
 
12
12
  // @internal @deprecated
13
13
  export function buildRuntimeRequestHandler(...handlers: RuntimeRequestHandler[]): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /* Excluded from this release type: buildRuntimeRequestHandler */
7
7
 
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /* Excluded from this release type: buildRuntimeRequestHandler */
7
7
 
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /* Excluded from this release type: buildRuntimeRequestHandler */
7
7
 
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /**
7
7
  * Deprecated.
@@ -2,9 +2,9 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
5
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
6
6
  import { type IResponse } from "@fluidframework/core-interfaces";
7
- import { type RequestParser } from "@fluidframework/runtime-utils";
7
+ import { type RequestParser } from "@fluidframework/runtime-utils/internal";
8
8
  /**
9
9
  * A request handler for the container runtime. Each handler should handle a specific request, and return undefined
10
10
  * if it does not apply. These handlers are called in series, so there may be other handlers before or after.
@@ -1 +1 @@
1
- {"version":3,"file":"requestHandlers.d.ts","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,CACnC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,iBAAiB,KACtB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"requestHandlers.d.ts","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,CACnC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,iBAAiB,KACtB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC"}
@@ -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\";\nimport { type IResponse } from \"@fluidframework/core-interfaces\";\nimport { type RequestParser } from \"@fluidframework/runtime-utils\";\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 * @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 * @alpha\n */\nexport type RuntimeRequestHandler = (\n\trequest: RequestParser,\n\truntime: IContainerRuntime,\n) => Promise<IResponse | undefined>;\n"]}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
5
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
6
6
  import { type IRequest, type IResponse } from "@fluidframework/core-interfaces";
7
7
  import { type RuntimeRequestHandler } from "./requestHandlers.js";
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeRequestHandlerBuilder.d.ts","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAGhF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA6BlE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAEzC,GAAG,QAAQ,EAAE,qBAAqB,EAAE,GAClC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,SAAS,CAAC,CAKvE"}
1
+ {"version":3,"file":"runtimeRequestHandlerBuilder.d.ts","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAIhF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA6BlE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAEzC,GAAG,QAAQ,EAAE,qBAAqB,EAAE,GAClC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,SAAS,CAAC,CAKvE"}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.buildRuntimeRequestHandler = void 0;
8
- const runtime_utils_1 = require("@fluidframework/runtime-utils");
8
+ const internal_1 = require("@fluidframework/runtime-utils/internal");
9
9
  /**
10
10
  * The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.
11
11
  * The provided handlers sequentially applied until one is able to satisfy the request.
@@ -22,14 +22,14 @@ class RuntimeRequestHandlerBuilder {
22
22
  }
23
23
  }
24
24
  async handleRequest(request, runtime) {
25
- const parser = runtime_utils_1.RequestParser.create(request);
25
+ const parser = internal_1.RequestParser.create(request);
26
26
  for (const handler of this.handlers) {
27
27
  const response = await handler(parser, runtime);
28
28
  if (response !== undefined) {
29
29
  return response;
30
30
  }
31
31
  }
32
- return (0, runtime_utils_1.create404Response)(request);
32
+ return (0, internal_1.create404Response)(request);
33
33
  }
34
34
  }
35
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeRequestHandlerBuilder.js","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,iEAAiF;AAIjF;;;GAGG;AACH,MAAM,4BAA4B;IAAlC;QACC,gDAAgD;QAC/B,aAAQ,GAA4B,EAAE,CAAC;IAmBzD,CAAC;IAjBA,gDAAgD;IACzC,WAAW,CAAC,GAAG,QAAiC;QACtD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;SAChC;IACF,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAiB,EAAE,OAA0B;QACvE,MAAM,MAAM,GAAG,6BAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACpC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,QAAQ,KAAK,SAAS,EAAE;gBAC3B,OAAO,QAAQ,CAAC;aAChB;SACD;QACD,OAAO,IAAA,iCAAiB,EAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACD;AAED;;;;;;GAMG;AACH,SAAgB,0BAA0B;AACzC,gDAAgD;AAChD,GAAG,QAAiC;IAEpC,MAAM,OAAO,GAAG,IAAI,4BAA4B,EAAE,CAAC;IACnD,OAAO,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC;IACjC,OAAO,KAAK,EAAE,OAAiB,EAAE,OAA0B,EAAE,EAAE,CAC9D,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC;AARD,gEAQC","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\";\nimport { type IRequest, type IResponse } from \"@fluidframework/core-interfaces\";\nimport { RequestParser, create404Response } from \"@fluidframework/runtime-utils\";\n// eslint-disable-next-line import/no-deprecated\nimport { type RuntimeRequestHandler } from \"./requestHandlers.js\";\n\n/**\n * The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.\n * The provided handlers sequentially applied until one is able to satisfy the request.\n */\nclass RuntimeRequestHandlerBuilder {\n\t// eslint-disable-next-line import/no-deprecated\n\tprivate readonly handlers: RuntimeRequestHandler[] = [];\n\n\t// eslint-disable-next-line import/no-deprecated\n\tpublic pushHandler(...handlers: RuntimeRequestHandler[]): void {\n\t\tif (handlers !== undefined) {\n\t\t\tthis.handlers.push(...handlers);\n\t\t}\n\t}\n\n\tpublic async handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse> {\n\t\tconst parser = RequestParser.create(request);\n\t\tfor (const handler of this.handlers) {\n\t\t\tconst response = await handler(parser, runtime);\n\t\t\tif (response !== undefined) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\t\treturn create404Response(request);\n\t}\n}\n\n/**\n * Deprecated.\n *\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 * @internal\n */\nexport function buildRuntimeRequestHandler(\n\t// eslint-disable-next-line import/no-deprecated\n\t...handlers: RuntimeRequestHandler[]\n): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse> {\n\tconst builder = new RuntimeRequestHandlerBuilder();\n\tbuilder.pushHandler(...handlers);\n\treturn async (request: IRequest, runtime: IContainerRuntime) =>\n\t\tbuilder.handleRequest(request, runtime);\n}\n"]}
1
+ {"version":3,"file":"runtimeRequestHandlerBuilder.js","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,qEAA0F;AAK1F;;;GAGG;AACH,MAAM,4BAA4B;IAAlC;QACC,gDAAgD;QAC/B,aAAQ,GAA4B,EAAE,CAAC;IAmBzD,CAAC;IAjBA,gDAAgD;IACzC,WAAW,CAAC,GAAG,QAAiC;QACtD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;SAChC;IACF,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAiB,EAAE,OAA0B;QACvE,MAAM,MAAM,GAAG,wBAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACpC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,QAAQ,KAAK,SAAS,EAAE;gBAC3B,OAAO,QAAQ,CAAC;aAChB;SACD;QACD,OAAO,IAAA,4BAAiB,EAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACD;AAED;;;;;;GAMG;AACH,SAAgB,0BAA0B;AACzC,gDAAgD;AAChD,GAAG,QAAiC;IAEpC,MAAM,OAAO,GAAG,IAAI,4BAA4B,EAAE,CAAC;IACnD,OAAO,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC;IACjC,OAAO,KAAK,EAAE,OAAiB,EAAE,OAA0B,EAAE,EAAE,CAC9D,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC;AARD,gEAQC","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 IRequest, type IResponse } from \"@fluidframework/core-interfaces\";\nimport { RequestParser, create404Response } from \"@fluidframework/runtime-utils/internal\";\n\n// eslint-disable-next-line import/no-deprecated\nimport { type RuntimeRequestHandler } from \"./requestHandlers.js\";\n\n/**\n * The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.\n * The provided handlers sequentially applied until one is able to satisfy the request.\n */\nclass RuntimeRequestHandlerBuilder {\n\t// eslint-disable-next-line import/no-deprecated\n\tprivate readonly handlers: RuntimeRequestHandler[] = [];\n\n\t// eslint-disable-next-line import/no-deprecated\n\tpublic pushHandler(...handlers: RuntimeRequestHandler[]): void {\n\t\tif (handlers !== undefined) {\n\t\t\tthis.handlers.push(...handlers);\n\t\t}\n\t}\n\n\tpublic async handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse> {\n\t\tconst parser = RequestParser.create(request);\n\t\tfor (const handler of this.handlers) {\n\t\t\tconst response = await handler(parser, runtime);\n\t\t\tif (response !== undefined) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\t\treturn create404Response(request);\n\t}\n}\n\n/**\n * Deprecated.\n *\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 * @internal\n */\nexport function buildRuntimeRequestHandler(\n\t// eslint-disable-next-line import/no-deprecated\n\t...handlers: RuntimeRequestHandler[]\n): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse> {\n\tconst builder = new RuntimeRequestHandlerBuilder();\n\tbuilder.pushHandler(...handlers);\n\treturn async (request: IRequest, runtime: IContainerRuntime) =>\n\t\tbuilder.handleRequest(request, runtime);\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /* Excluded from this release type: buildRuntimeRequestHandler */
7
7
 
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /* Excluded from this release type: buildRuntimeRequestHandler */
7
7
 
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /* Excluded from this release type: buildRuntimeRequestHandler */
7
7
 
@@ -1,7 +1,7 @@
1
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
1
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
2
2
  import { IRequest } from '@fluidframework/core-interfaces';
3
3
  import { IResponse } from '@fluidframework/core-interfaces';
4
- import { RequestParser } from '@fluidframework/runtime-utils';
4
+ import { RequestParser } from '@fluidframework/runtime-utils/internal';
5
5
 
6
6
  /**
7
7
  * Deprecated.
@@ -2,9 +2,9 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
5
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
6
6
  import { type IResponse } from "@fluidframework/core-interfaces";
7
- import { type RequestParser } from "@fluidframework/runtime-utils";
7
+ import { type RequestParser } from "@fluidframework/runtime-utils/internal";
8
8
  /**
9
9
  * A request handler for the container runtime. Each handler should handle a specific request, and return undefined
10
10
  * if it does not apply. These handlers are called in series, so there may be other handlers before or after.
@@ -1 +1 @@
1
- {"version":3,"file":"requestHandlers.d.ts","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,CACnC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,iBAAiB,KACtB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"requestHandlers.d.ts","sourceRoot":"","sources":["../src/requestHandlers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,CACnC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,iBAAiB,KACtB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC"}
@@ -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\";\nimport { type IResponse } from \"@fluidframework/core-interfaces\";\nimport { type RequestParser } from \"@fluidframework/runtime-utils\";\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 * @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 * @alpha\n */\nexport type RuntimeRequestHandler = (\n\trequest: RequestParser,\n\truntime: IContainerRuntime,\n) => Promise<IResponse | undefined>;\n"]}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
5
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
6
6
  import { type IRequest, type IResponse } from "@fluidframework/core-interfaces";
7
7
  import { type RuntimeRequestHandler } from "./requestHandlers.js";
8
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeRequestHandlerBuilder.d.ts","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAGhF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA6BlE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAEzC,GAAG,QAAQ,EAAE,qBAAqB,EAAE,GAClC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,SAAS,CAAC,CAKvE"}
1
+ {"version":3,"file":"runtimeRequestHandlerBuilder.d.ts","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAIhF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA6BlE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAEzC,GAAG,QAAQ,EAAE,qBAAqB,EAAE,GAClC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,SAAS,CAAC,CAKvE"}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { RequestParser, create404Response } from "@fluidframework/runtime-utils";
5
+ import { RequestParser, create404Response } from "@fluidframework/runtime-utils/internal";
6
6
  /**
7
7
  * The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.
8
8
  * The provided handlers sequentially applied until one is able to satisfy the request.
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeRequestHandlerBuilder.js","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIjF;;;GAGG;AACH,MAAM,4BAA4B;IAAlC;QACC,gDAAgD;QAC/B,aAAQ,GAA4B,EAAE,CAAC;IAmBzD,CAAC;IAjBA,gDAAgD;IACzC,WAAW,CAAC,GAAG,QAAiC;QACtD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;SAChC;IACF,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAiB,EAAE,OAA0B;QACvE,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACpC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,QAAQ,KAAK,SAAS,EAAE;gBAC3B,OAAO,QAAQ,CAAC;aAChB;SACD;QACD,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACD;AAED;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B;AACzC,gDAAgD;AAChD,GAAG,QAAiC;IAEpC,MAAM,OAAO,GAAG,IAAI,4BAA4B,EAAE,CAAC;IACnD,OAAO,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC;IACjC,OAAO,KAAK,EAAE,OAAiB,EAAE,OAA0B,EAAE,EAAE,CAC9D,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC","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\";\nimport { type IRequest, type IResponse } from \"@fluidframework/core-interfaces\";\nimport { RequestParser, create404Response } from \"@fluidframework/runtime-utils\";\n// eslint-disable-next-line import/no-deprecated\nimport { type RuntimeRequestHandler } from \"./requestHandlers.js\";\n\n/**\n * The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.\n * The provided handlers sequentially applied until one is able to satisfy the request.\n */\nclass RuntimeRequestHandlerBuilder {\n\t// eslint-disable-next-line import/no-deprecated\n\tprivate readonly handlers: RuntimeRequestHandler[] = [];\n\n\t// eslint-disable-next-line import/no-deprecated\n\tpublic pushHandler(...handlers: RuntimeRequestHandler[]): void {\n\t\tif (handlers !== undefined) {\n\t\t\tthis.handlers.push(...handlers);\n\t\t}\n\t}\n\n\tpublic async handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse> {\n\t\tconst parser = RequestParser.create(request);\n\t\tfor (const handler of this.handlers) {\n\t\t\tconst response = await handler(parser, runtime);\n\t\t\tif (response !== undefined) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\t\treturn create404Response(request);\n\t}\n}\n\n/**\n * Deprecated.\n *\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 * @internal\n */\nexport function buildRuntimeRequestHandler(\n\t// eslint-disable-next-line import/no-deprecated\n\t...handlers: RuntimeRequestHandler[]\n): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse> {\n\tconst builder = new RuntimeRequestHandlerBuilder();\n\tbuilder.pushHandler(...handlers);\n\treturn async (request: IRequest, runtime: IContainerRuntime) =>\n\t\tbuilder.handleRequest(request, runtime);\n}\n"]}
1
+ {"version":3,"file":"runtimeRequestHandlerBuilder.js","sourceRoot":"","sources":["../src/runtimeRequestHandlerBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAK1F;;;GAGG;AACH,MAAM,4BAA4B;IAAlC;QACC,gDAAgD;QAC/B,aAAQ,GAA4B,EAAE,CAAC;IAmBzD,CAAC;IAjBA,gDAAgD;IACzC,WAAW,CAAC,GAAG,QAAiC;QACtD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;SAChC;IACF,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,OAAiB,EAAE,OAA0B;QACvE,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;YACpC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,QAAQ,KAAK,SAAS,EAAE;gBAC3B,OAAO,QAAQ,CAAC;aAChB;SACD;QACD,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACD;AAED;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B;AACzC,gDAAgD;AAChD,GAAG,QAAiC;IAEpC,MAAM,OAAO,GAAG,IAAI,4BAA4B,EAAE,CAAC;IACnD,OAAO,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC;IACjC,OAAO,KAAK,EAAE,OAAiB,EAAE,OAA0B,EAAE,EAAE,CAC9D,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC","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 IRequest, type IResponse } from \"@fluidframework/core-interfaces\";\nimport { RequestParser, create404Response } from \"@fluidframework/runtime-utils/internal\";\n\n// eslint-disable-next-line import/no-deprecated\nimport { type RuntimeRequestHandler } from \"./requestHandlers.js\";\n\n/**\n * The RuntimeRequestHandlerBuilder creates a runtime request handler based on request handlers.\n * The provided handlers sequentially applied until one is able to satisfy the request.\n */\nclass RuntimeRequestHandlerBuilder {\n\t// eslint-disable-next-line import/no-deprecated\n\tprivate readonly handlers: RuntimeRequestHandler[] = [];\n\n\t// eslint-disable-next-line import/no-deprecated\n\tpublic pushHandler(...handlers: RuntimeRequestHandler[]): void {\n\t\tif (handlers !== undefined) {\n\t\t\tthis.handlers.push(...handlers);\n\t\t}\n\t}\n\n\tpublic async handleRequest(request: IRequest, runtime: IContainerRuntime): Promise<IResponse> {\n\t\tconst parser = RequestParser.create(request);\n\t\tfor (const handler of this.handlers) {\n\t\t\tconst response = await handler(parser, runtime);\n\t\t\tif (response !== undefined) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\t\treturn create404Response(request);\n\t}\n}\n\n/**\n * Deprecated.\n *\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 * @internal\n */\nexport function buildRuntimeRequestHandler(\n\t// eslint-disable-next-line import/no-deprecated\n\t...handlers: RuntimeRequestHandler[]\n): (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse> {\n\tconst builder = new RuntimeRequestHandlerBuilder();\n\tbuilder.pushHandler(...handlers);\n\treturn async (request: IRequest, runtime: IContainerRuntime) =>\n\t\tbuilder.handleRequest(request, runtime);\n}\n"]}
@@ -0,0 +1,11 @@
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
+ }
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.250606",
3
+ "version": "2.0.0-dev-rc.3.0.0.253463",
4
4
  "description": "A simple request handling library for Fluid Framework",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -14,16 +14,6 @@
14
14
  "type": "module",
15
15
  "exports": {
16
16
  ".": {
17
- "import": {
18
- "types": "./lib/index.d.ts",
19
- "default": "./lib/index.js"
20
- },
21
- "require": {
22
- "types": "./dist/index.d.ts",
23
- "default": "./dist/index.js"
24
- }
25
- },
26
- "./public": {
27
17
  "import": {
28
18
  "types": "./lib/request-handler-public.d.ts",
29
19
  "default": "./lib/index.js"
@@ -77,16 +67,16 @@
77
67
  "temp-directory": "nyc/.nyc_output"
78
68
  },
79
69
  "dependencies": {
80
- "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.3.0.0.250606",
81
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.250606",
82
- "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.250606",
83
- "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.250606",
84
- "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.250606"
70
+ "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.3.0.0.253463",
71
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.253463",
72
+ "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.253463",
73
+ "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.253463",
74
+ "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.253463"
85
75
  },
86
76
  "devDependencies": {
87
- "@arethetypeswrong/cli": "^0.13.3",
77
+ "@arethetypeswrong/cli": "^0.15.2",
88
78
  "@biomejs/biome": "^1.6.2",
89
- "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.250606",
79
+ "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.253463",
90
80
  "@fluid-tools/build-cli": "^0.34.0",
91
81
  "@fluidframework/build-common": "^2.0.3",
92
82
  "@fluidframework/build-tools": "^0.34.0",
@@ -137,7 +127,6 @@
137
127
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
138
128
  "build:test:esm": "tsc --project ./src/test/tsconfig.json",
139
129
  "check:are-the-types-wrong": "attw --pack . --entrypoints .",
140
- "check:biome": "biome check .",
141
130
  "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
142
131
  "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
143
132
  "ci:build:docs": "api-extractor run",
@@ -145,7 +134,6 @@
145
134
  "eslint": "eslint --format stylish src",
146
135
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
147
136
  "format": "fluid-build --task format .",
148
- "format:biome": "biome check --apply .",
149
137
  "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore",
150
138
  "lint": "fluid-build . --task lint",
151
139
  "lint:fix": "fluid-build . --task eslint:fix --task format",
@@ -3,9 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
6
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
7
7
  import { type IResponse } from "@fluidframework/core-interfaces";
8
- import { type RequestParser } from "@fluidframework/runtime-utils";
8
+ import { type RequestParser } from "@fluidframework/runtime-utils/internal";
9
9
 
10
10
  /**
11
11
  * A request handler for the container runtime. Each handler should handle a specific request, and return undefined
@@ -3,9 +3,10 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
6
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
7
7
  import { type IRequest, type IResponse } from "@fluidframework/core-interfaces";
8
- import { RequestParser, create404Response } from "@fluidframework/runtime-utils";
8
+ import { RequestParser, create404Response } from "@fluidframework/runtime-utils/internal";
9
+
9
10
  // eslint-disable-next-line import/no-deprecated
10
11
  import { type RuntimeRequestHandler } from "./requestHandlers.js";
11
12
 
@@ -1,8 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- // Build pipeline breaks without this file ("No test files found")
6
- describe("requestHandler-placeholder", () => { });
7
- export {};
8
- //# sourceMappingURL=requestHandler.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requestHandler.spec.js","sourceRoot":"","sources":["../../src/test/requestHandler.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,kEAAkE;AAClE,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// Build pipeline breaks without this file (\"No test files found\")\ndescribe(\"requestHandler-placeholder\", () => {});\n"]}
@@ -1,6 +0,0 @@
1
- use_current_TypeAliasDeclaration_RuntimeRequestHandler(get_old_TypeAliasDeclaration_RuntimeRequestHandler());
2
- use_old_TypeAliasDeclaration_RuntimeRequestHandler(get_current_TypeAliasDeclaration_RuntimeRequestHandler());
3
- use_current_FunctionDeclaration_buildRuntimeRequestHandler(get_old_FunctionDeclaration_buildRuntimeRequestHandler());
4
- use_old_FunctionDeclaration_buildRuntimeRequestHandler(get_current_FunctionDeclaration_buildRuntimeRequestHandler());
5
- export {};
6
- //# sourceMappingURL=validateRequestHandlerPrevious.generated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateRequestHandlerPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateRequestHandlerPrevious.generated.ts"],"names":[],"mappings":"AAgCA,sDAAsD,CAClD,kDAAkD,EAAE,CAAC,CAAC;AAW1D,kDAAkD,CAC9C,sDAAsD,EAAE,CAAC,CAAC;AAW9D,0DAA0D,CACtD,sDAAsD,EAAE,CAAC,CAAC;AAW9D,sDAAsD,CAClD,0DAA0D,EAAE,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/*\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n * Generated by fluid-type-test-generator in @fluidframework/build-tools.\n */\nimport type * as old from \"@fluidframework/request-handler-previous\";\nimport type * as current from \"../../index.js\";\n\n\n// See 'build-tools/src/type-test-generator/compatibility.ts' for more information.\ntype TypeOnly<T> = T extends number\n\t? number\n\t: T extends string\n\t? string\n\t: T extends boolean | bigint | symbol\n\t? T\n\t: {\n\t\t\t[P in keyof T]: TypeOnly<T[P]>;\n\t };\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_RuntimeRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_RuntimeRequestHandler():\n TypeOnly<old.RuntimeRequestHandler>;\ndeclare function use_current_TypeAliasDeclaration_RuntimeRequestHandler(\n use: TypeOnly<current.RuntimeRequestHandler>): void;\nuse_current_TypeAliasDeclaration_RuntimeRequestHandler(\n get_old_TypeAliasDeclaration_RuntimeRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_RuntimeRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_RuntimeRequestHandler():\n TypeOnly<current.RuntimeRequestHandler>;\ndeclare function use_old_TypeAliasDeclaration_RuntimeRequestHandler(\n use: TypeOnly<old.RuntimeRequestHandler>): void;\nuse_old_TypeAliasDeclaration_RuntimeRequestHandler(\n get_current_TypeAliasDeclaration_RuntimeRequestHandler());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_buildRuntimeRequestHandler\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_FunctionDeclaration_buildRuntimeRequestHandler():\n TypeOnly<typeof old.buildRuntimeRequestHandler>;\ndeclare function use_current_FunctionDeclaration_buildRuntimeRequestHandler(\n use: TypeOnly<typeof current.buildRuntimeRequestHandler>): void;\nuse_current_FunctionDeclaration_buildRuntimeRequestHandler(\n get_old_FunctionDeclaration_buildRuntimeRequestHandler());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"FunctionDeclaration_buildRuntimeRequestHandler\": {\"backCompat\": false}\n*/\ndeclare function get_current_FunctionDeclaration_buildRuntimeRequestHandler():\n TypeOnly<typeof current.buildRuntimeRequestHandler>;\ndeclare function use_old_FunctionDeclaration_buildRuntimeRequestHandler(\n use: TypeOnly<typeof old.buildRuntimeRequestHandler>): void;\nuse_old_FunctionDeclaration_buildRuntimeRequestHandler(\n get_current_FunctionDeclaration_buildRuntimeRequestHandler());\n"]}