@orpc/openapi 0.37.0 → 0.38.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.
@@ -403,8 +403,7 @@ var OpenAPIMatcher = class {
403
403
  return {
404
404
  path: match.data.path,
405
405
  procedure: match.data.procedure,
406
- params: match.params ? { ...match.params } : void 0
407
- // normalize params
406
+ params: match.params
408
407
  };
409
408
  }
410
409
  };
@@ -418,4 +417,4 @@ export {
418
417
  OpenAPICodec,
419
418
  OpenAPIMatcher
420
419
  };
421
- //# sourceMappingURL=chunk-PWOV66X6.js.map
420
+ //# sourceMappingURL=chunk-DRV7KYES.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OpenAPICodec,
3
3
  OpenAPIMatcher
4
- } from "./chunk-PWOV66X6.js";
4
+ } from "./chunk-DRV7KYES.js";
5
5
 
6
6
  // src/adapters/fetch/openapi-handler.ts
7
7
  import { fetchRequestToStandardRequest, standardResponseToFetchResponse } from "@orpc/server/fetch";
@@ -29,4 +29,4 @@ var OpenAPIHandler = class {
29
29
  export {
30
30
  OpenAPIHandler
31
31
  };
32
- //# sourceMappingURL=chunk-ICLAXOVR.js.map
32
+ //# sourceMappingURL=chunk-NHYWV7BW.js.map
package/dist/fetch.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OpenAPIHandler
3
- } from "./chunk-ICLAXOVR.js";
4
- import "./chunk-PWOV66X6.js";
3
+ } from "./chunk-NHYWV7BW.js";
4
+ import "./chunk-DRV7KYES.js";
5
5
  import "./chunk-HC5PVG4R.js";
6
6
  export {
7
7
  OpenAPIHandler
package/dist/hono.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OpenAPIHandler
3
- } from "./chunk-ICLAXOVR.js";
4
- import "./chunk-PWOV66X6.js";
3
+ } from "./chunk-NHYWV7BW.js";
4
+ import "./chunk-DRV7KYES.js";
5
5
  import "./chunk-HC5PVG4R.js";
6
6
  export {
7
7
  OpenAPIHandler
package/dist/next.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OpenAPIHandler
3
- } from "./chunk-ICLAXOVR.js";
4
- import "./chunk-PWOV66X6.js";
3
+ } from "./chunk-NHYWV7BW.js";
4
+ import "./chunk-DRV7KYES.js";
5
5
  import "./chunk-HC5PVG4R.js";
6
6
  export {
7
7
  OpenAPIHandler
package/dist/node.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OpenAPICodec,
3
3
  OpenAPIMatcher
4
- } from "./chunk-PWOV66X6.js";
4
+ } from "./chunk-DRV7KYES.js";
5
5
  import "./chunk-HC5PVG4R.js";
6
6
 
7
7
  // src/adapters/node/openapi-handler.ts
@@ -1,10 +1,11 @@
1
1
  import type { Context, Router } from '@orpc/server';
2
2
  import type { FetchHandler, FetchHandleResult } from '@orpc/server/fetch';
3
- import type { StandardHandleRest } from '@orpc/server/standard';
3
+ import type { StandardHandleOptions } from '@orpc/server/standard';
4
+ import type { MaybeOptionalOptions } from '@orpc/shared';
4
5
  import type { OpenAPIHandlerOptions } from '../standard';
5
6
  export declare class OpenAPIHandler<T extends Context> implements FetchHandler<T> {
6
7
  private readonly standardHandler;
7
8
  constructor(router: Router<T, any>, options?: NoInfer<OpenAPIHandlerOptions<T>>);
8
- handle(request: Request, ...rest: StandardHandleRest<T>): Promise<FetchHandleResult>;
9
+ handle(request: Request, ...rest: MaybeOptionalOptions<StandardHandleOptions<T>>): Promise<FetchHandleResult>;
9
10
  }
10
11
  //# sourceMappingURL=openapi-handler.d.ts.map
@@ -1,10 +1,11 @@
1
1
  import type { Context, Router } from '@orpc/server';
2
2
  import type { NodeHttpHandler, NodeHttpHandleResult, NodeHttpRequest, NodeHttpResponse } from '@orpc/server/node';
3
- import type { StandardHandleRest } from '@orpc/server/standard';
3
+ import type { StandardHandleOptions } from '@orpc/server/standard';
4
+ import type { MaybeOptionalOptions } from '@orpc/shared';
4
5
  import type { OpenAPIHandlerOptions } from '../standard';
5
6
  export declare class OpenAPIHandler<T extends Context> implements NodeHttpHandler<T> {
6
7
  private readonly standardHandler;
7
8
  constructor(router: Router<T, any>, options?: NoInfer<OpenAPIHandlerOptions<T>>);
8
- handle(req: NodeHttpRequest, res: NodeHttpResponse, ...rest: StandardHandleRest<T>): Promise<NodeHttpHandleResult>;
9
+ handle(req: NodeHttpRequest, res: NodeHttpResponse, ...rest: MaybeOptionalOptions<StandardHandleOptions<T>>): Promise<NodeHttpHandleResult>;
9
10
  }
10
11
  //# sourceMappingURL=openapi-handler.d.ts.map
package/dist/standard.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  OpenAPIMatcher,
4
4
  OpenAPISerializer,
5
5
  bracket_notation_exports
6
- } from "./chunk-PWOV66X6.js";
6
+ } from "./chunk-DRV7KYES.js";
7
7
  import "./chunk-HC5PVG4R.js";
8
8
  export {
9
9
  bracket_notation_exports as BracketNotation,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/openapi",
3
3
  "type": "module",
4
- "version": "0.37.0",
4
+ "version": "0.38.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -60,9 +60,9 @@
60
60
  "openapi3-ts": "^4.4.0",
61
61
  "rou3": "^0.5.1",
62
62
  "wildcard-match": "^5.1.3",
63
- "@orpc/contract": "0.37.0",
64
- "@orpc/server": "0.37.0",
65
- "@orpc/shared": "0.37.0"
63
+ "@orpc/contract": "0.38.0",
64
+ "@orpc/server": "0.38.0",
65
+ "@orpc/shared": "0.38.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@readme/openapi-parser": "^2.6.0",