@trpc/server 11.0.0-rc.607 → 11.0.0-rc.619

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.
Files changed (36) hide show
  1. package/dist/@trpc/server/http.d.ts +1 -1
  2. package/dist/@trpc/server/http.d.ts.map +1 -1
  3. package/dist/adapters/fetch/fetchRequestHandler.js +1 -2
  4. package/dist/adapters/fetch/fetchRequestHandler.mjs +1 -2
  5. package/dist/adapters/node-http/incomingMessageToRequest.d.ts +1 -0
  6. package/dist/adapters/node-http/incomingMessageToRequest.d.ts.map +1 -1
  7. package/dist/adapters/node-http/incomingMessageToRequest.js +73 -38
  8. package/dist/adapters/node-http/incomingMessageToRequest.mjs +73 -39
  9. package/dist/adapters/node-http/index.js +1 -0
  10. package/dist/adapters/node-http/index.mjs +1 -1
  11. package/dist/adapters/standalone.d.ts.map +1 -1
  12. package/dist/adapters/standalone.js +2 -2
  13. package/dist/adapters/standalone.mjs +2 -2
  14. package/dist/adapters/ws.d.ts +1 -1
  15. package/dist/adapters/ws.d.ts.map +1 -1
  16. package/dist/adapters/ws.js +2 -2
  17. package/dist/adapters/ws.mjs +2 -2
  18. package/dist/bundle-analysis.json +94 -108
  19. package/dist/http.js +0 -2
  20. package/dist/http.mjs +0 -1
  21. package/dist/unstable-core-do-not-import.d.ts +0 -1
  22. package/dist/unstable-core-do-not-import.d.ts.map +1 -1
  23. package/dist/unstable-core-do-not-import.js +0 -2
  24. package/dist/unstable-core-do-not-import.mjs +0 -1
  25. package/package.json +2 -2
  26. package/src/@trpc/server/http.ts +0 -1
  27. package/src/adapters/fetch/fetchRequestHandler.ts +2 -2
  28. package/src/adapters/node-http/incomingMessageToRequest.ts +99 -39
  29. package/src/adapters/standalone.ts +7 -4
  30. package/src/adapters/ws.ts +3 -3
  31. package/src/unstable-core-do-not-import.ts +0 -1
  32. package/dist/unstable-core-do-not-import/http/toURL.d.ts +0 -2
  33. package/dist/unstable-core-do-not-import/http/toURL.d.ts.map +0 -1
  34. package/dist/unstable-core-do-not-import/http/toURL.js +0 -18
  35. package/dist/unstable-core-do-not-import/http/toURL.mjs +0 -16
  36. package/src/unstable-core-do-not-import/http/toURL.ts +0 -17
@@ -1,7 +1,7 @@
1
1
  {
2
- "bundleSize": 163194,
3
- "bundleOrigSize": 213836,
4
- "bundleReduction": 23.68,
2
+ "bundleSize": 164337,
3
+ "bundleOrigSize": 214888,
4
+ "bundleReduction": 23.52,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
@@ -14,7 +14,7 @@
14
14
  "dependents": [
15
15
  "/src/unstable-core-do-not-import.ts"
16
16
  ],
17
- "percent": 13.27,
17
+ "percent": 13.17,
18
18
  "reduction": 0
19
19
  },
20
20
  {
@@ -31,13 +31,13 @@
31
31
  "/src/unstable-core-do-not-import.ts",
32
32
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
33
33
  ],
34
- "percent": 10.78,
34
+ "percent": 10.7,
35
35
  "reduction": 5.02
36
36
  },
