|
1 | 1 | # `@react-router/dev`
|
2 | 2 |
|
3 |
| -## 7.9.1-pre.0 |
| 3 | +## 7.9.1 |
4 | 4 |
|
5 | 5 | ### Patch Changes
|
6 | 6 |
|
7 | 7 | - Fix internal `Future` interface naming from `middleware` -> `v8_middleware` ([#14327](https://github.com/remix-run/react-router/pull/14327))
|
8 | 8 | - Updated dependencies:
|
9 |
| - |
10 |
| - - `@react-router/[email protected]-pre.0` |
11 |
| - - `@react-router/[email protected]-pre.0` |
| 9 | + |
| 10 | + - `@react-router/[email protected]` |
| 11 | + - `@react-router/[email protected]` |
12 | 12 |
|
13 | 13 | ## 7.9.0
|
14 | 14 |
|
|
17 | 17 | - Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
18 | 18 |
|
19 | 19 | We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
| 20 | + |
20 | 21 | - [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
21 | 22 | - [`createContext`](https://reactrouter.com/api/utils/createContext)
|
22 | 23 | - `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
759 | 760 | ```
|
760 | 761 |
|
761 | 762 | This initial implementation targets type inference for:
|
| 763 | +
|
762 | 764 | - `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
763 | 765 | - `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
764 | 766 | - `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
773 | 775 | ```
|
774 | 776 |
|
775 | 777 | Check out our docs for more:
|
| 778 | +
|
776 | 779 | - [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
777 | 780 | - [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
778 | 781 |
|
|
972 | 975 | - Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
973 | 976 |
|
974 | 977 | - Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
| 978 | +
|
975 | 979 | - `--sourcemapClient`
|
976 | 980 |
|
977 | 981 | - `--sourcemapClient=inline`
|
|
1308 | 1312 | - Add support for `clientLoader`/`clientAction`/`HydrateFallback` route exports ([RFC](https://github.com/remix-run/remix/discussions/7634)) ([#8173](https://github.com/remix-run/remix/pull/8173))
|
1309 | 1313 |
|
1310 | 1314 | Remix now supports loaders/actions that run on the client (in addition to, or instead of the loader/action that runs on the server). While we still recommend server loaders/actions for the majority of your data needs in a Remix app - these provide some levers you can pull for more advanced use-cases such as:
|
| 1315 | +
|
1311 | 1316 | - Leveraging a data source local to the browser (i.e., `localStorage`)
|
1312 | 1317 | - Managing a client-side cache of server data (like `IndexedDB`)
|
1313 | 1318 | - Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
1711 | 1716 | - Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
1712 | 1717 |
|
1713 | 1718 | Written to server build directory (`build/` by default):
|
| 1719 | +
|
1714 | 1720 | - `metafile.css.json`
|
1715 | 1721 | - `metafile.js.json` (browser JS)
|
1716 | 1722 | - `metafile.server.json` (server JS)
|
|
1808 | 1814 | - built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
1809 | 1815 |
|
1810 | 1816 | New options:
|
| 1817 | +
|
1811 | 1818 | - `--tls-key` / `tlsKey`: TLS key
|
1812 | 1819 | - `--tls-cert` / `tlsCert`: TLS Certificate
|
1813 | 1820 |
|
|
2078 | 2085 | ```
|
2079 | 2086 |
|
2080 | 2087 | The dev server will:
|
| 2088 | +
|
2081 | 2089 | - force `NODE_ENV=development` and warn you if it was previously set to something else
|
2082 | 2090 | - rebuild your app whenever your Remix app code changes
|
2083 | 2091 | - restart your app server whenever rebuilds succeed
|
|
0 commit comments