@trpc/server 11.0.0-next-beta.288 → 11.0.0-next-beta.294

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.
@@ -2,7 +2,7 @@ export { TRPCError,
2
2
  /**
3
3
  * @deprecated use `experimental_trpcMiddleware` instead
4
4
  */
5
- experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, callProcedure as callTRPCProcedure, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, type inferProcedureInput, type inferProcedureOutput, type inferProcedureBuilderResolverOptions, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, type inferClientTypes as inferTRPCClientTypes, type inferTransformedProcedureOutput, type inferTransformedSubscriptionOutput, type AnyProcedure as AnyTRPCProcedure, type AnyRouter as AnyTRPCRouter, type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction, type CombinedDataTransformer as TRPCCombinedDataTransformer, type ProcedureType as TRPCProcedureType, type AnyMutationProcedure as AnyTRPCMutationProcedure, type AnyQueryProcedure as AnyTRPCQueryProcedure, type RouterRecord as TRPCRouterRecord, type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure, type ProcedureOptions as TRPCProcedureOptions, } from '../../unstable-core-do-not-import';
5
+ experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, callProcedure as callTRPCProcedure, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, type inferProcedureInput, type inferProcedureOutput, type inferProcedureBuilderResolverOptions, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, type inferClientTypes as inferTRPCClientTypes, type AnyClientTypes as AnyTRPCClientTypes, type inferTransformedProcedureOutput, type inferTransformedSubscriptionOutput, type AnyProcedure as AnyTRPCProcedure, type AnyRouter as AnyTRPCRouter, type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction, type CombinedDataTransformer as TRPCCombinedDataTransformer, type ProcedureType as TRPCProcedureType, type AnyMutationProcedure as AnyTRPCMutationProcedure, type AnyQueryProcedure as AnyTRPCQueryProcedure, type RouterRecord as TRPCRouterRecord, type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure, type ProcedureOptions as TRPCProcedureOptions, } from '../../unstable-core-do-not-import';
6
6
  export type {
7
7
  /**
8
8
  * @deprecated use `AnyTRPCProcedure` instead
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/@trpc/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS;AACT;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,QAAQ,EAER,aAAa,IAAI,iBAAiB,EAClC,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,IAAI,mBAAmB,EACtC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,oCAAoC,EACzC,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,IAAI,oBAAoB,EAC7C,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,SAAS,IAAI,aAAa,EAC/B,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,uBAAuB,IAAI,2BAA2B,EAC3D,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,oBAAoB,IAAI,wBAAwB,EACrD,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,wBAAwB,IAAI,4BAA4B,EAC7D,KAAK,gBAAgB,IAAI,oBAAoB,GAC9C,MAAM,mCAAmC,CAAC;AAE3C,YAAY;AACV;;GAEG;AACH,YAAY;AACZ;;GAEG;AACH,SAAS;AACT;;GAEG;AACH,qBAAqB;AACrB;;GAEG;AACH,uBAAuB;AAE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C7D,KAAK,gBAAgB,IAAI,oBAAoB,GAC9C,MAAM,mCAAmC,CAAC;AAE3C,YAAY;AACV;;GAEG;AACH,YAAY;AACZ;;GAEG;AACH,SAAS;AACT;;GAEG;AACH,qBAAqB;AACrB;;GAEG;AACH,uBAAuB;AAEvB;;GAEG;AACH,IAAI;AAEJ;;GAEG;AACH,WAAW;AACX;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,oBAAoB;AAEpB;;GAEG;AACH,iBAAiB;AACjB;;GAEG;AACH,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAE3C,OAAO;AACL;;GAEG;AACH,aAAa;AAEb;;GAEG;AACH,aAAa,GACd,MAAM,mCAAmC,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IACxE,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
- "bundleSize": 92133,
3
- "bundleOrigSize": 146326,
2
+ "bundleSize": 92127,
3
+ "bundleOrigSize": 146320,
4
4
  "bundleReduction": 37.04,
5
5
  "modules": [
6
6
  {
@@ -42,8 +42,8 @@
42
42
  "removedExports": [],
43
43
  "dependents": [
44
44
  "/src/unstable-core-do-not-import.ts",
45
- "/src/unstable-core-do-not-import/initTRPC.ts",
46
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
45
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
46
+ "/src/unstable-core-do-not-import/initTRPC.ts"
47
47
  ],
48
48
  "percent": 6.56,
49
49
  "reduction": 38.32
@@ -186,9 +186,9 @@
186
186
  "removedExports": [],
187
187
  "dependents": [
188
188
  "/src/unstable-core-do-not-import.ts",
189
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
189
190
  "/src/unstable-core-do-not-import/router.ts",
190
- "/src/unstable-core-do-not-import/initTRPC.ts",
191
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
191
+ "/src/unstable-core-do-not-import/initTRPC.ts"
192
192
  ],
193
193
  "percent": 2.98,
194
194
  "reduction": 45.94
@@ -266,10 +266,10 @@
266
266
  "removedExports": [],
267
267
  "dependents": [
268
268
  "/src/unstable-core-do-not-import.ts",
269
- "/src/unstable-core-do-not-import/router.ts",
270
- "/src/unstable-core-do-not-import/middleware.ts",
271
269
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
272
270
  "/src/unstable-core-do-not-import/http/contentType.ts",
271
+ "/src/unstable-core-do-not-import/router.ts",
272
+ "/src/unstable-core-do-not-import/middleware.ts",
273
273
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
274
274
  ],
275
275
  "percent": 1.88,
@@ -324,7 +324,7 @@
324
324
  ],
325
325
  "removedExports": [],
326
326
  "dependents": [],
327
- "percent": 1.71,
327
+ "percent": 1.72,
328
328
  "reduction": 21.04
329
329
  },
330
330
  {
@@ -368,8 +368,8 @@
368
368
  ],
369
369
  "removedExports": [],
370
370
  "dependents": [
371
- "/src/unstable-core-do-not-import/error/getErrorShape.ts",
372
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
371
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
372
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts"
373
373
  ],
374
374
  "percent": 1.34,
375
375
  "reduction": 23.32
@@ -414,21 +414,21 @@
414
414
  "removedExports": [],
415
415
  "dependents": [
416
416
  "/src/unstable-core-do-not-import.ts",
417
- "/src/unstable-core-do-not-import/error/TRPCError.ts",
418
417
  "/src/unstable-core-do-not-import/rpc/codes.ts",
418
+ "/src/unstable-core-do-not-import/error/TRPCError.ts",
419
419
  "/src/unstable-core-do-not-import/router.ts",
420
420
  "/src/unstable-core-do-not-import/transformer.ts",
421
421
  "/src/unstable-core-do-not-import/middleware.ts",
422
- "/src/unstable-core-do-not-import/procedureBuilder.ts",
423
- "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
422
+ "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
423
+ "/src/unstable-core-do-not-import/procedureBuilder.ts"
424
424
  ],
425
425
  "percent": 1.09,
426
426
  "reduction": 35.76
427
427
  },
428
428
  {
429
429
  "id": "/src/unstable-core-do-not-import/parser.ts",
430
- "size": 998,
431
- "origSize": 2272,
430
+ "size": 992,
431
+ "origSize": 2266,
432
432
  "renderedExports": [
433
433
  "getParseFn"
434
434
  ],
@@ -438,7 +438,7 @@
438
438
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
439
439
  ],
440
440
  "percent": 1.08,
441
- "reduction": 56.07
441
+ "reduction": 56.22
442
442
  },
443
443
  {
444
444
  "id": "/src/adapters/node-http/content-type/form-data/uploadHandler.ts",
@@ -628,9 +628,9 @@
628
628
  "reduction": 93.8
629
629
  },
630
630
  {
631
- "id": "/src/index.ts",
631
+ "id": "/src/http.ts",
632
632
  "size": 0,
633
- "origSize": 32,
633
+ "origSize": 37,
634
634
  "renderedExports": [],
635
635
  "removedExports": [],
636
636
  "dependents": [],
@@ -638,9 +638,9 @@
638
638
  "reduction": 100
639
639
  },
640
640
  {
641
- "id": "/src/shared.ts",
641
+ "id": "/src/index.ts",
642
642
  "size": 0,
643
- "origSize": 653,
643
+ "origSize": 32,
644
644
  "renderedExports": [],
645
645
  "removedExports": [],
646
646
  "dependents": [],
@@ -648,9 +648,9 @@
648
648
  "reduction": 100
649
649
  },
650
650
  {
651
- "id": "/src/unstable-core-do-not-import.ts",
651
+ "id": "/src/rpc.ts",
652
652
  "size": 0,
653
- "origSize": 1552,
653
+ "origSize": 36,
654
654
  "renderedExports": [],
655
655
  "removedExports": [],
656
656
  "dependents": [],
@@ -658,9 +658,9 @@
658
658
  "reduction": 100
659
659
  },
660
660
  {
661
- "id": "/src/rpc.ts",
661
+ "id": "/src/shared.ts",
662
662
  "size": 0,
663
- "origSize": 36,
663
+ "origSize": 653,
664
664
  "renderedExports": [],
665
665
  "removedExports": [],
666
666
  "dependents": [],
@@ -668,9 +668,9 @@
668
668
  "reduction": 100
669
669
  },
670
670
  {
671
- "id": "/src/http.ts",
671
+ "id": "/src/unstable-core-do-not-import.ts",
672
672
  "size": 0,
673
- "origSize": 37,
673
+ "origSize": 1552,
674
674
  "renderedExports": [],
675
675
  "removedExports": [],
676
676
  "dependents": [],
@@ -716,8 +716,8 @@
716
716
  "renderedExports": [],
717
717
  "removedExports": [],
718
718
  "dependents": [
719
- "/src/adapters/next.ts",
720
719
  "/src/adapters/express.ts",
720
+ "/src/adapters/next.ts",
721
721
  "/src/adapters/standalone.ts"
722
722
  ],
723
723
  "percent": 0,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- // zod / @decs/typeschema
3
+ // zod / typeschema
4
4
  function getParseFn(procedureParser) {
5
5
  const parser = procedureParser;
6
6
  if (typeof parser === 'function') {
@@ -1,4 +1,4 @@
1
- // zod / @decs/typeschema
1
+ // zod / typeschema
2
2
  function getParseFn(procedureParser) {
3
3
  const parser = procedureParser;
4
4
  if (typeof parser === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-next-beta.288+afafc1160",
3
+ "version": "11.0.0-next-beta.294+1e32ff91b",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -148,7 +148,7 @@
148
148
  "tslib": "^2.5.0",
149
149
  "tsx": "^4.0.0",
150
150
  "typescript": "^5.3.3",
151
- "valibot": "^0.28.0",
151
+ "valibot": "^0.29.0",
152
152
  "vitest": "^1.2.2",
153
153
  "ws": "^8.0.0",
154
154
  "yup": "^1.0.0",
@@ -157,5 +157,5 @@
157
157
  "funding": [
158
158
  "https://trpc.io/sponsor"
159
159
  ],
160
- "gitHead": "afafc116094b25f410b81b90baeba6cbfc75e786"
160
+ "gitHead": "1e32ff91b8a63ea770da928d02c253a4b5d6693e"
161
161
  }
@@ -19,6 +19,7 @@ export {
19
19
  type inferRouterOutputs,
20
20
  type inferRouterContext,
21
21
  type inferClientTypes as inferTRPCClientTypes,
22
+ type AnyClientTypes as AnyTRPCClientTypes,
22
23
  type inferTransformedProcedureOutput,
23
24
  type inferTransformedSubscriptionOutput,
24
25
  type AnyProcedure as AnyTRPCProcedure,
@@ -1,4 +1,4 @@
1
- // zod / @decs/typeschema
1
+ // zod / typeschema
2
2
  export type ParserZodEsque<TInput, TParsedInput> = {
3
3
  _input: TInput;
4
4
  _output: TParsedInput;