Commit 43cdd3a
fix: make Release.devDependencies optional in upgrade command (#3700)
The 2026.4.0 changelog entry was added without a devDependencies field,
which caused 2 fetchChangelog tests to fail because the Release type
declared devDependencies as required. The runtime code already handled
this gracefully with ?? {} patterns — the type and tests just didn't
reflect reality.
- Make devDependencies optional in the Release type
- Add ?? {} guards to 3 spread sites for consistency (lines 302, 449, 886)
- Use optional chaining in test assertions for devDependencies access
- Add empty devDependencies to 2026.4.0 changelog entry for data consistency
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3b151f3 commit 43cdd3a
File tree
2 files changed
+12
-10
lines changed- packages/cli/src/commands/hydrogen
2 files changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | 378 | | |
380 | 379 | | |
381 | 380 | | |
| |||
389 | 388 | | |
390 | 389 | | |
391 | 390 | | |
392 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
| |||
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
426 | | - | |
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
431 | 433 | | |
432 | 434 | | |
433 | 435 | | |
| |||
2200 | 2202 | | |
2201 | 2203 | | |
2202 | 2204 | | |
2203 | | - | |
| 2205 | + | |
2204 | 2206 | | |
2205 | 2207 | | |
2206 | 2208 | | |
| |||
2242 | 2244 | | |
2243 | 2245 | | |
2244 | 2246 | | |
2245 | | - | |
| 2247 | + | |
2246 | 2248 | | |
2247 | 2249 | | |
2248 | 2250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
0 commit comments