react-pdf-js
react-pdf-js copied to clipboard
Bump react-router from 7.4.1 to 7.6.1
Bumps react-router from 7.4.1 to 7.6.1.
Release notes
Sourced from react-router's releases.
v7.6.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v761
v7.6.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v760
v7.5.3
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v753
v7.5.2
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v752
v7.5.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v751
v7.5.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v750
Changelog
Sourced from react-router's changelog.
7.6.1
Patch Changes
Update
Route.MetaArgsto reflect thatdatacan be potentiallyundefined(#13563)This is primarily for cases where a route
loaderthrew an error to it's ownErrorBoundary. but it also arises in the case of a 404 which renders the rootErrorBoundary/metabut the root loader did not run because not routes matched.Partially revert optimization added in
7.1.4to reduce calls tomatchRoutesbecause it surfaced other issues (#13562)Fix typegen when same route is used at multiple paths (#13574)
For example,
routes/route.tsxis used at 4 different paths here:import { type RouteConfig, route } from "@react-router/dev/routes"; export default [ route("base/:base", "routes/base.tsx", [ route("home/:home", "routes/route.tsx", { id: "home" }), route("changelog/:changelog", "routes/route.tsx", { id: "changelog" }), route("splat/*", "routes/route.tsx", { id: "splat" }), ]), route("other/:other", "routes/route.tsx", { id: "other" }), ] satisfies RouteConfig;Previously, typegen would arbitrarily pick one of these paths to be the "winner" and generate types for the route module based on that path. Now, typegen creates unions as necessary for alternate paths for the same route file.
Better types for
params(#13543)For example:
// routes.ts import { type RouteConfig, route } from "@react-router/dev/routes";export default [
route("parent/:p", "routes/parent.tsx", [
route("layout/:l", "routes/layout.tsx", [
route("child1/:c1a/:c1b", "routes/child1.tsx"),
route("child2/:c2a/:c2b", "routes/child2.tsx"),
]),
]),
] satisfies RouteConfig;
Previously,
paramsfor theroutes/layout.tsxroute were calculated as{ p: string, l: string }. This incorrectly ignores params that could come from child routes. If visiting/parent/1/layout/2/child1/3/4, the actual params passed toroutes/layout.tsxwill have a type of{ p: string, l: string, c1a: string, c1b: string }.
... (truncated)
Commits
a36c505chore: Update version for release (#13670)15087c0chore: Update version for release (pre) (#13669)1f54134Revert tsup changes from build (#13667)4eb6fd8chore: Update version for release (pre) (#13653)77ec8e0force new prereleaseec173d8chore: Update version for release (pre) (#13637)3046093Remove matchRoutes optimization from render pass (#13562)a105445Remove hashes on built filenames (#13567)2fae6d9href replaces splats (#13593)8389d48Update dev dependencies to React 19 (#13558)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)