@trpc/client 11.0.0-rc.475 → 11.0.0-rc.480
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": 24.
|
|
2
|
+
"bundleSize": 52634,
|
|
3
|
+
"bundleOrigSize": 69964,
|
|
4
|
+
"bundleReduction": 24.77,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/links/wsLink.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"removedExports": [],
|
|
15
15
|
"dependents": [],
|
|
16
|
-
"percent": 26
|
|
16
|
+
"percent": 26,
|
|
17
17
|
"reduction": 9.58
|
|
18
18
|
},
|
|
19
19
|
{
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"removedExports": [],
|
|
27
27
|
"dependents": [],
|
|
28
|
-
"percent": 11.
|
|
28
|
+
"percent": 11.14,
|
|
29
29
|
"reduction": 3.51
|
|
30
30
|
},
|
|
31
31
|
{
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"removedExports": [],
|
|
39
39
|
"dependents": [],
|
|
40
|
-
"percent": 10.
|
|
40
|
+
"percent": 10.37,
|
|
41
41
|
"reduction": 18.48
|
|
42
42
|
},
|
|
43
43
|
{
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"/src/links/httpBatchStreamLink.ts",
|
|
62
62
|
"/src/links/httpSubscriptionLink.ts"
|
|
63
63
|
],
|
|
64
|
-
"percent": 8.
|
|
64
|
+
"percent": 8.48,
|
|
65
65
|
"reduction": 32.82
|
|
66
66
|
},
|
|
67
67
|
{
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"/src/links/httpBatchLink.ts",
|
|
77
77
|
"/src/links/httpBatchStreamLink.ts"
|
|
78
78
|
],
|
|
79
|
-
"percent": 7.
|
|
79
|
+
"percent": 7.76,
|
|
80
80
|
"reduction": 5.64
|
|
81
81
|
},
|
|
82
82
|
{
|
|
@@ -88,20 +88,20 @@
|
|
|
88
88
|
],
|
|
89
89
|
"removedExports": [],
|
|
90
90
|
"dependents": [],
|
|
91
|
-
"percent": 7.
|
|
91
|
+
"percent": 7.46,
|
|
92
92
|
"reduction": 4.69
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"id": "/src/links/httpSubscriptionLink.ts",
|
|
96
|
-
"size":
|
|
97
|
-
"origSize":
|
|
96
|
+
"size": 3805,
|
|
97
|
+
"origSize": 4221,
|
|
98
98
|
"renderedExports": [
|
|
99
99
|
"unstable_httpSubscriptionLink"
|
|
100
100
|
],
|
|
101
101
|
"removedExports": [],
|
|
102
102
|
"dependents": [],
|
|
103
|
-
"percent":
|
|
104
|
-
"reduction": 9.
|
|
103
|
+
"percent": 7.23,
|
|
104
|
+
"reduction": 9.86
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"id": "/src/links/httpLink.ts",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
],
|
|
113
113
|
"removedExports": [],
|
|
114
114
|
"dependents": [],
|
|
115
|
-
"percent": 6.
|
|
115
|
+
"percent": 6.05,
|
|
116
116
|
"reduction": 14.15
|
|
117
117
|
},
|
|
118
118
|
{
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"/src/createTRPCUntypedClient.ts",
|
|
128
128
|
"/src/createTRPCClient.ts"
|
|
129
129
|
],
|
|
130
|
-
"percent": 4.
|
|
130
|
+
"percent": 4.11,
|
|
131
131
|
"reduction": 47.6
|
|
132
132
|
},
|
|
133
133
|
{
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"/src/links/httpSubscriptionLink.ts",
|
|
148
148
|
"/src/internals/TRPCUntypedClient.ts"
|
|
149
149
|
],
|
|
150
|
-
"percent": 3.
|
|
150
|
+
"percent": 3.69,
|
|
151
151
|
"reduction": 45.43
|
|
152
152
|
},
|
|
153
153
|
{
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"/src/links/splitLink.ts",
|
|
180
180
|
"/src/internals/TRPCUntypedClient.ts"
|
|
181
181
|
],
|
|
182
|
-
"percent": 1.
|
|
182
|
+
"percent": 1.31,
|
|
183
183
|
"reduction": 32.75
|
|
184
184
|
},
|
|
185
185
|
{
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"dependents": [
|
|
206
206
|
"/src/unstable-internals.ts"
|
|
207
207
|
],
|
|
208
|
-
"percent": 1.
|
|
208
|
+
"percent": 1.07,
|
|
209
209
|
"reduction": 66.75
|
|
210
210
|
},
|
|
211
211
|
{
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"/src/index.ts",
|
|
221
221
|
"/src/links/internals/httpUtils.ts"
|
|
222
222
|
],
|
|
223
|
-
"percent": 0.
|
|
223
|
+
"percent": 0.81,
|
|
224
224
|
"reduction": 33.54
|
|
225
225
|
},
|
|
226
226
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpSubscriptionLink.d.ts","sourceRoot":"","sources":["../../src/links/httpSubscriptionLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAMlD,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAiBxC,KAAK,2BAA2B,CAAC,KAAK,SAAS,cAAc,IAAI;IAC/D;;OAEG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;CACvD,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAC3B,8BAA8B,CAAC;AAEjC;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,SAAS,qBAAqB,EAEzC,IAAI,EAAE,2BAA2B,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,GAC/D,QAAQ,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"httpSubscriptionLink.d.ts","sourceRoot":"","sources":["../../src/links/httpSubscriptionLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAMlD,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAiBxC,KAAK,2BAA2B,CAAC,KAAK,SAAS,cAAc,IAAI;IAC/D;;OAEG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;CACvD,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAC3B,8BAA8B,CAAC;AAEjC;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,SAAS,qBAAqB,EAEzC,IAAI,EAAE,2BAA2B,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,GAC/D,QAAQ,CAAC,WAAW,CAAC,CA2FvB"}
|
|
@@ -63,8 +63,12 @@ async function urlWithConnectionParams(opts) {
|
|
|
63
63
|
deserialize: transformer$1.output.deserialize
|
|
64
64
|
});
|
|
65
65
|
for await (const chunk of iterable){
|
|
66
|
+
if (!chunk.ok) {
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
const chunkData = chunk.data;
|
|
66
70
|
// if the `tracked()`-helper is used, we always have an `id` field
|
|
67
|
-
const data = 'id' in
|
|
71
|
+
const data = 'id' in chunkData ? chunkData : chunkData.data;
|
|
68
72
|
observer.next({
|
|
69
73
|
result: {
|
|
70
74
|
data
|
|
@@ -61,8 +61,12 @@ async function urlWithConnectionParams(opts) {
|
|
|
61
61
|
deserialize: transformer.output.deserialize
|
|
62
62
|
});
|
|
63
63
|
for await (const chunk of iterable){
|
|
64
|
+
if (!chunk.ok) {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
const chunkData = chunk.data;
|
|
64
68
|
// if the `tracked()`-helper is used, we always have an `id` field
|
|
65
|
-
const data = 'id' in
|
|
69
|
+
const data = 'id' in chunkData ? chunkData : chunkData.data;
|
|
66
70
|
observer.next({
|
|
67
71
|
result: {
|
|
68
72
|
data
|
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.480+6dc84d9eb",
|
|
4
4
|
"description": "The tRPC client library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"!**/*.test.*"
|
|
77
77
|
],
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@trpc/server": "11.0.0-rc.
|
|
79
|
+
"@trpc/server": "11.0.0-rc.480+6dc84d9eb"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@trpc/server": "11.0.0-rc.
|
|
82
|
+
"@trpc/server": "11.0.0-rc.480+6dc84d9eb",
|
|
83
83
|
"@types/isomorphic-fetch": "^0.0.39",
|
|
84
84
|
"@types/node": "^20.10.0",
|
|
85
85
|
"eslint": "^8.57.0",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"funding": [
|
|
97
97
|
"https://trpc.io/sponsor"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "6dc84d9ebef60539d4e835c17aff9ee22cbf204b"
|
|
100
100
|
}
|
|
@@ -106,8 +106,14 @@ export function unstable_httpSubscriptionLink<
|
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
for await (const chunk of iterable) {
|
|
109
|
+
if (!chunk.ok) {
|
|
110
|
+
// TODO: handle in https://github.com/trpc/trpc/issues/5871
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
const chunkData = chunk.data;
|
|
114
|
+
|
|
109
115
|
// if the `tracked()`-helper is used, we always have an `id` field
|
|
110
|
-
const data = 'id' in
|
|
116
|
+
const data = 'id' in chunkData ? chunkData : chunkData.data;
|
|
111
117
|
observer.next({
|
|
112
118
|
result: {
|
|
113
119
|
data,
|