Commit a9b2123
[KYUUBI #7386] Remove axios dependency and replace with native fetch in web-ui
### Why are the changes needed?
Replace axios with the native Fetch API in request.ts, removing the axios dependency from package.json. Reducing the dependent libraries to reduce the possibility of supply chain attack and to reduce future maintenance cost. Enforce Node.js >=18 via the engines field and update README accordingly.
### How was this patch tested?
Covered by the existing unit tests.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.6)
Closes #7386 from aajisaka/remove-axios.
Closes #7386
75c0402 [Cheng Pan] fix lint
11dc81e [Cheng Pan] Fix login failure and preserve server error messages
6cfb0b3 [Akira Ajisaka] Address review comments
c0634b7 [Akira Ajisaka] Remove axios dependency and replace with native fetch in web-ui
Lead-authored-by: Akira Ajisaka <aajisaka@apache.org>
Co-authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>1 parent 80a8c50 commit a9b2123
6 files changed
Lines changed: 141 additions & 303 deletions
File tree
- kyuubi-server/web-ui
- src/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | 445 | | |
452 | 446 | | |
453 | 447 | | |
| |||
456 | 450 | | |
457 | 451 | | |
458 | 452 | | |
459 | | - | |
460 | | - | |
461 | 453 | | |
462 | 454 | | |
463 | 455 | | |
| |||
466 | 458 | | |
467 | 459 | | |
468 | 460 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | 461 | | |
474 | 462 | | |
475 | 463 | | |
| |||
482 | 470 | | |
483 | 471 | | |
484 | 472 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | 473 | | |
490 | 474 | | |
491 | 475 | | |
| |||
498 | 482 | | |
499 | 483 | | |
500 | 484 | | |
501 | | - | |
502 | | - | |
503 | 485 | | |
504 | 486 | | |
505 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments