@trpc/server 11.0.0-next-beta.235 → 11.0.0-next-beta.236

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 (39) hide show
  1. package/dist/adapters/node-http/content-type/form-data/index.d.ts +3 -5
  2. package/dist/adapters/node-http/content-type/form-data/index.d.ts.map +1 -1
  3. package/dist/bundle-analysis.json +67 -66
  4. package/dist/index.js +1 -0
  5. package/dist/index.mjs +1 -0
  6. package/dist/unstable-core-do-not-import/TRPCInferrable.d.ts +2 -2
  7. package/dist/unstable-core-do-not-import/TRPCInferrable.d.ts.map +1 -1
  8. package/dist/unstable-core-do-not-import/index.d.ts +4 -3
  9. package/dist/unstable-core-do-not-import/index.d.ts.map +1 -1
  10. package/dist/unstable-core-do-not-import/index.js +2 -0
  11. package/dist/unstable-core-do-not-import/index.mjs +1 -0
  12. package/dist/unstable-core-do-not-import/initTRPC.d.ts +34 -43
  13. package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
  14. package/dist/unstable-core-do-not-import/initTRPC.js +17 -26
  15. package/dist/unstable-core-do-not-import/initTRPC.mjs +17 -26
  16. package/dist/unstable-core-do-not-import/procedure.d.ts +3 -4
  17. package/dist/unstable-core-do-not-import/procedure.d.ts.map +1 -1
  18. package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +2 -3
  19. package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
  20. package/dist/unstable-core-do-not-import/rootConfig.d.ts +10 -12
  21. package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
  22. package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
  23. package/dist/unstable-core-do-not-import/transformer.d.ts +1 -7
  24. package/dist/unstable-core-do-not-import/transformer.d.ts.map +1 -1
  25. package/dist/unstable-core-do-not-import/transformer.js +0 -1
  26. package/dist/unstable-core-do-not-import/transformer.mjs +0 -1
  27. package/dist/unstable-core-do-not-import/types.d.ts +6 -0
  28. package/dist/unstable-core-do-not-import/types.d.ts.map +1 -1
  29. package/package.json +2 -2
  30. package/src/adapters/node-http/content-type/form-data/index.ts +10 -10
  31. package/src/unstable-core-do-not-import/TRPCInferrable.ts +7 -3
  32. package/src/unstable-core-do-not-import/index.ts +3 -2
  33. package/src/unstable-core-do-not-import/initTRPC.ts +59 -101
  34. package/src/unstable-core-do-not-import/procedure.ts +3 -4
  35. package/src/unstable-core-do-not-import/procedureBuilder.ts +10 -6
  36. package/src/unstable-core-do-not-import/rootConfig.ts +10 -14
  37. package/src/unstable-core-do-not-import/router.ts +1 -2
  38. package/src/unstable-core-do-not-import/transformer.ts +1 -9
  39. package/src/unstable-core-do-not-import/types.ts +6 -0
@@ -19,10 +19,8 @@ import type { UploadHandler } from './uploadHandler';
19
19
  declare function parseMultipartFormData(request: NodeHTTPRequest, uploadHandler: UploadHandler, maxBodySize?: number): Promise<FormData>;
20
20
  declare function isMultipartFormDataRequest(req: NodeHTTPRequest): boolean;
21
21
  export declare const nodeHTTPFormDataContentTypeHandler: <TRequest extends NodeHTTPRequest, TResponse extends import("../../types").NodeHTTPResponse>() => import("../../internals/contentType").NodeHTTPContentTypeHandler<TRequest, TResponse>;
22
- export { parseMultipartFormData as experimental_parseMultipartFormData };
22
+ export { NodeOnDiskFile as experimental_NodeOnDiskFile, createFileUploadHandler as experimental_createFileUploadHandler, } from './fileUploadHandler';
23
23
  export { createMemoryUploadHandler as experimental_createMemoryUploadHandler } from './memoryUploadHandler';
