Commit 935b51f
feat(react-query): support react query v5 (#434)
* refactor: formatQueryParameters
* refactor: rename
* refactor: generateFormattedMutationParameters
* refactor: rename
* refactor: generateInfiniteQueryFormattedParameters
* feat: plugin config for support v5
* fix: infiniteQuery option to required
* fix: infinite query type
* fix: Unnecessary semicolon
* fix: test
* refactor: use class inherent
* fix: v5 parameters type
* add: changeset
* refactor: interface
* fix: typo
* refactor: queryHook
* refactor: test & custom-mapper query
* refactor: generateQuery
* refactor: interface
* refactor: type
* refactor: type
* refactor: fetcher-fetch mutation
* refactor: fetch-hardcode mutation
* refactor: fetch-graphql-request mutation
* refactor: fetch-custom-mapper mutation
* refactor: fetch-hardcode infiniteQuery
* refactor: custom-mapper infiniteQuery
* refactor: fetch infiniteQuery
* refactor: graphql-request infiniteQuery
* fix: v5 queryOptions queryKey type issue
* refactor: move queryMethodMap to private
* fix: dev-test
* fix: text break
* edit: deprecated legacy mode flag
* refactor: generate fn args format
* add: v5 suspense support
* refactor: dry
* fix: suspense queryKey
* fix: suspense optionsType
* refactor: dry
* refactor: format
* fix: infiniteData type
* Update packages/plugins/typescript/react-query/package.json
---------
Co-authored-by: Saihajpreet Singh <[email protected]>1 parent 62420e5 commit 935b51f
File tree
14 files changed
+1423
-1287
lines changed- .changeset
- .vscode
- dev-test/githunt
- packages/plugins/typescript/react-query
- src
- tests
- __snapshots__
14 files changed
+1423
-1287
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
466 | 467 | | |
467 | | - | |
468 | | - | |
| 468 | + | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
| |||
475 | 476 | | |
476 | 477 | | |
477 | 478 | | |
| 479 | + | |
| 480 | + | |
478 | 481 | | |
479 | 482 | | |
480 | 483 | | |
481 | 484 | | |
482 | | - | |
483 | | - | |
| 485 | + | |
| 486 | + | |
484 | 487 | | |
485 | 488 | | |
486 | 489 | | |
| |||
491 | 494 | | |
492 | 495 | | |
493 | 496 | | |
| 497 | + | |
494 | 498 | | |
495 | 499 | | |
496 | 500 | | |
| |||
500 | 504 | | |
501 | 505 | | |
502 | 506 | | |
| 507 | + | |
503 | 508 | | |
504 | 509 | | |
505 | 510 | | |
506 | 511 | | |
507 | | - | |
508 | | - | |
| 512 | + | |
| 513 | + | |
509 | 514 | | |
510 | 515 | | |
511 | 516 | | |
| |||
515 | 520 | | |
516 | 521 | | |
517 | 522 | | |
| 523 | + | |
| 524 | + | |
518 | 525 | | |
519 | 526 | | |
520 | 527 | | |
521 | 528 | | |
522 | 529 | | |
523 | 530 | | |
524 | 531 | | |
525 | | - | |
526 | | - | |
| 532 | + | |
| 533 | + | |
527 | 534 | | |
528 | 535 | | |
529 | 536 | | |
| |||
536 | 543 | | |
537 | 544 | | |
538 | 545 | | |
| 546 | + | |
539 | 547 | | |
540 | 548 | | |
541 | 549 | | |
| |||
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
| 558 | + | |
550 | 559 | | |
551 | 560 | | |
552 | 561 | | |
553 | 562 | | |
554 | | - | |
555 | | - | |
| 563 | + | |
| 564 | + | |
556 | 565 | | |
557 | 566 | | |
558 | 567 | | |
| |||
562 | 571 | | |
563 | 572 | | |
564 | 573 | | |
| 574 | + | |
| 575 | + | |
565 | 576 | | |
566 | 577 | | |
567 | 578 | | |
568 | 579 | | |
569 | | - | |
570 | | - | |
| 580 | + | |
| 581 | + | |
571 | 582 | | |
572 | 583 | | |
573 | 584 | | |
| |||
578 | 589 | | |
579 | 590 | | |
580 | 591 | | |
| 592 | + | |
581 | 593 | | |
582 | 594 | | |
583 | 595 | | |
| |||
586 | 598 | | |
587 | 599 | | |
588 | 600 | | |
| 601 | + | |
589 | 602 | | |
590 | 603 | | |
591 | 604 | | |
| |||
594 | 607 | | |
595 | 608 | | |
596 | 609 | | |
597 | | - | |
598 | | - | |
| 610 | + | |
| 611 | + | |
599 | 612 | | |
600 | 613 | | |
601 | 614 | | |
| |||
606 | 619 | | |
607 | 620 | | |
608 | 621 | | |
| 622 | + | |
| 623 | + | |
609 | 624 | | |
610 | 625 | | |
611 | 626 | | |
612 | 627 | | |
613 | 628 | | |
614 | 629 | | |
615 | 630 | | |
| 631 | + | |
616 | 632 | | |
617 | 633 | | |
618 | 634 | | |
| |||
621 | 637 | | |
622 | 638 | | |
623 | 639 | | |
624 | | - | |
625 | | - | |
| 640 | + | |
| 641 | + | |
626 | 642 | | |
627 | 643 | | |
628 | 644 | | |
| |||
633 | 649 | | |
634 | 650 | | |
635 | 651 | | |
| 652 | + | |
| 653 | + | |
636 | 654 | | |
637 | 655 | | |
638 | 656 | | |
| |||
644 | 662 | | |
645 | 663 | | |
646 | 664 | | |
| 665 | + | |
647 | 666 | | |
648 | 667 | | |
649 | 668 | | |
650 | | - | |
651 | | - | |
| 669 | + | |
| 670 | + | |
652 | 671 | | |
653 | 672 | | |
654 | 673 | | |
| |||
659 | 678 | | |
660 | 679 | | |
661 | 680 | | |
| 681 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 7 | + | |
28 | 8 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 9 | + | |
| 10 | + | |
37 | 11 | | |
38 | | - | |
| 12 | + | |
39 | 13 | | |
40 | 14 | | |
41 | 15 | | |
| |||
98 | 72 | | |
99 | 73 | | |
100 | 74 | | |
101 | | - | |
102 | | - | |
| 75 | + | |
| 76 | + | |
103 | 77 | | |
104 | | - | |
| 78 | + | |
105 | 79 | | |
106 | 80 | | |
107 | 81 | | |
108 | | - | |
| 82 | + | |
109 | 83 | | |
110 | | - | |
| 84 | + | |
111 | 85 | | |
112 | 86 | | |
113 | 87 | | |
114 | 88 | | |
| 89 | + | |
115 | 90 | | |
116 | 91 | | |
117 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
118 | 99 | | |
119 | 100 | | |
120 | 101 | | |
| |||
126 | 107 | | |
127 | 108 | | |
128 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
0 commit comments