@trpc/client 11.0.3 → 11.0.4-canary.1

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.
@@ -0,0 +1,433 @@
1
+ {
2
+ "bundleSize": 76026,
3
+ "bundleOrigSize": 94417,
4
+ "bundleReduction": 19.48,
5
+ "modules": [
6
+ {
7
+ "id": "/src/links/wsLink/wsClient/wsClient.ts",
8
+ "size": 12067,
9
+ "origSize": 12199,
10
+ "renderedExports": [
11
+ "WsClient"
12
+ ],
13
+ "removedExports": [],
14
+ "dependents": [
15
+ "/src/links/wsLink/createWsClient.ts"
16
+ ],
17
+ "percent": 15.87,
18
+ "reduction": 1.08
19
+ },
20
+ {
21
+ "id": "/src/links/httpSubscriptionLink.ts",
22
+ "size": 8084,
23
+ "origSize": 7816,
24
+ "renderedExports": [
25
+ "httpSubscriptionLink",
26
+ "unstable_httpSubscriptionLink"
27
+ ],
28
+ "removedExports": [],
29
+ "dependents": [],
30
+ "percent": 10.63,
31
+ "reduction": 0
32
+ },
33
+ {
34
+ "id": "/src/links/wsLink/wsClient/wsConnection.ts",
35
+ "size": 6174,
36
+ "origSize": 6492,
37
+ "renderedExports": [
38
+ "WsConnection",
39
+ "backwardCompatibility"
40
+ ],
41
+ "removedExports": [],
42
+ "dependents": [
43
+ "/src/links/wsLink/wsClient/wsClient.ts"
44
+ ],
45
+ "percent": 8.12,
46
+ "reduction": 4.9
47
+ },
48
+ {
49
+ "id": "/src/links/httpBatchStreamLink.ts",
50
+ "size": 6129,
51
+ "origSize": 6101,
52
+ "renderedExports": [
53
+ "httpBatchStreamLink",
54
+ "unstable_httpBatchStreamLink"
55
+ ],
56
+ "removedExports": [],
57
+ "dependents": [],
58
+ "percent": 8.06,
59
+ "reduction": 0
60
+ },
61
+ {
62
+ "id": "/src/links/loggerLink.ts",
63
+ "size": 5596,
64
+ "origSize": 6946,
65
+ "renderedExports": [
66
+ "loggerLink"
67
+ ],
68
+ "removedExports": [],
69
+ "dependents": [],
70
+ "percent": 7.36,
71
+ "reduction": 19.44
72
+ },
73
+ {
74
+ "id": "/src/links/wsLink/wsClient/requestManager.ts",
75
+ "size": 4792,
76
+ "origSize": 5216,
77
+ "renderedExports": [
78
+ "RequestManager"
79
+ ],
80
+ "removedExports": [],
81
+ "dependents": [
82
+ "/src/links/wsLink/wsClient/wsClient.ts"
83
+ ],
84
+ "percent": 6.3,
85
+ "reduction": 8.13
86
+ },
87
+ {
88
+ "id": "/src/links/httpBatchLink.ts",
89
+ "size": 4124,
90
+ "origSize": 4323,
91
+ "renderedExports": [
92
+ "httpBatchLink"
93
+ ],
94
+ "removedExports": [],
95
+ "dependents": [],
96
+ "percent": 5.42,
97
+ "reduction": 4.6
98
+ },
99
+ {
100
+ "id": "/src/internals/dataLoader.ts",
101
+ "size": 4084,
102
+ "origSize": 4328,
103
+ "renderedExports": [
104
+ "dataLoader"
105
+ ],
106
+ "removedExports": [],
107
+ "dependents": [
108
+ "/src/links/httpBatchLink.ts",
109
+ "/src/links/httpBatchStreamLink.ts"
110
+ ],
111
+ "percent": 5.37,
112
+ "reduction": 5.64
113
+ },
114
+ {
115
+ "id": "/src/links/internals/httpUtils.ts",
116
+ "size": 3692,
117
+ "origSize": 5873,
118
+ "renderedExports": [
119
+ "resolveHTTPLinkOptions",
120
+ "getInput",
121
+ "getUrl",
122
+ "getBody",
123
+ "jsonHttpRequester",
124
+ "fetchHTTPResponse",
125
+ "httpRequest"
126
+ ],
127
+ "removedExports": [],
128
+ "dependents": [
129
+ "/src/links/httpLink.ts",
130
+ "/src/links/httpBatchLink.ts",
131
+ "/src/links/httpBatchStreamLink.ts",
132
+ "/src/links/httpSubscriptionLink.ts"
133
+ ],
134
+ "percent": 4.86,
135
+ "reduction": 37.14
136
+ },
137
+ {
138
+ "id": "/src/links/httpLink.ts",
139
+ "size": 3292,
140
+ "origSize": 3765,
141
+ "renderedExports": [
142
+ "httpLink"
143
+ ],
144
+ "removedExports": [],
145
+ "dependents": [],
146
+ "percent": 4.33,
147
+ "reduction": 12.56
148
+ },
149
+ {
150
+ "id": "/src/internals/TRPCUntypedClient.ts",
151
+ "size": 3158,
152
+ "origSize": 4417,
153
+ "renderedExports": [
154
+ "TRPCUntypedClient"
155
+ ],
156
+ "removedExports": [],
157
+ "dependents": [
158
+ "/src/createTRPCUntypedClient.ts",
159
+ "/src/createTRPCClient.ts"
160
+ ],
161
+ "percent": 4.15,
162
+ "reduction": 28.5
163
+ },
164
+ {
165
+ "id": "/src/TRPCClientError.ts",
166
+ "size": 2787,
167
+ "origSize": 3564,
168
+ "renderedExports": [
169
+ "TRPCClientError"
170
+ ],
171
+ "removedExports": [],
172
+ "dependents": [
173
+ "/src/index.ts",
174
+ "/src/links/httpLink.ts",
175
+ "/src/links/httpBatchLink.ts",
176
+ "/src/links/httpBatchStreamLink.ts",
177
+ "/src/links/httpSubscriptionLink.ts",
178
+ "/src/internals/TRPCUntypedClient.ts",
179
+ "/src/links/wsLink/wsClient/wsClient.ts"
180
+ ],
181
+ "percent": 3.67,
182
+ "reduction": 21.8
183
+ },
184
+ {
185
+ "id": "/src/links/wsLink/wsClient/utils.ts",
186
+ "size": 2781,
187
+ "origSize": 2794,
188
+ "renderedExports": [
189
+ "TRPCWebSocketClosedError",
190
+ "ResettableTimeout",
191
+ "withResolvers",
192
+ "prepareUrl",
193
+ "buildConnectionMessage"
194
+ ],
195
+ "removedExports": [],
196
+ "dependents": [
197
+ "/src/links/wsLink/wsClient/wsClient.ts",
198
+ "/src/links/wsLink/wsClient/requestManager.ts",
199
+ "/src/links/wsLink/wsClient/wsConnection.ts"
200
+ ],
201
+ "percent": 3.66,
202
+ "reduction": 0.47
203
+ },
204
+ {
205
+ "id": "/src/links/retryLink.ts",
206
+ "size": 2194,
207
+ "origSize": 2702,
208
+ "renderedExports": [
209
+ "retryLink"
210
+ ],
211
+ "removedExports": [],
212
+ "dependents": [],
213
+ "percent": 2.89,
214
+ "reduction": 18.8
215
+ },
216
+ {
217
+ "id": "/src/internals/signals.ts",
218
+ "size": 1188,
219
+ "origSize": 1236,
220
+ "renderedExports": [
221
+ "allAbortSignals",
222
+ "raceAbortSignals"
223
+ ],
224
+ "removedExports": [],
225
+ "dependents": [
226
+ "/src/links/httpBatchLink.ts",
227
+ "/src/links/httpBatchStreamLink.ts",
228
+ "/src/links/httpSubscriptionLink.ts"
229
+ ],
230
+ "percent": 1.56,
231
+ "reduction": 3.88
232
+ },
233
+ {
234
+ "id": "/src/createTRPCClient.ts",
235
+ "size": 1170,
236
+ "origSize": 4737,
237
+ "renderedExports": [
238
+ "clientCallTypeToProcedureType",
239
+ "createTRPCClientProxy",
240
+ "createTRPCClient",
241
+ "getUntypedClient"
242
+ ],
243
+ "removedExports": [],
244
+ "dependents": [
245
+ "/src/index.ts"
246
+ ],
247
+ "percent": 1.54,
248
+ "reduction": 75.3
249
+ },
250
+ {
251
+ "id": "/src/links/wsLink/wsLink.ts",
252
+ "size": 939,
253
+ "origSize": 1600,
254
+ "renderedExports": [
255
+ "wsLink",
256
+ "createWSClient"
257
+ ],
258
+ "removedExports": [],
259
+ "dependents": [],
260
+ "percent": 1.24,
261
+ "reduction": 41.31
262
+ },
263
+ {
264
+ "id": "/src/links/internals/createChain.ts",
265
+ "size": 690,
266
+ "origSize": 1026,
267
+ "renderedExports": [
268
+ "createChain"
269
+ ],
270
+ "removedExports": [],
271
+ "dependents": [
272
+ "/src/links/splitLink.ts",
273
+ "/src/internals/TRPCUntypedClient.ts"
274
+ ],
275
+ "percent": 0.91,
276
+ "reduction": 32.75
277
+ },
278
+ {
279
+ "id": "/src/links/splitLink.ts",
280
+ "size": 610,
281
+ "origSize": 1108,
282
+ "renderedExports": [
283
+ "splitLink"
284
+ ],
285
+ "removedExports": [],
286
+ "dependents": [],
287
+ "percent": 0.8,
288
+ "reduction": 44.95
289
+ },
290
+ {
291
+ "id": "/src/internals/transformer.ts",
292
+ "size": 565,
293
+ "origSize": 1697,
294
+ "renderedExports": [
295
+ "getTransformer"
296
+ ],
297
+ "removedExports": [],
298
+ "dependents": [
299
+ "/src/unstable-internals.ts"
300
+ ],
301
+ "percent": 0.74,
302
+ "reduction": 66.71
303
+ },
304
+ {
305
+ "id": "/src/links/wsLink/wsClient/options.ts",
306
+ "size": 485,
307
+ "origSize": 2636,
308
+ "renderedExports": [
309
+ "lazyDefaults",
310
+ "keepAliveDefaults",
311
+ "exponentialBackoff"
312
+ ],
313
+ "removedExports": [],
314
+ "dependents": [
315
+ "/src/links/wsLink/wsClient/wsClient.ts"
316
+ ],
317
+ "percent": 0.64,
318
+ "reduction": 81.6
319
+ },
320
+ {
321
+ "id": "/src/getFetch.ts",
322
+ "size": 428,
323
+ "origSize": 644,
324
+ "renderedExports": [
325
+ "getFetch"
326
+ ],
327
+ "removedExports": [],
328
+ "dependents": [
329
+ "/src/index.ts",
330
+ "/src/links/internals/httpUtils.ts"
331
+ ],
332
+ "percent": 0.56,
333
+ "reduction": 33.54
334
+ },
335
+ {
336
+ "id": "/src/links/internals/contentTypes.ts",
337
+ "size": 330,
338
+ "origSize": 389,
339
+ "renderedExports": [
340
+ "isOctetType",
341
+ "isFormData",
342
+ "isNonJsonSerializable"
343
+ ],
344
+ "removedExports": [],
345
+ "dependents": [],
346
+ "percent": 0.43,
347
+ "reduction": 15.17
348
+ },
349
+ {
350
+ "id": "/src/internals/inputWithTrackedEventId.ts",
351
+ "size": 254,
352
+ "origSize": 273,
353
+ "renderedExports": [
354
+ "inputWithTrackedEventId"
355
+ ],
356
+ "removedExports": [],
357
+ "dependents": [
358
+ "/src/links/httpSubscriptionLink.ts",
359
+ "/src/links/retryLink.ts"
360
+ ],
361
+ "percent": 0.33,
362
+ "reduction": 6.96
363
+ },
364
+ {
365
+ "id": "/src/links/internals/urlWithConnectionParams.ts",
366
+ "size": 240,
367
+ "origSize": 1016,
368
+ "renderedExports": [
369
+ "resultOf"
370
+ ],
371
+ "removedExports": [],
372
+ "dependents": [
373
+ "/src/links/httpSubscriptionLink.ts",
374
+ "/src/links/wsLink/wsClient/utils.ts"
375
+ ],
376
+ "percent": 0.32,
377
+ "reduction": 76.38
378
+ },
379
+ {
380
+ "id": "/src/createTRPCUntypedClient.ts",
381
+ "size": 100,
382
+ "origSize": 574,
383
+ "renderedExports": [
384
+ "createTRPCUntypedClient"
385
+ ],
386
+ "removedExports": [],
387
+ "dependents": [
388
+ "/src/index.ts"
389
+ ],
390
+ "percent": 0.13,
391
+ "reduction": 82.58
392
+ },
393
+ {
394
+ "id": "/src/links/wsLink/createWsClient.ts",
395
+ "size": 73,
396
+ "origSize": 315,
397
+ "renderedExports": [
398
+ "createWSClient"
399
+ ],
400
+ "removedExports": [],
401
+ "dependents": [
402
+ "/src/links/wsLink/wsLink.ts"
403
+ ],
404
+ "percent": 0.1,
405
+ "reduction": 76.83
406
+ },
407
+ {
408
+ "id": "/src/index.ts",
409
+ "size": 0,
410
+ "origSize": 540,
411
+ "renderedExports": [],
412
+ "removedExports": [],
413
+ "dependents": [],
414
+ "percent": 0,
415
+ "reduction": 100
416
+ },
417
+ {
418
+ "id": "/src/unstable-internals.ts",
419
+ "size": 0,
420
+ "origSize": 90,
421
+ "renderedExports": [],
422
+ "removedExports": [],
423
+ "dependents": [
424
+ "/src/links/wsLink/wsLink.ts",
425
+ "/src/links/httpSubscriptionLink.ts",
426
+ "/src/links/internals/httpUtils.ts"
427
+ ],
428
+ "percent": 0,
429
+ "reduction": 100
430
+ }
431
+ ],
432
+ "moduleCount": 29
433
+ }
package/dist/index.js CHANGED
@@ -31,11 +31,13 @@ exports.isNonJsonSerializable = contentTypes.isNonJsonSerializable;
31
31
  exports.isOctetType = contentTypes.isOctetType;
