@react-router/serve 7.9.2-pre.2 → 7.9.2

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,31 +1,14 @@
1
1
  # `@react-router/serve`
2
2
 
3
- ## 7.9.2-pre.2
3
+ ## 7.9.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - disable compression for RSC responses for now ([#14381](https://github.com/remix-run/react-router/pull/14381))
7
8
  - Updated dependencies:
8
- - `react-router@7.9.2-pre.2`
9
- - `@react-router/express@7.9.2-pre.2`
10
- - `@react-router/node@7.9.2-pre.2`
11
-
12
- ## 7.9.2-pre.1
13
-
14
- ### Patch Changes
15
-
16
- - Updated dependencies:
17
- - `react-router@7.9.2-pre.1`
18
- - `@react-router/node@7.9.2-pre.1`
19
- - `@react-router/express@7.9.2-pre.1`
20
-
21
- ## 7.9.2-pre.0
22
-
23
- ### Patch Changes
24
-
25
- - Updated dependencies:
26
- - `react-router@7.9.2-pre.0`
27
- - `@react-router/node@7.9.2-pre.0`
28
- - `@react-router/express@7.9.2-pre.0`
9
+ - `react-router@7.9.2`
10
+ - `@react-router/node@7.9.2`
11
+ - `@react-router/express@7.9.2`
29
12
 
30
13
  ## 7.9.1
31
14
 
@@ -653,10 +636,12 @@
653
636
  - Introduces the `defer()` API from `@remix-run/router` with support for server-rendering and HTTP streaming. This utility allows you to defer values returned from `loader` functions by returning promises instead of resolved values. This has been refered to as _"sending a promise over the wire"_. ([#4920](https://github.com/remix-run/remix/pull/4920))
654
637
 
655
638
  Informational Resources:
639
+
656
640
  - <https://gist.github.com/jacob-ebey/9bde9546c1aafaa6bc8c242054b1be26>
657
641
  - <https://github.com/remix-run/remix/blob/main/decisions/0004-streaming-apis.md>
658
642
 
659
643
  Documentation Resources (better docs specific to Remix are in the works):
644
+
660
645
  - <https://reactrouter.com/en/main/utils/defer>
661
646
  - <https://reactrouter.com/en/main/components/await>
662
647
  - <https://reactrouter.com/en/main/hooks/use-async-value>
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @react-router/serve v7.9.2-pre.2
3
+ * @react-router/serve v7.9.2
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -112,7 +112,9 @@ async function run() {
112
112
  };
113
113
  let app = (0, import_express2.default)();
114
114
  app.disable("x-powered-by");
115
- app.use((0, import_compression.default)());
115
+ if (!isRSCServerBuild(build)) {
116
+ app.use((0, import_compression.default)());
117
+ }
116
118
  app.use(
117
119
  import_node_path.default.posix.join(build.publicPath, "assets"),
118
120
  import_express2.default.static(import_node_path.default.join(build.assetsBuildDirectory, "assets"), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/serve",
3
- "version": "7.9.2-pre.2",
3
+ "version": "7.9.2",
4
4
  "description": "Production application server for React Router",
5
5
  "bugs": {
6
6
  "url": "https://github.com/remix-run/react-router/issues"
@@ -38,11 +38,11 @@
38
38
  "get-port": "5.1.1",
39
39
  "morgan": "^1.10.0",
40
40
  "source-map-support": "^0.5.21",
41
- "@react-router/express": "7.9.2-pre.2",
42
- "@react-router/node": "7.9.2-pre.2"
41
+ "@react-router/express": "7.9.2",
42
+ "@react-router/node": "7.9.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "react-router": "7.9.2-pre.2"
45
+ "react-router": "7.9.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/compression": "^1.7.0",