@react-router/serve 0.0.0-nightly-a41323a0b-20241011 → 7.0.0-pre.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 +34 -0
- package/dist/cli.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# `@remix-run/serve`
|
|
2
2
|
|
|
3
|
+
## 7.0.0-pre.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- - Fix `react-router-serve` handling of prerendered HTML files by removing the `redirect: false` option so it now falls back on the default `redirect: true` behavior of redirecting from `/folder` -> `/folder/` which will then pick up `/folder/index.html` from disk. See https://expressjs.com/en/resources/middleware/serve-static.html ([#12071](https://github.com/remix-run/react-router/pull/12071))
|
|
8
|
+
- Proxy prerendered loader data into prerender pass for HTML files to avoid double-invocations of the loader at build time
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- `react-router@7.0.0-pre.1`
|
|
11
|
+
- `@react-router/node@7.0.0-pre.1`
|
|
12
|
+
- `@react-router/express@7.0.0-pre.1`
|
|
13
|
+
|
|
14
|
+
## 7.0.0-pre.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- Remove single_fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
|
|
19
|
+
- update minimum node version to 18 ([#11690](https://github.com/remix-run/react-router/pull/11690))
|
|
20
|
+
- Add `exports` field to all packages ([#11675](https://github.com/remix-run/react-router/pull/11675))
|
|
21
|
+
- node package no longer re-exports from react-router ([#11702](https://github.com/remix-run/react-router/pull/11702))
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Update `express.static` configurations to support prerendering ([#11547](https://github.com/remix-run/react-router/pull/11547))
|
|
26
|
+
|
|
27
|
+
- Assets in the `build/client/assets` folder are served as before, with a 1-year immutable `Cache-Control` header
|
|
28
|
+
- Static files outside of assets, such as pre-rendered `.html` and `.data` files are not served with a specific `Cache-Control` header
|
|
29
|
+
- `.data` files are served with `Content-Type: text/x-turbo`
|
|
30
|
+
- For some reason, when adding this via `express.static`, it seems to also add a `Cache-Control: public, max-age=0` to `.data` files
|
|
31
|
+
|
|
32
|
+
- Updated dependencies:
|
|
33
|
+
- `react-router@7.0.0-pre.0`
|
|
34
|
+
- `@react-router/express@7.0.0-pre.0`
|
|
35
|
+
- `@react-router/node@7.0.0-pre.0`
|
|
36
|
+
|
|
3
37
|
## 2.9.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/serve",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-pre.1",
|
|
4
4
|
"description": "Production application server for React Router",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/react-router/issues"
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"get-port": "5.1.1",
|
|
24
24
|
"morgan": "^1.10.0",
|
|
25
25
|
"source-map-support": "^0.5.21",
|
|
26
|
-
"@react-router/express": "
|
|
27
|
-
"@react-router/node": "
|
|
26
|
+
"@react-router/express": "7.0.0-pre.1",
|
|
27
|
+
"@react-router/node": "7.0.0-pre.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"react-router": "
|
|
30
|
+
"react-router": "7.0.0-pre.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/compression": "^1.7.0",
|