32
32
  exports.httpBatchLink = httpBatchLink.httpBatchLink;
33
33
  exports.httpBatchStreamLink = httpBatchStreamLink.httpBatchStreamLink;
34
+ exports.unstable_httpBatchStreamLink = httpBatchStreamLink.unstable_httpBatchStreamLink;
34
35
  exports.httpLink = httpLink.httpLink;
35
36
  exports.loggerLink = loggerLink.loggerLink;
36
37
  exports.splitLink = splitLink.splitLink;
37
38
  exports.wsLink = wsLink.wsLink;
38
39
  exports.httpSubscriptionLink = httpSubscriptionLink.httpSubscriptionLink;
40
+ exports.unstable_httpSubscriptionLink = httpSubscriptionLink.unstable_httpSubscriptionLink;
39
41
  exports.retryLink = retryLink.retryLink;
40
42
  exports.TRPCUntypedClient = TRPCUntypedClient.TRPCUntypedClient;
41
43
  exports.createWSClient = createWsClient.createWSClient;
package/dist/index.mjs CHANGED
@@ -4,12 +4,12 @@ export { getFetch } from './getFetch.mjs';
4
4
  export { TRPCClientError } from './TRPCClientError.mjs';
5
5
  export { isFormData, isNonJsonSerializable, isOctetType } from './links/internals/contentTypes.mjs';