37
37
  {
38
38
  "id": "/src/adapters/ws.ts",
39
- "size": 16778,
40
- "origSize": 15830,
39
+ "size": 16791,
40
+ "origSize": 15828,
41
41
  "renderedExports": [
42
42
  "getWSConnectionHandler",
43
43
  "handleKeepAlive",
@@ -47,7 +47,7 @@
47
47
  "dependents": [
48
48
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
49
49
  ],
50
- "percent": 10.28,
50
+ "percent": 10.22,
51
51
  "reduction": 0
52
52
  },
53
53
  {
@@ -60,7 +60,7 @@
60
60
  ],
61
61
  "removedExports": [],
62
62
  "dependents": [],
63
- "percent": 7.12,
63
+ "percent": 7.08,
64
64
  "reduction": 15.45
65
65
  },
66
66
  {
@@ -75,7 +75,7 @@
75
75
  "/src/unstable-core-do-not-import.ts",
76
76
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
77
77
  ],
78
- "percent": 4.71,
78
+ "percent": 4.68,
79
79
  "reduction": 0
80
80
  },
81
81
  {
@@ -92,7 +92,7 @@
92
92
  "/src/unstable-core-do-not-import.ts",
93
93
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
94
94
  ],
95
- "percent": 4.49,
95
+ "percent": 4.46,
96
96
  "reduction": 24.97
97
97
  },
98
98
  {
@@ -110,7 +110,7 @@
110
110
  "/src/unstable-core-do-not-import.ts",
111
111
  "/src/unstable-core-do-not-import/initTRPC.ts"
112
112
  ],
113
- "percent": 3.93,
113
+ "percent": 3.91,
114
114
  "reduction": 39.85
115
115
  },
116
116
  {
@@ -125,7 +125,7 @@
125
125
  "/src/unstable-core-do-not-import.ts",
126
126
  "/src/unstable-core-do-not-import/initTRPC.ts"
127
127
  ],
128
- "percent": 3.55,
128
+ "percent": 3.53,
129
129
  "reduction": 64.96
130
130
  },
131
131
  {
@@ -139,7 +139,7 @@
139
139
  "dependents": [
140
140
  "/src/adapters/aws-lambda/index.ts"
141
141
  ],
142
- "percent": 3.32,
142
+ "percent": 3.3,
143
143
  "reduction": 11.44
144
144
  },
145
145
  {
@@ -159,7 +159,7 @@
159
159
  "/src/observable/operators.ts",
160
160
  "/src/observable/behaviorSubject.ts"
161
161
  ],
162
- "percent": 2.74,
162
+ "percent": 2.72,
163
163
  "reduction": 0
164
164
  },
165
165
  {
@@ -174,7 +174,7 @@
174
174
  "dependents": [
175
175
  "/src/adapters/node-http/index.ts"
176
176
  ],
177
- "percent": 2.74,
177
+ "percent": 2.72,
178
178
  "reduction": 2.49
179
179
  },
180
180
  {
@@ -192,9 +192,25 @@
192
192
  "dependents": [
193
193
  "/src/observable/index.ts"
194
194
  ],
195
- "percent": 2.4,
195
+ "percent": 2.38,
196
196
  "reduction": 1.66
197
197
  },
198
+ {
199
+ "id": "/src/adapters/node-http/incomingMessageToRequest.ts",
200
+ "size": 3665,
201
+ "origSize": 4172,
202
+ "renderedExports": [
203
+ "createURL",
204
+ "incomingMessageToRequest"
205
+ ],
206
+ "removedExports": [],
207
+ "dependents": [
208
+ "/src/adapters/node-http/index.ts",
209
+ "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
210
+ ],
211
+ "percent": 2.23,
212
+ "reduction": 12.15
213
+ },
198
214
  {
199
215
  "id": "/src/adapters/next-app-dir/nextAppDirCaller.ts",
200
216
  "size": 3254,
@@ -206,7 +222,7 @@
206
222
  "dependents": [
207
223
  "/src/adapters/next-app-dir.ts"
208
224
  ],
209
- "percent": 1.99,
225
+ "percent": 1.98,
210
226
  "reduction": 22.28
211
227
  },
