@react-router/dev 7.13.1-pre.0 → 7.13.1
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,13 +1,13 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
-
## 7.13.1
|
|
3
|
+
## 7.13.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies:
|
|
8
|
-
- `react-router@7.13.1
|
|
9
|
-
- `@react-router/node@7.13.1
|
|
10
|
-
- `@react-router/serve@7.13.1
|
|
8
|
+
- `react-router@7.13.1`
|
|
9
|
+
- `@react-router/node@7.13.1`
|
|
10
|
+
- `@react-router/serve@7.13.1`
|
|
11
11
|
|
|
12
12
|
## 7.13.0
|
|
13
13
|
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
|
|
38
38
|
| URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
|
|
39
39
|
| ------------ | ----------------- | ------------------------ |
|
|
40
|
-
| **Document** | `/a/b/c` | `/a/b/c` ✅
|
|
41
|
-
| **Data** | `/a/b/c.data` | `/a/b/c` ✅
|
|
40
|
+
| **Document** | `/a/b/c` | `/a/b/c` ✅ |
|
|
41
|
+
| **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
|
|
42
42
|
|
|
43
43
|
| URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
|
|
44
44
|
| ------------- | ----------------- | ------------------------ |
|
|
45
|
-
| **Document** | `/a/b/c/` | `/a/b/c/` ✅
|
|
45
|
+
| **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
|
|
46
46
|
| **Data** | `/a/b/c.data` | `/a/b/c` ⚠️ |
|
|
47
47
|
|
|
48
48
|
With this flag enabled, these pathnames will be made consistent though a new `_.data` format for client-side `.data` requests:
|
|
49
49
|
|
|
50
50
|
| URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
|
|
51
51
|
| ------------ | ----------------- | ------------------------ |
|
|
52
|
-
| **Document** | `/a/b/c` | `/a/b/c` ✅
|
|
53
|
-
| **Data** | `/a/b/c.data` | `/a/b/c` ✅
|
|
52
|
+
| **Document** | `/a/b/c` | `/a/b/c` ✅ |
|
|
53
|
+
| **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
|
|
54
54
|
|
|
55
55
|
| URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
|
|
56
56
|
| ------------- | ------------------ | ------------------------ |
|
|
57
|
-
| **Document** | `/a/b/c/` | `/a/b/c/` ✅
|
|
58
|
-
| **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅
|
|
57
|
+
| **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
|
|
58
|
+
| **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅ |
|
|
59
59
|
|
|
60
60
|
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.
|
|
61
61
|
|
|
@@ -313,6 +313,7 @@
|
|
|
313
313
|
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
314
314
|
|
|
315
315
|
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
316
|
+
|
|
316
317
|
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
317
318
|
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
318
319
|
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
@@ -1055,6 +1056,7 @@
|
|
|
1055
1056
|
```
|
|
1056
1057
|
|
|
1057
1058
|
This initial implementation targets type inference for:
|
|
1059
|
+
|
|
1058
1060
|
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
1059
1061
|
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
1060
1062
|
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
@@ -1069,6 +1071,7 @@
|
|
|
1069
1071
|
```
|
|
1070
1072
|
|
|
1071
1073
|
Check out our docs for more:
|
|
1074
|
+
|
|
1072
1075
|
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
1073
1076
|
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
1074
1077
|
|
|
@@ -1268,6 +1271,7 @@
|
|
|
1268
1271
|
- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
|
|
1269
1272
|
|
|
1270
1273
|
- Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
|
|
1274
|
+
|
|
1271
1275
|
- `--sourcemapClient`
|
|
1272
1276
|
|
|
1273
1277
|
- `--sourcemapClient=inline`
|
|
@@ -1604,6 +1608,7 @@
|
|
|
1604
1608
|
- 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))
|
|
1605
1609
|
|
|
1606
1610
|
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:
|
|
1611
|
+
|
|
1607
1612
|
- Leveraging a data source local to the browser (i.e., `localStorage`)
|
|
1608
1613
|
- Managing a client-side cache of server data (like `IndexedDB`)
|
|
1609
1614
|
- Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
|
|
@@ -2007,6 +2012,7 @@
|
|
|
2007
2012
|
- Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
|
|
2008
2013
|
|
|
2009
2014
|
Written to server build directory (`build/` by default):
|
|
2015
|
+
|
|
2010
2016
|
- `metafile.css.json`
|
|
2011
2017
|
- `metafile.js.json` (browser JS)
|
|
2012
2018
|
- `metafile.server.json` (server JS)
|
|
@@ -2104,6 +2110,7 @@
|
|
|
2104
2110
|
- built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
|
|
2105
2111
|
|
|
2106
2112
|
New options:
|
|
2113
|
+
|
|
2107
2114
|
- `--tls-key` / `tlsKey`: TLS key
|
|
2108
2115
|
- `--tls-cert` / `tlsCert`: TLS Certificate
|
|
2109
2116
|
|
|
@@ -2374,6 +2381,7 @@
|
|
|
2374
2381
|
```
|
|
2375
2382
|
|
|
2376
2383
|
The dev server will:
|
|
2384
|
+
|
|
2377
2385
|
- force `NODE_ENV=development` and warn you if it was previously set to something else
|
|
2378
2386
|
- rebuild your app whenever your Remix app code changes
|
|
2379
2387
|
- 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.1
|
|
3
|
+
"version": "7.13.1",
|
|
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.1
|
|
95
|
+
"@react-router/node": "7.13.1"
|
|
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.1
|
|
120
|
-
"react-router": "^7.13.1
|
|
119
|
+
"@react-router/serve": "7.13.1",
|
|
120
|
+
"react-router": "^7.13.1"
|
|
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.1
|
|
129
|
-
"react-router": "^7.13.1
|
|
128
|
+
"@react-router/serve": "^7.13.1",
|
|
129
|
+
"react-router": "^7.13.1"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@vitejs/plugin-rsc": {
|