6
6
  export { httpBatchLink } from './links/httpBatchLink.mjs';
7
- export { httpBatchStreamLink } from './links/httpBatchStreamLink.mjs';
7
+ export { httpBatchStreamLink, unstable_httpBatchStreamLink } from './links/httpBatchStreamLink.mjs';
8
8
  export { httpLink } from './links/httpLink.mjs';
9
9
  export { loggerLink } from './links/loggerLink.mjs';
10
10
  export { splitLink } from './links/splitLink.mjs';
11
11
  export { wsLink } from './links/wsLink/wsLink.mjs';
12
- export { httpSubscriptionLink } from './links/httpSubscriptionLink.mjs';
12
+ export { httpSubscriptionLink, unstable_httpSubscriptionLink } from './links/httpSubscriptionLink.mjs';
13
13
  export { retryLink } from './links/retryLink.mjs';
14
14
  export { TRPCUntypedClient } from './internals/TRPCUntypedClient.mjs';
15
15
  export { createWSClient } from './links/wsLink/createWsClient.mjs';
@@ -5,4 +5,8 @@ import type { TRPCLink } from './types';
5
5
  * @see https://trpc.io/docs/client/links/httpBatchStreamLink
6
6
  */
7
7
  export declare function httpBatchStreamLink<TRouter extends AnyRouter>(opts: HTTPBatchLinkOptions<TRouter['_def']['_config']['$types']>): TRPCLink<TRouter>;