212
228
  {
@@ -222,11 +238,11 @@
222
238
  "removedExports": [],
223
239
  "dependents": [
224
240
  "/src/unstable-core-do-not-import.ts",
241
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
225
242
  "/src/unstable-core-do-not-import/initTRPC.ts",
226
- "/src/unstable-core-do-not-import/router.ts",
227
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
243
+ "/src/unstable-core-do-not-import/router.ts"
228
244
  ],
229
- "percent": 1.68,
245
+ "percent": 1.67,
230
246
  "reduction": 45.98
231
247
  },
232
248
  {
@@ -240,7 +256,7 @@
240
256
  "dependents": [
241
257
  "/src/unstable-core-do-not-import.ts"
242
258
  ],
243
- "percent": 1.65,
259
+ "percent": 1.64,
244
260
  "reduction": 40.53
245
261
  },
246
262
  {
@@ -260,7 +276,7 @@
260
276
  "/src/unstable-core-do-not-import/initTRPC.ts",
261
277
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
262
278
  ],
263
- "percent": 1.61,
279
+ "percent": 1.6,
264
280
  "reduction": 55.78
265
281
  },
266
282
  {
@@ -284,13 +300,13 @@
284
300
  "removedExports": [],
285
301
  "dependents": [
286
302
  "/src/unstable-core-do-not-import.ts",
303
+ "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
304
+ "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
305
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
287
306
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
288
307
  "/src/unstable-core-do-not-import/transformer.ts",
289
308
  "/src/unstable-core-do-not-import/middleware.ts",
290
309
  "/src/unstable-core-do-not-import/router.ts",
291
- "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
292
- "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
293
- "/src/unstable-core-do-not-import/http/resolveResponse.ts",
294
310
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
295
311
  "/src/unstable-core-do-not-import/http/contentType.ts",
296
312
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
@@ -298,7 +314,7 @@
298
314
  "/src/unstable-core-do-not-import/stream/sse.ts",
299
315
  "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts"
300
316
  ],
301
- "percent": 1.51,
317
+ "percent": 1.5,
302
318
  "reduction": 17.51
303
319
  },
304
320
  {
@@ -314,13 +330,13 @@
314
330
  "/src/unstable-core-do-not-import.ts",
315
331
  "/src/unstable-core-do-not-import/router.ts"
316
332
  ],
317
- "percent": 1.43,
333
+ "percent": 1.42,
318
334
  "reduction": 0
319
335
  },
320
336
  {
321
337
  "id": "/src/adapters/fetch/fetchRequestHandler.ts",
322
- "size": 2255,
323
- "origSize": 2305,
338
+ "size": 2251,
339
+ "origSize": 2300,
324
340
  "renderedExports": [
325
341
  "fetchRequestHandler"
326
342
  ],
@@ -328,23 +344,8 @@
328
344
  "dependents": [
329
345
  "/src/adapters/fetch/index.ts"
330
346
  ],
331
- "percent": 1.38,
332
- "reduction": 2.17
333
- },
334
- {
335
- "id": "/src/adapters/node-http/incomingMessageToRequest.ts",
336
- "size": 2207,
337
- "origSize": 2588,
338
- "renderedExports": [
339
- "incomingMessageToRequest"
340
- ],
341
- "removedExports": [],
342
- "dependents": [
343
- "/src/adapters/node-http/index.ts",
344
- "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
345
- ],
346
- "percent": 1.35,
347
- "reduction": 14.72
347
+ "percent": 1.37,
348
+ "reduction": 2.13
348
349
  },
349
350
  {
350
351
  "id": "/src/adapters/next-app-dir/rethrowNextErrors.ts",
@@ -357,7 +358,7 @@
357
358
  "dependents": [
358
359
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
359
360
  ],
360
- "percent": 1.3,
361
+ "percent": 1.29,
361
362
  "reduction": 5.48
362
363
  },
