@react-router/dev 7.10.0-pre.1 → 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 -13
- 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,15 +1,6 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
-
## 7.10.0
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies:
|
|
8
|
-
- `react-router@7.10.0-pre.1`
|
|
9
|
-
- `@react-router/node@7.10.0-pre.1`
|
|
10
|
-
- `@react-router/serve@7.10.0-pre.1`
|
|
11
|
-
|
|
12
|
-
## 7.10.0-pre.0
|
|
3
|
+
## 7.10.0
|
|
13
4
|
|
|
14
5
|
### Minor Changes
|
|
15
6
|
|
|
@@ -43,9 +34,9 @@
|
|
|
43
34
|
```
|
|
44
35
|
|
|
45
36
|
- Updated dependencies:
|
|
46
|
-
- `react-router@7.10.0
|
|
47
|
-
- `@react-router/node@7.10.0
|
|
48
|
-
- `@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`
|
|
49
40
|
|
|
50
41
|
## 7.9.6
|
|
51
42
|
|
|
@@ -227,6 +218,7 @@
|
|
|
227
218
|
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
228
219
|
|
|
229
220
|
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
221
|
+
|
|
230
222
|
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
231
223
|
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
232
224
|
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
@@ -969,6 +961,7 @@
|
|
|
969
961
|
```
|
|
970
962
|
|
|
971
963
|
This initial implementation targets type inference for:
|
|
964
|
+
|
|
972
965
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
973
966
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
974
967
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -983,6 +976,7 @@
|
|
|
983
976
|
```
|
|
984
977
|
|
|
985
978
|
Check out our docs for more:
|
|
979
|
+
|
|
986
980
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
987
981
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
988
982
|
|
|
@@ -1182,6 +1176,7 @@
|
|
|
1182
1176
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
1183
1177
|
|
|
1184
1178
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
1179
|
+
|
|
1185
1180
|
- `--sourcemapClient`
|
|
1186
1181
|
|
|
1187
1182
|
- `--sourcemapClient=inline`
|
|
@@ -1518,6 +1513,7 @@
|
|
|
1518
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))
|
|
1519
1514
|
|
|
1520
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
|
+
|
|
1521
1517
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1522
1518
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1523
1519
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -1921,6 +1917,7 @@
|
|
|
1921
1917
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
1922
1918
|
|
|
1923
1919
|
Written to server build directory (`build/` by default):
|
|
1920
|
+
|
|
1924
1921
|
- `metafile.css.json`
|
|
1925
1922
|
- `metafile.js.json` (browser JS)
|
|
1926
1923
|
- `metafile.server.json` (server JS)
|
|
@@ -2018,6 +2015,7 @@
|
|
|
2018
2015
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
2019
2016
|
|
|
2020
2017
|
New options:
|
|
2018
|
+
|
|
2021
2019
|
- `--tls-key` / `tlsKey`: TLS key
|
|
2022
2020
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
2023
2021
|
|
|
@@ -2288,6 +2286,7 @@
|
|
|
2288
2286
|
```
|
|
2289
2287
|
|
|
2290
2288
|
The dev server will:
|
|
2289
|
+
|
|
2291
2290
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2292
2291
|
- rebuild your app whenever your Remix app code changes
|
|
2293
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": {
|