@react-router/dev 7.10.0-pre.0 → 7.10.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 +12 -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,6 +1,6 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
-
## 7.10.0
|
|
3
|
+
## 7.10.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
- Updated dependencies:
|
|
37
|
-
- `react-router@7.10.0
|
|
38
|
-
- `@react-router/node@7.10.0
|
|
39
|
-
- `@react-router/serve@7.10.0
|
|
37
|
+
- `react-router@7.10.0`
|
|
38
|
+
- `@react-router/node@7.10.0`
|
|
39
|
+
- `@react-router/serve@7.10.0`
|
|
40
40
|
|
|
41
41
|
## 7.9.6
|
|
42
42
|
|
|
@@ -218,6 +218,7 @@
|
|
|
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
|
+
|
|
221
222
|
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
222
223
|
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
223
224
|
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
@@ -960,6 +961,7 @@
|
|
|
960
961
|
```
|
|
961
962
|
|
|
962
963
|
This initial implementation targets type inference for:
|
|
964
|
+
|
|
963
965
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
964
966
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
965
967
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -974,6 +976,7 @@
|
|
|
974
976
|
```
|
|
975
977
|
|
|
976
978
|
Check out our docs for more:
|
|
979
|
+
|
|
977
980
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
978
981
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
979
982
|
|
|
@@ -1173,6 +1176,7 @@
|
|
|
1173
1176
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
1174
1177
|
|
|
1175
1178
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
1179
|
+
|
|
1176
1180
|
- `--sourcemapClient`
|
|
1177
1181
|
|
|
1178
1182
|
- `--sourcemapClient=inline`
|
|
@@ -1509,6 +1513,7 @@
|
|
|
1509
1513
|
- 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))
|
|
1510
1514
|
|
|
1511
1515
|
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
|
+
|
|
1512
1517
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1513
1518
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1514
1519
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -1912,6 +1917,7 @@
|
|
|
1912
1917
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
1913
1918
|
|
|
1914
1919
|
Written to server build directory (`build/` by default):
|
|
1920
|
+
|
|
1915
1921
|
- `metafile.css.json`
|
|
1916
1922
|
- `metafile.js.json` (browser JS)
|
|
1917
1923
|
- `metafile.server.json` (server JS)
|
|
@@ -2009,6 +2015,7 @@
|
|
|
2009
2015
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
2010
2016
|
|
|
2011
2017
|
New options:
|
|
2018
|
+
|
|
2012
2019
|
- `--tls-key` / `tlsKey`: TLS key
|
|
2013
2020
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
2014
2021
|
|
|
@@ -2279,6 +2286,7 @@
|
|
|
2279
2286
|
```
|
|
2280
2287
|
|
|
2281
2288
|
The dev server will:
|
|
2289
|
+
|
|
2282
2290
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2283
2291
|
- rebuild your app whenever your Remix app code changes
|
|
2284
2292
|
- 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.10.0
|
|
3
|
+
"version": "7.10.0",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"tinyglobby": "^0.2.14",
|
|
88
88
|
"valibot": "^1.1.0",
|
|
89
89
|
"vite-node": "^3.2.2",
|
|
90
|
-
"@react-router/node": "7.10.0
|
|
90
|
+
"@react-router/node": "7.10.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@types/babel__core": "^7.20.5",
|
|
@@ -110,16 +110,16 @@
|
|
|
110
110
|
"vite": "^6.3.0",
|
|
111
111
|
"wireit": "0.14.9",
|
|
112
112
|
"wrangler": "^4.23.0",
|
|
113
|
-
"@react-router/serve": "7.10.0
|
|
114
|
-
"react-router": "^7.10.0
|
|
113
|
+
"@react-router/serve": "7.10.0",
|
|
114
|
+
"react-router": "^7.10.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@vitejs/plugin-rsc": "*",
|
|
118
118
|
"typescript": "^5.1.0",
|
|
119
119
|
"vite": "^5.1.0 || ^6.0.0 || ^7.0.0",
|
|
120
120
|
"wrangler": "^3.28.2 || ^4.0.0",
|
|
121
|
-
"@react-router/serve": "^7.10.0
|
|
122
|
-
"react-router": "^7.10.0
|
|
121
|
+
"@react-router/serve": "^7.10.0",
|
|
122
|
+
"react-router": "^7.10.0"
|
|
123
123
|
},
|
|
124
124
|
"peerDependenciesMeta": {
|
|
125
125
|
"@vitejs/plugin-rsc": {
|