@trpc/server 11.1.5-canary.4 → 11.2.1-canary.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "bundleSize": 204229,
3
- "bundleOrigSize": 237197,
4
- "bundleReduction": 13.9,
3
+ "bundleOrigSize": 237318,
4
+ "bundleReduction": 13.94,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
@@ -305,9 +305,9 @@
305
305
  "removedExports": [],
306
306
  "dependents": [
307
307
  "/src/unstable-core-do-not-import.ts",
308
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
308
309
  "/src/unstable-core-do-not-import/router.ts",
309
- "/src/unstable-core-do-not-import/initTRPC.ts",
310
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
310
+ "/src/unstable-core-do-not-import/initTRPC.ts"
311
311
  ],
312
312
  "percent": 1.34,
313
313
  "reduction": 45.98
@@ -367,14 +367,14 @@
367
367
  "removedExports": [],
368
368
  "dependents": [
369
369
  "/src/unstable-core-do-not-import.ts",
370
+ "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
371
+ "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
372
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
370
373
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
371
374
  "/src/unstable-core-do-not-import/router.ts",
372
375
  "/src/unstable-core-do-not-import/transformer.ts",
373
376
  "/src/unstable-core-do-not-import/middleware.ts",
374
377
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
375
- "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
376
- "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
377
- "/src/unstable-core-do-not-import/http/resolveResponse.ts",
378
378
  "/src/unstable-core-do-not-import/http/contentType.ts",
379
379
  "/src/unstable-core-do-not-import/http/abortError.ts",
380
380
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
@@ -412,10 +412,10 @@
412
412
  "removedExports": [],
413
413
  "dependents": [
414
414
  "/src/unstable-core-do-not-import.ts",
415
- "/src/unstable-core-do-not-import/router.ts",
416
- "/src/unstable-core-do-not-import/middleware.ts",
417
415
  "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
418
416
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
417
+ "/src/unstable-core-do-not-import/router.ts",
418
+ "/src/unstable-core-do-not-import/middleware.ts",
419
419
  "/src/unstable-core-do-not-import/http/contentType.ts",
420
420
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
421
421
  "/src/unstable-core-do-not-import/stream/sse.ts"
@@ -452,8 +452,8 @@
452
452
  "removedExports": [],
453
453
  "dependents": [
454
454
  "/src/unstable-core-do-not-import.ts",
455
- "/src/unstable-core-do-not-import/error/getErrorShape.ts",
456
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
455
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
456
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts"
457
457
  ],
458
458
  "percent": 1.05,
459
459
  "reduction": 18.02
@@ -847,7 +847,7 @@
847
847
  {
848
848
  "id": "/src/unstable-core-do-not-import/procedure.ts",
849
849
  "size": 75,
850
- "origSize": 2512,
850
+ "origSize": 2633,
851
851
  "renderedExports": [
852
852
  "procedureTypes"
853
853
  ],
@@ -857,7 +857,7 @@
857
857
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
858
858
  ],
859
859
  "percent": 0.04,
860
- "reduction": 97.01
860
+ "reduction": 97.15
861
861
  },
862
862
  {
863
863
  "id": "/src/unstable-core-do-not-import/error/formatter.ts",
@@ -876,19 +876,21 @@
876
876
  "reduction": 93.9
877
877
  },
878
878
  {
879
- "id": "/src/index.ts",
879
+ "id": "/src/http.ts",
880
880
  "size": 0,
881
- "origSize": 32,
881
+ "origSize": 37,
882
882
  "renderedExports": [],
883
883
  "removedExports": [],
884
- "dependents": [],
884
+ "dependents": [
885
+ "/src/adapters/ws.ts"
886
+ ],
885
887
  "percent": 0,
886
888
  "reduction": 100
887
889
  },
888
890
  {
889
- "id": "/src/rpc.ts",
891
+ "id": "/src/index.ts",
890
892
  "size": 0,
891
- "origSize": 36,
893
+ "origSize": 32,
892
894
  "renderedExports": [],
893
895
  "removedExports": [],
894
896
  "dependents": [],
@@ -896,14 +898,12 @@
896
898
  "reduction": 100
897
899
  },
898
900
  {
899
- "id": "/src/http.ts",
901
+ "id": "/src/rpc.ts",
900
902
  "size": 0,
901
- "origSize": 37,
903
+ "origSize": 36,
902
904
  "renderedExports": [],
903
905
  "removedExports": [],
904
- "dependents": [
905
- "/src/adapters/ws.ts"
906
- ],
906
+ "dependents": [],
907
907
  "percent": 0,
908
908
  "reduction": 100
909
909
  },
@@ -926,8 +926,8 @@
926
926
  "dependents": [
927
927
  "/src/adapters/express.ts",
928
928
  "/src/adapters/next.ts",
929
- "/src/adapters/ws.ts",
930
929
  "/src/adapters/standalone.ts",
930
+ "/src/adapters/ws.ts",
931
931
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
932
932
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
933
933
  "/src/adapters/node-http/writeResponse.ts"
@@ -967,6 +967,16 @@
967
967
  "percent": 0,
968
968
  "reduction": 100
969
969
  },
970
+ {
971
+ "id": "/src/adapters/fetch/index.ts",
972
+ "size": 0,
973
+ "origSize": 64,
974
+ "renderedExports": [],
975
+ "removedExports": [],
976
+ "dependents": [],
977
+ "percent": 0,
978
+ "reduction": 100
979
+ },
970
980
  {
971
981
  "id": "/src/adapters/node-http/index.ts",
972
982
  "size": 0,
@@ -976,22 +986,12 @@
976
986
  "dependents": [
977
987
  "/src/adapters/express.ts",
978
988
  "/src/adapters/next.ts",
979
- "/src/adapters/ws.ts",
980
989
  "/src/adapters/standalone.ts",
990
+ "/src/adapters/ws.ts",
981
991
  "/src/adapters/fastify/fastifyRequestHandler.ts"
982
992
  ],
983
993
  "percent": 0,
984
994
  "reduction": 100
985
- },
986
- {
987
- "id": "/src/adapters/fetch/index.ts",
988
- "size": 0,
989
- "origSize": 64,
990
- "renderedExports": [],
991
- "removedExports": [],
992
- "dependents": [],
993
- "percent": 0,
994
- "reduction": 100
995
995
  }
996
996
  ],
