@trpc/server 11.0.0-rc.768 → 11.0.0-rc.772
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,KA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AAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IACxE,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -291,9 +291,9 @@
|
|
|
291
291
|
"removedExports": [],
|
|
292
292
|
"dependents": [
|
|
293
293
|
"/src/unstable-core-do-not-import.ts",
|
|
294
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
295
294
|
"/src/unstable-core-do-not-import/router.ts",
|
|
296
|
-
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
295
|
+
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
296
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
297
297
|
],
|
|
298
298
|
"percent": 1.38,
|
|
299
299
|
"reduction": 45.98
|
|
@@ -353,13 +353,13 @@
|
|
|
353
353
|
"removedExports": [],
|
|
354
354
|
"dependents": [
|
|
355
355
|
"/src/unstable-core-do-not-import.ts",
|
|
356
|
-
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
357
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
358
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
359
356
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
360
357
|
"/src/unstable-core-do-not-import/router.ts",
|
|
361
358
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
362
359
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
360
|
+
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
361
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
362
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
363
363
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
364
364
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
365
365
|
"/src/unstable-core-do-not-import/http/abortError.ts",
|
|
@@ -382,10 +382,10 @@
|
|
|
382
382
|
"removedExports": [],
|
|
383
383
|
"dependents": [
|
|
384
384
|
"/src/unstable-core-do-not-import.ts",
|
|
385
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
386
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
387
385
|
"/src/unstable-core-do-not-import/router.ts",
|
|
388
386
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
387
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
388
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
389
389
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
390
390
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
391
391
|
"/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/
|
|
456
|
-
"/src/unstable-core-do-not-import/
|
|
455
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts",
|
|
456
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
457
457
|
],
|
|
458
458
|
"percent": 1.05,
|
|
459
459
|
"reduction": 18.54
|
|
@@ -859,6 +859,16 @@
|
|
|
859
859
|
"percent": 0.03,
|
|
860
860
|
"reduction": 93.9
|
|
861
861
|
},
|
|
862
|
+
{
|
|
863
|
+
"id": "/src/index.ts",
|
|
864
|
+
"size": 0,
|
|
865
|
+
"origSize": 32,
|
|
866
|
+
"renderedExports": [],
|
|
867
|
+
"removedExports": [],
|
|
868
|
+
"dependents": [],
|
|
869
|
+
"percent": 0,
|
|
870
|
+
"reduction": 100
|
|
871
|
+
},
|
|
862
872
|
{
|
|
863
873
|
"id": "/src/http.ts",
|
|
864
874
|
"size": 0,
|
|
@@ -872,9 +882,9 @@
|
|
|
872
882
|
"reduction": 100
|
|
873
883
|
},
|
|
874
884
|
{
|
|
875
|
-
"id": "/src/
|
|
885
|
+
"id": "/src/rpc.ts",
|
|
876
886
|
"size": 0,
|
|
877
|
-
"origSize":
|
|
887
|
+
"origSize": 36,
|
|
878
888
|
"renderedExports": [],
|
|
879
889
|
"removedExports": [],
|
|
880
890
|
"dependents": [],
|
|
@@ -882,9 +892,9 @@
|
|
|
882
892
|
"reduction": 100
|
|
883
893
|
},
|
|
884
894
|
{
|
|
885
|
-
"id": "/src/
|
|
895
|
+
"id": "/src/shared.ts",
|
|
886
896
|
"size": 0,
|
|
887
|
-
"origSize":
|
|
897
|
+
"origSize": 653,
|
|
888
898
|
"renderedExports": [],
|
|
889
899
|
"removedExports": [],
|
|
890
900
|
"dependents": [],
|
|
@@ -900,8 +910,8 @@
|
|
|
900
910
|
"dependents": [
|
|
901
911
|
"/src/adapters/express.ts",
|
|
902
912
|
"/src/adapters/next.ts",
|
|
903
|
-
"/src/adapters/standalone.ts",
|
|
904
913
|
"/src/adapters/ws.ts",
|
|
914
|
+
"/src/adapters/standalone.ts",
|
|
905
915
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
906
916
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
907
917
|
"/src/adapters/node-http/writeResponse.ts"
|
|
@@ -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,
|
|
@@ -970,8 +970,8 @@
|
|
|
970
970
|
"dependents": [
|
|
971
971
|
"/src/adapters/express.ts",
|
|
972
972
|
"/src/adapters/next.ts",
|
|
973
|
-
"/src/adapters/standalone.ts",
|
|
974
973
|
"/src/adapters/ws.ts",
|
|
974
|
+
"/src/adapters/standalone.ts",
|
|
975
975
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
976
976
|
],
|
|
977
977
|
"percent": 0,
|
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.
|
|
3
|
+
"version": "11.0.0-rc.772+6627c5a96",
|
|
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.
|
|
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": "
|
|
155
|
+
"gitHead": "6627c5a965a2081cd28cfad24d6712e985f0ad5f"
|
|
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,
|