@trpc/server 11.0.0-next-beta.178 → 11.0.0-next-beta.191
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.
- package/dist/@trpc-server.d.ts +34 -2
- package/dist/@trpc-server.d.ts.map +1 -1
- package/dist/bundle-analysis.json +13 -3
- package/dist/index.js +4 -0
- package/dist/index.mjs +1 -1
- package/dist/shared.d.ts +26 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +16 -0
- package/dist/shared.mjs +1 -0
- package/package.json +3 -3
- package/src/@trpc-server.ts +45 -0
- package/src/shared.ts +26 -0
package/dist/@trpc-server.d.ts
CHANGED
|
@@ -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, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, type AnyProcedure as AnyTRPCProcedure, type AnyRouter as AnyTRPCRouter, type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction, type CombinedDataTransformer as TRPCCombinedDataTransformer, } from './@trpc-core-unstable-do-not-import-this-please';
|
|
5
|
+
experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, callProcedure as callTRPCProcedure, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, 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 ProcedureRouterRecord as TRPCProcedureRouterRecord, type ProcedureArgs as TRPCProcedureArgs, type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure, } from './@trpc-core-unstable-do-not-import-this-please';
|
|
6
6
|
export type {
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated use `AnyTRPCProcedure` instead
|
|
@@ -19,7 +19,39 @@ AnyMiddlewareFunction,
|
|
|
19
19
|
/**
|
|
20
20
|
* @deprecated use `TRPCCombinedDataTransformer` instead
|
|
21
21
|
*/
|
|
22
|
-
CombinedDataTransformer,
|
|
22
|
+
CombinedDataTransformer,
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated This is a utility type will be removed in v12
|
|
25
|
+
*/
|
|
26
|
+
Dict,
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated This is a utility type will be removed in v12
|
|
29
|
+
*/
|
|
30
|
+
DeepPartial,
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated use `TRPCProcedureType` instead
|
|
33
|
+
*/
|
|
34
|
+
ProcedureType,
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use `AnyTRPCMutationProcedure` instead
|
|
37
|
+
*/
|
|
38
|
+
AnyMutationProcedure,
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated use `AnyTRPCQueryProcedure` instead
|
|
41
|
+
*/
|
|
42
|
+
AnyQueryProcedure,
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated use `TRPCProcedureRouterRecord` instead
|
|
45
|
+
*/
|
|
46
|
+
ProcedureRouterRecord,
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated use `TRPCProcedureArgs` instead
|
|
49
|
+
*/
|
|
50
|
+
ProcedureArgs,
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated use `AnyTRPCSubscriptionProcedure` instead
|
|
53
|
+
*/
|
|
54
|
+
AnySubscriptionProcedure, } from '@trpc/core';
|
|
23
55
|
export {
|
|
24
56
|
/**
|
|
25
57
|
* @deprecated use `getTRPCErrorShape` instead
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"@trpc-server.d.ts","sourceRoot":"","sources":["../src/@trpc-server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS;AACT;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,QAAQ,
|
|
1
|
+
{"version":3,"file":"@trpc-server.d.ts","sourceRoot":"","sources":["../src/@trpc-server.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,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,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,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,wBAAwB,IAAI,4BAA4B,GAC9D,MAAM,iDAAiD,CAAC;AAEzD,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,qBAAqB;AACrB;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAEpB,OAAO;AACL;;GAEG;AACH,aAAa;AAEb;;GAEG;AACH,aAAa,GACd,MAAM,YAAY,CAAC;AAEpB;;;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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bundleSize": 54490,
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction":
|
|
3
|
+
"bundleOrigSize": 76109,
|
|
4
|
+
"bundleReduction": 28.41,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/adapters/ws.ts",
|
|
@@ -400,7 +400,17 @@
|
|
|
400
400
|
"dependents": [],
|
|
401
401
|
"percent": 0,
|
|
402
402
|
"reduction": 100
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "/src/shared.ts",
|
|
406
|
+
"size": 0,
|
|
407
|
+
"origSize": 653,
|
|
408
|
+
"renderedExports": [],
|
|
409
|
+
"removedExports": [],
|
|
410
|
+
"dependents": [],
|
|
411
|
+
"percent": 0,
|
|
412
|
+
"reduction": 100
|
|
403
413
|
}
|
|
404
414
|
],
|
|
405
|
-
"moduleCount":
|
|
415
|
+
"moduleCount": 29
|
|
406
416
|
}
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,10 @@ Object.defineProperty(exports, 'callTRPCProcedure', {
|
|
|
18
18
|
enumerable: true,
|
|
19
19
|
get: function () { return core.callProcedure; }
|
|
20
20
|
});
|
|
21
|
+
Object.defineProperty(exports, 'createTRPCFlatProxy', {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return core.createFlatProxy; }
|
|
24
|
+
});
|
|
21
25
|
Object.defineProperty(exports, 'experimental_standaloneMiddleware', {
|
|
22
26
|
enumerable: true,
|
|
23
27
|
get: function () { return core.experimental_standaloneMiddleware; }
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TRPCError, callProcedure, callProcedure as callTRPCProcedure, experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, getErrorShape, getTRPCErrorFromUnknown, initTRPC, transformTRPCResponse } from '@trpc/core';
|
|
1
|
+
export { TRPCError, callProcedure, callProcedure as callTRPCProcedure, createFlatProxy as createTRPCFlatProxy, experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, getErrorShape, getTRPCErrorFromUnknown, initTRPC, transformTRPCResponse } from '@trpc/core';
|
package/dist/shared.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
4
|
+
*/
|
|
5
|
+
type inferProcedureInput,
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
8
|
+
*/
|
|
9
|
+
type inferProcedureOutput,
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
12
|
+
*/
|
|
13
|
+
type inferTransformedProcedureOutput,
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
16
|
+
*/
|
|
17
|
+
type inferTransformedSubscriptionOutput,
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
20
|
+
*/
|
|
21
|
+
getErrorShape,
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated `import { createTRPCFlatProxy } from '@trpc/server'` instead
|
|
24
|
+
*/
|
|
25
|
+
createTRPCFlatProxy as createFlatProxy, } from './@trpc-server';
|
|
26
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO;AACL;;GAEG;AACH,KAAK,mBAAmB;AACxB;;GAEG;AACH,KAAK,oBAAoB;AACzB;;GAEG;AACH,KAAK,+BAA+B;AACpC;;GAEG;AACH,KAAK,kCAAkC;AACvC;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,mBAAmB,IAAI,eAAe,GACvC,MAAM,gBAAgB,CAAC"}
|
package/dist/shared.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var core = require('@trpc/core');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, 'createFlatProxy', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return core.createFlatProxy; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, 'getErrorShape', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return core.getErrorShape; }
|
|
16
|
+
});
|
package/dist/shared.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createFlatProxy, getErrorShape } from '@trpc/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-next-beta.
|
|
3
|
+
"version": "11.0.0-next-beta.191+65d8afafc",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"access": "public"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@trpc/core": "11.0.0-next-beta.
|
|
118
|
+
"@trpc/core": "11.0.0-next-beta.191+65d8afafc"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@fastify/websocket": "^7.1.2",
|
|
@@ -154,5 +154,5 @@
|
|
|
154
154
|
"funding": [
|
|
155
155
|
"https://trpc.io/sponsor"
|
|
156
156
|
],
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "65d8afafc501d85c2cd4cb5949128e74f57bd5d3"
|
|
158
158
|
}
|
package/src/@trpc-server.ts
CHANGED
|
@@ -6,19 +6,29 @@ export {
|
|
|
6
6
|
experimental_standaloneMiddleware,
|
|
7
7
|
experimental_standaloneMiddleware as experimental_trpcMiddleware,
|
|
8
8
|
initTRPC,
|
|
9
|
+
// --- FIXME a bunch of these exports are only useful for plugins - move them somewhere else? ----
|
|
9
10
|
callProcedure as callTRPCProcedure,
|
|
10
11
|
getTRPCErrorFromUnknown,
|
|
11
12
|
transformTRPCResponse,
|
|
13
|
+
createFlatProxy as createTRPCFlatProxy,
|
|
12
14
|
type inferProcedureInput,
|
|
13
15
|
type inferProcedureOutput,
|
|
14
16
|
type inferRouterError,
|
|
15
17
|
type inferRouterInputs,
|
|
16
18
|
type inferRouterOutputs,
|
|
17
19
|
type inferRouterContext,
|
|
20
|
+
type inferTransformedProcedureOutput,
|
|
21
|
+
type inferTransformedSubscriptionOutput,
|
|
18
22
|
type AnyProcedure as AnyTRPCProcedure,
|
|
19
23
|
type AnyRouter as AnyTRPCRouter,
|
|
20
24
|
type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction,
|
|
21
25
|
type CombinedDataTransformer as TRPCCombinedDataTransformer,
|
|
26
|
+
type ProcedureType as TRPCProcedureType,
|
|
27
|
+
type AnyMutationProcedure as AnyTRPCMutationProcedure,
|
|
28
|
+
type AnyQueryProcedure as AnyTRPCQueryProcedure,
|
|
29
|
+
type ProcedureRouterRecord as TRPCProcedureRouterRecord,
|
|
30
|
+
type ProcedureArgs as TRPCProcedureArgs,
|
|
31
|
+
type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure,
|
|
22
32
|
} from './@trpc-core-unstable-do-not-import-this-please';
|
|
23
33
|
|
|
24
34
|
export type {
|
|
@@ -38,6 +48,41 @@ export type {
|
|
|
38
48
|
* @deprecated use `TRPCCombinedDataTransformer` instead
|
|
39
49
|
*/
|
|
40
50
|
CombinedDataTransformer,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated This is a utility type will be removed in v12
|
|
54
|
+
*/
|
|
55
|
+
Dict,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated This is a utility type will be removed in v12
|
|
59
|
+
*/
|
|
60
|
+
DeepPartial,
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated use `TRPCProcedureType` instead
|
|
63
|
+
*/
|
|
64
|
+
ProcedureType,
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated use `AnyTRPCMutationProcedure` instead
|
|
67
|
+
*/
|
|
68
|
+
AnyMutationProcedure,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated use `AnyTRPCQueryProcedure` instead
|
|
72
|
+
*/
|
|
73
|
+
AnyQueryProcedure,
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated use `TRPCProcedureRouterRecord` instead
|
|
76
|
+
*/
|
|
77
|
+
ProcedureRouterRecord,
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated use `TRPCProcedureArgs` instead
|
|
80
|
+
*/
|
|
81
|
+
ProcedureArgs,
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use `AnyTRPCSubscriptionProcedure` instead
|
|
84
|
+
*/
|
|
85
|
+
AnySubscriptionProcedure,
|
|
41
86
|
} from '@trpc/core';
|
|
42
87
|
|
|
43
88
|
export {
|
package/src/shared.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
4
|
+
*/
|
|
5
|
+
type inferProcedureInput,
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
8
|
+
*/
|
|
9
|
+
type inferProcedureOutput,
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
12
|
+
*/
|
|
13
|
+
type inferTransformedProcedureOutput,
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
16
|
+
*/
|
|
17
|
+
type inferTransformedSubscriptionOutput,
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated `import from '@trpc/server'` instead
|
|
20
|
+
*/
|
|
21
|
+
getErrorShape,
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated `import { createTRPCFlatProxy } from '@trpc/server'` instead
|
|
24
|
+
*/
|
|
25
|
+
createTRPCFlatProxy as createFlatProxy,
|
|
26
|
+
} from './@trpc-server';
|