@trpc/server 11.0.0-next-alpha.154 → 11.0.0-next-alpha.155

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 (59) hide show
  1. package/dist/adapters/aws-lambda/index.d.ts +2 -2
  2. package/dist/adapters/aws-lambda/index.d.ts.map +1 -1
  3. package/dist/adapters/aws-lambda/utils.d.ts +1 -2
  4. package/dist/adapters/aws-lambda/utils.d.ts.map +1 -1
  5. package/dist/adapters/express.d.ts +2 -2
  6. package/dist/adapters/express.d.ts.map +1 -1
  7. package/dist/adapters/fastify/fastifyRequestHandler.d.ts +4 -4
  8. package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
  9. package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts +4 -4
  10. package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +1 -1
  11. package/dist/adapters/fetch/fetchRequestHandler.d.ts +2 -2
  12. package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +1 -1
  13. package/dist/adapters/fetch/types.d.ts +2 -2
  14. package/dist/adapters/fetch/types.d.ts.map +1 -1
  15. package/dist/adapters/next.d.ts +2 -2
  16. package/dist/adapters/next.d.ts.map +1 -1
  17. package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.d.ts +1 -1
  18. package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.d.ts.map +1 -1
  19. package/dist/adapters/node-http/content-type/form-data/index.d.ts +2 -2
  20. package/dist/adapters/node-http/content-type/form-data/index.d.ts.map +1 -1
  21. package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.d.ts +1 -1
  22. package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.d.ts.map +1 -1
  23. package/dist/adapters/node-http/content-type/form-data/streamSlice.d.ts +2 -1
  24. package/dist/adapters/node-http/content-type/form-data/streamSlice.d.ts.map +1 -1
  25. package/dist/adapters/node-http/content-type/form-data/uploadHandler.d.ts +1 -1
  26. package/dist/adapters/node-http/content-type/form-data/uploadHandler.d.ts.map +1 -1
  27. package/dist/adapters/node-http/content-type/json/getPostBody.d.ts +2 -2
  28. package/dist/adapters/node-http/content-type/json/getPostBody.d.ts.map +1 -1
  29. package/dist/adapters/node-http/internals/contentType.d.ts +3 -3
  30. package/dist/adapters/node-http/internals/contentType.d.ts.map +1 -1
  31. package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts +2 -2
  32. package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts.map +1 -1
  33. package/dist/adapters/node-http/types.d.ts +4 -4
  34. package/dist/adapters/node-http/types.d.ts.map +1 -1
  35. package/dist/adapters/standalone.d.ts +2 -2
  36. package/dist/adapters/standalone.d.ts.map +1 -1
  37. package/dist/adapters/ws.d.ts +5 -5
  38. package/dist/adapters/ws.d.ts.map +1 -1
  39. package/dist/bundle-analysis.json +34 -34
  40. package/package.json +3 -3
  41. package/src/adapters/aws-lambda/index.ts +8 -5
  42. package/src/adapters/aws-lambda/utils.ts +6 -2
  43. package/src/adapters/express.ts +3 -3
  44. package/src/adapters/fastify/fastifyRequestHandler.ts +5 -6
  45. package/src/adapters/fastify/fastifyTRPCPlugin.ts +6 -5
  46. package/src/adapters/fetch/fetchRequestHandler.ts +4 -5
  47. package/src/adapters/fetch/types.ts +2 -2
  48. package/src/adapters/next.ts +4 -3
  49. package/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts +2 -1
  50. package/src/adapters/node-http/content-type/form-data/index.ts +4 -7
  51. package/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts +2 -1
  52. package/src/adapters/node-http/content-type/form-data/streamSlice.ts +2 -1
  53. package/src/adapters/node-http/content-type/form-data/uploadHandler.ts +1 -1
  54. package/src/adapters/node-http/content-type/json/getPostBody.ts +2 -2
  55. package/src/adapters/node-http/internals/contentType.ts +3 -3
  56. package/src/adapters/node-http/nodeHTTPRequestHandler.ts +5 -6
  57. package/src/adapters/node-http/types.ts +4 -4
  58. package/src/adapters/standalone.ts +3 -3
  59. package/src/adapters/ws.ts +9 -10
@@ -1,6 +1,6 @@
1
- import { AnyRouter } from '@trpc/core';
1
+ import type { AnyRouter } from '@trpc/core';
2
2
  import type { APIGatewayProxyEvent, APIGatewayProxyEventV2, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2, Context as APIGWContext } from 'aws-lambda';
3
- import { APIGatewayEvent, AWSLambdaOptions } from './utils';
3
+ import type { APIGatewayEvent, AWSLambdaOptions } from './utils';
4
4
  export * from './utils';
