Commit 5dd636f
authored
chore(deps): update all non-major dependencies (examples & templates) (main) (patch) (#7382)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@react-router/dev](https://reactrouter.com)
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router-dev))
| [`7.6.0` ->
`7.6.1`](https://renovatebot.com/diffs/npm/@react-router%2fdev/7.6.0/7.6.1)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[@react-router/node](https://redirect.github.com/remix-run/react-router)
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router-node))
| [`7.6.0` ->
`7.6.1`](https://renovatebot.com/diffs/npm/@react-router%2fnode/7.6.0/7.6.1)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[@react-router/serve](https://redirect.github.com/remix-run/react-router)
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router-serve))
| [`7.6.0` ->
`7.6.1`](https://renovatebot.com/diffs/npm/@react-router%2fserve/7.6.0/7.6.1)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`22.15.19` ->
`22.15.21`](https://renovatebot.com/diffs/npm/@types%2fnode/22.15.19/22.15.21)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
|
[@types/react](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react))
| [`19.1.4` ->
`19.1.5`](https://renovatebot.com/diffs/npm/@types%2freact/19.1.4/19.1.5)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router](https://redirect.github.com/remix-run/react-router)
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router))
| [`7.6.0` ->
`7.6.1`](https://renovatebot.com/diffs/npm/react-router/7.6.0/7.6.1) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>remix-run/react-router (@​react-router/dev)</summary>
###
[`v7.6.1`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router-dev/CHANGELOG.md#761)
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/@react-router/[email protected]...@react-router/[email protected])
##### Patch Changes
- Prevent typegen with route files are outside the app directory
([#​12996](https://redirect.github.com/remix-run/react-router/pull/12996))
- Fix typegen when same route is used at multiple paths
([#​13574](https://redirect.github.com/remix-run/react-router/pull/13574))
For example, `routes/route.tsx` is used at 4 different paths here:
```ts
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.
- Add additional logging to `build` command output when cleaning assets
from server build
([#​13547](https://redirect.github.com/remix-run/react-router/pull/13547))
- Better types for `params`
([#​13543](https://redirect.github.com/remix-run/react-router/pull/13543))
For example:
```ts
// 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, `params` for the `routes/layout.tsx` route 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 to
`routes/layout.tsx` will have a type of `{ p: string, l: string, c1a:
string, c1b: string }`.
Now, `params` are aware of child routes and autocompletion will include
child params as optionals:
```ts
params.|
// ^ cursor is here and you ask for autocompletion
// p: string
// l: string
// c1a?: string
// c1b?: string
// c2a?: string
// c2b?: string
```
You can also narrow the types for `params` as it is implemented as a
normalized union of params for each page that includes
`routes/layout.tsx`:
```ts
if (typeof params.c1a === 'string') {
params.|
// ^ cursor is here and you ask for autocompletion
// p: string
// l: string
// c1a: string
// c1b: string
}
```
***
UNSTABLE: renamed internal `react-router/route-module` export to
`react-router/internal`
UNSTABLE: removed `Info` export from generated `+types/*` files
- \[UNSTABLE] Normalize dirent entry path across node versions when
generating SRI manifest
([#​13591](https://redirect.github.com/remix-run/react-router/pull/13591))
- Don't clean assets from server build when `build.ssrEmitAssets` has
been enabled in Vite config
([#​13547](https://redirect.github.com/remix-run/react-router/pull/13547))
- Fix `href` for optional segments
([#​13595](https://redirect.github.com/remix-run/react-router/pull/13595))
Type generation now expands paths with optionals into their
corresponding non-optional paths.
For example, the path `/user/:id?` gets expanded into `/user` and
`/user/:id` to more closely model visitable URLs.
`href` then uses these expanded (non-optional) paths to construct
type-safe paths for your app:
```ts
// original: /user/:id?
// expanded: /user & /user/:id
href("/user"); // ✅
href("/user/:id", { id: 1 }); // ✅
```
This becomes even more important for static optional paths where there
wasn't a good way to indicate whether the optional should be included in
the resulting path:
```ts
// original: /products/:id/detail?
// before
href("/products/:id/detail?"); // ❌ How can we tell `href` to include or
omit `detail?` segment with a complex API?
// now
// expanded: /products/:id & /products/:id/detail
href("/product/:id"); // ✅
href("/product/:id/detail"); // ✅
```
- Updated dependencies:
- `[email protected]`
- `@react-router/[email protected]`
- `@react-router/[email protected]`
</details>
<details>
<summary>remix-run/react-router (@​react-router/node)</summary>
###
[`v7.6.1`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router-node/CHANGELOG.md#761)
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/@react-router/[email protected]...@react-router/[email protected])
##### Patch Changes
- Updated dependencies:
- `[email protected]`
</details>
<details>
<summary>remix-run/react-router (@​react-router/serve)</summary>
###
[`v7.6.1`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router-serve/CHANGELOG.md#761)
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/@react-router/[email protected]...@react-router/[email protected])
##### Patch Changes
- Updated dependencies:
- `[email protected]`
- `@react-router/[email protected]`
- `@react-router/[email protected]`
</details>
<details>
<summary>remix-run/react-router (react-router)</summary>
###
[`v7.6.1`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#761)
[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/[email protected]@7.6.1)
##### Patch Changes
- Update `Route.MetaArgs` to reflect that `data` can be potentially
`undefined`
([#​13563](https://redirect.github.com/remix-run/react-router/pull/13563))
This is primarily for cases where a route `loader` threw an error to
it's own `ErrorBoundary`. but it also arises in the case of a 404 which
renders the root `ErrorBoundary`/`meta` but the root loader did not run
because not routes matched.
- Partially revert optimization added in `7.1.4` to reduce calls to
`matchRoutes` because it surfaced other issues
([#​13562](https://redirect.github.com/remix-run/react-router/pull/13562))
- Fix typegen when same route is used at multiple paths
([#​13574](https://redirect.github.com/remix-run/react-router/pull/13574))
For example, `routes/route.tsx` is used at 4 different paths here:
```ts
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](https://redirect.github.com/remix-run/react-router/pull/13543))
For example:
```ts
// 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, `params` for the `routes/layout.tsx` route 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 to
`routes/layout.tsx` will have a type of `{ p: string, l: string, c1a:
string, c1b: string }`.
Now, `params` are aware of child routes and autocompletion will include
child params as optionals:
```ts
params.|
// ^ cursor is here and you ask for autocompletion
// p: string
// l: string
// c1a?: string
// c1b?: string
// c2a?: string
// c2b?: string
```
You can also narrow the types for `params` as it is implemented as a
normalized union of params for each page that includes
`routes/layout.tsx`:
```ts
if (typeof params.c1a === 'string') {
params.|
// ^ cursor is here and you ask for autocompletion
// p: string
// l: string
// c1a: string
// c1b: string
}
```
***
UNSTABLE: renamed internal `react-router/route-module` export to
`react-router/internal`
UNSTABLE: removed `Info` export from generated `+types/*` files
- Avoid initial fetcher execution 404 error when Lazy Route Discovery is
interrupted by a navigation
([#​13564](https://redirect.github.com/remix-run/react-router/pull/13564))
- href replaces splats `*`
([#​13593](https://redirect.github.com/remix-run/react-router/pull/13593))
```ts
const a = href("/products/*", { "*": "/1/edit" });
// -> /products/1/edit
```
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on
Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule
defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/SAP/ui5-webcomponents-react).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4xNi4wIiwidXBkYXRlZEluVmVyIjoiNDAuMTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent fee3777 commit 5dd636f
File tree
14 files changed
+92
-92
lines changed- examples
- nextjs-app
- nextjs-pages
- react-router-ts
- vite-ts
- templates
- nextjs-app
- nextjs-pages
- vite-ts
14 files changed
+92
-92
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments