|
218 | 218 | - Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215)) |
219 | 219 |
|
220 | 220 | We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use: |
221 | | - |
222 | 221 | - [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider) |
223 | 222 | - [`createContext`](https://reactrouter.com/api/utils/createContext) |
224 | 223 | - `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option |
|
961 | 960 | ``` |
962 | 961 |
|
963 | 962 | This initial implementation targets type inference for: |
964 | | -
|
965 | 963 | - `Params` : Path parameters from your routing config in `routes.ts` including file-based routing |
966 | 964 | - `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module |
967 | 965 | - `ActionData` : Action data from `action` and/or `clientAction` within your route module |
|
976 | 974 | ``` |
977 | 975 |
|
978 | 976 | Check out our docs for more: |
979 | | -
|
980 | 977 | - [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety) |
981 | 978 | - [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety) |
982 | 979 |
|
|
1176 | 1173 | - Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654)) |
1177 | 1174 |
|
1178 | 1175 | - Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613)) |
1179 | | -
|
1180 | 1176 | - `--sourcemapClient` |
1181 | 1177 |
|
1182 | 1178 | - `--sourcemapClient=inline` |
|
1513 | 1509 | - 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)) |
1514 | 1510 |
|
1515 | 1511 | 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: |
1516 | | -
|
1517 | 1512 | - Leveraging a data source local to the browser (i.e., `localStorage`) |
1518 | 1513 | - Managing a client-side cache of server data (like `IndexedDB`) |
1519 | 1514 | - Bypassing the Remix server in a BFF setup and hitting your API directly from the browser |
|
1917 | 1912 | - Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772)) |
1918 | 1913 |
|
1919 | 1914 | Written to server build directory (`build/` by default): |
1920 | | -
|
1921 | 1915 | - `metafile.css.json` |
1922 | 1916 | - `metafile.js.json` (browser JS) |
1923 | 1917 | - `metafile.server.json` (server JS) |
|
2015 | 2009 | - built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483)) |
2016 | 2010 |
|
2017 | 2011 | New options: |
2018 | | -
|
2019 | 2012 | - `--tls-key` / `tlsKey`: TLS key |
2020 | 2013 | - `--tls-cert` / `tlsCert`: TLS Certificate |
2021 | 2014 |
|
|
2286 | 2279 | ``` |
2287 | 2280 |
|
2288 | 2281 | The dev server will: |
2289 | | -
|
2290 | 2282 | - force `NODE_ENV=development` and warn you if it was previously set to something else |
2291 | 2283 | - rebuild your app whenever your Remix app code changes |
2292 | 2284 | - restart your app server whenever rebuilds succeed |
|
0 commit comments