@react-router/dev 7.13.0-pre.0 → 7.13.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 +19 -11
- 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,14 +1,14 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
-
## 7.13.0
|
|
3
|
+
## 7.13.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Bump @remix-run/node-fetch-server dep ([#14704](https://github.com/remix-run/react-router/pull/14704))
|
|
8
8
|
- Updated dependencies:
|
|
9
|
-
- `react-router@7.13.0
|
|
10
|
-
- `@react-router/node@7.13.0
|
|
11
|
-
- `@react-router/serve@7.13.0
|
|
9
|
+
- `react-router@7.13.0`
|
|
10
|
+
- `@react-router/node@7.13.0`
|
|
11
|
+
- `@react-router/serve@7.13.0`
|
|
12
12
|
|
|
13
13
|
## 7.12.0
|
|
14
14
|
|
|
@@ -28,25 +28,25 @@
|
|
|
28
28
|
|
|
29
29
|
| URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
|
|
30
30
|
| ------------ | ----------------- | ------------------------ |
|
|
31
|
-
| **Document** | `/a/b/c` | `/a/b/c` ✅
|
|
32
|
-
| **Data** | `/a/b/c.data` | `/a/b/c` ✅
|
|
31
|
+
| **Document** | `/a/b/c` | `/a/b/c` ✅ |
|
|
32
|
+
| **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
|
|
33
33
|
|
|
34
34
|
| URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
|
|
35
35
|
| ------------- | ----------------- | ------------------------ |
|
|
36
|
-
| **Document** | `/a/b/c/` | `/a/b/c/` ✅
|
|
36
|
+
| **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
|
|
37
37
|
| **Data** | `/a/b/c.data` | `/a/b/c` ⚠️ |
|
|
38
38
|
|
|
39
39
|
With this flag enabled, these pathnames will be made consistent though a new `_.data` format for client-side `.data` requests:
|
|
40
40
|
|
|
41
41
|
| URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
|
|
42
42
|
| ------------ | ----------------- | ------------------------ |
|
|
43
|
-
| **Document** | `/a/b/c` | `/a/b/c` ✅
|
|
44
|
-
| **Data** | `/a/b/c.data` | `/a/b/c` ✅
|
|
43
|
+
| **Document** | `/a/b/c` | `/a/b/c` ✅ |
|
|
44
|
+
| **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
|
|
45
45
|
|
|
46
46
|
| URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
|
|
47
47
|
| ------------- | ------------------ | ------------------------ |
|
|
48
|
-
| **Document** | `/a/b/c/` | `/a/b/c/` ✅
|
|
49
|
-
| **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅
|
|
48
|
+
| **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
|
|
49
|
+
| **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅ |
|
|
50
50
|
|
|
51
51
|
This a bug fix but we are putting it behind an opt-in flag because it has the potential to be a "breaking bug fix" if you are relying on the URL format for any other application or caching logic.
|
|
52
52
|
|
|
@@ -304,6 +304,7 @@
|
|
|
304
304
|
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
305
305
|
|
|
306
306
|
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
307
|
+
|
|
307
308
|
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
308
309
|
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
309
310
|
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
@@ -1046,6 +1047,7 @@
|
|
|
1046
1047
|
```
|
|
1047
1048
|
|
|
1048
1049
|
This initial implementation targets type inference for:
|
|
1050
|
+
|
|
1049
1051
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
1050
1052
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
1051
1053
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -1060,6 +1062,7 @@
|
|
|
1060
1062
|
```
|
|
1061
1063
|
|
|
1062
1064
|
Check out our docs for more:
|
|
1065
|
+
|
|
1063
1066
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
1064
1067
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
1065
1068
|
|
|
@@ -1259,6 +1262,7 @@
|
|
|
1259
1262
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
1260
1263
|
|
|
1261
1264
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
1265
|
+
|
|
1262
1266
|
- `--sourcemapClient`
|
|
1263
1267
|
|
|
1264
1268
|
- `--sourcemapClient=inline`
|
|
@@ -1595,6 +1599,7 @@
|
|
|
1595
1599
|
- 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))
|
|
1596
1600
|
|
|
1597
1601
|
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:
|
|
1602
|
+
|
|
1598
1603
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1599
1604
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1600
1605
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -1998,6 +2003,7 @@
|
|
|
1998
2003
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
1999
2004
|
|
|
2000
2005
|
Written to server build directory (`build/` by default):
|
|
2006
|
+
|
|
2001
2007
|
- `metafile.css.json`
|
|
2002
2008
|
- `metafile.js.json` (browser JS)
|
|
2003
2009
|
- `metafile.server.json` (server JS)
|
|
@@ -2095,6 +2101,7 @@
|
|
|
2095
2101
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
2096
2102
|
|
|
2097
2103
|
New options:
|
|
2104
|
+
|
|
2098
2105
|
- `--tls-key` / `tlsKey`: TLS key
|
|
2099
2106
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
2100
2107
|
|
|
@@ -2365,6 +2372,7 @@
|
|
|
2365
2372
|
```
|
|
2366
2373
|
|
|
2367
2374
|
The dev server will:
|
|
2375
|
+
|
|
2368
2376
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2369
2377
|
- rebuild your app whenever your Remix app code changes
|
|
2370
2378
|
- 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.13.0
|
|
3
|
+
"version": "7.13.0",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"tinyglobby": "^0.2.14",
|
|
93
93
|
"valibot": "^1.2.0",
|
|
94
94
|
"vite-node": "^3.2.2",
|
|
95
|
-
"@react-router/node": "7.13.0
|
|
95
|
+
"@react-router/node": "7.13.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@types/babel__core": "^7.20.5",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"vite": "^6.3.0",
|
|
117
117
|
"wireit": "0.14.9",
|
|
118
118
|
"wrangler": "^4.23.0",
|
|
119
|
-
"@react-router/serve": "7.13.0
|
|
120
|
-
"react-router": "^7.13.0
|
|
119
|
+
"@react-router/serve": "7.13.0",
|
|
120
|
+
"react-router": "^7.13.0"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"@vitejs/plugin-rsc": "~0.5.7",
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
"typescript": "^5.1.0",
|
|
126
126
|
"vite": "^5.1.0 || ^6.0.0 || ^7.0.0",
|
|
127
127
|
"wrangler": "^3.28.2 || ^4.0.0",
|
|
128
|
-
"@react-router/serve": "^7.13.0
|
|
129
|
-
"react-router": "^7.13.0
|
|
128
|
+
"@react-router/serve": "^7.13.0",
|
|
129
|
+
"react-router": "^7.13.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@vitejs/plugin-rsc": {
|