@react-router/serve 0.0.0-experimental-b98209dd9 → 0.0.0-experimental-6844c5934

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,4 +1,63 @@
1
- # `@remix-run/serve`
1
+ # `@react-router/serve`
2
+
3
+ ## 7.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - `react-router@7.1.1`
9
+ - `@react-router/express@7.1.1`
10
+ - `@react-router/node@7.1.1`
11
+
12
+ ## 7.1.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies:
17
+ - `react-router@7.1.0`
18
+ - `@react-router/node@7.1.0`
19
+ - `@react-router/express@7.1.0`
20
+
21
+ ## 7.0.2
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies:
26
+ - `react-router@7.0.2`
27
+ - `@react-router/node@7.0.2`
28
+ - `@react-router/express@7.0.2`
29
+
30
+ ## 7.0.1
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies:
35
+ - `react-router@7.0.1`
36
+ - `@react-router/express@7.0.1`
37
+ - `@react-router/node@7.0.1`
38
+
39
+ ## 7.0.0
40
+
41
+ ### Major Changes
42
+
43
+ - Remove single_fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
44
+ - update minimum node version to 18 ([#11690](https://github.com/remix-run/react-router/pull/11690))
45
+ - Add `exports` field to all packages ([#11675](https://github.com/remix-run/react-router/pull/11675))
46
+ - node package no longer re-exports from react-router ([#11702](https://github.com/remix-run/react-router/pull/11702))
47
+
48
+ ### Patch Changes
49
+
50
+ - Update `express.static` configurations to support prerendering ([#11547](https://github.com/remix-run/react-router/pull/11547))
51
+
52
+ - Assets in the `build/client/assets` folder are served as before, with a 1-year immutable `Cache-Control` header
53
+ - Static files outside of assets, such as pre-rendered `.html` and `.data` files are not served with a specific `Cache-Control` header
54
+ - `.data` files are served with `Content-Type: text/x-turbo`
55
+ - For some reason, when adding this via `express.static`, it seems to also add a `Cache-Control: public, max-age=0` to `.data` files
56
+
57
+ - Updated dependencies:
58
+ - `react-router@7.0.0`
59
+ - `@react-router/express@7.0.0`
60
+ - `@react-router/node@7.0.0`
2
61
 
3
62
  ## 2.9.0
4
63
 
package/bin.js CHANGED
@@ -1,2 +1,7 @@
1
1
  #!/usr/bin/env node
2
+
3
+ // If not already set, default `NODE_ENV=production` so React loads the proper
4
+ // version in it's CJS entry script
5
+ process.env.NODE_ENV = process.env.NODE_ENV ?? "production";
6
+
2
7
  require("./dist/cli");
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @react-router/serve v0.0.0-experimental-b98209dd9
3
+ * @react-router/serve v0.0.0-experimental-6844c5934
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/serve",
3
- "version": "0.0.0-experimental-b98209dd9",
3
+ "version": "0.0.0-experimental-6844c5934",
4
4
  "description": "Production application server for React Router",
5
5
  "bugs": {
6
6
  "url": "https://github.com/remix-run/react-router/issues"
@@ -37,11 +37,11 @@
37
37
  "get-port": "5.1.1",
38
38
  "morgan": "^1.10.0",
39
39
  "source-map-support": "^0.5.21",
40
- "@react-router/node": "0.0.0-experimental-b98209dd9",
41
- "@react-router/express": "0.0.0-experimental-b98209dd9"
40
+ "@react-router/express": "0.0.0-experimental-6844c5934",
41
+ "@react-router/node": "0.0.0-experimental-6844c5934"
42
42
  },
43
43
  "peerDependencies": {
44
- "react-router": "0.0.0-experimental-b98209dd9"
44
+ "react-router": "0.0.0-experimental-6844c5934"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/compression": "^1.7.0",