@react-router/dev 7.8.2 → 7.9.0-pre.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -7
- package/dist/cli/index.js +185 -84
- package/dist/config/default-rsc-entries/entry.client.tsx +9 -1
- package/dist/config/default-rsc-entries/entry.rsc.tsx +9 -1
- package/dist/config/default-rsc-entries/entry.ssr.tsx +7 -1
- package/dist/config/defaults/entry.server.node.tsx +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/internal.js +341 -99
- package/dist/routes.js +1 -1
- package/dist/vite/cloudflare.d.ts +2 -2
- package/dist/vite/cloudflare.js +19 -5
- package/dist/vite.js +318 -264
- package/package.json +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
+
## 7.9.0-pre.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
8
|
+
|
|
9
|
+
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
10
|
+
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
11
|
+
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
12
|
+
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
13
|
+
- `<HydratedRouter>` [`getContext`](https://reactrouter.com/api/framework-routers/HydratedRouter#getcontext) prop
|
|
14
|
+
|
|
15
|
+
Please see the [Middleware Docs](https://reactrouter.com/how-to/middleware), the [Middleware RFC](https://github.com/remix-run/remix/discussions/7642), and the [Client-side Context RFC](https://github.com/remix-run/react-router/discussions/9856) for more information.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies:
|
|
20
|
+
- `react-router@7.9.0-pre.0`
|
|
21
|
+
- `@react-router/node@7.9.0-pre.0`
|
|
22
|
+
- `@react-router/serve@7.9.0-pre.0`
|
|
23
|
+
|
|
3
24
|
## 7.8.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -728,7 +749,6 @@
|
|
|
728
749
|
```
|
|
729
750
|
|
|
730
751
|
This initial implementation targets type inference for:
|
|
731
|
-
|
|
732
752
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
733
753
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
734
754
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -743,7 +763,6 @@
|
|
|
743
763
|
```
|
|
744
764
|
|
|
745
765
|
Check out our docs for more:
|
|
746
|
-
|
|
747
766
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
748
767
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
749
768
|
|
|
@@ -943,7 +962,6 @@
|
|
|
943
962
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
944
963
|
|
|
945
964
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
946
|
-
|
|
947
965
|
- `--sourcemapClient`
|
|
948
966
|
|
|
949
967
|
- `--sourcemapClient=inline`
|
|
@@ -1280,7 +1298,6 @@
|
|
|
1280
1298
|
- 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))
|
|
1281
1299
|
|
|
1282
1300
|
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:
|
|
1283
|
-
|
|
1284
1301
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1285
1302
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1286
1303
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -1684,7 +1701,6 @@
|
|
|
1684
1701
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
1685
1702
|
|
|
1686
1703
|
Written to server build directory (`build/` by default):
|
|
1687
|
-
|
|
1688
1704
|
- `metafile.css.json`
|
|
1689
1705
|
- `metafile.js.json` (browser JS)
|
|
1690
1706
|
- `metafile.server.json` (server JS)
|
|
@@ -1782,7 +1798,6 @@
|
|
|
1782
1798
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
1783
1799
|
|
|
1784
1800
|
New options:
|
|
1785
|
-
|
|
1786
1801
|
- `--tls-key` / `tlsKey`: TLS key
|
|
1787
1802
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
1788
1803
|
|
|
@@ -2053,7 +2068,6 @@
|
|
|
2053
2068
|
```
|
|
2054
2069
|
|
|
2055
2070
|
The dev server will:
|
|
2056
|
-
|
|
2057
2071
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2058
2072
|
- rebuild your app whenever your Remix app code changes
|
|
2059
2073
|
- restart your app server whenever rebuilds succeed
|