@react-router/dev 7.14.0 → 7.14.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # `@react-router/dev`
2
2
 
3
+ ## v7.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Add TypeScript 6 support to peer dependency ranges
8
+ - Updated dependencies:
9
+ - [`react-router@7.14.1`](https://github.com/remix-run/react-router/releases/tag/react-router@7.14.1)
10
+ - [`@react-router/node@7.14.1`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@7.14.1)
11
+ - [`@react-router/serve@7.14.1`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@7.14.1)
12
+
3
13
  ## 7.14.0
4
14
 
5
15
  ### Minor Changes
@@ -8,7 +18,7 @@
8
18
 
9
19
  ### Patch Changes
10
20
 
11
- - support for prerendering multiple server bundles with v8\_viteEnvironmentApi ([#14921](https://github.com/remix-run/react-router/pull/14921))
21
+ - support for prerendering multiple server bundles with v8_viteEnvironmentApi ([#14921](https://github.com/remix-run/react-router/pull/14921))
12
22
 
13
23
  - rsc framework mode prerender / spa mode support ([#14907](https://github.com/remix-run/react-router/pull/14907))
14
24
 
@@ -89,7 +99,6 @@
89
99
  By default, React Router normalizes the `request.url` passed to your `loader`, `action`, and `middleware` functions by removing React Router's internal implementation details (`.data` suffixes, `index` + `_routes` query params).
90
100
 
91
101
  Enabling this flag removes that normalization and passes the raw HTTP `request` instance to your handlers. This provides a few benefits:
92
-
93
102
  - Reduces server-side overhead by eliminating multiple `new Request()` calls on the critical path
94
103
  - Allows you to distinguish document from data requests in your handlers base don the presence of a `.data` suffix (useful for observability purposes)
95
104
 
@@ -165,25 +174,25 @@
165
174
 
166
175
  | URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
167
176
  | ------------ | ----------------- | ------------------------ |
168
- | **Document** | `/a/b/c` | `/a/b/c` ✅ |
169
- | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
177
+ | **Document** | `/a/b/c` | `/a/b/c` ✅ |
178
+ | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
170
179
 
171
180
  | URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
172
181
  | ------------- | ----------------- | ------------------------ |
173
- | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
182
+ | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
174
183
  | **Data** | `/a/b/c.data` | `/a/b/c` ⚠️ |
175
184
 
176
185
  With this flag enabled, these pathnames will be made consistent though a new `_.data` format for client-side `.data` requests:
177
186
 
178
187
  | URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
179
188
  | ------------ | ----------------- | ------------------------ |
180
- | **Document** | `/a/b/c` | `/a/b/c` ✅ |
181
- | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
189
+ | **Document** | `/a/b/c` | `/a/b/c` ✅ |
190
+ | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
182
191
 
183
192
  | URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
184
193
  | ------------- | ------------------ | ------------------------ |
185
- | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
186
- | **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅ |
194
+ | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
195
+ | **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅ |
187
196
 
188
197
  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.
189
198
 
@@ -441,7 +450,6 @@
441
450
  - Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
442
451
 
443
452
  We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
444
-
445
453
  - [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
446
454
  - [`createContext`](https://reactrouter.com/api/utils/createContext)
447
455
  - `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
@@ -1184,7 +1192,6 @@
1184
1192
  ```
1185
1193
 
1186
1194
  This initial implementation targets type inference for:
1187
-
1188
1195
  - `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
1189
1196
  - `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
1190
1197
  - `ActionData` : Action data from `action` and/or `clientAction` within your route module
@@ -1199,7 +1206,6 @@
1199
1206
  ```
1200
1207
 
1201
1208
  Check out our docs for more:
1202
-
1203
1209
  - [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
1204
1210
  - [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
1205
1211
 
@@ -1399,7 +1405,6 @@
1399
1405
  - Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
1400
1406
 
1401
1407
  - Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
1402
-
1403
1408
  - `--sourcemapClient`
1404
1409
 
1405
1410
  - `--sourcemapClient=inline`
@@ -1736,7 +1741,6 @@
1736
1741
  - 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))
1737
1742
 
1738
1743
  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:
1739
-
1740
1744
  - Leveraging a data source local to the browser (i.e., `localStorage`)
1741
1745
  - Managing a client-side cache of server data (like `IndexedDB`)
1742
1746
  - Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
@@ -2140,7 +2144,6 @@
2140
2144
  - Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
2141
2145
 
2142
2146
  Written to server build directory (`build/` by default):
2143
-
2144
2147
  - `metafile.css.json`
2145
2148
  - `metafile.js.json` (browser JS)
2146
2149
  - `metafile.server.json` (server JS)
@@ -2238,7 +2241,6 @@
2238
2241
  - built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
2239
2242
 
2240
2243
  New options:
2241
-
2242
2244
  - `--tls-key` / `tlsKey`: TLS key
2243
2245
  - `--tls-cert` / `tlsCert`: TLS Certificate
2244
2246
 
@@ -2509,7 +2511,6 @@
2509
2511
  ```
2510
2512
 
2511
2513
  The dev server will:
2512
-
2513
2514
  - force `NODE_ENV=development` and warn you if it was previously set to something else
2514
2515
  - rebuild your app whenever your Remix app code changes
2515
2516
  - restart your app server whenever rebuilds succeed
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @react-router/dev v7.14.0
3
+ * @react-router/dev v7.14.1
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
package/dist/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v7.14.0
2
+ * @react-router/dev v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/routes.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v7.14.0
2
+ * @react-router/dev v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v7.14.0
2
+ * @react-router/dev v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/vite.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v7.14.0
2
+ * @react-router/dev v7.14.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/dev",
3
- "version": "7.14.0",
3
+ "version": "7.14.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.14.0"
95
+ "@react-router/node": "7.14.1"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@types/babel__core": "^7.20.5",
@@ -116,17 +116,17 @@
116
116
  "vite": "^6.3.0",
117
117
  "wireit": "0.14.9",
118
118
  "wrangler": "^4.23.0",
119
- "@react-router/serve": "7.14.0",
120
- "react-router": "^7.14.0"
119
+ "@react-router/serve": "7.14.1",
120
+ "react-router": "^7.14.1"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "@vitejs/plugin-rsc": "~0.5.21",
124
124
  "react-server-dom-webpack": "^19.2.3",
125
- "typescript": "^5.1.0",
125
+ "typescript": "^5.1.0 || ^6.0.0",
126
126
  "vite": "^5.1.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
127
127
  "wrangler": "^3.28.2 || ^4.0.0",
128
- "@react-router/serve": "^7.14.0",
129
- "react-router": "^7.14.0"
128
+ "react-router": "^7.14.1",
129
+ "@react-router/serve": "^7.14.1"
130
130
  },
131
131
  "peerDependenciesMeta": {
132
132
  "@vitejs/plugin-rsc": {