@trpc/server 11.0.0-rc.768 → 11.0.0-rc.781

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, 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 CreateContextCallback, type MutationProcedure as TRPCMutationProcedure, type QueryProcedure as TRPCQueryProcedure, type SubscriptionProcedure as TRPCSubscriptionProcedure, type TRPCBuilder, StandardSchemaV1Error,
5
+ experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, createRecursiveProxy as createTRPCRecursiveProxy, 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 AnyRootTypes as AnyTRPCRootTypes, 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 CreateContextCallback, type MutationProcedure as TRPCMutationProcedure, type QueryProcedure as TRPCQueryProcedure, type SubscriptionProcedure as TRPCSubscriptionProcedure, type TRPCBuilder, StandardSchemaV1Error,
6
6
  /**
7
7
  * @deprecated use `tracked(id, data)` instead
8
8
  */
@@ -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,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,cAAc,IAAI,kBAAkB,EACzC,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,qBAAqB,EAC1B,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,cAAc,IAAI,kBAAkB,EACzC,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,WAAW,EAChB,qBAAqB;AACrB;;GAEG;AACH,GAAG,EACH,OAAO,EACP,KAAK,eAAe,EACpB,iBAAiB,EACjB,IAAI,IAAI,iBAAiB,EACzB,aAAa,IAAI,iBAAiB,GACnC,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,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
+ {"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,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,IAAI,mBAAmB,EACtC,oBAAoB,IAAI,wBAAwB,EAChD,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,oCAAoC,EACzC,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KA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,SAAS,CAAC,CAAC,CAAC"}
@@ -891,6 +891,16 @@
891
891
  "percent": 0,
892
892
  "reduction": 100
893
893
  },
894
+ {
895
+ "id": "/src/shared.ts",
896
+ "size": 0,
897
+ "origSize": 653,
898
+ "renderedExports": [],
899
+ "removedExports": [],
900
+ "dependents": [],
901
+ "percent": 0,
902
+ "reduction": 100
903
+ },
894
904
  {
895
905
  "id": "/src/unstable-core-do-not-import.ts",
896
906
  "size": 0,
@@ -909,16 +919,6 @@
909
919
  "percent": 0,
910
920
  "reduction": 100
911
921
  },
912
- {
913
- "id": "/src/shared.ts",
914
- "size": 0,
915
- "origSize": 653,
916
- "renderedExports": [],
917
- "removedExports": [],
918
- "dependents": [],
919
- "percent": 0,
920
- "reduction": 100
921
- },
922
922
  {
923
923
  "id": "/src/adapters/next-app-dir.ts",
924
924
  "size": 0,
@@ -951,16 +951,6 @@
951
951
  "percent": 0,
952
952
  "reduction": 100
953
953
  },
954
- {
955
- "id": "/src/adapters/fetch/index.ts",
956
- "size": 0,
957
- "origSize": 64,
958
- "renderedExports": [],
959
- "removedExports": [],
960
- "dependents": [],
961
- "percent": 0,
962
- "reduction": 100
963
- },
964
954
  {
965
955
  "id": "/src/adapters/node-http/index.ts",
966
956
  "size": 0,
@@ -976,6 +966,16 @@
976
966
  ],
977
967
  "percent": 0,
978
968
  "reduction": 100
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
979
  }
980
980
  ],
981
981
  "moduleCount": 63
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ require('./unstable-core-do-not-import/rootConfig.js');
16
16
 
17
17
 
18
18
  exports.createTRPCFlatProxy = createProxy.createFlatProxy;
19
+ exports.createTRPCRecursiveProxy = createProxy.createRecursiveProxy;
19
20
  exports.getErrorShape = getErrorShape.getErrorShape;
20
21
  exports.TRPCError = TRPCError.TRPCError;
21
22
  exports.getTRPCErrorFromUnknown = TRPCError.getTRPCErrorFromUnknown;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { createFlatProxy as createTRPCFlatProxy } from './unstable-core-do-not-import/createProxy.mjs';
1
+ export { createFlatProxy as createTRPCFlatProxy, createRecursiveProxy as createTRPCRecursiveProxy } from './unstable-core-do-not-import/createProxy.mjs';
2
2
  export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape.mjs';
3
3
  export { TRPCError, getTRPCErrorFromUnknown } from './unstable-core-do-not-import/error/TRPCError.mjs';
4
4
  export { callProcedure as callTRPCProcedure, lazy as experimental_lazy } from './unstable-core-do-not-import/router.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-rc.768+de6335c47",
3
+ "version": "11.0.0-rc.781+df4d4ede3",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -141,7 +141,7 @@
141
141
  "superstruct": "^2.0.0",
142
142
  "tsx": "^4.0.0",
143
143
  "typescript": "^5.7.2",
144
- "valibot": "1.0.0-rc.0",
144
+ "valibot": "1.0.0-rc.1",
145
145
  "ws": "^8.0.0",
146
146
  "yup": "^1.0.0",
147
147
  "zod": "^3.0.0"
@@ -152,5 +152,5 @@
152
152
  "peerDependencies": {
153
153
  "typescript": ">=5.7.2"
154
154
  },
155
- "gitHead": "de6335c47117e1b513d1cf2ec64376deb903823a"
155
+ "gitHead": "df4d4ede3492c91a0846f683ef2f1d0ffeed3b09"
156
156
  }
@@ -10,6 +10,7 @@ export {
10
10
  getTRPCErrorFromUnknown,
11
11
  transformTRPCResponse,
12
12
  createFlatProxy as createTRPCFlatProxy,
13
+ createRecursiveProxy as createTRPCRecursiveProxy,
13
14
  type inferProcedureInput,
14
15
  type inferProcedureOutput,
15
16
  type inferProcedureBuilderResolverOptions,
@@ -23,6 +24,7 @@ export {
23
24
  type inferTransformedSubscriptionOutput,
24
25
  type AnyProcedure as AnyTRPCProcedure,
25
26
  type AnyRouter as AnyTRPCRouter,
27
+ type AnyRootTypes as AnyTRPCRootTypes,
26
28
  type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction,
27
29
  type CombinedDataTransformer as TRPCCombinedDataTransformer,
28
30
  type ProcedureType as TRPCProcedureType,