5
5
  /** 1:1 mapping of v1 or v2 input events, deduces which is which.
6
6
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,OAAO,IAAI,YAAY,EACxB,MAAM,YAAY,CAAC;AAOpB,OAAO,EACL,eAAe,EAEf,gBAAgB,EAOjB,MAAM,SAAS,CAAC;AAEjB,cAAc,SAAS,CAAC;AAqDxB;;IAEI;AACJ,KAAK,gBAAgB,CAAC,KAAK,IAAI,KAAK,SAAS,oBAAoB,GAC7D,qBAAqB,GACrB,KAAK,SAAS,sBAAsB,GACpC,iCAAiC,GACjC,KAAK,CAAC;AACV,wBAAgB,uBAAuB,CACrC,OAAO,SAAS,SAAS,EACzB,MAAM,SAAS,eAAe,EAC9B,OAAO,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAExC,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GACtC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,OAAO,CAAC,CA4B5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,OAAO,IAAI,YAAY,EACxB,MAAM,YAAY,CAAC;AAOpB,OAAO,KAAK,EACV,eAAe,EAEf,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAUjB,cAAc,SAAS,CAAC;AAqDxB;;IAEI;AACJ,KAAK,gBAAgB,CAAC,KAAK,IAAI,KAAK,SAAS,oBAAoB,GAC7D,qBAAqB,GACrB,KAAK,SAAS,sBAAsB,GACpC,iCAAiC,GACjC,KAAK,CAAC;AACV,wBAAgB,uBAAuB,CACrC,OAAO,SAAS,SAAS,EACzB,MAAM,SAAS,eAAe,EAC9B,OAAO,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAExC,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GACtC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,OAAO,CAAC,CA4B5D"}
@@ -1,7 +1,6 @@
1
1
  import type { AnyRouter, inferRouterContext } from '@trpc/core';
2
2
  import type { APIGatewayProxyEvent, APIGatewayProxyEventV2, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2, Context as APIGWContext } from 'aws-lambda';
3
- import { TRPCRequestInfo } from '../../http';
4
- import type { HTTPHeaders, OnErrorFunction, ResponseMetaFn } from '../../http';
3
+ import type { HTTPHeaders, OnErrorFunction, ResponseMetaFn, TRPCRequestInfo } from '../../http';
5
4
  export type APIGatewayEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2;
6
5
  export type APIGatewayResult = APIGatewayProxyResult | APIGatewayProxyStructuredResultV2;
7
6
  export type CreateAWSLambdaContextOptions<TEvent extends APIGatewayEvent> = {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/utils.ts"],"names":[],"mappings":"AAAA,OAAO,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,CAAC;AAEb,eAAO,MAAM,4CAA4C,QAEiD,CAAC"}
@@ -1,6 +1,6 @@
1
- import { AnyRouter } from '@trpc/core';
1
+ import type { AnyRouter } from '@trpc/core';
2
2
  import type * as express from 'express';
3
- import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
3
+ import type { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
4
4
  export type CreateExpressContextOptions = NodeHTTPCreateContextFnOptions<express.Request, express.Response>;
5
5
  export declare function createExpressMiddleware<TRouter extends AnyRouter>(opts: NodeHTTPHandlerOptions<TRouter, express.Request, express.Response>): express.Handler;
6
6
  //# sourceMappingURL=express.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/adapters/express.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EAEvB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,QAAQ,CACjB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,OAAO,SAAS,SAAS,EAC/D,IAAI,EAAE,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GACvE,OAAO,CAAC,OAAO,CAgBjB"}
1
+ {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/adapters/express.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,QAAQ,CACjB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,OAAO,SAAS,SAAS,EAC/D,IAAI,EAAE,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GACvE,OAAO,CAAC,OAAO,CAgBjB"}
@@ -1,7 +1,7 @@
1
- import { AnyRouter } from '@trpc/core';
2
- import { FastifyReply, FastifyRequest } from 'fastify';
3
- import { HTTPBaseHandlerOptions } from '../../http';
4
- import { NodeHTTPCreateContextOption } from '../node-http';
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import type { FastifyReply, FastifyRequest } from 'fastify';
3
+ import type { HTTPBaseHandlerOptions } from '../../http';
4
+ import type { NodeHTTPCreateContextOption } from '../node-http';
5
5
  export type FastifyHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = HTTPBaseHandlerOptions<TRouter, TRequest> & NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;
6
6
  type FastifyRequestHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = FastifyHandlerOptions<TRouter, TRequest, TResponse> & {
7
7
  req: TRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"fastifyRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAEL,sBAAsB,EAMvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,qBAAqB,CAC/B,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,IAC5B,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Q,EAAE,SAAS,CAAC,GAAG;IACxD,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAsB,qBAAqB,CACzC,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,EAC9B,IAAI,EAAE,4BAA4B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,kBAyFjE"}
@@ -1,7 +1,7 @@
1
- import { AnyRouter } from '@trpc/core';
2
- import { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
3
- import { FastifyHandlerOptions } from '.';
4
- import { NodeHTTPCreateContextFnOptions } from '../node-http';
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
3
+ import type { FastifyHandlerOptions } from '.';
4
+ import type { NodeHTTPCreateContextFnOptions } from '../node-http';
5
5
  export interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {
6
6
  prefix?: string;
7
7
  useWSS?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"fastifyTRPCPlugin.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAC;AAC1C,OAAO,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAI9D,MAAM,WAAW,wBAAwB,CAAC,OAAO,SAAS,SAAS;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,qBAAqB,CAAC,OAAO,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;CAC3E;AAED,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,cAAc,EACd,YAAY,CACb,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,EACvC,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,QAkC5B"}
1
+ {"version":3,"file":"fastifyTRPCPlugin.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAC;AAC/C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAKnE,MAAM,WAAW,wBAAwB,CAAC,OAAO,SAAS,SAAS;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,qBAAqB,CAAC,OAAO,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;CAC3E;AAED,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,cAAc,EACd,YAAY,CACb,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,EACvC,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,QAkC5B"}
@@ -1,5 +1,5 @@
1
- import { AnyRouter } from '@trpc/core';
2
- import { FetchHandlerOptions } from './types';
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import type { FetchHandlerOptions } from './types';
3
3
  export type FetchHandlerRequestOptions<TRouter extends AnyRouter> = FetchHandlerOptions<TRouter> & {
4
4
  req: Request;
5
5
  endpoint: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fetchRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/fetchRequestHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AASvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,mBAAmB,CAAC,OAAO,CAAC,GAAG;IAC7B,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AASJ,wBAAsB,mBAAmB,CAAC,OAAO,SAAS,SAAS,EACjE,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,GACxC,OAAO,CAAC,QAAQ,CAAC,CAyGnB"}
1
+ {"version":3,"file":"fetchRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/fetchRequestHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,mBAAmB,CAAC,OAAO,CAAC,GAAG;IAC7B,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AASJ,wBAAsB,mBAAmB,CAAC,OAAO,SAAS,SAAS,EACjE,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,GACxC,OAAO,CAAC,QAAQ,CAAC,CAyGnB"}
@@ -1,5 +1,5 @@
1
- import { AnyRouter, inferRouterContext } from '@trpc/core';
2
- import { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
1
+ import type { AnyRouter, inferRouterContext } from '@trpc/core';
2
+ import type { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
3
3
  export type FetchCreateContextFnOptions = {
4
4
  req: Request;
5
5
  resHeaders: Headers;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAErE,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC5D,IAAI,EAAE,2BAA2B,KAC9B,kBAAkB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,OAAO,SAAS,kBAAkB,CAAC,OAAO,CAAC,GACvC;IACE;;QAEI;IACJ,aAAa,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CAC/C,GACD;IACE;;QAEI;IACJ,aAAa,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CAC9C,CAAC;AAER,MAAM,MAAM,mBAAmB,CAAC,OAAO,SAAS,SAAS,IACvD,wBAAwB,CAAC,OAAO,CAAC,GAAG,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC5D,IAAI,EAAE,2BAA2B,KAC9B,kBAAkB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,OAAO,SAAS,kBAAkB,CAAC,OAAO,CAAC,GACvC;IACE;;QAEI;IACJ,aAAa,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CAC/C,GACD;IACE;;QAEI;IACJ,aAAa,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CAC9C,CAAC;AAER,MAAM,MAAM,mBAAmB,CAAC,OAAO,SAAS,SAAS,IACvD,wBAAwB,CAAC,OAAO,CAAC,GAAG,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { AnyRouter } from '@trpc/core';
1
+ import type { AnyRouter } from '@trpc/core';
2
2
  import type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
3
- import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
3
+ import type { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
4
4
  export type CreateNextContextOptions = NodeHTTPCreateContextFnOptions<NextApiRequest, NextApiResponse>;
5
5
  export type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
6
6
  export declare function createNextApiHandler<TRouter extends AnyRouter>(opts: NodeHTTPHandlerOptions<TRouter, NextApiRequest, NextApiResponse>): NextApiHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/adapters/next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EAEvB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CACnE,cAAc,EACd,eAAe,CAChB,CAAC;AACF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5E,wBAAgB,oBAAoB,CAAC,OAAO,SAAS,SAAS,EAC5D,IAAI,EAAE,sBAAsB,CAAC,OAAO,EAAE,cAAc,EAAE,eAAe,CAAC,GACrE,cAAc,CA8ChB"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/adapters/next.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CACnE,cAAc,EACd,eAAe,CAChB,CAAC;AACF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5E,wBAAgB,oBAAoB,CAAC,OAAO,SAAS,SAAS,EAC5D,IAAI,EAAE,sBAAsB,CAAC,OAAO,EAAE,cAAc,EAAE,eAAe,CAAC,GACrE,cAAc,CA8ChB"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { UploadHandler } from './uploadHandler';
3
+ import type { UploadHandler } from './uploadHandler';
4
4
  export declare function readableStreamToString(stream: ReadableStream<Uint8Array>, encoding?: BufferEncoding): Promise<string>;
5
5
  export type FileUploadHandlerFilterArgs = {
6
6
  filename: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fileUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"],"names":[],"mappings":";;AAoBA,OAAO,EAA4B,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1E,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,QAAQ,CAAC,EAAE,cAAc,mBAoB1B;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAC1C,IAAI,EAAE,iCAAiC,KACpC,MAAM,GAAG,SAAS,CAAC;AAExB,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,6BAA6B,GAAG,MAAM,CAAC;IACnD;;;OAGG;IACH,IAAI,CAAC,EAAE,6BAA6B,CAAC;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;CACxE,CAAC;AA4BF,wBAAgB,uBAAuB,CAAC,EACtC,SAAoB,EACpB,kBAAyB,EACzB,IAA8B,EAC9B,MAAM,EACN,WAAqB,GACtB,GAAE,wBAA6B,GAAG,aAAa,CAyD/C;AAED,qBAAa,cAAc;IAMvB,OAAO,CAAC,QAAQ;IACT,IAAI,EAAE,MAAM;IACnB,OAAO,CAAC,MAAM,CAAC;IAPjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,SAAK;IACjB,kBAAkB,SAAM;gBAGd,QAAQ,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACX,MAAM,CAAC;eAAW,MAAM;aAAO,MAAM;iBAAE;IAKjD,IAAI,IAAI,IAAI,MAAM,CASjB;IAED,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc;IAkB5D,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC;IAkBzC,MAAM,IAAI,cAAc,CAAC,GAAG,CAAC;IAC7B,MAAM,IAAI,MAAM,CAAC,cAAc;IAUzB,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC;IAI7B,SAAgB,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU;IAE9C,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAGvB,WAAW,IAAI,MAAM;CAGtB"}
1
+ {"version":3,"file":"fileUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"],"names":[],"mappings":";;AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,QAAQ,CAAC,EAAE,cAAc,mBAoB1B;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,M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MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAGvB,WAAW,IAAI,MAAM;CAGtB"}
@@ -4,8 +4,8 @@
4
4
  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
5
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6
6
  */