24
- export { createFileUploadHandler as experimental_createFileUploadHandler, NodeOnDiskFile as experimental_NodeOnDiskFile, } from './fileUploadHandler';
25
- export { composeUploadHandlers as experimental_composeUploadHandlers, MaxPartSizeExceededError, MaxBodySizeExceededError, } from './uploadHandler';
26
- export { type UploadHandler } from './uploadHandler';
27
- export { isMultipartFormDataRequest as experimental_isMultipartFormDataRequest };
24
+ export { MaxBodySizeExceededError, MaxPartSizeExceededError, composeUploadHandlers as experimental_composeUploadHandlers, type UploadHandler, } from './uploadHandler';
25
+ export { isMultipartFormDataRequest as experimental_isMultipartFormDataRequest, parseMultipartFormData as experimental_parseMultipartFormData, };
28
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,iBAAiB,CAAC;AAKxE;;;;;;;;;GASG;AACH,iBAAe,sBAAsB,CACnC,OAAO,EAAE,eAAe,EACxB,aAAa,EAAE,aAAa,EAC5B,WAAW,SAAW,qBAoEvB;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,eAAe,WAMvD;AAED,eAAO,MAAM,kCAAkC,yLAgC3C,CAAC;AAEL,OAAO,EAAE,sBAAsB,IAAI,mCAAmC,EAAE,CAAC;AACzE,OAAO,EAAE,yBAAyB,IAAI,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC5G,OAAO,EACL,uBAAuB,IAAI,oCAAoC,EAC/D,cAAc,IAAI,2BAA2B,GAC9C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,IAAI,kCAAkC,EAC3D,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,0BAA0B,IAAI,uCAAuC,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,iBAAiB,CAAC;AAKxE;;;;;;;;;GASG;AACH,iBAAe,sBAAsB,CACnC,OAAO,EAAE,eAAe,EACxB,aAAa,EAAE,aAAa,EAC5B,WAAW,SAAW,qBAoEvB;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,eAAe,WAMvD;AAED,eAAO,MAAM,kCAAkC,yLA+B3C,CAAC;AAEL,OAAO,EACL,cAAc,IAAI,2BAA2B,EAC7C,uBAAuB,IAAI,oCAAoC,GAChE,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,IAAI,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC5G,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,IAAI,kCAAkC,EAC3D,KAAK,aAAa,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,IAAI,uCAAuC,EACrE,sBAAsB,IAAI,mCAAmC,GAC9D,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
- "bundleSize": 102737,
3
- "bundleOrigSize": 159589,
4
- "bundleReduction": 35.62,
2
+ "bundleSize": 102411,
3
+ "bundleOrigSize": 157791,
4
+ "bundleReduction": 35.1,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
@@ -14,7 +14,7 @@
14
14
  "dependents": [
15
15
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
16
16
  ],
17
- "percent": 9.61,
17
+ "percent": 9.64,
18
18
  "reduction": 0
19
19
  },
20
20
  {
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "removedExports": [],
28
28
  "dependents": [],
29
- "percent": 9.02,
29
+ "percent": 9.05,
30
30
  "reduction": 23.34
31
31
  },
32
32
  {
@@ -42,13 +42,13 @@
42
42
  "dependents": [
43
43
  "/src/adapters/node-http/content-type/form-data/index.ts"
44
44
  ],
45
- "percent": 5.84,
45
+ "percent": 5.86,
46
46
  "reduction": 5.48
47
47
  },