363
364
  {
@@ -375,10 +376,10 @@
375
376
  "removedExports": [],
376
377
  "dependents": [
377
378
  "/src/unstable-core-do-not-import.ts",
378
- "/src/unstable-core-do-not-import/error/getErrorShape.ts",
379
- "/src/unstable-core-do-not-import/http/resolveResponse.ts"
379
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
380
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts"
380
381
  ],
381
- "percent": 1.28,
382
+ "percent": 1.27,
382
383
  "reduction": 18.54
383
384
  },
384
385
  {
@@ -407,7 +408,7 @@
407
408
  "dependents": [
408
409
  "/src/adapters/fastify/index.ts"
409
410
  ],
410
- "percent": 1.09,
411
+ "percent": 1.08,
411
412
  "reduction": 30.13
412
413
  },
413
414
  {
@@ -422,17 +423,16 @@
422
423
  "removedExports": [],
423
424
  "dependents": [
424
425
  "/src/unstable-core-do-not-import.ts",
425
- "/src/unstable-core-do-not-import/middleware.ts",
426
- "/src/unstable-core-do-not-import/router.ts",
427
426
  "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
428
427
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
429
- "/src/unstable-core-do-not-import/http/toURL.ts",
428
+ "/src/unstable-core-do-not-import/middleware.ts",
429
+ "/src/unstable-core-do-not-import/router.ts",
430
430
  "/src/unstable-core-do-not-import/http/contentType.ts",
431
431
  "/src/unstable-core-do-not-import/procedureBuilder.ts",
432
432
  "/src/unstable-core-do-not-import/stream/jsonl.ts",
433
433
  "/src/unstable-core-do-not-import/stream/sse.ts"
434
434
  ],
435
- "percent": 1.06,
435
+ "percent": 1.05,
436
436
  "reduction": 19.47
437
437
  },
438
438
  {
@@ -444,7 +444,7 @@
444
444
  ],
445
445
  "removedExports": [],
446
446
  "dependents": [],
447
- "percent": 1.04,
447
+ "percent": 1.03,
448
448
  "reduction": 19.29
449
449
  },
450
450
  {
@@ -457,7 +457,7 @@
457
457
  ],
458
458
  "removedExports": [],
459
459
  "dependents": [],
460
- "percent": 0.99,
460
+ "percent": 0.98,
461
461
  "reduction": 17.81
462
462
  },
463
463
  {
@@ -515,7 +515,7 @@
515
515
  "/src/unstable-core-do-not-import.ts",
516
516
  "/src/unstable-core-do-not-import/http/contentType.ts"
517
517
  ],
518
- "percent": 0.68,
518
+ "percent": 0.67,
519
519
  "reduction": 15.08
520
520
  },
521
521
  {
@@ -544,7 +544,7 @@
544
544
  "dependents": [
545
545
  "/src/unstable-core-do-not-import/stream/sse.ts"
546
546
  ],
547
- "percent": 0.65,
547
+ "percent": 0.64,
548
548
  "reduction": 12.78
549
549
  },
550
550
  {
@@ -587,7 +587,7 @@
587
587
  ],
588
588
  "removedExports": [],
589
589
  "dependents": [],
590
- "percent": 0.53,
590
+ "percent": 0.52,
591
591
  "reduction": 34.73
592
592
  },
593
593
  {
@@ -604,9 +604,22 @@
604
604
  "/src/unstable-core-do-not-import.ts",
605
605
  "/src/unstable-core-do-not-import/stream/sse.ts"
606
606
  ],
607
- "percent": 0.48,
607
+ "percent": 0.47,
608
608
  "reduction": 44.13
609
609
  },
610
+ {
611
+ "id": "/src/adapters/standalone.ts",
612
+ "size": 765,
613
+ "origSize": 1765,
614
+ "renderedExports": [
615
+ "createHTTPHandler",
616
+ "createHTTPServer"
617
+ ],
618
+ "removedExports": [],
619
+ "dependents": [],
620
+ "percent": 0.47,
621
+ "reduction": 56.66
622
+ },
610
623
  {
611
624
  "id": "/src/adapters/aws-lambda/index.ts",
612
625
  "size": 759,
@@ -616,7 +629,7 @@
616
629
  ],
