Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update all non-major dependencies (examples & templates)…
… (minor) (#6985) 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.1.5` -> `7.2.0`](https://renovatebot.com/diffs/npm/@react-router%2fdev/7.1.5/7.2.0) | [](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.1.5` -> `7.2.0`](https://renovatebot.com/diffs/npm/@react-router%2fnode/7.1.5/7.2.0) | [](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.1.5` -> `7.2.0`](https://renovatebot.com/diffs/npm/@react-router%2fserve/7.1.5/7.2.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [eslint](https://eslint.org) ([source](https://redirect.github.com/eslint/eslint)) | [`9.20.1` -> `9.21.0`](https://renovatebot.com/diffs/npm/eslint/9.20.1/9.21.0) | [](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.1.5` -> `7.2.0`](https://renovatebot.com/diffs/npm/react-router/7.1.5/7.2.0) | [](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.2.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router-dev/CHANGELOG.md#720) [Compare Source](https://redirect.github.com/remix-run/react-router/compare/@react-router/[email protected]...@react-router/[email protected]) ##### Minor Changes - Generate a "SPA fallback" HTML file for scenarios where applications are prerendering the `/` route with `ssr:false` ([#​12948](https://redirect.github.com/remix-run/react-router/pull/12948)) - If you specify `ssr:false` without a `prerender` config, this is considered "SPA Mode" and the generated `index.html` file will only render down to the root route and will be able to hydrate for any valid application path - If you specify `ssr:false` with a `prerender` config but *do not* include the `/` path (i.e., `prerender: ['/blog/post']`), then we still generate a "SPA Mode" `index.html` file that can hydrate for any path in the application - However, previously if you specified `ssr:false` and included the `/` path in your `prerender` config, we would prerender the `/` route into `index.html` as a non-SPA page - The generated HTML would include the root index route which prevented hydration for any other paths - With this change, we now generate a "SPA Mode" file in `__spa-fallback.html` that will allow you to hydrate for any non-prerendered paths - You can serve this file from your static file server for any paths that would otherwise 404 if you only want to pre-render *some* routes in your `ssr:false` app and serve the others as a SPA - `npx sirv-cli build/client --single __spa-fallback.html` - Allow a `loader` in the root route in SPA mode because it can be called/server-rendered at build time ([#​12948](https://redirect.github.com/remix-run/react-router/pull/12948)) - `Route.HydrateFallbackProps` now also receives `loaderData` - This will be defined so long as the `HydrateFallback` is rendering while *children* routes are loading - This will be `undefined` if the `HydrateFallback` is rendering because the route has it's own hydrating `clientLoader` - In SPA mode, this will allow you to render loader root data into the SPA `index.html` - New type-safe `href` utility that guarantees links point to actual paths in your app ([#​13012](https://redirect.github.com/remix-run/react-router/pull/13012)) ```tsx import { href } from "react-router"; export default function Component() { const link = href("/blog/:slug", { slug: "my-first-post" }); return ( <main> <Link to={href("/products/:id", { id: "asdf" })} /> <NavLink to={href("/:lang?/about", { lang: "en" })} /> </main> ); } ``` ##### Patch Changes - Handle custom `envDir` in Vite config ([#​12969](https://redirect.github.com/remix-run/react-router/pull/12969)) - Fix typegen for repeated params ([#​13012](https://redirect.github.com/remix-run/react-router/pull/13012)) In React Router, path parameters are keyed by their name. So for a path pattern like `/a/:id/b/:id?/c/:id`, the last `:id` will set the value for `id` in `useParams` and the `params` prop. For example, `/a/1/b/2/c/3` will result in the value `{ id: 3 }` at runtime. Previously, generated types for params incorrectly modeled repeated params with an array. So `/a/1/b/2/c/3` generated a type like `{ id: [1,2,3] }`. To be consistent with runtime behavior, the generated types now correctly model the "last one wins" semantics of path parameters. So `/a/1/b/2/c/3` now generates a type like `{ id: 3 }`. - Fix CLI parsing to allow argumentless `npx react-router` usage ([#​12925](https://redirect.github.com/remix-run/react-router/pull/12925)) - Fix `ArgError: unknown or unexpected option: --version` when running `react-router --version` ([#​13012](https://redirect.github.com/remix-run/react-router/pull/13012)) - Skip action-only resource routes when using `prerender:true` ([#​13004](https://redirect.github.com/remix-run/react-router/pull/13004)) - Enhance invalid export detection when using `ssr:false` ([#​12948](https://redirect.github.com/remix-run/react-router/pull/12948)) - `headers`/`action` are prohibited in all routes with `ssr:false` because there will be no runtime server on which to run them - `loader` functions are more nuanced and depend on whether a given route is prerendered - When using `ssr:false` without a `prerender` config, only the `root` route can have a `loader` - This is "SPA mode" which generates a single `index.html` file with the root route `HydrateFallback` so it is capable of hydrating for any path in your application - therefore we can only call a root route `loader` at build time - When using `ssr:false` with a `prerender` config, you can export a `loader` from routes matched by one of the `prerender` paths because those routes will be server rendered at build time - Exporting a `loader` from a route that is never matched by a `prerender` path will throw a build time error because there will be no runtime server to ever run the loader - Limit prerendered resource route `.data` files to only the target route ([#​13004](https://redirect.github.com/remix-run/react-router/pull/13004)) - Add unstable support for splitting route modules in framework mode via `future.unstable_splitRouteModules` ([#​11871](https://redirect.github.com/remix-run/react-router/pull/11871)) - Fix prerendering of binary files ([#​13039](https://redirect.github.com/remix-run/react-router/pull/13039)) - Add `future.unstable_viteEnvironmentApi` flag to enable experimental Vite Environment API support ([#​12936](https://redirect.github.com/remix-run/react-router/pull/12936)) - Disable Lazy Route Discovery for all `ssr:false` apps and not just "SPA Mode" because there is no runtime server to serve the search-param-configured `__manifest` requests ([#​12894](https://redirect.github.com/remix-run/react-router/pull/12894)) - We previously only disabled this for "SPA Mode" which is `ssr:false` and no `prerender` config but we realized it should apply to all `ssr:false` apps, including those prerendering multiple pages - In those `prerender` scenarios we would prerender the `/__manifest` file assuming the static file server would serve it but that makes some unneccesary assumptions about the static file server behaviors - Updated dependencies: - `[email protected]` - `@react-router/[email protected]` - `@react-router/[email protected]` </details> <details> <summary>remix-run/react-router (@​react-router/node)</summary> ### [`v7.2.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router-node/CHANGELOG.md#720) [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.2.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router-serve/CHANGELOG.md#720) [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>eslint/eslint (eslint)</summary> ### [`v9.21.0`](https://redirect.github.com/eslint/eslint/releases/tag/v9.21.0) [Compare Source](https://redirect.github.com/eslint/eslint/compare/v9.20.1...v9.21.0) ##### Features - [`418717f`](https://redirect.github.com/eslint/eslint/commit/418717f1150bb794c40014eca60c9116de2b0488) feat: introduce new deprecated types for rules ([#​19238](https://redirect.github.com/eslint/eslint/issues/19238)) (fnx) - [`5c5b802`](https://redirect.github.com/eslint/eslint/commit/5c5b8025d3e2a2a796909bdf7866fdce2a2f334c) feat: Add `--ext` CLI option ([#​19405](https://redirect.github.com/eslint/eslint/issues/19405)) (Milos Djermanovic) ##### Bug Fixes - [`db5340d`](https://redirect.github.com/eslint/eslint/commit/db5340d57bff6b6e3a148f0f2bb56c7da6614ec0) fix: update missing plugin message template ([#​19445](https://redirect.github.com/eslint/eslint/issues/19445)) (Milos Djermanovic) - [`d8ffdd4`](https://redirect.github.com/eslint/eslint/commit/d8ffdd4e51ac46cef51b4118aa3d97195b38de63) fix: do not exit process on rule crash ([#​19436](https://redirect.github.com/eslint/eslint/issues/19436)) (Francesco Trotta) ##### Documentation - [`c5561ea`](https://redirect.github.com/eslint/eslint/commit/c5561ea7fcc9d48f7c8017f51fb64fcdf13ff832) docs: Update README (GitHub Actions Bot) - [`80b0485`](https://redirect.github.com/eslint/eslint/commit/80b048535e1d951692e838fe502fb0edb72c837f) docs: replace `var` with `let` and `const` in rule example ([#​19434](https://redirect.github.com/eslint/eslint/issues/19434)) (Tanuj Kanti) - [`f67d5e8`](https://redirect.github.com/eslint/eslint/commit/f67d5e875324a9d899598b11807a9c7624021432) docs: Update README (GitHub Actions Bot) - [`75afc61`](https://redirect.github.com/eslint/eslint/commit/75afc61ff89c8c38a31877d1302584af9266f6d3) docs: Update README (GitHub Actions Bot) - [`0636cab`](https://redirect.github.com/eslint/eslint/commit/0636caba7dd7c77c1845a69257bda68d5287a097) docs: Update Eleventy from v2 to v3 ([#​19415](https://redirect.github.com/eslint/eslint/issues/19415)) (Amaresh S M) - [`dd7d930`](https://redirect.github.com/eslint/eslint/commit/dd7d93063418a9a9064a0e7cb7f556f5b8b6e96b) docs: Update README (GitHub Actions Bot) ##### Chores - [`a8c9a9f`](https://redirect.github.com/eslint/eslint/commit/a8c9a9f1b30db08094b145dd79921ae302b6ae24) chore: update `@eslint/eslintrc` and `@eslint/js` ([#​19453](https://redirect.github.com/eslint/eslint/issues/19453)) (Francesco Trotta) - [`265e0cf`](https://redirect.github.com/eslint/eslint/commit/265e0cf6d03df44f0e65ce5bcb0bac382189486a) chore: package.json update for [@​eslint/js](https://redirect.github.com/eslint/js) release (Jenkins) - [`3401b85`](https://redirect.github.com/eslint/eslint/commit/3401b85faaf75629900b7592433169fc00d8b224) test: add test for `Rule.ReportDescriptor` type ([#​19449](https://redirect.github.com/eslint/eslint/issues/19449)) (Francesco Trotta) - [`e497aa7`](https://redirect.github.com/eslint/eslint/commit/e497aa75f5441406985d417303081944f24acf6f) chore: update rewrite dependencies ([#​19448](https://redirect.github.com/eslint/eslint/issues/19448)) (Francesco Trotta) - [`dab5478`](https://redirect.github.com/eslint/eslint/commit/dab5478e8628447dbf9eaaa8b6f36d7ca253ed48) chore: better error message for missing plugin in config ([#​19402](https://redirect.github.com/eslint/eslint/issues/19402)) (Tanuj Kanti) - [`ebfe2eb`](https://redirect.github.com/eslint/eslint/commit/ebfe2ebc3d8b8f2d84caf309b2fc6bc8fd66fc22) chore: set js language for bug report issue config block ([#​19439](https://redirect.github.com/eslint/eslint/issues/19439)) (Josh Goldberg ✨) - [`5fd211d`](https://redirect.github.com/eslint/eslint/commit/5fd211d00b6f0fc58cf587196a432325b7b88ec2) test: processors can return subpaths ([#​19425](https://redirect.github.com/eslint/eslint/issues/19425)) (Milos Djermanovic) </details> <details> <summary>remix-run/react-router (react-router)</summary> ### [`v7.2.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#720) [Compare Source](https://redirect.github.com/remix-run/react-router/compare/[email protected]@7.2.0) ##### Minor Changes - New type-safe `href` utility that guarantees links point to actual paths in your app ([#​13012](https://redirect.github.com/remix-run/react-router/pull/13012)) ```tsx import { href } from "react-router"; export default function Component() { const link = href("/blog/:slug", { slug: "my-first-post" }); return ( <main> <Link to={href("/products/:id", { id: "asdf" })} /> <NavLink to={href("/:lang?/about", { lang: "en" })} /> </main> ); } ``` ##### Patch Changes - Fix typegen for repeated params ([#​13012](https://redirect.github.com/remix-run/react-router/pull/13012)) In React Router, path parameters are keyed by their name. So for a path pattern like `/a/:id/b/:id?/c/:id`, the last `:id` will set the value for `id` in `useParams` and the `params` prop. For example, `/a/1/b/2/c/3` will result in the value `{ id: 3 }` at runtime. Previously, generated types for params incorrectly modeled repeated params with an array. So `/a/1/b/2/c/3` generated a type like `{ id: [1,2,3] }`. To be consistent with runtime behavior, the generated types now correctly model the "last one wins" semantics of path parameters. So `/a/1/b/2/c/3` now generates a type like `{ id: 3 }`. - Don't apply Single Fetch revalidation de-optimization when in SPA mode since there is no server HTTP request ([#​12948](https://redirect.github.com/remix-run/react-router/pull/12948)) - Properly handle revalidations to across a prerender/SPA boundary ([#​13021](https://redirect.github.com/remix-run/react-router/pull/13021)) - In "hybrid" applications where some routes are pre-rendered and some are served from a SPA fallback, we need to avoid making `.data` requests if the path wasn't pre-rendered because the request will 404 - We don't know all the pre-rendered paths client-side, however: - All `loader` data in `ssr:false` mode is static because it's generated at build time - A route must use a `clientLoader` to do anything dynamic - Therefore, if a route only has a `loader` and not a `clientLoader`, we disable revalidation by default because there is no new data to retrieve - We short circuit and skip single fetch `.data` request logic if there are no server loaders with `shouldLoad=true` in our single fetch `dataStrategy` - This ensures that the route doesn't cause a `.data` request that would 404 after a submission - Error at build time in `ssr:false` + `prerender` apps for the edge case scenario of: ([#​13021](https://redirect.github.com/remix-run/react-router/pull/13021)) - A parent route has only a `loader` (does not have a `clientLoader`) - The parent route is pre-rendered - The parent route has children routes which are not prerendered - This means that when the child paths are loaded via the SPA fallback, the parent won't have any `loaderData` because there is no server on which to run the `loader` - This can be resolved by either adding a parent `clientLoader` or pre-rendering the child paths - If you add a `clientLoader`, calling the `serverLoader()` on non-prerendered paths will throw a 404 - Add unstable support for splitting route modules in framework mode via `future.unstable_splitRouteModules` ([#​11871](https://redirect.github.com/remix-run/react-router/pull/11871)) - Add `unstable_SerializesTo` brand type for library authors to register types serializable by React Router's streaming format (`turbo-stream`) ([`ab5b05b02`](https://redirect.github.com/remix-run/react-router/commit/ab5b05b02f99f062edb3c536c392197c88eb6c77)) - Align dev server behavior with static file server behavior when `ssr:false` is set ([#​12948](https://redirect.github.com/remix-run/react-router/pull/12948)) - When no `prerender` config exists, only SSR down to the root `HydrateFallback` (SPA Mode) - When a `prerender` config exists but the current path is not prerendered, only SSR down to the root `HydrateFallback` (SPA Fallback) - Return a 404 on `.data` requests to non-pre-rendered paths - Improve prefetch performance of CSS side effects in framework mode ([#​12889](https://redirect.github.com/remix-run/react-router/pull/12889)) - Disable Lazy Route Discovery for all `ssr:false` apps and not just "SPA Mode" because there is no runtime server to serve the search-param-configured `__manifest` requests ([#​12894](https://redirect.github.com/remix-run/react-router/pull/12894)) - We previously only disabled this for "SPA Mode" which is `ssr:false` and no `prerender` config but we realized it should apply to all `ssr:false` apps, including those prerendering multiple pages - In those `prerender` scenarios we would prerender the `/__manifest` file assuming the static file server would serve it but that makes some unneccesary assumptions about the static file server behaviors - Properly handle interrupted manifest requests in lazy route discovery ([#​12915](https://redirect.github.com/remix-run/react-router/pull/12915)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "* 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information