Commit 23d1a53
committed
refactor: remove NodeHttpAdapter in favor of @constructive-io/fetch
The ORM client's FetchAdapter already uses createFetch() from
@constructive-io/fetch, which handles *.localhost DNS rewriting and
Host header preservation in Node.js. The separate NodeHttpAdapter
(using node:http/node:https directly) is redundant.
- Remove node-fetch.ts template and all generated node-fetch.ts files
- Remove generateNodeFetchFile() from utils-generator
- Simplify executor generators to always use { endpoint, headers }
- Remove nodeHttpAdapter config plumbing from generate.ts
- Deprecate nodeHttpAdapter option in config types
- Update all 4 SDK executor.ts files to use endpoint/headers
The external API (createClient, getClient) is unchanged — consumers
pass endpoint + headers, and FetchAdapter handles the rest.1 parent 70f9d20 commit 23d1a53
18 files changed
Lines changed: 38 additions & 1748 deletions
File tree
- graphql/codegen/src
- core
- codegen
- cli
- templates
- types
- sdk/constructive-cli/src
- admin
- cli
- orm
- auth
- cli
- orm
- objects
- cli
- orm
- public
- cli
- orm
Lines changed: 21 additions & 73 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 41 | | |
49 | 42 | | |
50 | 43 | | |
| |||
215 | 208 | | |
216 | 209 | | |
217 | 210 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
233 | 217 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
249 | 221 | | |
250 | 222 | | |
| 223 | + | |
| 224 | + | |
251 | 225 | | |
252 | 226 | | |
253 | 227 | | |
| |||
269 | 243 | | |
270 | 244 | | |
271 | 245 | | |
272 | | - | |
| 246 | + | |
273 | 247 | | |
274 | 248 | | |
275 | 249 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | 250 | | |
284 | 251 | | |
285 | 252 | | |
| |||
538 | 505 | | |
539 | 506 | | |
540 | 507 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
567 | 513 | | |
| 514 | + | |
| 515 | + | |
568 | 516 | | |
569 | 517 | | |
570 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 51 | + | |
57 | 52 | | |
58 | 53 | | |
59 | 54 | | |
| |||
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 65 | | |
76 | 66 | | |
77 | 67 | | |
| |||
139 | 129 | | |
140 | 130 | | |
141 | 131 | | |
142 | | - | |
| 132 | + | |
143 | 133 | | |
144 | 134 | | |
145 | 135 | | |
| |||
180 | 170 | | |
181 | 171 | | |
182 | 172 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 173 | + | |
186 | 174 | | |
187 | 175 | | |
188 | 176 | | |
| |||
198 | 186 | | |
199 | 187 | | |
200 | 188 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 189 | | |
207 | 190 | | |
208 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 63 | | |
81 | 64 | | |
82 | 65 | | |
| |||
0 commit comments