@trpc/client 11.0.0-rc.748 → 11.0.0-rc.749
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
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 20.
|
|
2
|
+
"bundleSize": 66219,
|
|
3
|
+
"bundleOrigSize": 83339,
|
|
4
|
+
"bundleReduction": 20.54,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/links/wsLink.ts",
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
],
|
|
14
14
|
"removedExports": [],
|
|
15
15
|
"dependents": [],
|
|
16
|
-
"percent": 27.
|
|
16
|
+
"percent": 27.21,
|
|
17
17
|
"reduction": 10.3
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"id": "/src/links/httpSubscriptionLink.ts",
|
|
21
|
-
"size":
|
|
22
|
-
"origSize":
|
|
21
|
+
"size": 7969,
|
|
22
|
+
"origSize": 7693,
|
|
23
23
|
"renderedExports": [
|
|
24
24
|
"unstable_httpSubscriptionLink"
|
|
25
25
|
],
|
|
26
26
|
"removedExports": [],
|
|
27
27
|
"dependents": [],
|
|
28
|
-
"percent":
|
|
28
|
+
"percent": 12.03,
|
|
29
29
|
"reduction": 0
|
|
30
30
|
},
|
|
31
31
|
{
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"removedExports": [],
|
|
39
39
|
"dependents": [],
|
|
40
|
-
"percent": 9.
|
|
40
|
+
"percent": 9.09,
|
|
41
41
|
"reduction": 4.42
|
|
42
42
|
},
|
|
43
43
|
{
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"removedExports": [],
|
|
51
51
|
"dependents": [],
|
|
52
|
-
"percent": 8.
|
|
52
|
+
"percent": 8.45,
|
|
53
53
|
"reduction": 19.44
|
|
54
54
|
},
|
|
55
55
|
{
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"/src/links/httpBatchLink.ts",
|
|
65
65
|
"/src/links/httpBatchStreamLink.ts"
|
|
66
66
|
],
|
|
67
|
-
"percent": 6.
|
|
67
|
+
"percent": 6.17,
|
|
68
68
|
"reduction": 5.64
|
|
69
69
|
},
|
|
70
70
|
{
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
],
|
|
77
77
|
"removedExports": [],
|
|
78
78
|
"dependents": [],
|
|
79
|
-
"percent": 5.
|
|
79
|
+
"percent": 5.95,
|
|
80
80
|
"reduction": 5.59
|
|
81
81
|
},
|
|
82
82
|
{
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
],
|
|
95
95
|
"removedExports": [],
|
|
96
96
|
"dependents": [
|
|
97
|
-
"/src/links/httpBatchLink.ts",
|
|
98
97
|
"/src/links/httpLink.ts",
|
|
98
|
+
"/src/links/httpBatchLink.ts",
|
|
99
99
|
"/src/links/httpBatchStreamLink.ts",
|
|
100
100
|
"/src/links/httpSubscriptionLink.ts"
|
|
101
101
|
],
|
|
102
|
-
"percent": 5.
|
|
102
|
+
"percent": 5.58,
|
|
103
103
|
"reduction": 37.14
|
|
104
104
|
},
|
|
105
105
|
{
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
],
|
|
112
112
|
"removedExports": [],
|
|
113
113
|
"dependents": [],
|
|
114
|
-
"percent": 4.
|
|
114
|
+
"percent": 4.8,
|
|
115
115
|
"reduction": 14.24
|
|
116
116
|
},
|
|
117
117
|
{
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"/src/createTRPCUntypedClient.ts",
|
|
127
127
|
"/src/createTRPCClient.ts"
|
|
128
128
|
],
|
|
129
|
-
"percent": 4.
|
|
129
|
+
"percent": 4.77,
|
|
130
130
|
"reduction": 31.02
|
|
131
131
|
},
|
|
132
132
|
{
|
|
@@ -139,14 +139,14 @@
|
|
|
139
139
|
"removedExports": [],
|
|
140
140
|
"dependents": [
|
|
141
141
|
"/src/index.ts",
|
|
142
|
-
"/src/links/httpBatchLink.ts",
|
|
143
142
|
"/src/links/httpLink.ts",
|
|
143
|
+
"/src/links/httpBatchLink.ts",
|
|
144
144
|
"/src/links/wsLink.ts",
|
|
145
145
|
"/src/links/httpBatchStreamLink.ts",
|
|
146
146
|
"/src/links/httpSubscriptionLink.ts",
|
|
147
147
|
"/src/internals/TRPCUntypedClient.ts"
|
|
148
148
|
],
|
|
149
|
-
"percent": 4.
|
|
149
|
+
"percent": 4.21,
|
|
150
150
|
"reduction": 21.8
|
|
151
151
|
},
|
|
152
152
|
{
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
],
|
|
159
159
|
"removedExports": [],
|
|
160
160
|
"dependents": [],
|
|
161
|
-
"percent": 3.
|
|
161
|
+
"percent": 3.31,
|
|
162
162
|
"reduction": 18.8
|
|
163
163
|
},
|
|
164
164
|
{
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"/src/links/httpBatchStreamLink.ts",
|
|
176
176
|
"/src/links/httpSubscriptionLink.ts"
|
|
177
177
|
],
|
|
178
|
-
"percent": 1.
|
|
178
|
+
"percent": 1.79,
|
|
179
179
|
"reduction": 3.88
|
|
180
180
|
},
|
|
181
181
|
{
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"dependents": [
|
|
234
234
|
"/src/unstable-internals.ts"
|
|
235
235
|
],
|
|
236
|
-
"percent": 0.
|
|
236
|
+
"percent": 0.85,
|
|
237
237
|
"reduction": 66.71
|
|
238
238
|
},
|
|
239
239
|
{
|
|
@@ -310,26 +310,26 @@
|
|
|
310
310
|
"reduction": 82.58
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
|
-
"id": "/src/
|
|
313
|
+
"id": "/src/index.ts",
|
|
314
314
|
"size": 0,
|
|
315
|
-
"origSize":
|
|
315
|
+
"origSize": 652,
|
|
316
316
|
"renderedExports": [],
|
|
317
317
|
"removedExports": [],
|
|
318
|
-
"dependents": [
|
|
319
|
-
"/src/links/wsLink.ts",
|
|
320
|
-
"/src/links/httpSubscriptionLink.ts",
|
|
321
|
-
"/src/links/internals/httpUtils.ts"
|
|
322
|
-
],
|
|
318
|
+
"dependents": [],
|
|
323
319
|
"percent": 0,
|
|
324
320
|
"reduction": 100
|
|
325
321
|
},
|
|
326
322
|
{
|
|
327
|
-
"id": "/src/
|
|
323
|
+
"id": "/src/unstable-internals.ts",
|
|
328
324
|
"size": 0,
|
|
329
|
-
"origSize":
|
|
325
|
+
"origSize": 90,
|
|
330
326
|
"renderedExports": [],
|
|
331
327
|
"removedExports": [],
|
|
332
|
-
"dependents": [
|
|
328
|
+
"dependents": [
|
|
329
|
+
"/src/links/wsLink.ts",
|
|
330
|
+
"/src/links/httpSubscriptionLink.ts",
|
|
331
|
+
"/src/links/internals/httpUtils.ts"
|
|
332
|
+
],
|
|
333
333
|
"percent": 0,
|
|
334
334
|
"reduction": 100
|
|
335
335
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpSubscriptionLink.d.ts","sourceRoot":"","sources":["../../src/links/httpSubscriptionLink.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AASlD,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAiBnD,KAAK,2BAA2B,CAC9B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,eAAe,CAAC,cAAc,GAAG,OAAO,WAAW,IACtE;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,kBAAkB,CAAC,EACf,eAAe,CAAC,UAAU,CAAC,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AC,CAAC,CAAC;CAC5D,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAC3B,8BAA8B,CAAC;AAajC;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,SAAS,qBAAqB,EACzC,YAAY,SAAS,eAAe,CAAC,cAAc,EAEnD,IAAI,EAAE,2BAA2B,CAC/B,gBAAgB,CAAC,WAAW,CAAC,EAC7B,YAAY,CACb,GACA,QAAQ,CAAC,WAAW,CAAC,CAuKvB"}
|
|
@@ -161,6 +161,11 @@ async function urlWithConnectionParams(opts) {
|
|
|
161
161
|
type: 'stopped'
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
|
+
connectionState.next({
|
|
165
|
+
type: 'state',
|
|
166
|
+
state: 'idle',
|
|
167
|
+
error: null
|
|
168
|
+
});
|
|
164
169
|
observer.complete();
|
|
165
170
|
}).catch((error)=>{
|
|
166
171
|
observer.error(TRPCClientError.TRPCClientError.from(error));
|
|
@@ -159,6 +159,11 @@ async function urlWithConnectionParams(opts) {
|
|
|
159
159
|
type: 'stopped'
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
+
connectionState.next({
|
|
163
|
+
type: 'state',
|
|
164
|
+
state: 'idle',
|
|
165
|
+
error: null
|
|
166
|
+
});
|
|
162
167
|
observer.complete();
|
|
163
168
|
}).catch((error)=>{
|
|
164
169
|
observer.error(TRPCClientError.from(error));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/client",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.749+5da722f36",
|
|
4
4
|
"description": "The tRPC client library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"!**/__tests__"
|
|
78
78
|
],
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@trpc/server": "11.0.0-rc.
|
|
80
|
+
"@trpc/server": "11.0.0-rc.749+5da722f36",
|
|
81
81
|
"typescript": ">=5.7.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@trpc/server": "11.0.0-rc.
|
|
84
|
+
"@trpc/server": "11.0.0-rc.749+5da722f36",
|
|
85
85
|
"@types/isomorphic-fetch": "^0.0.39",
|
|
86
86
|
"@types/node": "^22.9.0",
|
|
87
87
|
"eslint": "^9.13.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"funding": [
|
|
100
100
|
"https://trpc.io/sponsor"
|
|
101
101
|
],
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "5da722f36dbfe6e1031ae16be7b3264532a5af40"
|
|
103
103
|
}
|
|
@@ -229,12 +229,16 @@ export function unstable_httpSubscriptionLink<
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
|
|
233
232
|
observer.next({
|
|
234
233
|
result: {
|
|
235
234
|
type: 'stopped',
|
|
236
235
|
},
|
|
237
236
|
});
|
|
237
|
+
connectionState.next({
|
|
238
|
+
type: 'state',
|
|
239
|
+
state: 'idle',
|
|
240
|
+
error: null,
|
|
241
|
+
});
|
|
238
242
|
observer.complete();
|
|
239
243
|
}).catch((error) => {
|
|
240
244
|
observer.error(TRPCClientError.from(error));
|