7
- import { NodeHTTPRequest } from '../../types';
8
- import { UploadHandler } from './uploadHandler';
7
+ import type { NodeHTTPRequest } from '../../types';
8
+ import type { UploadHandler } from './uploadHandler';
9
9
  /**
10
10
  * Allows you to handle multipart forms (file uploads) for your app.
11
11
  * Request body parts with a 'filename' property will be treated as files.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAEL,aAAa,EAEd,MAAM,iBAAiB,CAAC;AAIzB;;;;;;;;;GASG;AACH,iBAAe,sBAAsB,CACnC,OAAO,EAAE,eAAe,EACxB,aAAa,EAAE,aAAa,EAC5B,WAAW,SAAW,qBAoEvB;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,eAAe,WAMvD;AAED,eAAO,MAAM,kCAAkC,yLAgC3C,CAAC;AAEL,OAAO,EAAE,sBAAsB,IAAI,mCAAmC,EAAE,CAAC;AACzE,OAAO,EAAE,yBAAyB,IAAI,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC5G,OAAO,EACL,uBAAuB,IAAI,oCAAoC,EAC/D,cAAc,IAAI,2BAA2B,GAC9C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,IAAI,kCAAkC,EAC3D,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,0BAA0B,IAAI,uCAAuC,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,iBAAiB,CAAC;AAKxE;;;;;;;;;GASG;AACH,iBAAe,sBAAsB,CACnC,OAAO,EAAE,eAAe,EACxB,aAAa,EAAE,aAAa,EAC5B,WAAW,SAAW,qBAoEvB;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,eAAe,WAMvD;AAED,eAAO,MAAM,kCAAkC,yLAgC3C,CAAC;AAEL,OAAO,EAAE,sBAAsB,IAAI,mCAAmC,EAAE,CAAC;AACzE,OAAO,EAAE,yBAAyB,IAAI,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC5G,OAAO,EACL,uBAAuB,IAAI,oCAAoC,EAC/D,cAAc,IAAI,2BAA2B,GAC9C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,IAAI,kCAAkC,EAC3D,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,0BAA0B,IAAI,uCAAuC,EAAE,CAAC"}
@@ -7,7 +7,7 @@
7
7
  /**
8
8
  * @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/upload/memoryUploadHandler.ts
9
9
  */
