@remix-run/serve 0.0.0-experimental-419fc7d09 → 0.0.0-experimental-394b09463

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,5 +1,27 @@
1
1
  # `@remix-run/serve`
2
2
 
3
+ ## 2.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - `@remix-run/express@2.9.1`
9
+ - `@remix-run/node@2.9.1`
10
+
11
+ ## 2.9.0
12
+
13
+ ### Minor Changes
14
+
15
+ - Put `undici` fetch polyfill behind a new `installGlobals({ nativeFetch: true })` parameter ([#9198](https://github.com/remix-run/remix/pull/9198))
16
+ - `remix-serve` will default to using `undici` for the fetch polyfill if `future.unstable_singleFetch` is enabled because the single fetch implementation relies on the `undici` polyfill
17
+ - Any users opting into Single Fetch and managing their own polyfill will need to pass the flag to `installGlobals` on their own to avoid runtime errors with Single Fetch
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies:
22
+ - `@remix-run/node@2.9.0`
23
+ - `@remix-run/express@2.9.0`
24
+
3
25
  ## 2.8.1
4
26
 
5
27
  ### Patch Changes
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @remix-run/serve v0.0.0-experimental-419fc7d09
3
+ * @remix-run/serve v0.0.0-experimental-394b09463
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -55,7 +55,6 @@ sourceMapSupport__default["default"].install({
55
55
  return null;
56
56
  }
57
57
  });
58
- node.installGlobals();
59
58
  run();
60
59
  function parseNumber(raw) {
61
60
  if (raw === undefined) return undefined;
@@ -111,6 +110,9 @@ async function run() {
111
110
  };
112
111
  }
113
112
  let build = await reimportServer();
113
+ node.installGlobals({
114
+ nativeFetch: build.future.unstable_singleFetch
115
+ });
114
116
  let onListen = () => {
115
117
  var _Object$values$flat$f;
116
118
  let address = process.env.HOST || ((_Object$values$flat$f = Object.values(os__default["default"].networkInterfaces()).flat().find(ip => String(ip === null || ip === void 0 ? void 0 : ip.family).includes("4") && !(ip !== null && ip !== void 0 && ip.internal))) === null || _Object$values$flat$f === void 0 ? void 0 : _Object$values$flat$f.address);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/serve",
3
- "version": "0.0.0-experimental-419fc7d09",
3
+ "version": "0.0.0-experimental-394b09463",
4
4
  "description": "Production application server for Remix",
5
5
  "bugs": {
6
6
  "url": "https://github.com/remix-run/remix/issues"
@@ -15,8 +15,8 @@
15
15
  "remix-serve": "dist/cli.js"
16
16
  },
17
17
  "dependencies": {
18
- "@remix-run/express": "0.0.0-experimental-419fc7d09",
19
- "@remix-run/node": "0.0.0-experimental-419fc7d09",
18
+ "@remix-run/express": "0.0.0-experimental-394b09463",
19
+ "@remix-run/node": "0.0.0-experimental-394b09463",
20
20
  "chokidar": "^3.5.3",
21
21
  "compression": "^1.7.4",
22
22
  "express": "^4.17.1",