@trpc/server 11.0.0-rc.747 → 11.0.0-rc.748
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/index.d.ts +1 -1
- package/dist/@trpc/server/index.d.ts.map +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -1
- package/dist/adapters/ws.js +2 -2
- package/dist/adapters/ws.mjs +2 -2
- package/dist/bundle-analysis.json +92 -89
- package/dist/index.js +4 -3
- package/dist/index.mjs +1 -1
- package/dist/unstable-core-do-not-import/http/contentType.d.ts +2 -2
- package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/contentType.js +12 -10
- package/dist/unstable-core-do-not-import/http/contentType.mjs +12 -10
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +2 -2
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +2 -2
- package/dist/unstable-core-do-not-import/procedureBuilder.js +1 -0
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +1 -0
- package/dist/unstable-core-do-not-import/router.d.ts +20 -3
- package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/router.js +102 -6
- package/dist/unstable-core-do-not-import/router.mjs +102 -8
- package/dist/unstable-core-do-not-import.js +2 -0
- package/dist/unstable-core-do-not-import.mjs +1 -1
- package/package.json +2 -2
- package/src/@trpc/server/index.ts +1 -0
- package/src/adapters/ws.ts +1 -1
- package/src/unstable-core-do-not-import/http/contentType.ts +48 -42
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +2 -2
- package/src/unstable-core-do-not-import/procedureBuilder.ts +1 -0
- package/src/unstable-core-do-not-import/router.ts +156 -14
|
@@ -6,7 +6,7 @@ experimental_standaloneMiddleware, experimental_standaloneMiddleware as experime
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated use `tracked(id, data)` instead
|
|
8
8
|
*/
|
|
9
|
-
sse, tracked, type TrackedEnvelope, isTrackedEnvelope, } from '../../unstable-core-do-not-import';
|
|
9
|
+
sse, tracked, type TrackedEnvelope, isTrackedEnvelope, lazy as experimental_lazy, } from '../../unstable-core-do-not-import';
|
|
10
10
|
export type {
|
|
11
11
|
/**
|
|
12
12
|
* @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,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,
|
|
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,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,GAC1B,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"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var getErrorShape = require('../../unstable-core-do-not-import/error/getErrorShape.js');
|
|
4
4
|
var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
|
|
5
|
+
var transformer = require('../../unstable-core-do-not-import/transformer.js');
|
|
5
6
|
var utils = require('../../unstable-core-do-not-import/utils.js');
|
|
6
7
|
var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
|
|
7
8
|
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
8
|
-
var transformer = require('../../unstable-core-do-not-import/transformer.js');
|
|
9
9
|
require('../../vendor/unpromise/unpromise.js');
|
|
10
10
|
require('../../unstable-core-do-not-import/stream/utils/disposable.js');
|
|
11
11
|
var incomingMessageToRequest = require('./incomingMessageToRequest.js');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getErrorShape } from '../../unstable-core-do-not-import/error/getErrorShape.mjs';
|
|
2
2
|
import { getTRPCErrorFromUnknown } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
3
|
+
import { transformTRPCResponse } from '../../unstable-core-do-not-import/transformer.mjs';
|
|
3
4
|
import { run } from '../../unstable-core-do-not-import/utils.mjs';
|
|
4
5
|
import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
5
6
|
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
6
|
-
import { transformTRPCResponse } from '../../unstable-core-do-not-import/transformer.mjs';
|
|
7
7
|
import '../../vendor/unpromise/unpromise.mjs';
|
|
8
8
|
import '../../unstable-core-do-not-import/stream/utils/disposable.mjs';
|
|
9
9
|
import { incomingMessageToRequest } from './incomingMessageToRequest.mjs';
|
package/dist/adapters/ws.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var getErrorShape = require('../unstable-core-do-not-import/error/getErrorShape.js');
|
|
4
4
|
var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
5
|
+
var router = require('../unstable-core-do-not-import/router.js');
|
|
5
6
|
var utils = require('../unstable-core-do-not-import/utils.js');
|
|
6
7
|
var parseConnectionParams = require('../unstable-core-do-not-import/http/parseConnectionParams.js');
|
|
7
8
|
var parseTRPCMessage = require('../unstable-core-do-not-import/rpc/parseTRPCMessage.js');
|
|
@@ -12,7 +13,6 @@ var unpromise = require('../vendor/unpromise/unpromise.js');
|
|
|
12
13
|
var tracked = require('../unstable-core-do-not-import/stream/tracked.js');
|
|
13
14
|
var transformer = require('../unstable-core-do-not-import/transformer.js');
|
|
14
15
|
require('../unstable-core-do-not-import/rootConfig.js');
|
|
15
|
-
var router = require('../unstable-core-do-not-import/router.js');
|
|
16
16
|
var incomingMessageToRequest = require('./node-http/incomingMessageToRequest.js');
|
|
17
17
|
|
|
18
18
|
function _ts_add_disposable_resource(env, value, async) {
|
|
@@ -180,7 +180,7 @@ function getWSConnectionHandler(opts) {
|
|
|
180
180
|
await ctxPromise; // asserts context has been set
|
|
181
181
|
const abortController = new AbortController();
|
|
182
182
|
const result = await router.callProcedure({
|
|
183
|
-
|
|
183
|
+
_def: router$1._def,
|
|
184
184
|
path,
|
|
185
185
|
getRawInput: async ()=>input,
|
|
186
186
|
ctx,
|
package/dist/adapters/ws.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getErrorShape } from '../unstable-core-do-not-import/error/getErrorShape.mjs';
|
|
2
2
|
import { TRPCError, getTRPCErrorFromUnknown } from '../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
3
|
+
import { callProcedure } from '../unstable-core-do-not-import/router.mjs';
|
|
3
4
|
import { run, isObject, isAsyncIterable } from '../unstable-core-do-not-import/utils.mjs';
|
|
4
5
|
import { parseConnectionParamsFromUnknown } from '../unstable-core-do-not-import/http/parseConnectionParams.mjs';
|
|
5
6
|
import { parseTRPCMessage } from '../unstable-core-do-not-import/rpc/parseTRPCMessage.mjs';
|
|
@@ -10,7 +11,6 @@ import { Unpromise } from '../vendor/unpromise/unpromise.mjs';
|
|
|
10
11
|
import { isTrackedEnvelope } from '../unstable-core-do-not-import/stream/tracked.mjs';
|
|
11
12
|
import { transformTRPCResponse } from '../unstable-core-do-not-import/transformer.mjs';
|
|
12
13
|
import '../unstable-core-do-not-import/rootConfig.mjs';
|
|
13
|
-
import { callProcedure } from '../unstable-core-do-not-import/router.mjs';
|
|
14
14
|
import { createURL } from './node-http/incomingMessageToRequest.mjs';
|
|
15
15
|
|
|
16
16
|
function _ts_add_disposable_resource(env, value, async) {
|
|
@@ -178,7 +178,7 @@ function getWSConnectionHandler(opts) {
|
|
|
178
178
|
await ctxPromise; // asserts context has been set
|
|
179
179
|
const abortController = new AbortController();
|
|
180
180
|
const result = await callProcedure({
|
|
181
|
-
|
|
181
|
+
_def: router._def,
|
|
182
182
|
path,
|
|
183
183
|
getRawInput: async ()=>input,
|
|
184
184
|
ctx,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 13.
|
|
2
|
+
"bundleSize": 198708,
|
|
3
|
+
"bundleOrigSize": 230376,
|
|
4
|
+
"bundleReduction": 13.75,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
8
|
-
"size":
|
|
9
|
-
"origSize":
|
|
8
|
+
"size": 21089,
|
|
9
|
+
"origSize": 19447,
|
|
10
10
|
"renderedExports": [
|
|
11
11
|
"resolveResponse"
|
|
12
12
|
],
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/unstable-core-do-not-import.ts"
|
|
16
16
|
],
|
|
17
|
-
"percent": 10.
|
|
17
|
+
"percent": 10.61,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"id": "/src/adapters/ws.ts",
|
|
22
|
-
"size":
|
|
23
|
-
"origSize":
|
|
22
|
+
"size": 20151,
|
|
23
|
+
"origSize": 15938,
|
|
24
24
|
"renderedExports": [
|
|
25
25
|
"getWSConnectionHandler",
|
|
26
26
|
"handleKeepAlive",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependents": [
|
|
31
31
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
32
32
|
],
|
|
33
|
-
"percent": 10.
|
|
33
|
+
"percent": 10.14,
|
|
34
34
|
"reduction": 0
|
|
35
35
|
},
|
|
36
36
|
{
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"/src/unstable-core-do-not-import.ts",
|
|
48
48
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
49
49
|
],
|
|
50
|
-
"percent": 10.
|
|
50
|
+
"percent": 10.04,
|
|
51
51
|
"reduction": 0
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"/src/unstable-core-do-not-import.ts",
|
|
65
65
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
66
66
|
],
|
|
67
|
-
"percent": 6.
|
|
67
|
+
"percent": 6.35,
|
|
68
68
|
"reduction": 0
|
|
69
69
|
},
|
|
70
70
|
{
|
|
@@ -77,9 +77,30 @@
|
|
|
77
77
|
],
|
|
78
78
|
"removedExports": [],
|
|
79
79
|
"dependents": [],
|
|
80
|
-
"percent": 6.
|
|
80
|
+
"percent": 6.12,
|
|
81
81
|
"reduction": 11.62
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
85
|
+
"size": 10152,
|
|
86
|
+
"origSize": 14423,
|
|
87
|
+
"renderedExports": [
|
|
88
|
+
"lazy",
|
|
89
|
+
"createRouterFactory",
|
|
90
|
+
"getProcedureAtPath",
|
|
91
|
+
"callProcedure",
|
|
92
|
+
"createCallerFactory",
|
|
93
|
+
"mergeRouters"
|
|
94
|
+
],
|
|
95
|
+
"removedExports": [],
|
|
96
|
+
"dependents": [
|
|
97
|
+
"/src/unstable-core-do-not-import.ts",
|
|
98
|
+
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
99
|
+
"/src/unstable-core-do-not-import/http/contentType.ts"
|
|
100
|
+
],
|
|
101
|
+
"percent": 5.11,
|
|
102
|
+
"reduction": 29.61
|
|
103
|
+
},
|
|
83
104
|
{
|
|
84
105
|
"id": "/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts",
|
|
85
106
|
"size": 8124,
|
|
@@ -91,13 +112,13 @@
|
|
|
91
112
|
"dependents": [
|
|
92
113
|
"/src/unstable-core-do-not-import/stream/jsonl.ts"
|
|
93
114
|
],
|
|
94
|
-
"percent": 4.
|
|
115
|
+
"percent": 4.09,
|
|
95
116
|
"reduction": 0
|
|
96
117
|
},
|
|
97
118
|
{
|
|
98
119
|
"id": "/src/unstable-core-do-not-import/http/contentType.ts",
|
|
99
|
-
"size":
|
|
100
|
-
"origSize":
|
|
120
|
+
"size": 7889,
|
|
121
|
+
"origSize": 7955,
|
|
101
122
|
"renderedExports": [
|
|
102
123
|
"getRequestInfo"
|
|
103
124
|
],
|
|
@@ -106,26 +127,8 @@
|
|
|
106
127
|
"/src/unstable-core-do-not-import.ts",
|
|
107
128
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
108
129
|
],
|
|
109
|
-
"percent": 3.
|
|
110
|
-
"reduction": 0
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
114
|
-
"size": 6448,
|
|
115
|
-
"origSize": 10642,
|
|
116
|
-
"renderedExports": [
|
|
117
|
-
"createRouterFactory",
|
|
118
|
-
"callProcedure",
|
|
119
|
-
"createCallerFactory",
|
|
120
|
-
"mergeRouters"
|
|
121
|
-
],
|
|
122
|
-
"removedExports": [],
|
|
123
|
-
"dependents": [
|
|
124
|
-
"/src/unstable-core-do-not-import.ts",
|
|
125
|
-
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
126
|
-
],
|
|
127
|
-
"percent": 3.31,
|
|
128
|
-
"reduction": 39.41
|
|
130
|
+
"percent": 3.97,
|
|
131
|
+
"reduction": 0.83
|
|
129
132
|
},
|
|
130
133
|
{
|
|
131
134
|
"id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
|
|
@@ -144,13 +147,13 @@
|
|
|
144
147
|
"/src/unstable-core-do-not-import/stream/sse.ts",
|
|
145
148
|
"/src/unstable-core-do-not-import/stream/utils/withPing.ts"
|
|
146
149
|
],
|
|
147
|
-
"percent": 2.
|
|
150
|
+
"percent": 2.93,
|
|
148
151
|
"reduction": 0
|
|
149
152
|
},
|
|
150
153
|
{
|
|
151
154
|
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
152
|
-
"size":
|
|
153
|
-
"origSize":
|
|
155
|
+
"size": 5825,
|
|
156
|
+
"origSize": 16584,
|
|
154
157
|
"renderedExports": [
|
|
155
158
|
"createBuilder"
|
|
156
159
|
],
|
|
@@ -159,8 +162,8 @@
|
|
|
159
162
|
"/src/unstable-core-do-not-import.ts",
|
|
160
163
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
161
164
|
],
|
|
162
|
-
"percent": 2.
|
|
163
|
-
"reduction":
|
|
165
|
+
"percent": 2.93,
|
|
166
|
+
"reduction": 64.88
|
|
164
167
|
},
|
|
165
168
|
{
|
|
166
169
|
"id": "/src/adapters/aws-lambda/getPlanner.ts",
|
|
@@ -173,7 +176,7 @@
|
|
|
173
176
|
"dependents": [
|
|
174
177
|
"/src/adapters/aws-lambda/index.ts"
|
|
175
178
|
],
|
|
176
|
-
"percent": 2.
|
|
179
|
+
"percent": 2.72,
|
|
177
180
|
"reduction": 11.51
|
|
178
181
|
},
|
|
179
182
|
{
|
|
@@ -193,7 +196,7 @@
|
|
|
193
196
|
"/src/observable/operators.ts",
|
|
194
197
|
"/src/observable/behaviorSubject.ts"
|
|
195
198
|
],
|
|
196
|
-
"percent": 2.
|
|
199
|
+
"percent": 2.43,
|
|
197
200
|
"reduction": 0
|
|
198
201
|
},
|
|
199
202
|
{
|
|
@@ -209,7 +212,7 @@
|
|
|
209
212
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
210
213
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
211
214
|
],
|
|
212
|
-
"percent": 2.
|
|
215
|
+
"percent": 2.23,
|
|
213
216
|
"reduction": 0
|
|
214
217
|
},
|
|
215
218
|
{
|
|
@@ -225,7 +228,7 @@
|
|
|
225
228
|
"/src/adapters/node-http/index.ts",
|
|
226
229
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
227
230
|
],
|
|
228
|
-
"percent": 2.
|
|
231
|
+
"percent": 2.04,
|
|
229
232
|
"reduction": 6.82
|
|
230
233
|
},
|
|
231
234
|
{
|
|
@@ -243,7 +246,7 @@
|
|
|
243
246
|
"dependents": [
|
|
244
247
|
"/src/observable/index.ts"
|
|
245
248
|
],
|
|
246
|
-
"percent":
|
|
249
|
+
"percent": 1.97,
|
|
247
250
|
"reduction": 1.66
|
|
248
251
|
},
|
|
249
252
|
{
|
|
@@ -257,7 +260,7 @@
|
|
|
257
260
|
"dependents": [
|
|
258
261
|
"/src/adapters/next-app-dir.ts"
|
|
259
262
|
],
|
|
260
|
-
"percent": 1.
|
|
263
|
+
"percent": 1.63,
|
|
261
264
|
"reduction": 22.52
|
|
262
265
|
},
|
|
263
266
|
{
|
|
@@ -272,7 +275,7 @@
|
|
|
272
275
|
"dependents": [
|
|
273
276
|
"/src/adapters/node-http/index.ts"
|
|
274
277
|
],
|
|
275
|
-
"percent": 1.
|
|
278
|
+
"percent": 1.38,
|
|
276
279
|
"reduction": 16.3
|
|
277
280
|
},
|
|
278
281
|
{
|
|
@@ -289,10 +292,10 @@
|
|
|
289
292
|
"dependents": [
|
|
290
293
|
"/src/unstable-core-do-not-import.ts",
|
|
291
294
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
292
|
-
"/src/unstable-core-do-not-import/
|
|
293
|
-
"/src/unstable-core-do-not-import/
|
|
295
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
296
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
294
297
|
],
|
|
295
|
-
"percent": 1.
|
|
298
|
+
"percent": 1.38,
|
|
296
299
|
"reduction": 45.98
|
|
297
300
|
},
|
|
298
301
|
{
|
|
@@ -306,7 +309,7 @@
|
|
|
306
309
|
"dependents": [
|
|
307
310
|
"/src/unstable-core-do-not-import.ts"
|
|
308
311
|
],
|
|
309
|
-
"percent": 1.
|
|
312
|
+
"percent": 1.34,
|
|
310
313
|
"reduction": 40.81
|
|
311
314
|
},
|
|
312
315
|
{
|
|
@@ -326,7 +329,7 @@
|
|
|
326
329
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
327
330
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
328
331
|
],
|
|
329
|
-
"percent": 1.
|
|
332
|
+
"percent": 1.32,
|
|
330
333
|
"reduction": 55.79
|
|
331
334
|
},
|
|
332
335
|
{
|
|
@@ -353,18 +356,18 @@
|
|
|
353
356
|
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
354
357
|
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
355
358
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
359
|
+
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
356
360
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
361
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
357
362
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
358
363
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
359
|
-
"/src/unstable-core-do-not-import/router.ts",
|
|
360
|
-
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
361
364
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
362
365
|
"/src/unstable-core-do-not-import/http/isAbortError.ts",
|
|
363
366
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
364
367
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
365
368
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
366
369
|
],
|
|
367
|
-
"percent": 1.
|
|
370
|
+
"percent": 1.24,
|
|
368
371
|
"reduction": 17.51
|
|
369
372
|
},
|
|
370
373
|
{
|
|
@@ -381,13 +384,13 @@
|
|
|
381
384
|
"/src/unstable-core-do-not-import.ts",
|
|
382
385
|
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
383
386
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
384
|
-
"/src/unstable-core-do-not-import/middleware.ts",
|
|
385
387
|
"/src/unstable-core-do-not-import/router.ts",
|
|
388
|
+
"/src/unstable-core-do-not-import/middleware.ts",
|
|
386
389
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
387
390
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
388
391
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
389
392
|
],
|
|
390
|
-
"percent": 1.
|
|
393
|
+
"percent": 1.19,
|
|
391
394
|
"reduction": 0
|
|
392
395
|
},
|
|
393
396
|
{
|
|
@@ -403,7 +406,7 @@
|
|
|
403
406
|
"/src/unstable-core-do-not-import.ts",
|
|
404
407
|
"/src/unstable-core-do-not-import/router.ts"
|
|
405
408
|
],
|
|
406
|
-
"percent": 1.
|
|
409
|
+
"percent": 1.17,
|
|
407
410
|
"reduction": 0
|
|
408
411
|
},
|
|
409
412
|
{
|
|
@@ -417,7 +420,7 @@
|
|
|
417
420
|
"dependents": [
|
|
418
421
|
"/src/adapters/fetch/index.ts"
|
|
419
422
|
],
|
|
420
|
-
"percent": 1.
|
|
423
|
+
"percent": 1.13,
|
|
421
424
|
"reduction": 2.48
|
|
422
425
|
},
|
|
423
426
|
{
|
|
@@ -431,7 +434,7 @@
|
|
|
431
434
|
"dependents": [
|
|
432
435
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
433
436
|
],
|
|
434
|
-
"percent": 1.
|
|
437
|
+
"percent": 1.07,
|
|
435
438
|
"reduction": 5.4
|
|
436
439
|
},
|
|
437
440
|
{
|
|
@@ -452,7 +455,7 @@
|
|
|
452
455
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
453
456
|
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
|
|
454
457
|
],
|
|
455
|
-
"percent": 1.
|
|
458
|
+
"percent": 1.05,
|
|
456
459
|
"reduction": 18.54
|
|
457
460
|
},
|
|
458
461
|
{
|
|
@@ -467,7 +470,7 @@
|
|
|
467
470
|
"dependents": [
|
|
468
471
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
469
472
|
],
|
|
470
|
-
"percent": 1.
|
|
473
|
+
"percent": 1.02,
|
|
471
474
|
"reduction": 3.71
|
|
472
475
|
},
|
|
473
476
|
{
|
|
@@ -481,7 +484,7 @@
|
|
|
481
484
|
"dependents": [
|
|
482
485
|
"/src/adapters/fastify/index.ts"
|
|
483
486
|
],
|
|
484
|
-
"percent": 0.
|
|
487
|
+
"percent": 0.89,
|
|
485
488
|
"reduction": 30.2
|
|
486
489
|
},
|
|
487
490
|
{
|
|
@@ -501,7 +504,7 @@
|
|
|
501
504
|
"/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts",
|
|
502
505
|
"/src/unstable-core-do-not-import/stream/utils/timerResource.ts"
|
|
503
506
|
],
|
|
504
|
-
"percent": 0.
|
|
507
|
+
"percent": 0.88,
|
|
505
508
|
"reduction": 1.46
|
|
506
509
|
},
|
|
507
510
|
{
|
|
@@ -513,7 +516,7 @@
|
|
|
513
516
|
],
|
|
514
517
|
"removedExports": [],
|
|
515
518
|
"dependents": [],
|
|
516
|
-
"percent": 0.
|
|
519
|
+
"percent": 0.85,
|
|
517
520
|
"reduction": 19.62
|
|
518
521
|
},
|
|
519
522
|
{
|
|
@@ -526,7 +529,7 @@
|
|
|
526
529
|
],
|
|
527
530
|
"removedExports": [],
|
|
528
531
|
"dependents": [],
|
|
529
|
-
"percent": 0.
|
|
532
|
+
"percent": 0.81,
|
|
530
533
|
"reduction": 17.81
|
|
531
534
|
},
|
|
532
535
|
{
|
|
@@ -541,7 +544,7 @@
|
|
|
541
544
|
"/src/unstable-core-do-not-import.ts",
|
|
542
545
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
543
546
|
],
|
|
544
|
-
"percent": 0.
|
|
547
|
+
"percent": 0.81,
|
|
545
548
|
"reduction": 54.01
|
|
546
549
|
},
|
|
547
550
|
{
|
|
@@ -553,7 +556,7 @@
|
|
|
553
556
|
],
|
|
554
557
|
"removedExports": [],
|
|
555
558
|
"dependents": [],
|
|
556
|
-
"percent": 0.
|
|
559
|
+
"percent": 0.67,
|
|
557
560
|
"reduction": 35.1
|
|
558
561
|
},
|
|
559
562
|
{
|
|
@@ -570,7 +573,7 @@
|
|
|
570
573
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
571
574
|
"/src/adapters/next-app-dir/rethrowNextErrors.ts"
|
|
572
575
|
],
|
|
573
|
-
"percent": 0.
|
|
576
|
+
"percent": 0.67,
|
|
574
577
|
"reduction": 0
|
|
575
578
|
},
|
|
576
579
|
{
|
|
@@ -585,7 +588,7 @@
|
|
|
585
588
|
"/src/adapters/fastify/index.ts",
|
|
586
589
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
587
590
|
],
|
|
588
|
-
"percent": 0.
|
|
591
|
+
"percent": 0.58,
|
|
589
592
|
"reduction": 47.55
|
|
590
593
|
},
|
|
591
594
|
{
|
|
@@ -601,7 +604,7 @@
|
|
|
601
604
|
"/src/unstable-core-do-not-import.ts",
|
|
602
605
|
"/src/unstable-core-do-not-import/http/contentType.ts"
|
|
603
606
|
],
|
|
604
|
-
"percent": 0.
|
|
607
|
+
"percent": 0.56,
|
|
605
608
|
"reduction": 15.08
|
|
606
609
|
},
|
|
607
610
|
{
|
|
@@ -615,7 +618,7 @@
|
|
|
615
618
|
"dependents": [
|
|
616
619
|
"/src/unstable-core-do-not-import.ts"
|
|
617
620
|
],
|
|
618
|
-
"percent": 0.
|
|
621
|
+
"percent": 0.53,
|
|
619
622
|
"reduction": 0
|
|
620
623
|
},
|
|
621
624
|
{
|
|
@@ -629,7 +632,7 @@
|
|
|
629
632
|
"dependents": [
|
|
630
633
|
"/src/observable/index.ts"
|
|
631
634
|
],
|
|
632
|
-
"percent": 0.
|
|
635
|
+
"percent": 0.49,
|
|
633
636
|
"reduction": 32.89
|
|
634
637
|
},
|
|
635
638
|
{
|
|
@@ -643,7 +646,7 @@
|
|
|
643
646
|
],
|
|
644
647
|
"removedExports": [],
|
|
645
648
|
"dependents": [],
|
|
646
|
-
"percent": 0.
|
|
649
|
+
"percent": 0.48,
|
|
647
650
|
"reduction": 69.13
|
|
648
651
|
},
|
|
649
652
|
{
|
|
@@ -655,7 +658,7 @@
|
|
|
655
658
|
],
|
|
656
659
|
"removedExports": [],
|
|
657
660
|
"dependents": [],
|
|
658
|
-
"percent": 0.
|
|
661
|
+
"percent": 0.45,
|
|
659
662
|
"reduction": 34
|
|
660
663
|
},
|
|
661
664
|
{
|
|
@@ -672,7 +675,7 @@
|
|
|
672
675
|
"/src/unstable-core-do-not-import.ts",
|
|
673
676
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
674
677
|
],
|
|
675
|
-
"percent": 0.
|
|
678
|
+
"percent": 0.39,
|
|
676
679
|
"reduction": 44.13
|
|
677
680
|
},
|
|
678
681
|
{
|
|
@@ -684,7 +687,7 @@
|
|
|
684
687
|
],
|
|
685
688
|
"removedExports": [],
|
|
686
689
|
"dependents": [],
|
|
687
|
-
"percent": 0.
|
|
690
|
+
"percent": 0.38,
|
|
688
691
|
"reduction": 66.61
|
|
689
692
|
},
|
|
690
693
|
{
|
|
@@ -699,7 +702,7 @@
|
|
|
699
702
|
"/src/unstable-core-do-not-import.ts",
|
|
700
703
|
"/src/unstable-core-do-not-import/parser.ts"
|
|
701
704
|
],
|
|
702
|
-
"percent": 0.
|
|
705
|
+
"percent": 0.35,
|
|
703
706
|
"reduction": 0
|
|
704
707
|
},
|
|
705
708
|
{
|
|
@@ -729,7 +732,7 @@
|
|
|
729
732
|
"/src/unstable-core-do-not-import.ts",
|
|
730
733
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
731
734
|
],
|
|
732
|
-
"percent": 0.
|
|
735
|
+
"percent": 0.31,
|
|
733
736
|
"reduction": 43.85
|
|
734
737
|
},
|
|
735
738
|
{
|
|
@@ -761,7 +764,7 @@
|
|
|
761
764
|
"/src/unstable-core-do-not-import.ts",
|
|
762
765
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
763
766
|
],
|
|
764
|
-
"percent": 0.
|
|
767
|
+
"percent": 0.17,
|
|
765
768
|
"reduction": 89.66
|
|
766
769
|
},
|
|
767
770
|
{
|
|
@@ -848,8 +851,8 @@
|
|
|
848
851
|
"removedExports": [],
|
|
849
852
|
"dependents": [
|
|
850
853
|
"/src/unstable-core-do-not-import.ts",
|
|
851
|
-
"/src/unstable-core-do-not-import/
|
|
852
|
-
"/src/unstable-core-do-not-import/
|
|
854
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
855
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
853
856
|
],
|
|
854
857
|
"percent": 0.03,
|
|
855
858
|
"reduction": 93.9
|
|
@@ -867,9 +870,9 @@
|
|
|
867
870
|
"reduction": 100
|
|
868
871
|
},
|
|
869
872
|
{
|
|
870
|
-
"id": "/src/
|
|
873
|
+
"id": "/src/rpc.ts",
|
|
871
874
|
"size": 0,
|
|
872
|
-
"origSize":
|
|
875
|
+
"origSize": 36,
|
|
873
876
|
"renderedExports": [],
|
|
874
877
|
"removedExports": [],
|
|
875
878
|
"dependents": [],
|
|
@@ -877,9 +880,9 @@
|
|
|
877
880
|
"reduction": 100
|
|
878
881
|
},
|
|
879
882
|
{
|
|
880
|
-
"id": "/src/
|
|
883
|
+
"id": "/src/index.ts",
|
|
881
884
|
"size": 0,
|
|
882
|
-
"origSize":
|
|
885
|
+
"origSize": 32,
|
|
883
886
|
"renderedExports": [],
|
|
884
887
|
"removedExports": [],
|
|
885
888
|
"dependents": [],
|
|
@@ -905,10 +908,10 @@
|
|
|
905
908
|
"dependents": [
|
|
906
909
|
"/src/adapters/next.ts",
|
|
907
910
|
"/src/adapters/express.ts",
|
|
908
|
-
"/src/adapters/ws.ts",
|
|
909
911
|
"/src/adapters/standalone.ts",
|
|
910
|
-
"/src/adapters/
|
|
912
|
+
"/src/adapters/ws.ts",
|
|
911
913
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
914
|
+
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
912
915
|
"/src/adapters/node-http/writeResponse.ts"
|
|
913
916
|
],
|
|
914
917
|
"percent": 0,
|
|
@@ -965,8 +968,8 @@
|
|
|
965
968
|
"dependents": [
|
|
966
969
|
"/src/adapters/next.ts",
|
|
967
970
|
"/src/adapters/express.ts",
|
|
968
|
-
"/src/adapters/ws.ts",
|
|
969
971
|
"/src/adapters/standalone.ts",
|
|
972
|
+
"/src/adapters/ws.ts",
|
|
970
973
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
971
974
|
],
|
|
972
975
|
"percent": 0,
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var createProxy = require('./unstable-core-do-not-import/createProxy.js');
|
|
4
4
|
var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.js');
|
|
5
5
|
var TRPCError = require('./unstable-core-do-not-import/error/TRPCError.js');
|
|
6
|
+
var router = require('./unstable-core-do-not-import/router.js');
|
|
6
7
|
require('./vendor/unpromise/unpromise.js');
|
|
7
8
|
require('./unstable-core-do-not-import/stream/utils/disposable.js');
|
|
8
9
|
var tracked = require('./unstable-core-do-not-import/stream/tracked.js');
|
|
@@ -11,7 +12,6 @@ var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
|
|
|
11
12
|
var middleware = require('./unstable-core-do-not-import/middleware.js');
|
|
12
13
|
var error = require('./vendor/standard-schema-v1/error.js');
|
|
13
14
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
14
|
-
var router = require('./unstable-core-do-not-import/router.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -19,6 +19,9 @@ exports.createTRPCFlatProxy = createProxy.createFlatProxy;
|
|
|
19
19
|
exports.getErrorShape = getErrorShape.getErrorShape;
|
|
20
20
|
exports.TRPCError = TRPCError.TRPCError;
|
|
21
21
|
exports.getTRPCErrorFromUnknown = TRPCError.getTRPCErrorFromUnknown;
|
|
22
|
+
exports.callProcedure = router.callProcedure;
|
|
23
|
+
exports.callTRPCProcedure = router.callProcedure;
|
|
24
|
+
exports.experimental_lazy = router.lazy;
|
|
22
25
|
exports.isTrackedEnvelope = tracked.isTrackedEnvelope;
|
|
23
26
|
exports.sse = tracked.sse;
|
|
24
27
|
exports.tracked = tracked.tracked;
|
|
@@ -27,5 +30,3 @@ exports.initTRPC = initTRPC.initTRPC;
|
|
|
27
30
|
exports.experimental_standaloneMiddleware = middleware.experimental_standaloneMiddleware;
|
|
28
31
|
exports.experimental_trpcMiddleware = middleware.experimental_standaloneMiddleware;
|
|
29
32
|
exports.StandardSchemaV1Error = error.StandardSchemaV1Error;
|
|
30
|
-
exports.callProcedure = router.callProcedure;
|
|
31
|
-
exports.callTRPCProcedure = router.callProcedure;
|