617
630
  "removedExports": [],
618
631
  "dependents": [],
619
- "percent": 0.47,
632
+ "percent": 0.46,
620
633
  "reduction": 66.61
621
634
  },
622
635
  {
@@ -635,19 +648,6 @@
635
648
  "percent": 0.46,
636
649
  "reduction": 10.56
637
650
  },
638
- {
639
- "id": "/src/adapters/standalone.ts",
640
- "size": 746,
641
- "origSize": 1855,
642
- "renderedExports": [
643
- "createHTTPHandler",
644
- "createHTTPServer"
645
- ],
646
- "removedExports": [],
647
- "dependents": [],
648
- "percent": 0.46,
649
- "reduction": 59.78
650
- },
651
651
  {
652
652
  "id": "/src/unstable-core-do-not-import/stream/utils/createReadableStream.ts",
653
653
  "size": 705,
@@ -708,20 +708,6 @@
708
708
  "percent": 0.21,
709
709
  "reduction": 89.5
710
710
  },
711
- {
712
- "id": "/src/unstable-core-do-not-import/http/toURL.ts",
713
- "size": 343,
714
- "origSize": 377,
715
- "renderedExports": [
716
- "toURL"
717
- ],
718
- "removedExports": [],
719
- "dependents": [
720
- "/src/unstable-core-do-not-import.ts"
721
- ],
722
- "percent": 0.21,
723
- "reduction": 9.02
724
- },
725
711
  {
726
712
  "id": "/src/unstable-core-do-not-import/stream/utils/createDeferred.ts",
727
713
  "size": 309,
@@ -799,32 +785,31 @@
799
785
  "reduction": 93.8
800
786
  },
801
787
  {
802
- "id": "/src/index.ts",
788
+ "id": "/src/http.ts",
803
789
  "size": 0,
804
- "origSize": 32,
790
+ "origSize": 37,
805
791
  "renderedExports": [],
806
792
  "removedExports": [],
807
- "dependents": [],
793
+ "dependents": [
794
+ "/src/adapters/ws.ts"
795
+ ],
808
796
  "percent": 0,
809
797
  "reduction": 100
810
798
  },
811
799
  {
812
- "id": "/src/http.ts",
800
+ "id": "/src/index.ts",
813
801
  "size": 0,
814
- "origSize": 37,
802
+ "origSize": 32,
815
803
  "renderedExports": [],
816
804
  "removedExports": [],
817
- "dependents": [
818
- "/src/adapters/ws.ts",
819
- "/src/adapters/node-http/incomingMessageToRequest.ts"
820
- ],
805
+ "dependents": [],
821
806
  "percent": 0,
822
807
  "reduction": 100
823
808
  },
824
809
  {
825
- "id": "/src/rpc.ts",
810
+ "id": "/src/shared.ts",
826
811
  "size": 0,
827
- "origSize": 36,
812
+ "origSize": 653,
828
813
  "renderedExports": [],
829
814
  "removedExports": [],
830
815
  "dependents": [],
@@ -832,9 +817,9 @@
832
817
  "reduction": 100
833
818
  },