48
48
  {
49
49
  "id": "/src/unstable-core-do-not-import/router.ts",
50
50
  "size": 5634,
51
- "origSize": 10570,
51
+ "origSize": 10481,
52
52
  "renderedExports": [
53
53
  "createRouterFactory",
54
54
  "callProcedure",
@@ -58,16 +58,16 @@
58
58
  "removedExports": [],
59
59
  "dependents": [
60
60
  "/src/unstable-core-do-not-import/index.ts",
61
- "/src/unstable-core-do-not-import/initTRPC.ts",
62
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
61
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
62
+ "/src/unstable-core-do-not-import/initTRPC.ts"
63
63
  ],
64
- "percent": 5.48,
65
- "reduction": 46.7
64
+ "percent": 5.5,
65
+ "reduction": 46.25
66
66
  },
67
67
  {
68
68
  "id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
69
69
  "size": 5602,
70
- "origSize": 11599,
70
+ "origSize": 11556,
71
71
  "renderedExports": [
72
72
  "unsetMarker",
73
73
  "createBuilder"
@@ -77,8 +77,8 @@
77
77
  "/src/unstable-core-do-not-import/index.ts",
78
78
  "/src/unstable-core-do-not-import/initTRPC.ts"
79
79
  ],
80
- "percent": 5.45,
81
- "reduction": 51.7
80
+ "percent": 5.47,
81
+ "reduction": 51.52
82
82
  },
83
83
  {
84
84
  "id": "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
@@ -93,7 +93,7 @@
93
93
  "dependents": [
94
94
  "/src/adapters/node-http/content-type/form-data/index.ts"
95
95
  ],
96
- "percent": 4.84,
96
+ "percent": 4.86,
97
97
  "reduction": 36.77
98
98
  },
99
99
  {
@@ -117,22 +117,22 @@
117
117
  "dependents": [
118
118
  "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js"
119
119
  ],
120
- "percent": 4.34,
120
+ "percent": 4.35,
121
121
  "reduction": 35.54
122
122
  },
123
123
  {
124
124
  "id": "/src/adapters/node-http/content-type/form-data/index.ts",
125
125
  "size": 4410,
126
- "origSize": 6716,
126
+ "origSize": 6569,
127
127
  "renderedExports": [
128
128
  "nodeHTTPFormDataContentTypeHandler",
129
- "experimental_parseMultipartFormData",
130
- "experimental_isMultipartFormDataRequest"
129
+ "experimental_isMultipartFormDataRequest",
130
+ "experimental_parseMultipartFormData"
131
131
  ],
132
132
  "removedExports": [],
133
133
  "dependents": [],
134
- "percent": 4.29,
135
- "reduction": 34.34
134
+ "percent": 4.31,
135
+ "reduction": 32.87
136
136
  },
137
137
  {
138
138
  "id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
@@ -145,7 +145,7 @@
145
145
  "dependents": [
146
146
  "/src/adapters/node-http/index.ts"
147
147
  ],
148
- "percent": 3.83,
148
+ "percent": 3.84,
149
149
  "reduction": 12.67
150
150
  },
151
151
  {
@@ -159,7 +159,7 @@
159
159
  "dependents": [
160
160
  "/src/adapters/fetch/index.ts"
161
161
  ],
162
- "percent": 3.46,
162
+ "percent": 3.47,
163
163
  "reduction": 9.42
164
164
  },
165
165
  {
@@ -175,7 +175,7 @@
175
175
  "dependents": [
176
176
  "/src/observable/index.ts"
177
177
  ],
178
- "percent": 3.34,
178
+ "percent": 3.35,
179
179
  "reduction": 5.43
180
180
  },
181
181
  {
@@ -194,23 +194,9 @@
194
194
  "dependents": [
195
195
  "/src/adapters/aws-lambda/index.ts"
196
196
  ],
197
- "percent": 3.22,
197
+ "percent": 3.23,
198
198
  "reduction": 36.48
199
199
  },
200
- {
201
- "id": "/src/unstable-core-do-not-import/initTRPC.ts",
202
- "size": 3185,
203
- "origSize": 5796,
204
- "renderedExports": [
205
- "initTRPC"
206
- ],
207
- "removedExports": [],
208
- "dependents": [
209
- "/src/unstable-core-do-not-import/index.ts"
210
- ],
211
- "percent": 3.1,
212
- "reduction": 45.05
213
- },
214
200
  {
215
201
  "id": "/src/observable/operators.ts",
216
202
  "size": 2980,
@@ -224,13 +210,27 @@
224
210
  "dependents": [
225
211
  "/src/observable/index.ts"
226
212
  ],
227
- "percent": 2.9,
213
+ "percent": 2.91,
228
214
  "reduction": 0
229
215
  },
216
+ {
217
+ "id": "/src/unstable-core-do-not-import/initTRPC.ts",
218
+ "size": 2879,
219
+ "origSize": 4684,
220
+ "renderedExports": [
221
+ "initTRPC"
222
+ ],
223
+ "removedExports": [],
224
+ "dependents": [
225
+ "/src/unstable-core-do-not-import/index.ts"
226
+ ],
227
+ "percent": 2.81,
228
+ "reduction": 38.54
229
+ },
230
230
  {
231
231
  "id": "/src/unstable-core-do-not-import/transformer.ts",
232
- "size": 2764,
233
- "origSize": 5168,
232
+ "size": 2744,
233
+ "origSize": 5043,
234
234
  "renderedExports": [
235
235
  "getDataTransformer",
236
236
  "defaultTransformer",
@@ -240,12 +240,12 @@
240
240
  "removedExports": [],
241
241
  "dependents": [
242
242
  "/src/unstable-core-do-not-import/index.ts",
243
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
243
244
  "/src/unstable-core-do-not-import/initTRPC.ts",
244
- "/src/unstable-core-do-not-import/router.ts",
245
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
245
+ "/src/unstable-core-do-not-import/router.ts"
246
246
  ],
247
- "percent": 2.69,
248
- "reduction": 46.52
247
+ "percent": 2.68,
248
+ "reduction": 45.59
249
249
  },
250
250
  {
251
251
  "id": "/src/adapters/fastify/fastifyRequestHandler.ts",
@@ -259,7 +259,7 @@
259
259
  "/src/adapters/fastify/index.ts",
260
260
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
261
261
  ],
262
- "percent": 2.52,
262
+ "percent": 2.53,
263
263
  "reduction": 35.33
264
264
  },
265
265
  {
@@ -279,7 +279,7 @@
279
279
  "/src/unstable-core-do-not-import/initTRPC.ts",
280
280
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
281
281
  ],
282
- "percent": 2.51,
282
+ "percent": 2.52,
283
283
  "reduction": 55.95
284
284
  },
285
285
  {
@@ -291,7 +291,7 @@
291
291
  ],
292
292
  "removedExports": [],
293
293
  "dependents": [],
294
- "percent": 2.47,
294
+ "percent": 2.48,
295
295
  "reduction": 31.37
296
296
  },