8
+ /**
9
+ * @deprecated use {@link httpBatchStreamLink} instead
10
+ */
11
+ export declare const unstable_httpBatchStreamLink: typeof httpBatchStreamLink;
8
12
  //# sourceMappingURL=httpBatchStreamLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"httpBatchStreamLink.d.ts","sourceRoot":"","sources":["../../src/links/httpBatchStreamLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,cAAc,CAAC;AAS7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,SAAS,SAAS,EAC3D,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,GAC/D,QAAQ,CAAC,OAAO,CAAC,CAgKnB"}
1
+ {"version":3,"file":"httpBatchStreamLink.d.ts","sourceRoot":"","sources":["../../src/links/httpBatchStreamLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,cAAc,CAAC;AAS7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,SAAS,SAAS,EAC3D,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,GAC/D,QAAQ,CAAC,OAAO,CAAC,CAgKnB;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B,4BAAsB,CAAC"}
@@ -142,5 +142,9 @@ var httpUtils = require('./internals/httpUtils.js');
142
142
  };
143
143
  };
144
144
  }
145
+ /**
146
+ * @deprecated use {@link httpBatchStreamLink} instead
147
+ */ const unstable_httpBatchStreamLink = httpBatchStreamLink;
145
148
 
146
149
  exports.httpBatchStreamLink = httpBatchStreamLink;