10
- import { UploadHandler } from './uploadHandler';
10
+ import type { UploadHandler } from './uploadHandler';
11
11
  export type MemoryUploadHandlerFilterArgs = {
12
12
  filename?: string;
13
13
  contentType: string;
@@ -1 +1 @@
1
- {"version":3,"file":"memoryUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,OAAO,EAA4B,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;CAC1E,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,WAAqB,GACtB,GAAE,0BAA+B,GAAG,aAAa,CAkBjD"}
1
+ {"version":3,"file":"memoryUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;CAC1E,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,WAAqB,GACtB,GAAE,0BAA+B,GAAG,aAAa,CAkBjD"}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { Transform, TransformCallback } from 'node:stream';
3
+ import type { TransformCallback } from 'node:stream';
4
+ import { Transform } from 'node:stream';
4
5
  declare class SliceStream extends Transform {
5
6
  private startIndex;
6
7
  private endIndex;
@@ -1 +1 @@
1
- {"version":3,"file":"streamSlice.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/streamSlice.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE3D,cAAM,WAAY,SAAQ,SAAS;IAKrB,OAAO,CAAC,UAAU;IAAM,OAAO,CAAC,QAAQ;IAJpD,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAS;gBAEL,UAAU,SAAI,EAAU,QAAQ,SAAW;IAItD,UAAU,CACjB,KAAK,EAAE,GAAG,EACV,CAAC,EAAE,cAAc,EACjB,IAAI,EAAE,iBAAiB,GACtB,IAAI;CAmCR;AAED,wBAAgB,WAAW,CAAC,UAAU,SAAI,EAAE,QAAQ,SAAW,GAAG,WAAW,CAE5E"}
1
+ {"version":3,"file":"streamSlice.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/streamSlice.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS;IAKrB,OAAO,CAAC,UAAU;IAAM,OAAO,CAAC,QAAQ;IAJpD,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAS;gBAEL,UAAU,SAAI,EAAU,QAAQ,SAAW;IAItD,UAAU,CACjB,KAAK,EAAE,GAAG,EACV,CAAC,EAAE,cAAc,EACjB,IAAI,EAAE,iBAAiB,GACtB,IAAI;CAmCR;AAED,wBAAgB,WAAW,CAAC,UAAU,SAAI,EAAE,QAAQ,SAAW,GAAG,WAAW,CAE5E"}
@@ -1,4 +1,4 @@
1
- import { NodeOnDiskFile } from './fileUploadHandler';
1
+ import type { NodeOnDiskFile } from './fileUploadHandler';
2
2
  /**
3
3
  * @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/formData.ts
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"uploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/uploadHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAC1B,IAAI,EAAE,QAAQ,CAAC,iBAAiB,CAAC,KAC9B,OAAO,CAAC,IAAI,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAEvD,wBAAgB,qBAAqB,CACnC,GAAG,QAAQ,EAAE,aAAa,EAAE,GAC3B,aAAa,CAWf;AAED,qBAAa,wBAAyB,SAAQ,KAAK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AC3B,aAAa,CAWf;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IAC9B,KAAK,EAAE,MAAM;IAAS,QAAQ,EAAE,MAAM;gBAAtC,KAAK,EAAE,MAAM,EAAS,QAAQ,EAAE,MAAM;CAG1D;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IAC9B,QAAQ,EAAE,MAAM;gBAAhB,QAAQ,EAAE,MAAM;CAGpC;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;CAC1E,CAAC;AAEF;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,WAAqB,GACtB,GAAE,0BAA+B,GAAG,aAAa,CAkBjD"}
@@ -1,5 +1,5 @@
1
- import { BodyResult } from '../../../../http';
2
- import { NodeHTTPRequest } from '../../types';
1
+ import type { BodyResult } from '../../../../http';
2
+ import type { NodeHTTPRequest } from '../../types';
3
3
  export declare function getPostBody(opts: {
4
4
  req: NodeHTTPRequest;
5
5
  maxBodySize?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"getPostBody.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/json/getPostBody.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAsB,WAAW,CAAC,IAAI,EAAE;IACtC,GAAG,EAAE,eAAe,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,UAAU,CAAC,CAiCtB"}
1
+ {"version":3,"file":"getPostBody.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/json/getPostBody.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,wBAAsB,WAAW,CAAC,IAAI,EAAE;IACtC,GAAG,EAAE,eAAe,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,UAAU,CAAC,CAiCtB"}
@@ -1,6 +1,6 @@
1
- import { AnyRouter } from '@trpc/core';
2
- import { BaseContentTypeHandler } from '../../../http';
3
- import { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from '../types';
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import type { BaseContentTypeHandler } from '../../../http';
3
+ import type { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from '../types';
4
4
  export interface NodeHTTPContentTypeHandler<TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse> extends BaseContentTypeHandler<NodeHTTPRequestHandlerOptions<AnyRouter, TRequest, TResponse> & {
5
5
  query: URLSearchParams;
6
6
  }> {
@@ -1 +1 @@
1
- {"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../../src/adapters/node-http/internals/contentType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EACL,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,0BAA0B,CACzC,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,CAClC,SAAQ,sBAAsB,CAC5B,6BAA6B,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IAC9D,KAAK,EAAE,eAAe,CAAC;CACxB,CACF;CAAG;AAEN,wBAAgB,gCAAgC,CAC9C,kBAAkB,EAAE,0BAA0B,CAC5C,eAAe,EACf,gBAAgB,CACjB,+HAOF"}
1
+ {"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../../src/adapters/node-http/internals/contentType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,0BAA0B,CACzC,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,CAClC,SAAQ,sBAAsB,CAC5B,6BAA6B,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IAC9D,KAAK,EAAE,eAAe,CAAC;CACxB,CACF;CAAG;AAEN,wBAAgB,gCAAgC,CAC9C,kBAAkB,EAAE,0BAA0B,CAC5C,eAAe,EACf,gBAAgB,CACjB,+HAOF"}
@@ -1,4 +1,4 @@
1
- import { AnyRouter } from '@trpc/core';
2
- import { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from './types';
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import type { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from './types';
3
3
  export declare function nodeHTTPRequestHandler<TRouter extends AnyRouter, TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse>(opts: NodeHTTPRequestHandlerOptions<TRouter, TRequest, TResponse>): Promise<void>;
4
4
  //# sourceMappingURL=nodeHTTPRequestHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodeHTTPRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/node-http/nodeHTTPRequestHandler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAWvC,OAAO,EACL,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAIjB,wBAAsB,sBAAsB,CAC1C,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,EAClC,IAAI,EAAE,6BAA6B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,iBA4HlE"}
1
+ {"version":3,"file":"nodeHTTPRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/node-http/nodeHTTPRequestHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAU5C,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAIjB,wBAAsB,sBAAsB,CAC1C,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,EAClC,IAAI,EAAE,6BAA6B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,iBA4HlE"}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
- import { IncomingMessage, ServerResponse } from 'http';
3
- import { AnyRouter, inferRouterContext, MaybePromise } from '@trpc/core';
4
- import { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
5
- import { NodeHTTPContentTypeHandler } from './internals/contentType';
2
+ import type { IncomingMessage, ServerResponse } from 'http';
3
+ import type { AnyRouter, inferRouterContext, MaybePromise } from '@trpc/core';
4
+ import type { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
5
+ import type { NodeHTTPContentTypeHandler } from './internals/contentType';
6
6
  interface ParsedQs {
7
7
  [key: string]: ParsedQs | ParsedQs[] | string[] | string | undefined;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","s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AChC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC3C,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IAC1D;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC,CAAC,EAAE,0BAA0B,CAC3D,QAAQ,EACR,SAAS,CACV,EAAE,CAAC;CACL,CAAC;AAEJ,MAAM,MAAM,6BAA6B,CACvC,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,IAChC;IACF,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,sBAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAEzD,MAAM,MAAM,8BAA8B,CAAC,QAAQ,EAAE,SAAS,IAAI;IAChE,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AACF,MAAM,MAAM,uBAAuB,CACjC,OAAO,SAAS,SAAS,EACzB,QAAQ,EACR,SAAS,IACP,CACF,IAAI,EAAE,8BAA8B,CAAC,QAAQ,EAAE,SAAS,CAAC,KACtD,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import http from 'http';
3
- import { AnyRouter } from '@trpc/core';
4
- import { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
3
+ import type { AnyRouter } from '@trpc/core';
4
+ import type { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
5
5
  export type CreateHTTPHandlerOptions<TRouter extends AnyRouter> = NodeHTTPHandlerOptions<TRouter, http.IncomingMessage, http.ServerResponse>;
6
6
  export type CreateHTTPContextOptions = NodeHTTPCreateContextFnOptions<http.IncomingMessage, http.ServerResponse>;
7
7
  export declare function createHTTPHandler<TRouter extends AnyRouter>(opts: CreateHTTPHandlerOptions<TRouter>): (req: http.IncomingMessage, res: http.ServerResponse) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../../src/adapters/standalone.ts"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EAEvB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,sBAAsB,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;AAE7E,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CACnE,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,cAAc,CACpB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,SAEpB,KAAK,eAAe,OAAO,KAAK,cAAc,mBAalE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,wEAIxC"}
1
+ {"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../../src/adapters/standalone.ts"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,sBAAsB,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;AAE7E,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CACnE,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,cAAc,CACpB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,SAEpB,KAAK,eAAe,OAAO,KAAK,cAAc,mBAalE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,wEAIxC"}
@@ -1,11 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="./types/global" />
3
3
  /// <reference types="node" />
4
- import { IncomingMessage } from 'http';
5
- import { AnyRouter, inferRouterContext, MaybePromise } from '@trpc/core';
6
- import { BaseHandlerOptions } from '@trpc/core/http';
7
- import { WebSocket, WebSocketServer } from 'ws';
8
- import { NodeHTTPCreateContextFnOptions } from './node-http';
4
+ import type { IncomingMessage } from 'http';
5
+ import type { AnyRouter, inferRouterContext, MaybePromise } from '@trpc/core';
6
+ import type { BaseHandlerOptions } from '@trpc/core/http';
7
+ import type { WebSocket, WebSocketServer } from 'ws';
8
+ import type { NodeHTTPCreateContextFnOptions } from './node-http';
9
9
  /**
10
10
  * @public
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/adapters/ws.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EACL,SAAS,EAIT,kBAAkB,EAClB,YAAY,EAGb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AASrD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAE7D;;GAEG;AACH,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AA8B,CAAC,eAAe,EAAE,SAAS,CAAC,EAC1D,MAAM,CACP,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC1D,IAAI,EAAE,yBAAyB,KAC5B,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,SAAS,IAAI,kBAAkB,CAC3E,OAAO,EACP,eAAe,CAChB,GACC,CAAC,MAAM,SAAS,kBAAkB,CAAC,OAAO,CAAC,GACvC;IACE;;QAEI;IACJ,aAAa,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC7C,GACD;IACE;;QAEI;IACJ,aAAa,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC,GAAG;IACP,GAAG,EAAE,eAAe,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;CAC1B,CAAC;AAEJ,wBAAgB,eAAe,CAAC,OAAO,SAAS,SAAS,EACvD,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC;;EAwQjC"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "bundleSize": 52010,
3
- "bundleOrigSize": 71742,
4
- "bundleReduction": 27.5,
3
+ "bundleOrigSize": 72424,
4
+ "bundleReduction": 28.19,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
8
8
  "size": 9593,
9
- "origSize": 8775,
9
+ "origSize": 8904,
10
10
  "renderedExports": [
11
11
  "applyWSSHandler"
12
12
  ],
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "id": "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
38
38
  "size": 4939,
39
- "origSize": 7831,
39
+ "origSize": 7870,
40
40
  "renderedExports": [
41
41
  "readableStreamToString",
42
42
  "createFileUploadHandler",
@@ -47,7 +47,7 @@
47
47
  "/src/adapters/node-http/content-type/form-data/index.ts"
48
48
  ],
49
49
  "percent": 9.5,
50
- "reduction": 36.93
50
+ "reduction": 37.24
51
51
  },
52
52
  {
53
53
  "id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js",
@@ -76,7 +76,7 @@
76
76
  {
77
77
  "id": "/src/adapters/node-http/content-type/form-data/index.ts",
78
78
  "size": 4353,
79
- "origSize": 6642,
79
+ "origSize": 6684,
80
80
  "renderedExports": [
81
81
  "nodeHTTPFormDataContentTypeHandler",
82
82
  "experimental_parseMultipartFormData",
@@ -85,12 +85,12 @@
85
85
  "removedExports": [],
86
86
  "dependents": [],
87
87
  "percent": 8.37,
88
- "reduction": 34.46
88
+ "reduction": 34.87
89
89
  },
90
90
  {
91
91
  "id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
92
92
  "size": 3539,
93
- "origSize": 4084,
93
+ "origSize": 4129,
94
94
  "renderedExports": [
95
95
  "nodeHTTPRequestHandler"
96
96
  ],
@@ -99,12 +99,12 @@
99
99
  "/src/adapters/node-http/index.ts"
100
100
  ],
101
101
  "percent": 6.8,
102
- "reduction": 13.34
102
+ "reduction": 14.29
103
103
  },
104
104
  {
105
105
  "id": "/src/adapters/fetch/fetchRequestHandler.ts",
106
106
  "size": 3182,
107
- "origSize": 3503,
107
+ "origSize": 3543,
108
108
  "renderedExports": [
109
109
  "fetchRequestHandler"
110
110
  ],
@@ -113,12 +113,12 @@
113
113
  "/src/adapters/fetch/index.ts"
114
114
  ],
115
115
  "percent": 6.12,
116
- "reduction": 9.16
116
+ "reduction": 10.19
117
117
  },
118
118
  {
119
119
  "id": "/src/adapters/aws-lambda/utils.ts",
120
120
  "size": 2961,
121
- "origSize": 4830,
121
+ "origSize": 4810,
122
122
  "renderedExports": [
123
123
  "isPayloadV1",
124
124
  "isPayloadV2",
@@ -132,12 +132,12 @@
132
132
  "/src/adapters/aws-lambda/index.ts"
133
133
  ],
134
134
  "percent": 5.69,
135
- "reduction": 38.7
135
+ "reduction": 38.44
136
136
  },
137
137
  {
138
138
  "id": "/src/adapters/fastify/fastifyRequestHandler.ts",
139
139
  "size": 2559,
140
- "origSize": 3584,
140
+ "origSize": 3629,
141
141
  "renderedExports": [
142
142
  "fastifyRequestHandler"
143
143
  ],
@@ -147,24 +147,24 @@
147
147
  "/src/adapters/fastify/index.ts"
148
148
  ],
149
149
  "percent": 4.92,
150
- "reduction": 28.6
150
+ "reduction": 29.48
151
151
  },
152
152
  {
153
153
  "id": "/src/adapters/aws-lambda/index.ts",
154
154
  "size": 2141,
155
- "origSize": 3240,
155
+ "origSize": 3306,
156
156
  "renderedExports": [
157
157
  "awsLambdaRequestHandler"
158
158
  ],
159
159
  "removedExports": [],
160
160
  "dependents": [],
161
161
  "percent": 4.12,
162
- "reduction": 33.92
162
+ "reduction": 35.24
163
163
  },
164
164
  {
165
165
  "id": "/src/adapters/node-http/content-type/form-data/streamSlice.ts",
166
166
  "size": 1393,
167
- "origSize": 1335,
167
+ "origSize": 1370,
168
168
  "renderedExports": [
169
169
  "streamSlice"
170
170
  ],
@@ -178,19 +178,19 @@
178
178
  {
179
179
  "id": "/src/adapters/next.ts",
180
180
  "size": 1251,
181
- "origSize": 1692,
181
+ "origSize": 1759,
182
182
  "renderedExports": [
183
183
  "createNextApiHandler"
184
184
  ],
185
185
  "removedExports": [],
186
186
  "dependents": [],
187
187
  "percent": 2.41,
188
- "reduction": 26.06
188
+ "reduction": 28.88
189
189
  },
190
190
  {
191
191
  "id": "/src/adapters/fastify/fastifyTRPCPlugin.ts",
192
192
  "size": 1196,
193
- "origSize": 1884,
193
+ "origSize": 1933,
194
194
  "renderedExports": [
195
195
  "fastifyTRPCPlugin"
196
196
  ],
@@ -199,12 +199,12 @@
199
199
  "/src/adapters/fastify/index.ts"
200
200
  ],
201
201
  "percent": 2.3,
202
- "reduction": 36.52
202
+ "reduction": 38.13
203
203
  },
204
204
  {
205
205
  "id": "/src/adapters/node-http/content-type/json/getPostBody.ts",
206
206
  "size": 1097,
207
- "origSize": 1098,
207
+ "origSize": 1108,
208
208
  "renderedExports": [
209
209
  "getPostBody"
210
210
  ],
@@ -213,12 +213,12 @@
213
213
  "/src/adapters/node-http/content-type/json/index.ts"
214
214
  ],
215
215
  "percent": 2.11,
216
- "reduction": 0.09
216
+ "reduction": 0.99
217
217
  },
218
218
  {
219
219
  "id": "/src/adapters/node-http/content-type/form-data/uploadHandler.ts",
220
220
  "size": 726,
221
- "origSize": 2229,
221
+ "origSize": 2234,
222
222
  "renderedExports": [
223
223
  "composeUploadHandlers",
224
224
  "MaxPartSizeExceededError",
@@ -233,7 +233,7 @@
233
233
  "/src/adapters/node-http/content-type/form-data/index.ts"
234
234
  ],
235
235
  "percent": 1.4,
236
- "reduction": 67.43
236
+ "reduction": 67.5
237
237
  },
238
238
  {
239
239
  "id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/utils.js",
@@ -256,7 +256,7 @@
256
256
  {
257
257
  "id": "/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts",
258
258
  "size": 685,
259
- "origSize": 2388,
259
+ "origSize": 2427,
260
260
  "renderedExports": [
261
261
  "createMemoryUploadHandler"
262
262
  ],
@@ -265,12 +265,12 @@
265
265
  "/src/adapters/node-http/content-type/form-data/index.ts"
266
266
  ],
267
267
  "percent": 1.32,
268
- "reduction": 71.31
268
+ "reduction": 71.78
269
269
  },
270
270
  {
271
271
  "id": "/src/adapters/standalone.ts",
272
272
  "size": 658,
273
- "origSize": 1309,
273
+ "origSize": 1347,
274
274
  "renderedExports": [
275
275
  "createHTTPHandler",
276
276
  "createHTTPServer"
@@ -278,19 +278,19 @@
278
278
  "removedExports": [],
279
279
  "dependents": [],
280
280
  "percent": 1.27,
281
- "reduction": 49.73
281
+ "reduction": 51.15
282
282
  },
283
283
  {
284
284
  "id": "/src/adapters/express.ts",
285
285
  "size": 339,
286
- "origSize": 820,
286
+ "origSize": 858,
287
287
  "renderedExports": [
288
288
  "createExpressMiddleware"
289
289
  ],
290
290
  "removedExports": [],
291
291
  "dependents": [],
292
292
  "percent": 0.65,
293
- "reduction": 58.66
293
+ "reduction": 60.49
294
294
  },
295
295
  {
296
296
  "id": "/src/adapters/node-http/content-type/json/index.ts",
@@ -309,7 +309,7 @@
309
309
  {
310
310
  "id": "/src/adapters/node-http/internals/contentType.ts",
311
311
  "size": 100,
312
- "origSize": 795,
312
+ "origSize": 810,
313
313
  "renderedExports": [
314
314
  "createNodeHTTPContentTypeHandler"
315
315
  ],
@@ -319,7 +319,7 @@
319
319
  "/src/adapters/node-http/content-type/form-data/index.ts"
320
320
  ],
321
321
  "percent": 0.19,
322
- "reduction": 87.42
322
+ "reduction": 87.65
323
323
  },
324
324
  {
325
325
  "id": "/src/adapters/fastify/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-next-alpha.154+06825867a",
3
+ "version": "11.0.0-next-alpha.155+b93149c63",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -131,7 +131,7 @@
131
131
  "access": "public"
132
132
  },
133
133
  "dependencies": {
134
- "@trpc/core": "11.0.0-next-alpha.154+06825867a"
134
+ "@trpc/core": "11.0.0-next-alpha.155+b93149c63"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@fastify/websocket": "^7.1.2",
@@ -170,5 +170,5 @@
170
170
  "funding": [
171
171
  "https://trpc.io/sponsor"
172
172
  ],
173
- "gitHead": "06825867aaeccf844b28f1ab27c7104e0d436cfd"
173
+ "gitHead": "b93149c63192bc113ef45f43188fbd993df39027"
174
174
  }
@@ -1,4 +1,5 @@
1
- import { AnyRouter, TRPCError } from '@trpc/core';
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import { TRPCError } from '@trpc/core';
2
3
  import type {
3
4
  APIGatewayProxyEvent,
4
5
  APIGatewayProxyEventV2,
@@ -6,16 +7,18 @@ import type {
6
7
  APIGatewayProxyStructuredResultV2,
7
8
  Context as APIGWContext,
8
9
  } from 'aws-lambda';
9
- import type { HTTPResponse } from '../../http';
10
- import {
10
+ import type {
11
11
  HTTPRequest,
12
+ HTTPResponse,
12
13
  ResolveHTTPRequestOptionsContextFn,
13
- resolveHTTPResponse,
14
14
  } from '../../http';
15
- import {
15
+ import { resolveHTTPResponse } from '../../http';
16
+ import type {
16
17
  APIGatewayEvent,
17
18
  APIGatewayResult,
18
19
  AWSLambdaOptions,
20
+ } from './utils';
21
+ import {
19
22
  getHTTPMethod,
20
23
  getPath,
21
24
  isPayloadV1,
@@ -7,8 +7,12 @@ import type {
7
7
  APIGatewayProxyStructuredResultV2,
8
8
  Context as APIGWContext,
9
9
  } from 'aws-lambda';
10
- import { TRPCRequestInfo } from '../../http';
11
- import type { HTTPHeaders, OnErrorFunction, ResponseMetaFn } from '../../http';
10
+ import type {
11
+ HTTPHeaders,
12
+ OnErrorFunction,
13
+ ResponseMetaFn,
14
+ TRPCRequestInfo,
15
+ } from '../../http';
12
16
 
13
17
  export type APIGatewayEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2;
14
18
  export type APIGatewayResult =
@@ -1,10 +1,10 @@
1
- import { AnyRouter } from '@trpc/core';
1
+ import type { AnyRouter } from '@trpc/core';
2
2
  import type * as express from 'express';
3
- import {
3
+ import type {
4
4
  NodeHTTPCreateContextFnOptions,
5
5
  NodeHTTPHandlerOptions,
6
- nodeHTTPRequestHandler,
7
6
  } from './node-http';
7
+ import { nodeHTTPRequestHandler } from './node-http';
8
8
 
9
9
  export type CreateExpressContextOptions = NodeHTTPCreateContextFnOptions<
10
10
  express.Request,
@@ -1,16 +1,15 @@
1
1
  import { Readable } from 'node:stream';
2
- import { AnyRouter } from '@trpc/core';
3
- import { FastifyReply, FastifyRequest } from 'fastify';
4
- import {
5
- getBatchStreamFormatter,
2
+ import type { AnyRouter } from '@trpc/core';
3
+ import type { FastifyReply, FastifyRequest } from 'fastify';
4
+ import type {
6
5
  HTTPBaseHandlerOptions,
7
6
  HTTPRequest,
8
7
  HTTPResponse,
9
8
  ResolveHTTPRequestOptionsContextFn,
10
- resolveHTTPResponse,
11
9
  ResponseChunk,
12
10
  } from '../../http';
13
- import { NodeHTTPCreateContextOption } from '../node-http';
11
+ import { getBatchStreamFormatter, resolveHTTPResponse } from '../../http';
12
+ import type { NodeHTTPCreateContextOption } from '../node-http';
14
13
 
15
14
  export type FastifyHandlerOptions<
16
15
  TRouter extends AnyRouter,
@@ -1,9 +1,10 @@
1
1
  /// <reference types="@fastify/websocket" />
2
- import { AnyRouter } from '@trpc/core';
3
- import { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
4
- import { FastifyHandlerOptions } from '.';
5
- import { NodeHTTPCreateContextFnOptions } from '../node-http';
6
- import { applyWSSHandler, WSSHandlerOptions } from '../ws';
2
+ import type { AnyRouter } from '@trpc/core';
3
+ import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
4
+ import type { FastifyHandlerOptions } from '.';
5
+ import type { NodeHTTPCreateContextFnOptions } from '../node-http';
6
+ import type { WSSHandlerOptions } from '../ws';
7
+ import { applyWSSHandler } from '../ws';
7
8
  import { fastifyRequestHandler } from './fastifyRequestHandler';
8
9
 
9
10
  export interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {
@@ -1,13 +1,12 @@
1
- import { AnyRouter } from '@trpc/core';
2
- import {
3
- getBatchStreamFormatter,
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import type {
4
3
  HTTPRequest,
5
4
  HTTPResponse,
6
5
  ResolveHTTPRequestOptionsContextFn,
7
- resolveHTTPResponse,
8
6
  ResponseChunk,
9
7
  } from '../../http';
10
- import { FetchHandlerOptions } from './types';
8
+ import { getBatchStreamFormatter, resolveHTTPResponse } from '../../http';
9
+ import type { FetchHandlerOptions } from './types';
11
10
 
12
11
  export type FetchHandlerRequestOptions<TRouter extends AnyRouter> =
13
12
  FetchHandlerOptions<TRouter> & {
@@ -1,5 +1,5 @@
1
- import { AnyRouter, inferRouterContext } from '@trpc/core';
2
- import { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
1
+ import type { AnyRouter, inferRouterContext } from '@trpc/core';
2
+ import type { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
3
3
 
4
4
  export type FetchCreateContextFnOptions = {
5
5
  req: Request;
@@ -1,10 +1,11 @@
1
- import { AnyRouter, getErrorShape, TRPCError } from '@trpc/core';
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import { getErrorShape, TRPCError } from '@trpc/core';
2
3
  import type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
3
- import {
4
+ import type {
4
5
  NodeHTTPCreateContextFnOptions,
5
6
  NodeHTTPHandlerOptions,
6
- nodeHTTPRequestHandler,
7
7
  } from './node-http';
8
+ import { nodeHTTPRequestHandler } from './node-http';
8
9
 
9
10
  export type CreateNextContextOptions = NodeHTTPCreateContextFnOptions<
10
11
  NextApiRequest,
@@ -18,7 +18,8 @@ import { basename, dirname, extname, resolve as resolvePath } from 'node:path';
18
18
  import { finished, Readable } from 'node:stream';
19
19
  import { promisify } from 'node:util';
20
20
  import { streamSlice } from './streamSlice';
21
- import { MaxPartSizeExceededError, UploadHandler } from './uploadHandler';
21
+ import type { UploadHandler } from './uploadHandler';
22
+ import { MaxPartSizeExceededError } from './uploadHandler';
22
23
 
23
24
  export async function readableStreamToString(
24
25
  stream: ReadableStream<Uint8Array>,
@@ -10,18 +10,15 @@
10
10
  */
11
11
  import * as fs from 'fs/promises';
12
12
  import { Readable } from 'node:stream';
13
- import { CombinedDataTransformer } from '@trpc/core';
13
+ import type { CombinedDataTransformer } from '@trpc/core';
14
14
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15
15
  // @ts-ignore the type definitions for this package are borked
16
16
  import { streamMultipart } from '@web3-storage/multipart-parser';
17
17
  import { createNodeHTTPContentTypeHandler } from '../../internals/contentType';
18
- import { NodeHTTPRequest } from '../../types';
18
+ import type { NodeHTTPRequest } from '../../types';
19
19
  import { NodeOnDiskFile } from './fileUploadHandler';
20
- import {
21
- MaxBodySizeExceededError,
22
- UploadHandler,
23
- UploadHandlerPart,
24
- } from './uploadHandler';
20
+ import type { UploadHandler, UploadHandlerPart } from './uploadHandler';
21
+ import { MaxBodySizeExceededError } from './uploadHandler';
25
22
 
26
23
  const utfTextDecoder = new TextDecoder('utf-8');
27
24
 
@@ -8,7 +8,8 @@
8
8
  /**
9
9
  * @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/upload/memoryUploadHandler.ts
10
10
  */
11
- import { MaxPartSizeExceededError, UploadHandler } from './uploadHandler';
11
+ import type { UploadHandler } from './uploadHandler';
12
+ import { MaxPartSizeExceededError } from './uploadHandler';
12
13
 
13
14
  export type MemoryUploadHandlerFilterArgs = {
14
15
  filename?: string;
@@ -1,4 +1,5 @@
1
- import { Transform, TransformCallback } from 'node:stream';
1
+ import type { TransformCallback } from 'node:stream';
2
+ import { Transform } from 'node:stream';
2
3
 
3
4
  class SliceStream extends Transform {
4
5
  private indexOffset = 0;
@@ -1,4 +1,4 @@
1
- import { NodeOnDiskFile } from './fileUploadHandler';
1
+ import type { NodeOnDiskFile } from './fileUploadHandler';
2
2
 
3
3
  /**
4
4
  * @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/formData.ts
@@ -1,6 +1,6 @@
1
1
  import { TRPCError } from '@trpc/core';
2
- import { BodyResult } from '../../../../http';
3
- import { NodeHTTPRequest } from '../../types';
2
+ import type { BodyResult } from '../../../../http';
3
+ import type { NodeHTTPRequest } from '../../types';
4
4
 
5
5
  export async function getPostBody(opts: {
6
6
  req: NodeHTTPRequest;
@@ -1,6 +1,6 @@
1
- import { AnyRouter } from '@trpc/core';
2
- import { BaseContentTypeHandler } from '../../../http';
3
- import {
1
+ import type { AnyRouter } from '@trpc/core';
2
+ import type { BaseContentTypeHandler } from '../../../http';
3
+ import type {
4
4
  NodeHTTPRequest,
5
5
  NodeHTTPRequestHandlerOptions,
6
6
  NodeHTTPResponse,
@@ -1,16 +1,15 @@
1
1
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
- import { AnyRouter } from '@trpc/core';
3
- import {
4
- getBatchStreamFormatter,
2
+ import type { AnyRouter } from '@trpc/core';
3
+ import type {
5
4
  HTTPRequest,
6
5
  HTTPResponse,
7
6
  ResolveHTTPRequestOptionsContextFn,
8
- resolveHTTPResponse,
9
7
  ResponseChunk,
10
8
  } from '../../http';
9
+ import { getBatchStreamFormatter, resolveHTTPResponse } from '../../http';
11
10
  import { nodeHTTPJSONContentTypeHandler } from './content-type/json';
12
- import { NodeHTTPContentTypeHandler } from './internals/contentType';
13
- import {
11
+ import type { NodeHTTPContentTypeHandler } from './internals/contentType';
12
+ import type {
14
13
  NodeHTTPRequest,
15
14
  NodeHTTPRequestHandlerOptions,
16
15
  NodeHTTPResponse,
@@ -1,7 +1,7 @@
1
- import { IncomingMessage, ServerResponse } from 'http';
2
- import { AnyRouter, inferRouterContext, MaybePromise } from '@trpc/core';
3
- import { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
4
- import { NodeHTTPContentTypeHandler } from './internals/contentType';
1
+ import type { IncomingMessage, ServerResponse } from 'http';
2
+ import type { AnyRouter, inferRouterContext, MaybePromise } from '@trpc/core';
3
+ import type { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../http';
4
+ import type { NodeHTTPContentTypeHandler } from './internals/contentType';
5
5
 
6
6
  interface ParsedQs {
7
7
  [key: string]: ParsedQs | ParsedQs[] | string[] | string | undefined;
@@ -1,11 +1,11 @@
1
1
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
2
  import http from 'http';
3
- import { AnyRouter } from '@trpc/core';
4
- import {
3
+ import type { AnyRouter } from '@trpc/core';
4
+ import type {
5
5
  NodeHTTPCreateContextFnOptions,
6
6
  NodeHTTPHandlerOptions,
7
- nodeHTTPRequestHandler,
8
7
  } from './node-http';
8
+ import { nodeHTTPRequestHandler } from './node-http';
9
9
 
10
10
  export type CreateHTTPHandlerOptions<TRouter extends AnyRouter> =
11
11
  NodeHTTPHandlerOptions<TRouter, http.IncomingMessage, http.ServerResponse>;
@@ -1,25 +1,24 @@
1
- import { IncomingMessage } from 'http';
1
+ import type { IncomingMessage } from 'http';
2
+ import type { AnyRouter, inferRouterContext, MaybePromise } from '@trpc/core';
2
3
  import {
3
- AnyRouter,
4
4
  callProcedure,
5
5
  getErrorShape,
6
6
  getTRPCErrorFromUnknown,
7
- inferRouterContext,
8
- MaybePromise,
9
7
  transformTRPCResponse,
10
8
  TRPCError,
11
9
  } from '@trpc/core';
12
- import { BaseHandlerOptions } from '@trpc/core/http';
13
- import { isObservable, Unsubscribable } from '@trpc/core/observable';
14
- import {
10
+ import type { BaseHandlerOptions } from '@trpc/core/http';
11
+ import type { Unsubscribable } from '@trpc/core/observable';
12
+ import { isObservable } from '@trpc/core/observable';
13
+ import type {
15
14
  JSONRPC2,
16
- parseTRPCMessage,
17
15
  TRPCClientOutgoingMessage,
18
16
  TRPCReconnectNotification,
19
17
  TRPCResponseMessage,
20
18
  } from '@trpc/core/rpc';
21
- import { WebSocket, WebSocketServer } from 'ws';
22
- import { NodeHTTPCreateContextFnOptions } from './node-http';
19
+ import { parseTRPCMessage } from '@trpc/core/rpc';
20
+ import type { WebSocket, WebSocketServer } from 'ws';
21
+ import type { NodeHTTPCreateContextFnOptions } from './node-http';
23
22
 
24
23
  /**
25
24
  * @public