297
297
  {
@@ -306,10 +306,10 @@
306
306
  "removedExports": [],
307
307
  "dependents": [
308
308
  "/src/unstable-core-do-not-import/index.ts",
309
- "/src/unstable-core-do-not-import/middleware.ts",
310
- "/src/unstable-core-do-not-import/router.ts",
311
309
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
312
310
  "/src/unstable-core-do-not-import/http/contentType.ts",
311
+ "/src/unstable-core-do-not-import/middleware.ts",
312
+ "/src/unstable-core-do-not-import/router.ts",
313
313
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
314
314
  ],
315
315
  "percent": 1.69,
@@ -408,8 +408,8 @@
408
408
  ],
409
409
  "removedExports": [],
410
410
  "dependents": [
411
- "/src/unstable-core-do-not-import/error/getErrorShape.ts",
412
- "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
411
+ "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
412
+ "/src/unstable-core-do-not-import/error/getErrorShape.ts"
413
413
  ],
414
414
  "percent": 1.21,
415
415
  "reduction": 16.62
@@ -438,7 +438,7 @@
438
438
  ],
439
439
  "removedExports": [],
440
440
  "dependents": [],
441
- "percent": 0.99,
441
+ "percent": 1,
442
442
  "reduction": 22.9
443
443
  },