834
819
  {
835
- "id": "/src/shared.ts",
820
+ "id": "/src/rpc.ts",
836
821
  "size": 0,
837
- "origSize": 653,
822
+ "origSize": 36,
838
823
  "renderedExports": [],
839
824
  "removedExports": [],
840
825
  "dependents": [],
@@ -844,16 +829,16 @@
844
829
  {
845
830
  "id": "/src/unstable-core-do-not-import.ts",
846
831
  "size": 0,
847
- "origSize": 2370,
832
+ "origSize": 2312,
848
833
  "renderedExports": [],
849
834
  "removedExports": [],
850
835
  "dependents": [
851
836
  "/src/adapters/express.ts",
852
837
  "/src/adapters/next.ts",
853
- "/src/adapters/ws.ts",
854
838
  "/src/adapters/standalone.ts",
855
- "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
856
- "/src/adapters/next-app-dir/nextAppDirCaller.ts"
839
+ "/src/adapters/ws.ts",
840
+ "/src/adapters/next-app-dir/nextAppDirCaller.ts",
841
+ "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
857
842
  ],
858
843
  "percent": 0,
859
844
  "reduction": 100
@@ -910,11 +895,12 @@
910
895
  "/src/adapters/express.ts",
911
896
  "/src/adapters/next.ts",
912
897
  "/src/adapters/standalone.ts",
898
+ "/src/adapters/ws.ts",
913
899
  "/src/adapters/fastify/fastifyRequestHandler.ts"
914
900
  ],
915
901
  "percent": 0,
916
902
  "reduction": 100
917
903
  }
918
904
  ],
919
- "moduleCount": 60
905
+ "moduleCount": 59
920
906
  }
