@react-router/dev 7.9.4-pre.0 → 7.9.4
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 +13 -4
- package/dist/cli/index.js +1 -1
- package/dist/config.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/vite/cloudflare.js +1 -1
- package/dist/vite.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
-
## 7.9.4
|
|
3
|
+
## 7.9.4
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Update `valibot` dependency to `^1.1.0` ([#14379](https://github.com/remix-run/react-router/pull/14379))
|
|
8
|
+
|
|
8
9
|
- New (unstable) `useRoute` hook for accessing data from specific routes ([#14407](https://github.com/remix-run/react-router/pull/14407))
|
|
9
10
|
|
|
10
11
|
For example, let's say you have an `admin` route somewhere in your app and you want any child routes of `admin` to all have access to the `loaderData` and `actionData` from `admin.`
|
|
@@ -106,9 +107,9 @@
|
|
|
106
107
|
```
|
|
107
108
|
|
|
108
109
|
- Updated dependencies:
|
|
109
|
-
- `react-router@7.9.4
|
|
110
|
-
- `@react-router/node@7.9.4
|
|
111
|
-
- `@react-router/serve@7.9.4
|
|
110
|
+
- `react-router@7.9.4`
|
|
111
|
+
- `@react-router/node@7.9.4`
|
|
112
|
+
- `@react-router/serve@7.9.4`
|
|
112
113
|
|
|
113
114
|
## 7.9.3
|
|
114
115
|
|
|
@@ -155,6 +156,7 @@
|
|
|
155
156
|
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
156
157
|
|
|
157
158
|
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
159
|
+
|
|
158
160
|
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
159
161
|
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
160
162
|
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
@@ -897,6 +899,7 @@
|
|
|
897
899
|
```
|
|
898
900
|
|
|
899
901
|
This initial implementation targets type inference for:
|
|
902
|
+
|
|
900
903
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
901
904
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
902
905
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -911,6 +914,7 @@
|
|
|
911
914
|
```
|
|
912
915
|
|
|
913
916
|
Check out our docs for more:
|
|
917
|
+
|
|
914
918
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
915
919
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
916
920
|
|
|
@@ -1110,6 +1114,7 @@
|
|
|
1110
1114
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
1111
1115
|
|
|
1112
1116
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
1117
|
+
|
|
1113
1118
|
- `--sourcemapClient`
|
|
1114
1119
|
|
|
1115
1120
|
- `--sourcemapClient=inline`
|
|
@@ -1446,6 +1451,7 @@
|
|
|
1446
1451
|
- 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))
|
|
1447
1452
|
|
|
1448
1453
|
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:
|
|
1454
|
+
|
|
1449
1455
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1450
1456
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1451
1457
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -1849,6 +1855,7 @@
|
|
|
1849
1855
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
1850
1856
|
|
|
1851
1857
|
Written to server build directory (`build/` by default):
|
|
1858
|
+
|
|
1852
1859
|
- `metafile.css.json`
|
|
1853
1860
|
- `metafile.js.json` (browser JS)
|
|
1854
1861
|
- `metafile.server.json` (server JS)
|
|
@@ -1946,6 +1953,7 @@
|
|
|
1946
1953
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
1947
1954
|
|
|
1948
1955
|
New options:
|
|
1956
|
+
|
|
1949
1957
|
- `--tls-key` / `tlsKey`: TLS key
|
|
1950
1958
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
1951
1959
|
|
|
@@ -2216,6 +2224,7 @@
|
|
|
2216
2224
|
```
|
|
2217
2225
|
|
|
2218
2226
|
The dev server will:
|
|
2227
|
+
|
|
2219
2228
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2220
2229
|
- rebuild your app whenever your Remix app code changes
|
|
2221
2230
|
- restart your app server whenever rebuilds succeed
|
package/dist/cli/index.js
CHANGED
package/dist/config.js
CHANGED
package/dist/routes.js
CHANGED
package/dist/vite/cloudflare.js
CHANGED
package/dist/vite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
|
-
"version": "7.9.4
|
|
3
|
+
"version": "7.9.4",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"tinyglobby": "^0.2.14",
|
|
87
87
|
"valibot": "^1.1.0",
|
|
88
88
|
"vite-node": "^3.2.2",
|
|
89
|
-
"@react-router/node": "7.9.4
|
|
89
|
+
"@react-router/node": "7.9.4"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@types/babel__core": "^7.20.5",
|
|
@@ -109,16 +109,16 @@
|
|
|
109
109
|
"vite": "^6.1.0",
|
|
110
110
|
"wireit": "0.14.9",
|
|
111
111
|
"wrangler": "^4.23.0",
|
|
112
|
-
"
|
|
113
|
-
"react-router": "
|
|
112
|
+
"react-router": "^7.9.4",
|
|
113
|
+
"@react-router/serve": "7.9.4"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
116
|
"@vitejs/plugin-rsc": "*",
|
|
117
117
|
"typescript": "^5.1.0",
|
|
118
118
|
"vite": "^5.1.0 || ^6.0.0 || ^7.0.0",
|
|
119
119
|
"wrangler": "^3.28.2 || ^4.0.0",
|
|
120
|
-
"@react-router/serve": "^7.9.4
|
|
121
|
-
"react-router": "^7.9.4
|
|
120
|
+
"@react-router/serve": "^7.9.4",
|
|
121
|
+
"react-router": "^7.9.4"
|
|
122
122
|
},
|
|
123
123
|
"peerDependenciesMeta": {
|
|
124
124
|
"@vitejs/plugin-rsc": {
|