150
+ exports.unstable_httpBatchStreamLink = unstable_httpBatchStreamLink;
@@ -140,5 +140,8 @@ import { resolveHTTPLinkOptions, fetchHTTPResponse, getBody, getUrl } from './in
140
140
  };
141
141
  };
142
142
  }
143
+ /**
144
+ * @deprecated use {@link httpBatchStreamLink} instead
145
+ */ const unstable_httpBatchStreamLink = httpBatchStreamLink;
143
146
 
144
- export { httpBatchStreamLink };
147
+ export { httpBatchStreamLink, unstable_httpBatchStreamLink };
@@ -18,5 +18,9 @@ type HTTPSubscriptionLinkOptions<TRoot extends AnyClientTypes, TEventSource exte
18
18
  * @see https://trpc.io/docs/client/links/httpSubscriptionLink
19
19
  */
20
20
  export declare function httpSubscriptionLink<TInferrable extends InferrableClientTypes, TEventSource extends EventSourceLike.AnyConstructor>(opts: HTTPSubscriptionLinkOptions<inferClientTypes<TInferrable>, TEventSource>): TRPCLink<TInferrable>;
21
+ /**
22
+ * @deprecated use {@link httpSubscriptionLink} instead
23
+ */
24
+ export declare const unstable_httpSubscriptionLink: typeof httpSubscriptionLink;
21
25
  export {};