package/dist/http.js CHANGED
@@ -5,7 +5,6 @@ var batchStreamFormatter = require('./unstable-core-do-not-import/http/batchStre
5
5
  var parseConnectionParams = require('./unstable-core-do-not-import/http/parseConnectionParams.js');
6
6
  var contentTypeParsers = require('./unstable-core-do-not-import/http/contentTypeParsers.js');
7
7
  var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
8
- var toURL = require('./unstable-core-do-not-import/http/toURL.js');
9
8
  require('./unstable-core-do-not-import/rootConfig.js');
10
9
 
11
10
 
@@ -17,4 +16,3 @@ exports.parseConnectionParamsFromString = parseConnectionParams.parseConnectionP
17
16
  exports.parseConnectionParamsFromUnknown = parseConnectionParams.parseConnectionParamsFromUnknown;
18
17
  exports.octetInputParser = contentTypeParsers.octetInputParser;
19
18
  exports.resolveResponse = resolveResponse.resolveResponse;
20
- exports.toURL = toURL.toURL;
package/dist/http.mjs CHANGED
@@ -3,5 +3,4 @@ export { getBatchStreamFormatter } from './unstable-core-do-not-import/http/batc
3
3
  export { parseConnectionParamsFromString, parseConnectionParamsFromUnknown } from './unstable-core-do-not-import/http/parseConnectionParams.mjs';
4
4
  export { octetInputParser } from './unstable-core-do-not-import/http/contentTypeParsers.mjs';
5
5
  export { resolveResponse } from './unstable-core-do-not-import/http/resolveResponse.mjs';
6
- export { toURL } from './unstable-core-do-not-import/http/toURL.mjs';
7
6
  import './unstable-core-do-not-import/rootConfig.mjs';
@@ -22,7 +22,6 @@ export * from './unstable-core-do-not-import/http/formDataToObject';
22
22
  export * from './unstable-core-do-not-import/http/getHTTPStatusCode';
23
23
  export * from './unstable-core-do-not-import/http/parseConnectionParams';
24
24
  export * from './unstable-core-do-not-import/http/resolveResponse';
25
- export * from './unstable-core-do-not-import/http/toURL';
26
25
  export * from './unstable-core-do-not-import/http/types';
27
26
  export * from './unstable-core-do-not-import/initTRPC';
28
27
  export * from './unstable-core-do-not-import/middleware';
@@ -1 +1 @@
1
- {"version":3,"file":"unstable-core-do-not-import.d.ts","sourceRoot":"","sources":["../src/unstable-core-do-not-import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,0DAA0D,CAAC;AACzE,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"unstable-core-do-not-import.d.ts","sourceRoot":"","sources":["../src/unstable-core-do-not-import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,0DAA0D,CAAC;AACzE,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC"}
@@ -11,7 +11,6 @@ var formDataToObject = require('./unstable-core-do-not-import/http/formDataToObj
11
11
  var getHTTPStatusCode = require('./unstable-core-do-not-import/http/getHTTPStatusCode.js');
12
12
  var parseConnectionParams = require('./unstable-core-do-not-import/http/parseConnectionParams.js');
13
13
  var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
14
- var toURL = require('./unstable-core-do-not-import/http/toURL.js');
15
14
  var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
16
15
  var middleware = require('./unstable-core-do-not-import/middleware.js');
17
16
  var parser = require('./unstable-core-do-not-import/parser.js');
@@ -50,7 +49,6 @@ exports.getStatusKeyFromCode = getHTTPStatusCode.getStatusKeyFromCode;
50
49
  exports.parseConnectionParamsFromString = parseConnectionParams.parseConnectionParamsFromString;
51
50
  exports.parseConnectionParamsFromUnknown = parseConnectionParams.parseConnectionParamsFromUnknown;
52
51
  exports.resolveResponse = resolveResponse.resolveResponse;
53
- exports.toURL = toURL.toURL;
54
52
  exports.initTRPC = initTRPC.initTRPC;
55
53
  exports.createInputMiddleware = middleware.createInputMiddleware;
56
54
  exports.createMiddlewareFactory = middleware.createMiddlewareFactory;
@@ -9,7 +9,6 @@ export { formDataToObject } from './unstable-core-do-not-import/http/formDataToO
9
9
  export { HTTP_CODE_TO_JSONRPC2, JSONRPC2_TO_HTTP_CODE, getHTTPStatusCode, getHTTPStatusCodeFromError, getStatusCodeFromKey, getStatusKeyFromCode } from './unstable-core-do-not-import/http/getHTTPStatusCode.mjs';
10
10
  export { parseConnectionParamsFromString, parseConnectionParamsFromUnknown } from './unstable-core-do-not-import/http/parseConnectionParams.mjs';
11
11
  export { resolveResponse } from './unstable-core-do-not-import/http/resolveResponse.mjs';
12
- export { toURL } from './unstable-core-do-not-import/http/toURL.mjs';
13
12
  export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
14
13
  export { createInputMiddleware, createMiddlewareFactory, createOutputMiddleware, experimental_standaloneMiddleware, middlewareMarker } from './unstable-core-do-not-import/middleware.mjs';
15
14
  export { getParseFn } from './unstable-core-do-not-import/parser.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "11.0.0-rc.607+ba163f180",
3
+ "version": "11.0.0-rc.619+0f06947e0",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -149,5 +149,5 @@
149
149
  "funding": [
150
150
  "https://trpc.io/sponsor"
151
151
  ],
152
- "gitHead": "ba163f18096c6586e1bcb9fbeb14e9c3e7458f82"
152
+ "gitHead": "0f06947e0801db7f9cb236d4018dc4dfe34dcedd"
153
153
  }
@@ -22,5 +22,4 @@ export {
22
22
  octetInputParser,
23
23
  parseConnectionParamsFromUnknown,
24
24
  parseConnectionParamsFromString,
25
- toURL,
26
25
  } from '../../unstable-core-do-not-import';
@@ -11,7 +11,7 @@
11
11
 
12
12
  import type { AnyRouter } from '../../@trpc/server';
13
13
  import type { ResolveHTTPRequestOptionsContextFn } from '../../@trpc/server/http';
14
- import { resolveResponse, toURL } from '../../@trpc/server/http';
14
+ import { resolveResponse } from '../../@trpc/server/http';
15
15
  import type { FetchHandlerRequestOptions } from './types';
16
16
 
17
17
  const trimSlashes = (path: string): string => {
@@ -32,7 +32,7 @@ export async function fetchRequestHandler<TRouter extends AnyRouter>(
32
32
  return opts.createContext?.({ req: opts.req, resHeaders, ...innerOpts });
33
33
  };
34
34
 
35
- const url = toURL(opts.req.url);
35
+ const url = new URL(opts.req.url);
36
36
 
37
37
  const pathname = trimSlashes(url.pathname);
38
38
  const endpoint = trimSlashes(opts.endpoint);