|
Ran
|
Files
580
|
Run time
31s
|
Badge
README BADGES
|
push
github
web: migrate to React Router v7 (#2861) ## Problem React Router v7 was released almost a year now (see https://reactrouter.com/changelog#v700), but it has not been updated in Agama yet. In addition to the obvious benefit of keeping dependencies up-to-date, updating it might help to address some limitations we have found with the v6 version, like https://github.com/agama-project/agama/pull/2767/commits/06d858cba ## Solution Migrate React Router dependency to its latest version. ## Testing - Adapted existing tests. ## Notes This migration has been straightforward, and as of now, Agama is using Data Mode (see https://reactrouter.com/start/modes). However, this could change in the future if we find advantages in switching to Declarative or Framework Mode. Before making any decisions, we’ll need to work on `src/App.tsx` along with the changes planned for the api-v2 branch that this PR is based on. ## Documentation * https://reactrouter.com/upgrading/v6 * https://github.com/remix-run/react-router/issues/12363#issuecomment-2496226528 * https://github.com/remix-run/react-router/pull/13530 (`generatePath` now encodes URL params by default, related to https://github.com/agama-project/agama/pull/2576) * https://www.typescriptlang.org/tsconfig/#moduleResolution
2695 of 4694 branches covered (57.41%)
Branch coverage included in aggregate %.
12004 of 16708 relevant lines covered (71.85%)
71.71 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|