22
26
  //# sourceMappingURL=httpSubscriptionLink.d.ts.map
@@ -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,YAAY,CAAC,GACxC,CAAC,CAAC,IAAI,EAAE;QACN,EAAE,EAAE,SAAS,CAAC;KACf,KACG,eAAe,CAAC,UAAU,CAAC,YAAY,CAAC,GACxC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;CAC5D,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAC3B,8BAA8B,CAAC;AAajC;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,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"}
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,YAAY,CAAC,GACxC,CAAC,CAAC,IAAI,EAAE;QACN,EAAE,EAAE,SAAS,CAAC;KACf,KACG,eAAe,CAAC,UAAU,CAAC,YAAY,CAAC,GACxC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;CAC5D,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAC3B,8BAA8B,CAAC;AAajC;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,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;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,6BAAuB,CAAC"}
@@ -179,5 +179,9 @@ async function urlWithConnectionParams(opts) {
179
179
  };
180
180
  };
181
181
  }
182
+ /**
183
+ * @deprecated use {@link httpSubscriptionLink} instead
184
+ */ const unstable_httpSubscriptionLink = httpSubscriptionLink;
182
185
 
183
186
  exports.httpSubscriptionLink = httpSubscriptionLink;
187
+ exports.unstable_httpSubscriptionLink = unstable_httpSubscriptionLink;
@@ -177,5 +177,8 @@ async function urlWithConnectionParams(opts) {
177
177
  };
178
178
  };
179
179
  }
180
+ /**
181
+ * @deprecated use {@link httpSubscriptionLink} instead
182
+ */ const unstable_httpSubscriptionLink = httpSubscriptionLink;
180
183
 
181
- export { httpSubscriptionLink };
184
+ export { httpSubscriptionLink, unstable_httpSubscriptionLink };
@@ -3,18 +3,15 @@ interface ConnectionStateBase<TError> {
3
3
  data?: never;
4
4
  error: TError | null;
5
5
  }
