@react-router/dev 7.14.0-pre.0 → 7.14.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@react-router/dev`
2
2
 
3
- ## 7.14.0-pre.0
3
+ ## 7.14.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,8 +8,10 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - support for prerendering multiple server bundles with v8_viteEnvironmentApi ([#14921](https://github.com/remix-run/react-router/pull/14921))
11
+ - support for prerendering multiple server bundles with v8\_viteEnvironmentApi ([#14921](https://github.com/remix-run/react-router/pull/14921))
12
+
12
13
  - rsc framework mode prerender / spa mode support ([#14907](https://github.com/remix-run/react-router/pull/14907))
14
+
13
15
  - UNSTABLE RSC FRAMEWORK MODE BREAKING CHANGE - Existing route module exports remain unchanged from stable v7 non-RSC mode, but new exports are added for RSC mode. If you want to use RSC features, you will need to update your route modules to export the new annotations. ([#14901](https://github.com/remix-run/react-router/pull/14901))
14
16
 
15
17
  If you are using RSC framework mode currently, you will need to update your route modules to the new conventions. The following route module components have their own mutually exclusive server component counterparts:
@@ -68,10 +70,11 @@
68
70
  ```
69
71
 
70
72
  - update the reveal command to support rsc for `entry.client`, `entry.rsc`, `entry.ssr` ([#14904](https://github.com/remix-run/react-router/pull/14904))
73
+
71
74
  - Updated dependencies:
72
- - `react-router@7.14.0-pre.0`
73
- - `@react-router/node@7.14.0-pre.0`
74
- - `@react-router/serve@7.14.0-pre.0`
75
+ - `react-router@7.14.0`
76
+ - `@react-router/node@7.14.0`
77
+ - `@react-router/serve@7.14.0`
75
78
 
76
79
  ## 7.13.2
77
80
 
@@ -86,6 +89,7 @@
86
89
  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).
87
90
 
88
91
  Enabling this flag removes that normalization and passes the raw HTTP `request` instance to your handlers. This provides a few benefits:
92
+
89
93
  - Reduces server-side overhead by eliminating multiple `new Request()` calls on the critical path
90
94
  - Allows you to distinguish document from data requests in your handlers base don the presence of a `.data` suffix (useful for observability purposes)
91
95
 
@@ -161,25 +165,25 @@
161
165
 
162
166
  | URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
163
167
  | ------------ | ----------------- | ------------------------ |
164
- | **Document** | `/a/b/c` | `/a/b/c` ✅ |
165
- | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
168
+ | **Document** | `/a/b/c` | `/a/b/c` ✅ |
169
+ | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
166
170
 
167
171
  | URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
168
172
  | ------------- | ----------------- | ------------------------ |
169
- | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
173
+ | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
170
174
  | **Data** | `/a/b/c.data` | `/a/b/c` ⚠️ |
171
175
 
172
176
  With this flag enabled, these pathnames will be made consistent though a new `_.data` format for client-side `.data` requests:
173
177
 
174
178
  | URL `/a/b/c` | **HTTP pathname** | **`request` pathname\`** |
175
179
  | ------------ | ----------------- | ------------------------ |
176
- | **Document** | `/a/b/c` | `/a/b/c` ✅ |
177
- | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
180
+ | **Document** | `/a/b/c` | `/a/b/c` ✅ |
181
+ | **Data** | `/a/b/c.data` | `/a/b/c` ✅ |
178
182
 
179
183
  | URL `/a/b/c/` | **HTTP pathname** | **`request` pathname\`** |
180
184
  | ------------- | ------------------ | ------------------------ |
181
- | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
182
- | **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅ |
185
+ | **Document** | `/a/b/c/` | `/a/b/c/` ✅ |
186
+ | **Data** | `/a/b/c/_.data` ⬅️ | `/a/b/c/` ✅ |
183
187
 
184
188
  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.
185
189
 
@@ -437,6 +441,7 @@
437
441
  - Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
438
442
 
439
443
  We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
444
+
440
445
  - [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
441
446
  - [`createContext`](https://reactrouter.com/api/utils/createContext)
442
447
  - `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
@@ -1179,6 +1184,7 @@
1179
1184
  ```
1180
1185
 
1181
1186
  This initial implementation targets type inference for:
1187
+
1182
1188
  - `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
1183
1189
  - `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
1184
1190
  - `ActionData` : Action data from `action` and/or `clientAction` within your route module
@@ -1193,6 +1199,7 @@
1193
1199
  ```
1194
1200
 
1195
1201
  Check out our docs for more:
1202
+
1196
1203
  - [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
1197
1204
  - [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
1198
1205
 
@@ -1392,6 +1399,7 @@
1392
1399
  - Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654))
1393
1400
 
1394
1401
  - Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613))
1402
+
1395
1403
  - `--sourcemapClient`
1396
1404
 
1397
1405
  - `--sourcemapClient=inline`
@@ -1728,6 +1736,7 @@
1728
1736
  - 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))
1729
1737
 
1730
1738
  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
+
1731
1740
  - Leveraging a data source local to the browser (i.e., `localStorage`)
1732
1741
  - Managing a client-side cache of server data (like `IndexedDB`)
1733
1742
  - Bypassing the Remix server in a BFF setup and hitting your API directly from the browser
@@ -2131,6 +2140,7 @@
2131
2140
  - Output esbuild metafiles for bundle analysis ([#6772](https://github.com/remix-run/remix/pull/6772))
2132
2141
 
2133
2142
  Written to server build directory (`build/` by default):
2143
+
2134
2144
  - `metafile.css.json`
2135
2145
  - `metafile.js.json` (browser JS)
2136
2146
  - `metafile.server.json` (server JS)
@@ -2228,6 +2238,7 @@
2228
2238
  - built-in tls support ([#6483](https://github.com/remix-run/remix/pull/6483))
2229
2239
 
2230
2240
  New options:
2241
+
2231
2242
  - `--tls-key` / `tlsKey`: TLS key
2232
2243
  - `--tls-cert` / `tlsCert`: TLS Certificate
2233
2244
 
@@ -2498,6 +2509,7 @@
2498
2509
  ```
2499
2510
 
2500
2511
  The dev server will:
2512
+
2501
2513
  - force `NODE_ENV=development` and warn you if it was previously set to something else
2502
2514
  - rebuild your app whenever your Remix app code changes
2503
2515
  - 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-pre.0
3
+ * @react-router/dev v7.14.0
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-pre.0
2
+ * @react-router/dev v7.14.0
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-pre.0
2
+ * @react-router/dev v7.14.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v7.14.0-pre.0
2
+ * @react-router/dev v7.14.0
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-pre.0
2
+ * @react-router/dev v7.14.0
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-pre.0",
3
+ "version": "7.14.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.14.0-pre.0"
95
+ "@react-router/node": "7.14.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.14.0-pre.0",
120
- "react-router": "^7.14.0-pre.0"
119
+ "@react-router/serve": "7.14.0",
120
+ "react-router": "^7.14.0"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "@vitejs/plugin-rsc": "~0.5.21",
@@ -125,8 +125,8 @@
125
125
  "typescript": "^5.1.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-pre.0",
129
- "react-router": "^7.14.0-pre.0"
128
+ "@react-router/serve": "^7.14.0",
129
+ "react-router": "^7.14.0"
130
130
  },
131
131
  "peerDependenciesMeta": {
132
132
  "@vitejs/plugin-rsc": {