@react-router/dev 7.8.2 → 7.9.0-pre.1
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 +30 -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,35 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
+
## 7.9.0-pre.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- `react-router@7.9.0-pre.1`
|
|
9
|
+
- `@react-router/node@7.9.0-pre.1`
|
|
10
|
+
- `@react-router/serve@7.9.0-pre.1`
|
|
11
|
+
|
|
12
|
+
## 7.9.0-pre.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
17
|
+
|
|
18
|
+
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
19
|
+
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
20
|
+
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
21
|
+
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
22
|
+
- `<HydratedRouter>` [`getContext`](https://reactrouter.com/api/framework-routers/HydratedRouter#getcontext) prop
|
|
23
|
+
|
|
24
|
+
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.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies:
|
|
29
|
+
- `react-router@7.9.0-pre.0`
|
|
30
|
+
- `@react-router/node@7.9.0-pre.0`
|
|
31
|
+
- `@react-router/serve@7.9.0-pre.0`
|
|
32
|
+
|
|
3
33
|
## 7.8.2
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -728,7 +758,6 @@
|
|
|
728
758
|
```
|
|
729
759
|
|
|
730
760
|
This initial implementation targets type inference for:
|
|
731
|
-
|
|
732
761
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
733
762
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
734
763
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -743,7 +772,6 @@
|
|
|
743
772
|
```
|
|
744
773
|
|
|
745
774
|
Check out our docs for more:
|
|
746
|
-
|
|
747
775
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
748
776
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
749
777
|
|
|
@@ -943,7 +971,6 @@
|
|
|
943
971
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
944
972
|
|
|
945
973
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
946
|
-
|
|
947
974
|
- `--sourcemapClient`
|
|
948
975
|
|
|
949
976
|
- `--sourcemapClient=inline`
|
|
@@ -1280,7 +1307,6 @@
|
|
|
1280
1307
|
- 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
1308
|
|
|
1282
1309
|
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
1310
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1285
1311
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1286
1312
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -1684,7 +1710,6 @@
|
|
|
1684
1710
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
1685
1711
|
|
|
1686
1712
|
Written to server build directory (`build/` by default):
|
|
1687
|
-
|
|
1688
1713
|
- `metafile.css.json`
|
|
1689
1714
|
- `metafile.js.json` (browser JS)
|
|
1690
1715
|
- `metafile.server.json` (server JS)
|
|
@@ -1782,7 +1807,6 @@
|
|
|
1782
1807
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
1783
1808
|
|
|
1784
1809
|
New options:
|
|
1785
|
-
|
|
1786
1810
|
- `--tls-key` / `tlsKey`: TLS key
|
|
1787
1811
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
1788
1812
|
|
|
@@ -2053,7 +2077,6 @@
|
|
|
2053
2077
|
```
|
|
2054
2078
|
|
|
2055
2079
|
The dev server will:
|
|
2056
|
-
|
|
2057
2080
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2058
2081
|
- rebuild your app whenever your Remix app code changes
|
|
2059
2082
|
- restart your app server whenever rebuilds succeed
|