@react-router/serve 0.0.0-experimental-4b431ca46 → 0.0.0-experimental-7c6c0664d

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,28 +1,5 @@
1
1
  # `@remix-run/serve`
2
2
 
3
- ## 7.0.0-pre.0
4
-
5
- ### Major Changes
6
-
7
- - Remove single_fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
8
- - update minimum node version to 18 ([#11690](https://github.com/remix-run/react-router/pull/11690))
9
- - Add `exports` field to all packages ([#11675](https://github.com/remix-run/react-router/pull/11675))
10
- - node package no longer re-exports from react-router ([#11702](https://github.com/remix-run/react-router/pull/11702))
11
-
12
- ### Patch Changes
13
-
14
- - Update `express.static` configurations to support prerendering ([#11547](https://github.com/remix-run/react-router/pull/11547))
15
-
16
- - Assets in the `build/client/assets` folder are served as before, with a 1-year immutable `Cache-Control` header
17
- - Static files outside of assets, such as pre-rendered `.html` and `.data` files are not served with a specific `Cache-Control` header
18
- - `.data` files are served with `Content-Type: text/x-turbo`
19
- - For some reason, when adding this via `express.static`, it seems to also add a `Cache-Control: public, max-age=0` to `.data` files
20
-
21
- - Updated dependencies:
22
- - `react-router@7.0.0-pre.0`
23
- - `@react-router/express@7.0.0-pre.0`
24
- - `@react-router/node@7.0.0-pre.0`
25
-
26
3
  ## 2.9.0
27
4
 
28
5
  ### Minor Changes
package/README.md CHANGED
@@ -1,13 +1,7 @@
1
- # Welcome to Remix!
1
+ # @react-router/serve
2
2
 
3
- [Remix](https://remix.run) is a web framework that helps you build better websites with React.
4
-
5
- To get started, open a new shell and run:
3
+ Production application server for [React Router.](https://github.com/remix-run/react-router)
6
4
 
7
5
  ```sh
8
- npx create-remix@latest
6
+ npm install @react-router/serve
9
7
  ```
10
-
11
- Then follow the prompts you see in your terminal.
12
-
13
- For more information about Remix, [visit remix.run](https://remix.run)!
package/dist/cli.d.ts CHANGED
@@ -1 +1 @@
1
- import "@react-router/node/install";
1
+ export {};
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/serve v0.0.0-experimental-4b431ca46
2
+ * @react-router/serve v0.0.0-experimental-7c6c0664d
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,12 +10,10 @@
10
10
  */
11
11
  'use strict';
12
12
 
13
- require('@react-router/node/install');
14
13
  var fs = require('node:fs');
15
14
  var os = require('node:os');
16
15
  var path = require('node:path');
17
16
  var url = require('node:url');
18
- var node = require('@react-router/node');
19
17
  var express$1 = require('@react-router/express');
20
18
  var compression = require('compression');
21
19
  var express = require('express');
@@ -52,7 +50,6 @@ sourceMapSupport__default["default"].install({
52
50
  return null;
53
51
  }
54
52
  });
55
- node.installGlobals();
56
53
  run();
57
54
  function parseNumber(raw) {
58
55
  if (raw === undefined) return undefined;
@@ -88,15 +85,7 @@ async function run() {
88
85
  immutable: true,
89
86
  maxAge: "1y"
90
87
  }));
91
- app.use(build.publicPath, express__default["default"].static(build.assetsBuildDirectory, {
92
- // Don't redirect directory index.html request to include a trailing slash
93
- redirect: false,
94
- setHeaders: function (res, path) {
95
- if (path.endsWith(".data")) {
96
- res.set("Content-Type", "text/x-turbo");
97
- }
98
- }
99
- }));
88
+ app.use(build.publicPath, express__default["default"].static(build.assetsBuildDirectory));
100
89
  app.use(express__default["default"].static("public", {
101
90
  maxAge: "1h"
102
91
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/serve",
3
- "version": "0.0.0-experimental-4b431ca46",
3
+ "version": "0.0.0-experimental-7c6c0664d",
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": "0.0.0-experimental-4b431ca46",
27
- "@react-router/node": "0.0.0-experimental-4b431ca46"
26
+ "@react-router/express": "0.0.0-experimental-7c6c0664d",
27
+ "@react-router/node": "0.0.0-experimental-7c6c0664d"
28
28
  },
29
29
  "peerDependencies": {
30
- "react-router": "0.0.0-experimental-4b431ca46"
30
+ "react-router": "0.0.0-experimental-7c6c0664d"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/compression": "^1.7.0",
@@ -36,7 +36,7 @@
36
36
  "@types/source-map-support": "^0.5.6"
37
37
  },
38
38
  "engines": {
39
- "node": ">=18.0.0"
39
+ "node": ">=20.0.0"
40
40
  },
41
41
  "files": [
42
42
  "dist/",