997
997
  "moduleCount": 64
@@ -1,4 +1,5 @@
1
1
  import type { TRPCError } from './error/TRPCError';
2
+ import type { Parser } from './parser';
2
3
  import type { ProcedureCallOptions } from './procedureBuilder';
3
4
  export declare const procedureTypes: readonly ["query", "mutation", "subscription"];
4
5
  /**
@@ -32,6 +33,10 @@ export interface Procedure<TType extends ProcedureType, TDef extends BuiltProced
32
33
  */
33
34
  meta: unknown;
34
35
  experimental_caller: boolean;
36
+ /**
37
+ * The input parsers for the procedure
38
+ */
39
+ inputs: Parser[];
35
40
  };
36
41
  meta: TDef['meta'];
37
42
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"procedure.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/procedure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,eAAO,MAAM,cAAc,gDAAiD,CAAC;AAC7E;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS,CACxB,KAAK,SAAS,aAAa,EAC3B,IAAI,SAAS,iBAAiB;IAE9B,IAAI,EAAE;QACJ;;;WAGG;QACH,MAAM,EAAE;YACN,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YACrB,MAAM,EAAE,IAAI,CAA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;AAE/C,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,oBAAoB,GACpB,wBAAwB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,CAAC,UAAU,SAAS,YAAY,IAC7D,SAAS,SAAS,oBAAoB,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,GACjE,IAAI,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,GAC1D,oBAAoB,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;AAE1D,MAAM,MAAM,oBAAoB,CAAC,UAAU,IAAI,UAAU,SAAS,YAAY,GAC1E,UAAU,CAAC,MAAM,CAAC,GAClB,KAAK,CAAC;AACV,MAAM,MAAM,oBAAoB,CAAC,UAAU,IACzC,oBAAoB,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,QAAQ;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.1.5-canary.4+aabc35a24",
3
+ "version": "11.2.1-canary.0+836788f4f",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -144,7 +144,7 @@
144
144
  "valibot": "1.1.0",
145
145
  "ws": "^8.0.0",
146
146
  "yup": "^1.0.0",
147
- "zod": "^3.24.4"
147
+ "zod": "^3.25.49"
148
148
  },
149
149
  "funding": [
150
150
  "https://trpc.io/sponsor"
@@ -152,5 +152,5 @@
152
152
  "peerDependencies": {
153
153
  "typescript": ">=5.7.2"
154
154
  },
155
- "gitHead": "aabc35a241d4b926b1c5e9fb88556959dfbb47a4"
155
+ "gitHead": "836788f4fea787be31bbec1ab2e692fa38297ad0"
156
156
  }
@@ -1,4 +1,5 @@
1
1
  import type { TRPCError } from './error/TRPCError';
2
+ import type { Parser } from './parser';
2
3
  import type { ProcedureCallOptions } from './procedureBuilder';
3
4
 
4
5
  export const procedureTypes = ['query', 'mutation', 'subscription'] as const;
@@ -38,6 +39,10 @@ export interface Procedure<
38
39
  */
39
40
  meta: unknown;
40
41
  experimental_caller: boolean;
42
+ /**
43
+ * The input parsers for the procedure
44
+ */
45
+ inputs: Parser[];
41
46
  };
42
47
  meta: TDef['meta'];
43
48
  /**