444
444
  {
@@ -454,11 +454,11 @@
454
454
  "removedExports": [],
455
455
  "dependents": [
456
456
  "/src/unstable-core-do-not-import/index.ts",
457
+ "/src/unstable-core-do-not-import/rpc/codes.ts",
457
458
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
458
459
  "/src/unstable-core-do-not-import/middleware.ts",
459
460
  "/src/unstable-core-do-not-import/router.ts",
460
461
  "/src/unstable-core-do-not-import/transformer.ts",
461
- "/src/unstable-core-do-not-import/rpc/codes.ts",
462
462
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
463
463
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
464
464
  ],
@@ -574,16 +574,17 @@
574
574
  {
575
575
  "id": "/src/unstable-core-do-not-import/rootConfig.ts",
576
576
  "size": 343,
577
- "origSize": 2399,
577
+ "origSize": 2209,
578
578
  "renderedExports": [
579
579
  "isServerDefault"
580
580
  ],
581
581
  "removedExports": [],
582
582
  "dependents": [
583
+ "/src/unstable-core-do-not-import/index.ts",
583
584
  "/src/unstable-core-do-not-import/initTRPC.ts"
584
585
  ],
585
586
  "percent": 0.33,
586
- "reduction": 85.7
587
+ "reduction": 84.47
587
588
  },
588
589
  {
589
590
  "id": "/src/adapters/express.ts",
@@ -608,7 +609,7 @@
608
609
  "dependents": [
609
610
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
610
611
  ],
611
- "percent": 0.28,
612
+ "percent": 0.29,
612
613
  "reduction": 35.11
613
614
  },
614
615
  {
@@ -629,7 +630,7 @@
629
630
  {
630
631
  "id": "/src/unstable-core-do-not-import/procedure.ts",
631
632
  "size": 75,
632
- "origSize": 2840,
633
+ "origSize": 2760,
633
634
  "renderedExports": [
634
635
  "procedureTypes"
635
636
  ],
@@ -639,7 +640,7 @@
639
640
  "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
640
641
  ],
641
642
  "percent": 0.07,
642
- "reduction": 97.36
643
+ "reduction": 97.28
643
644
  },
644
645
  {
645
646
  "id": "/src/unstable-core-do-not-import/error/formatter.ts",
@@ -657,9 +658,9 @@
657
658
  "reduction": 94.08
658
659
  },
659
660
  {
660
- "id": "/src/index.ts",
661
+ "id": "/src/http.ts",
661
662
  "size": 0,
662
- "origSize": 32,
663
+ "origSize": 37,
663
664
  "renderedExports": [],
664
665
  "removedExports": [],
665
666
  "dependents": [],
@@ -667,9 +668,9 @@
667
668
  "reduction": 100
668
669
  },
669
670
  {
670
- "id": "/src/http.ts",
671
+ "id": "/src/index.ts",
671
672
  "size": 0,
672
- "origSize": 37,
673
+ "origSize": 32,
673
674
  "renderedExports": [],
674
675
  "removedExports": [],
675
676
  "dependents": [],
@@ -711,7 +712,7 @@
711
712
  {
712
713
  "id": "/src/unstable-core-do-not-import/index.ts",
713
714
  "size": 0,
714
- "origSize": 2839,
715
+ "origSize": 2827,
715
716
  "renderedExports": [],
716
717
  "removedExports": [],
717
718
  "dependents": [],
@@ -745,8 +746,8 @@
745
746
  "renderedExports": [],
746
747
  "removedExports": [],
747
748
  "dependents": [
748
- "/src/adapters/express.ts",
749
749
  "/src/adapters/next.ts",
750
+ "/src/adapters/express.ts",
750
751
  "/src/adapters/standalone.ts"
751
752
  ],
752
753
  "percent": 0,
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ var TRPCError = require('./unstable-core-do-not-import/error/TRPCError.js');
4
4
  var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.js');
5
5
  var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
6
6
  var middleware = require('./unstable-core-do-not-import/middleware.js');
7
+ require('./unstable-core-do-not-import/rootConfig.js');
7
8
  var router = require('./unstable-core-do-not-import/router.js');
8
9
  var transformer = require('./unstable-core-do-not-import/transformer.js');
9
10
  var createProxy = require('./unstable-core-do-not-import/createProxy.js');
package/dist/index.mjs CHANGED
@@ -2,6 +2,7 @@ export { TRPCError, getTRPCErrorFromUnknown } from './unstable-core-do-not-impor
2
2
  export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape.mjs';
3
3
  export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
4
4
  export { experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware } from './unstable-core-do-not-import/middleware.mjs';
5
+ import './unstable-core-do-not-import/rootConfig.mjs';
5
6
  export { callProcedure, callProcedure as callTRPCProcedure } from './unstable-core-do-not-import/router.mjs';
6
7
  export { transformTRPCResponse } from './unstable-core-do-not-import/transformer.mjs';
7
8
  export { createFlatProxy as createTRPCFlatProxy } from './unstable-core-do-not-import/createProxy.mjs';
@@ -1,6 +1,6 @@
1
1
  import type { AnyRootConfig } from './rootConfig';
2
2
  import type { AnyRouter } from './router';
3
3
  export type TRPCInferrable = AnyRouter | AnyRootConfig;
4
- export type inferConfig<TInferrable extends TRPCInferrable> = TInferrable extends AnyRouter ? TInferrable['_def']['_config'] : TInferrable;
5
- export type inferErrorShape<TInferrable extends TRPCInferrable> = inferConfig<TInferrable>['$types']['errorShape'];
4
+ export type inferConfigTypes<TInferrable extends TRPCInferrable> = TInferrable extends AnyRouter ? TInferrable['_def']['_config']['$types'] : TInferrable extends AnyRootConfig ? TInferrable['$types'] : never;
5
+ export type inferErrorShape<TInferrable extends TRPCInferrable> = inferConfigTypes<TInferrable>['errorShape'];
6
6
  //# sourceMappingURL=TRPCInferrable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TRPCInferrable.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/TRPCInferrable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,aAAa,CAAC;AACvD,MAAM,MAAM,WAAW,CAAC,WAAW,SAAS,cAAc,IACxD,WAAW,SAAS,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,WAAW,CAAC;AAE/E,MAAM,MAAM,eAAe,CAAC,WAAW,SAAS,cAAc,IAC5D,WAAW,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"TRPCInferrable.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/TRPCInferrable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,aAAa,CAAC;AACvD,MAAM,MAAM,gBAAgB,CAAC,WAAW,SAAS,cAAc,IAC7D,WAAW,SAAS,SAAS,GACzB,WAAW,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,GACxC,WAAW,SAAS,aAAa,GACjC,WAAW,CAAC,QAAQ,CAAC,GACrB,KAAK,CAAC;AAEZ,MAAM,MAAM,eAAe,CAAC,WAAW,SAAS,cAAc,IAC5D,gBAAgB,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC"}
@@ -19,16 +19,17 @@ export { procedureTypes } from './procedure';
19
19
  export type { AnyMutationProcedure, AnyProcedure, AnyQueryProcedure, AnySubscriptionProcedure, MutationProcedure, Procedure, ProcedureOptions, ProcedureType, QueryProcedure, SubscriptionProcedure, inferProcedureInput, inferProcedureOutput, inferProcedureParams, inferTransformedProcedureOutput, inferTransformedSubscriptionOutput, } from './procedure';
20
20
  export { createBuilder, unsetMarker } from './procedureBuilder';
21
21
  export type { ProcedureBuilder } from './procedureBuilder';
22
- export type { AnyRootConfig, RootConfig } from './rootConfig';
22
+ export * from './rootConfig';
23
23
  export type { AnyRouter, AnyRouterDef, CreateRouterInner, ProcedureRecord, ProcedureRouterRecord, Router, RouterCaller, createRouterFactory, inferRouterContext, inferRouterError, inferRouterInputs, inferRouterMeta, inferRouterOutputs, } from './router';
24
24
  export type { TRPCInferrable, inferErrorShape } from './TRPCInferrable';
25
25
  export { callProcedure, mergeRouters } from './router';
26
26
  export { transformResult, transformTRPCResponse } from './transformer';
27
- export type { CombinedDataTransformer, CombinedDataTransformerClient, DataTransformer, DataTransformerOptions, DefaultDataTransformer, } from './transformer';
27
+ export type { CombinedDataTransformer, CombinedDataTransformerClient, DataTransformer, DataTransformerOptions, } from './transformer';
28
28
  export { createFlatProxy, createRecursiveProxy } from './createProxy';
29
29
  export type { Serialize, SerializeObject } from './serialize';
30
- export type { DeepPartial, Dict, DistributiveOmit, Filter, FilterKeys, IntersectionError, Maybe, MaybePromise, Overwrite, PickFirstDefined, ProtectedIntersection, Simplify, Unwrap, ValidateShape, WithoutIndexSignature, } from './types';
30
+ export type { DeepPartial, Dict, DistributiveOmit, Filter, FilterKeys, IntersectionError, Maybe, MaybePromise, Overwrite, PickFirstDefined, ProtectedIntersection, Simplify, Unwrap, ValidateShape, WithoutIndexSignature, TypeError, } from './types';
31
31
  export { isObject } from './utils';
32
+ export * from './TRPCInferrable';
32
33
  /**
33
34
  * These should be re-exported from separate entrypoints in server package
34
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,iCAAiC,EACjC,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EACV,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,+BAA+B,EAC/B,kCAAkC,GACnC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EACV,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,YAAY,EACV,uBAAuB,EACvB,6BAA6B,EAC7B,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAGtE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9D,YAAY,EACV,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,KAAK,EACL,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,MAAM,EACN,aAAa,EACb,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;GAEG;AACH,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM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AM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAGtE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9D,YAAY,EACV,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,KAAK,EACL,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,MAAM,EACN,aAAa,EACb,qBAAqB,EACrB,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,cAAc,kBAAkB,CAAC;AACjC;;GAEG;AACH,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC"}
@@ -6,6 +6,7 @@ var initTRPC = require('./initTRPC.js');
6
6
  var middleware = require('./middleware.js');
7
7
  var procedure = require('./procedure.js');
8
8
  var procedureBuilder = require('./procedureBuilder.js');
9
+ var rootConfig = require('./rootConfig.js');
9
10
  var router = require('./router.js');
10
11
  var transformer = require('./transformer.js');
11
12
  var createProxy = require('./createProxy.js');
@@ -31,6 +32,7 @@ exports.middlewareMarker = middleware.middlewareMarker;
31
32
  exports.procedureTypes = procedure.procedureTypes;
32
33
  exports.createBuilder = procedureBuilder.createBuilder;
33
34
  exports.unsetMarker = procedureBuilder.unsetMarker;
35
+ exports.isServerDefault = rootConfig.isServerDefault;
34
36
  exports.callProcedure = router.callProcedure;
35
37
  exports.mergeRouters = router.mergeRouters;
36
38
  exports.transformResult = transformer.transformResult;
@@ -4,6 +4,7 @@ export { initTRPC } from './initTRPC.mjs';
4
4
  export { createInputMiddleware, createOutputMiddleware, experimental_standaloneMiddleware, middlewareMarker } from './middleware.mjs';
5
5
  export { procedureTypes } from './procedure.mjs';
6
6
  export { createBuilder, unsetMarker } from './procedureBuilder.mjs';
7
+ export { isServerDefault } from './rootConfig.mjs';
7
8
  export { callProcedure, mergeRouters } from './router.mjs';
8
9
  export { transformResult, transformTRPCResponse } from './transformer.mjs';
9
10
  export { createFlatProxy, createRecursiveProxy } from './createProxy.mjs';
@@ -1,74 +1,65 @@
1
1
  import { type DefaultErrorShape, type ErrorFormatter, type ErrorFormatterShape } from './error/formatter';
2
- import { type CreateRootConfigTypes, type RootConfig, type RootConfigTypes, type RuntimeConfig } from './rootConfig';
2
+ import { type RootConfig } from './rootConfig';
3
3
  import { mergeRouters } from './router';
4
- import { type DataTransformerOptions, type DefaultDataTransformer } from './transformer';
4
+ import type { DataTransformerOptions } from './transformer';
5
5
  import type { PickFirstDefined, Unwrap, ValidateShape } from './types';
6
- type PartialRootConfigTypes = Partial<RootConfigTypes>;
7
- type CreateRootConfigTypesFromPartial<TTypes extends PartialRootConfigTypes> = CreateRootConfigTypes<{
8
- ctx: TTypes['ctx'] extends RootConfigTypes['ctx'] ? TTypes['ctx'] : object;
9
- meta: TTypes['meta'] extends RootConfigTypes['meta'] ? TTypes['meta'] : object;
10
- errorShape: TTypes['errorShape'];
11
- transformer: DataTransformerOptions;
12
- }>;
13
- /**
14
- * TODO: This can be improved:
15
- * - We should be able to chain `.meta()`/`.context()` only once
16
- * - Simplify typings
17
- * - Doesn't need to be a class but it doesn't really hurt either
18
- */
19
- declare class TRPCBuilder<TParams extends PartialRootConfigTypes = object> {
6
+ interface RuntimeConfigOptions<TContext extends object, TMeta extends object> extends Partial<Omit<RootConfig<{
7
+ ctx: TContext;
8
+ meta: TMeta;
9
+ errorShape: any;
10
+ transformer: any;
11
+ }>, '$types' | 'transformer'>> {
12
+ /**
13
+ * Use a data transformer
14
+ * @link https://trpc.io/docs/v11/data-transformers
15
+ */
16
+ transformer?: DataTransformerOptions;
17
+ }
18
+ declare class TRPCBuilder<TContext extends object, TMeta extends object> {
20
19
  /**
21
20
  * Add a context shape as a generic to the root object
22
21
  * @link https://trpc.io/docs/v11/server/context
23
22
  */
24
- context<TNewContext extends RootConfigTypes['ctx'] | ((...args: unknown[]) => RootConfigTypes['ctx'])>(): TRPCBuilder<TParams extends object ? { [K in "ctx" | keyof import("./types").WithoutIndexSignature<TParams>]: K extends "ctx" ? {
25
- ctx: Unwrap<TNewContext>;
26
- }[K] : K extends keyof TParams ? TParams[K] : never; } : {
27
- ctx: Unwrap<TNewContext>;
28
- }>;
23
+ context<TNewContext extends object | ((...args: unknown[]) => object)>(): TRPCBuilder<Unwrap<TNewContext>, TMeta>;
29
24
  /**
30
25
  * Add a meta shape as a generic to the root object
31
26
  * @link https://trpc.io/docs/v11/quickstart
32
27
  */
33
- meta<TNewMeta extends RootConfigTypes['meta']>(): TRPCBuilder<TParams extends object ? { [K in "meta" | keyof import("./types").WithoutIndexSignature<TParams>]: K extends "meta" ? {
34
- meta: TNewMeta;
35
- }[K] : K extends keyof TParams ? TParams[K] : never; } : {
36
- meta: TNewMeta;
37
- }>;
28
+ meta<TNewMeta extends object>(): TRPCBuilder<TContext, TNewMeta>;
38
29
  /**
39
30
  * Create the root object
40
31
  * @link https://trpc.io/docs/v11/server/routers#initialize-trpc
41
32
  */
42
- create<TOptions extends Partial<RuntimeConfig<CreateRootConfigTypesFromPartial<TParams>>>>(options?: ValidateShape<TOptions, Partial<RuntimeConfig<CreateRootConfigTypesFromPartial<TParams>>>> | undefined): {
33
+ create<TOptions extends RuntimeConfigOptions<TContext, TMeta>>(opts?: ValidateShape<TOptions, RuntimeConfigOptions<TContext, TMeta>> | undefined): {
43
34
  /**
44
- * These are just types, they can't be used
35
+ * Your router config
45
36
  * @internal
46
37
  */
47
38
  _config: RootConfig<{
48
- ctx: TParams["ctx"] extends object ? TParams["ctx"] : object;
49
- meta: TParams["meta"] extends object ? TParams["meta"] : object;
50
- errorShape: ErrorFormatterShape<PickFirstDefined<TOptions["errorFormatter"], ErrorFormatter<TParams["ctx"] extends object ? TParams["ctx"] : object, DefaultErrorShape>>>;
51
- transformer: TOptions["transformer"] extends DataTransformerOptions ? TOptions["transformer"] : DefaultDataTransformer;
39
+ ctx: TContext;
40
+ meta: TMeta;
41
+ errorShape: ErrorFormatterShape<PickFirstDefined<TOptions["errorFormatter"], ErrorFormatter<TContext, DefaultErrorShape>>>;
42
+ transformer: undefined extends TOptions["transformer"] ? false : true;
52
43
  }>;
53
44
  /**
54
45
  * Builder object for creating procedures
55
46
  * @link https://trpc.io/docs/v11/server/procedures
56
47
  */
57
- procedure: import("./procedureBuilder").ProcedureBuilder<TParams["ctx"] extends object ? TParams["ctx"] : object, TParams["meta"] extends object ? TParams["meta"] : object, object, typeof import("./procedureBuilder").unsetMarker, typeof import("./procedureBuilder").unsetMarker, typeof import("./procedureBuilder").unsetMarker, typeof import("./procedureBuilder").unsetMarker>;
48
+ procedure: import("./procedureBuilder").ProcedureBuilder<TContext, TMeta, object, typeof import("./procedureBuilder").unsetMarker, typeof import("./procedureBuilder").unsetMarker, typeof import("./procedureBuilder").unsetMarker, typeof import("./procedureBuilder").unsetMarker>;
58
49
  /**
59
50
  * Create reusable middlewares
60
51
  * @link https://trpc.io/docs/v11/server/middlewares
61
52
  */
62
- middleware: <$ContextOverrides>(fn: import("./middleware").MiddlewareFunction<TParams["ctx"] extends object ? TParams["ctx"] : object, TParams["meta"] extends object ? TParams["meta"] : object, object, $ContextOverrides, unknown>) => import("./middleware").MiddlewareBuilder<TParams["ctx"] extends object ? TParams["ctx"] : object, TParams["meta"] extends object ? TParams["meta"] : object, $ContextOverrides, unknown>;
53
+ middleware: <$ContextOverrides>(fn: import("./middleware").MiddlewareFunction<TContext, TMeta, object, $ContextOverrides, unknown>) => import("./middleware").MiddlewareBuilder<TContext, TMeta, $ContextOverrides, unknown>;
63
54
  /**
64
55
  * Create a router
65
56
  * @link https://trpc.io/docs/v11/server/routers
66
57
  */
67
58
  router: <TProcRouterRecord extends import("./router").ProcedureRouterRecord>(procedures: TProcRouterRecord) => import("./router").CreateRouterInner<RootConfig<{
68
- ctx: TParams["ctx"] extends object ? TParams["ctx"] : object;
69
- meta: TParams["meta"] extends object ? TParams["meta"] : object;
70
- errorShape: ErrorFormatterShape<PickFirstDefined<TOptions["errorFormatter"], ErrorFormatter<TParams["ctx"] extends object ? TParams["ctx"] : object, DefaultErrorShape>>>;
71
- transformer: TOptions["transformer"] extends DataTransformerOptions ? TOptions["transformer"] : DefaultDataTransformer;
59
+ ctx: TContext;
60
+ meta: TMeta;
61
+ errorShape: ErrorFormatterShape<PickFirstDefined<TOptions["errorFormatter"], ErrorFormatter<TContext, DefaultErrorShape>>>;
62
+ transformer: undefined extends TOptions["transformer"] ? false : true;
72
63
  }>, TProcRouterRecord>;
73
64
  /**
74
65
  * Merge Routers
@@ -80,10 +71,10 @@ declare class TRPCBuilder<TParams extends PartialRootConfigTypes = object> {
80
71
  * @link https://trpc.io/docs/v11/server/server-side-calls
81
72
  */
82
73
  createCallerFactory: <TRouter extends import("./router").Router<import("./router").AnyRouterDef<RootConfig<{
83
- ctx: TParams["ctx"] extends object ? TParams["ctx"] : object;
84
- meta: TParams["meta"] extends object ? TParams["meta"] : object;
85
- errorShape: ErrorFormatterShape<PickFirstDefined<TOptions["errorFormatter"], ErrorFormatter<TParams["ctx"] extends object ? TParams["ctx"] : object, DefaultErrorShape>>>;
86
- transformer: TOptions["transformer"] extends DataTransformerOptions ? TOptions["transformer"] : DefaultDataTransformer;
74
+ ctx: TContext;
75
+ meta: TMeta;
76
+ errorShape: ErrorFormatterShape<PickFirstDefined<TOptions["errorFormatter"], ErrorFormatter<TContext, DefaultErrorShape>>>;
77
+ transformer: undefined extends TOptions["transformer"] ? false : true;
87
78
  }>>>>(router: TRouter) => import("./router").RouterCaller<TRouter["_def"]>;
88
79
  };
89
80
  }
@@ -91,6 +82,6 @@ declare class TRPCBuilder<TParams extends PartialRootConfigTypes = object> {
91
82
  * Builder to initialize the tRPC root object - use this exactly once per backend
92
83
  * @link https://trpc.io/docs/v11/quickstart
93
84
  */
94
- export declare const initTRPC: TRPCBuilder<object>;
85
+ export declare const initTRPC: TRPCBuilder<object, object>;
95
86
  export {};
96
87
  //# sourceMappingURL=initTRPC.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initTRPC.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/initTRPC.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAGL,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC5B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAEV,gBAAgB,EAChB,MAAM,EACN,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,KAAK,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEvD,KAAK,gCAAgC,CAAC,MAAM,SAAS,sBAAsB,IACzE,qBAAqB,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,eAAe,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;IAC3E,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,GAChD,MAAM,CAAC,MAAM,CAAC,GACd,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IACjC,WAAW,EAAE,sBAAsB,CAAC;CACrC,CAAC,CAAC;AAEL;;;;;GAKG;AAEH,cAAM,WAAW,CAAC,OAAO,SAAS,sBAAsB,GAAG,MAAM;IAC/D;;;OAGG;IACH,OAAO,CACL,WAAW,SACP,eAAe,CAAC,KAAK,CAAC,GACtB,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,eAAe,CAAC,KAAK,CAAC,CAAC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