@trpc/server 11.0.0-rc.608 → 11.0.0-rc.621

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 +79 -40
  8. package/dist/adapters/node-http/incomingMessageToRequest.mjs +79 -41
  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 +86 -100
  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 +106 -41
  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": 164478,
3
+ "bundleOrigSize": 215018,
4
+ "bundleReduction": 23.51,
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.16,
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.21,
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.07,
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.67,
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.9,
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.52,
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.29,
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.71,
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": 3806,
201
+ "origSize": 4302,
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.31,
212
+ "reduction": 11.53
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
  {
@@ -226,7 +242,7 @@
226
242
  "/src/unstable-core-do-not-import/initTRPC.ts",
227
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
  {
@@ -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
  {
@@ -378,7 +379,7 @@
378
379
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
379
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
  {
@@ -424,7 +425,6 @@
424
425
  "/src/unstable-core-do-not-import.ts",
425
426
  "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
426
427
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
427
- "/src/unstable-core-do-not-import/http/toURL.ts",
428
428
  "/src/unstable-core-do-not-import/middleware.ts",
429
429
  "/src/unstable-core-do-not-import/router.ts",
430
430
  "/src/unstable-core-do-not-import/http/contentType.ts",
@@ -432,7 +432,7 @@
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
  {
@@ -529,7 +529,7 @@
529
529
  "dependents": [
530
530
  "/src/unstable-core-do-not-import.ts"
531
531
  ],
532
- "percent": 0.65,
532
+ "percent": 0.64,
533
533
  "reduction": 0
534
534
  },
535
535
  {
@@ -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,
@@ -693,20 +693,6 @@
693
693
  "percent": 0.38,
694
694
  "reduction": 43.49
695
695
  },
696
- {
697
- "id": "/src/unstable-core-do-not-import/http/toURL.ts",
698
- "size": 343,
699
- "origSize": 377,
700
- "renderedExports": [
701
- "toURL"
702
- ],
703
- "removedExports": [],
704
- "dependents": [
705
- "/src/unstable-core-do-not-import.ts"
706
- ],
707
- "percent": 0.21,
708
- "reduction": 9.02
709
- },
710
696
  {
711
697
  "id": "/src/unstable-core-do-not-import/rootConfig.ts",
712
698
  "size": 343,
@@ -805,8 +791,7 @@
805
791
  "renderedExports": [],
806
792
  "removedExports": [],
807
793
  "dependents": [
808
- "/src/adapters/ws.ts",
809
- "/src/adapters/node-http/incomingMessageToRequest.ts"
794
+ "/src/adapters/ws.ts"
810
795
  ],
811
796
  "percent": 0,
812
797
  "reduction": 100
@@ -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
- "/src/adapters/standalone.ts",
853
837
  "/src/adapters/ws.ts",
854
838
  "/src/adapters/next.ts",
855
- "/src/adapters/next-app-dir/nextAppDirCaller.ts",
856
- "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
839
+ "/src/adapters/standalone.ts",
840
+ "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
841
+ "/src/adapters/next-app-dir/nextAppDirCaller.ts"
857
842
  ],
858
843
  "percent": 0,
859
844
  "reduction": 100
@@ -891,30 +876,31 @@
891
876
  "reduction": 100
892
877
  },
893
878
  {
894
- "id": "/src/adapters/node-http/index.ts",
879
+ "id": "/src/adapters/fetch/index.ts",
895
880
  "size": 0,
896
- "origSize": 111,
881
+ "origSize": 64,
897
882
  "renderedExports": [],
898
883
  "removedExports": [],
899
- "dependents": [
900
- "/src/adapters/express.ts",
901
- "/src/adapters/standalone.ts",
902
- "/src/adapters/next.ts",
903
- "/src/adapters/fastify/fastifyRequestHandler.ts"
904
- ],
884
+ "dependents": [],
905
885
  "percent": 0,
906
886
  "reduction": 100
907
887
  },
908
888
  {
909
- "id": "/src/adapters/fetch/index.ts",
889
+ "id": "/src/adapters/node-http/index.ts",
910
890
  "size": 0,
911
- "origSize": 64,
891
+ "origSize": 111,
912
892
  "renderedExports": [],
913
893
  "removedExports": [],
914
- "dependents": [],
894
+ "dependents": [
895
+ "/src/adapters/express.ts",
896
+ "/src/adapters/ws.ts",
897
+ "/src/adapters/next.ts",
898
+ "/src/adapters/standalone.ts",
899
+ "/src/adapters/fastify/fastifyRequestHandler.ts"
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.608+f75de97b3",
3
+ "version": "11.0.0-rc.621+87fde6297",
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": "f75de97b331c3eb64d16ac0d4d89fb7584358bf3"
152
+ "gitHead": "87fde62978441b1cedd1d5cf7290f6ade9a92607"
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);