6
- interface ConnectionIdleState<TError> extends ConnectionStateBase<TError> {
6
+ interface ConnectionIdleState extends ConnectionStateBase<null> {
7
7
  state: 'idle';
8
- error: null;
9
8
  }
10
- interface ConnectionConnectingState<TError> extends ConnectionStateBase<TError> {
9
+ interface ConnectionConnectingState<TError> extends ConnectionStateBase<TError | null> {
11
10
  state: 'connecting';
12
- error: TError | null;
13
11
  }
14
- interface ConnectionPendingState extends ConnectionStateBase<never> {
12
+ interface ConnectionPendingState extends ConnectionStateBase<null> {
15
13
  state: 'pending';
16
- error: null;
17
14
  }
18
- export type TRPCConnectionState<TError> = ConnectionIdleState<TError> | ConnectionConnectingState<TError> | ConnectionPendingState;
15
+ export type TRPCConnectionState<TError> = ConnectionIdleState | ConnectionConnectingState<TError> | ConnectionPendingState;
19
16
  export {};
20
17
  //# sourceMappingURL=subscriptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/links/internals/subscriptions.ts"],"names":[],"mappings":"AAAA,UAAU,mBAAmB,CAAC,MAAM;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,UAAU,mBAAmB,CAAC,MAAM,CAAE,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;CACb;AAED,UAAU,yBAAyB,CAAC,MAAM,CACxC,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,UAAU,sBAAuB,SAAQ,mBAAmB,CAAC,KAAK,CAAC;IACjE,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,IAAI,CAAC;CACb;AAED,MAAM,MAAM,mBAAmB,CAAC,MAAM,IAClC,mBAAmB,CAAC,MAAM,CAAC,GAC3B,yBAAyB,CAAC,MAAM,CAAC,GACjC,sBAAsB,CAAC"}
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/links/internals/subscriptions.ts"],"names":[],"mappings":"AAAA,UAAU,mBAAmB,CAAC,MAAM;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,UAAU,mBAAoB,SAAQ,mBAAmB,CAAC,IAAI,CAAC;IAC7D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,yBAAyB,CAAC,MAAM,CACxC,SAAQ,mBAAmB,CAAC,MAAM,GAAG,IAAI,CAAC;IAC1C,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,UAAU,sBAAuB,SAAQ,mBAAmB,CAAC,IAAI,CAAC;IAChE,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,MAAM,mBAAmB,CAAC,MAAM,IAClC,mBAAmB,GACnB,yBAAyB,CAAC,MAAM,CAAC,GACjC,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/client",
3
- "version": "11.0.3",
3
+ "version": "11.0.4-canary.1+c5eb0b32c",
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.3",
80
+ "@trpc/server": "11.0.4-canary.1+c5eb0b32c",
81
81
  "typescript": ">=5.7.2"
82
82
  },
83
83
  "devDependencies": {
84
- "@trpc/server": "11.0.3",
84
+ "@trpc/server": "11.0.4-canary.1+c5eb0b32c",
85
85
  "@types/isomorphic-fetch": "^0.0.39",
86
86
  "@types/node": "^22.13.5",
87
87
  "dataloader": "^2.2.2",
@@ -101,5 +101,5 @@
101
101
  "funding": [
102
102
  "https://trpc.io/sponsor"
103
103
  ],
104
- "gitHead": "1f1c7f06bb8a14568e6460d6c221478b3eb84404"
104
+ "gitHead": "c5eb0b32c96834d58c650e29053de241536c5fa9"
105
105
  }
@@ -183,3 +183,8 @@ export function httpBatchStreamLink<TRouter extends AnyRouter>(
183
183
  };
184
184
  };
185
185
  }
186
+
187
+ /**
188
+ * @deprecated use {@link httpBatchStreamLink} instead
189
+ */
190
+ export const unstable_httpBatchStreamLink = httpBatchStreamLink;
@@ -253,3 +253,8 @@ export function httpSubscriptionLink<
253
253
  };
254
254
  };
255
255
  }
256
+
257
+ /**
258
+ * @deprecated use {@link httpSubscriptionLink} instead
259
+ */
260
+ export const unstable_httpSubscriptionLink = httpSubscriptionLink;
@@ -4,23 +4,20 @@ interface ConnectionStateBase<TError> {
4
4
  error: TError | null;
5
5
  }
6
6
 
7
- interface ConnectionIdleState<TError> extends ConnectionStateBase<TError> {
7
+ interface ConnectionIdleState extends ConnectionStateBase<null> {
8
8
  state: 'idle';
9
- error: null;
10
9
  }
11
10
 
12
11
  interface ConnectionConnectingState<TError>
13
- extends ConnectionStateBase<TError> {
12
+ extends ConnectionStateBase<TError | null> {
14
13
  state: 'connecting';
15
- error: TError | null;
16
14
  }
17
15
 
18
- interface ConnectionPendingState extends ConnectionStateBase<never> {
16
+ interface ConnectionPendingState extends ConnectionStateBase<null> {
19
17
  state: 'pending';
20
- error: null;
21
18
  }
22
19
 
23
20
  export type TRPCConnectionState<TError> =
24
- | ConnectionIdleState<TError>
21
+ | ConnectionIdleState
25
22
  | ConnectionConnectingState<TError>
26
23
  | ConnectionPendingState;
@@ -1 +0,0 @@
1
- export * from '../../dist/links/wsLink';
@@ -1 +0,0 @@
1
- module.exports = require('../../dist/links/wsLink');