@react-router/dev 7.9.6-pre.1 → 7.9.6
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,24 +1,15 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
-
## 7.9.6
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies:
|
|
8
|
-
- `react-router@7.9.6-pre.1`
|
|
9
|
-
- `@react-router/node@7.9.6-pre.1`
|
|
10
|
-
- `@react-router/serve@7.9.6-pre.1`
|
|
11
|
-
|
|
12
|
-
## 7.9.6-pre.0
|
|
3
|
+
## 7.9.6
|
|
13
4
|
|
|
14
5
|
### Patch Changes
|
|
15
6
|
|
|
16
7
|
- Use a dynamic `import()` to load ESM-only `p-map` dependency to avoid issues on Node 20.18 and below ([#14492](https://github.com/remix-run/react-router/pull/14492))
|
|
17
8
|
- Short circuit `HEAD` document requests before calling `renderToPipeableStream` in the default `entry.server.tsx` to more closely align with the [spec](https://httpwg.org/specs/rfc9110.html#HEAD) ([#14488](https://github.com/remix-run/react-router/pull/14488))
|
|
18
9
|
- Updated dependencies:
|
|
19
|
-
- `react-router@7.9.6
|
|
20
|
-
- `@react-router/node@7.9.6
|
|
21
|
-
- `@react-router/serve@7.9.6
|
|
10
|
+
- `react-router@7.9.6`
|
|
11
|
+
- `@react-router/node@7.9.6`
|
|
12
|
+
- `@react-router/serve@7.9.6`
|
|
22
13
|
|
|
23
14
|
## 7.9.5
|
|
24
15
|
|
|
@@ -189,6 +180,7 @@
|
|
|
189
180
|
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
190
181
|
|
|
191
182
|
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
183
|
+
|
|
192
184
|
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
193
185
|
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
194
186
|
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
@@ -931,6 +923,7 @@
|
|
|
931
923
|
```
|
|
932
924
|
|
|
933
925
|
This initial implementation targets type inference for:
|
|
926
|
+
|
|
934
927
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
935
928
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
936
929
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -945,6 +938,7 @@
|
|
|
945
938
|
```
|
|
946
939
|
|
|
947
940
|
Check out our docs for more:
|
|
941
|
+
|
|
948
942
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
949
943
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
950
944
|
|
|
@@ -1144,6 +1138,7 @@
|
|
|
1144
1138
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
1145
1139
|
|
|
1146
1140
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
1141
|
+
|
|
1147
1142
|
- `--sourcemapClient`
|
|
1148
1143
|
|
|
1149
1144
|
- `--sourcemapClient=inline`
|
|
@@ -1480,6 +1475,7 @@
|
|
|
1480
1475
|
- 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))
|
|
1481
1476
|
|
|
1482
1477
|
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:
|
|
1478
|
+
|
|
1483
1479
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1484
1480
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1485
1481
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -1883,6 +1879,7 @@
|
|
|
1883
1879
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
1884
1880
|
|
|
1885
1881
|
Written to server build directory (`build/` by default):
|
|
1882
|
+
|
|
1886
1883
|
- `metafile.css.json`
|
|
1887
1884
|
- `metafile.js.json` (browser JS)
|
|
1888
1885
|
- `metafile.server.json` (server JS)
|
|
@@ -1980,6 +1977,7 @@
|
|
|
1980
1977
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
1981
1978
|
|
|
1982
1979
|
New options:
|
|
1980
|
+
|
|
1983
1981
|
- `--tls-key` / `tlsKey`: TLS key
|
|
1984
1982
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
1985
1983
|
|
|
@@ -2250,6 +2248,7 @@
|
|
|
2250
2248
|
```
|
|
2251
2249
|
|
|
2252
2250
|
The dev server will:
|
|
2251
|
+
|
|
2253
2252
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2254
2253
|
- rebuild your app whenever your Remix app code changes
|
|
2255
2254
|
- 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.6
|
|
3
|
+
"version": "7.9.6",
|
|
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.9.6
|
|
90
|
+
"@react-router/node": "7.9.6"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@types/babel__core": "^7.20.5",
|
|
@@ -110,16 +110,16 @@
|
|
|
110
110
|
"vite": "^6.1.0",
|
|
111
111
|
"wireit": "0.14.9",
|
|
112
112
|
"wrangler": "^4.23.0",
|
|
113
|
-
"@react-router/serve": "7.9.6
|
|
114
|
-
"react-router": "^7.9.6
|
|
113
|
+
"@react-router/serve": "7.9.6",
|
|
114
|
+
"react-router": "^7.9.6"
|
|
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.9.6
|
|
122
|
-
"react-router": "^7.9.6
|
|
121
|
+
"@react-router/serve": "^7.9.6",
|
|
122
|
+
"react-router": "^7.9.6"
|
|
123
123
|
},
|
|
124
124
|
"peerDependenciesMeta": {
|
|
125
125
|
"@vitejs/plugin-rsc": {
|