@modern-js/runtime 2.70.4 → 2.70.6

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.
@@ -98,7 +98,7 @@ const createReadableStreamFromElement = async (request, rootElement, options) =>
98
98
  }
99
99
  }
100
100
  });
101
- const stream = (0, import_node.createReadableStreamFromReadable)(body);
101
+ const stream = import_stream.Readable.toWeb(body);
102
102
  resolve(stream);
103
103
  const passThrough = new import_stream.PassThrough();
104
104
  const styledStream = sheet.interleaveWithNodeStream(passThrough);
@@ -2,8 +2,8 @@ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
2
  import { _ as _define_property } from "@swc/helpers/_/_define_property";
3
3
  import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
4
4
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
5
- import { PassThrough, Transform } from "stream";
6
- import { createReadableStreamFromReadable, storage } from "@modern-js/runtime-utils/node";
5
+ import { PassThrough, Readable, Transform } from "stream";
6
+ import { storage } from "@modern-js/runtime-utils/node";
7
7
  import { ServerStyleSheet } from "styled-components";
8
8
  import { ESCAPED_SHELL_STREAM_END_MARK } from "../../../common";
9
9
  import { RenderLevel } from "../../constants";
@@ -100,7 +100,7 @@ var createReadableStreamFromElement = function() {
100
100
  }
101
101
  }
102
102
  });
103
- var stream = createReadableStreamFromReadable(body);
103
+ var stream = Readable.toWeb(body);
104
104
  resolve(stream);
105
105
  var passThrough = new PassThrough();
106
106
  var styledStream = sheet.interleaveWithNodeStream(passThrough);
@@ -1,5 +1,5 @@
1
- import { PassThrough, Transform } from "stream";
2
- import { createReadableStreamFromReadable, storage } from "@modern-js/runtime-utils/node";
1
+ import { PassThrough, Readable, Transform } from "stream";
2
+ import { storage } from "@modern-js/runtime-utils/node";
3
3
  import { ServerStyleSheet } from "styled-components";
4
4
  import { ESCAPED_SHELL_STREAM_END_MARK } from "../../../common";
5
5
  import { RenderLevel } from "../../constants";
@@ -65,7 +65,7 @@ const createReadableStreamFromElement = async (request, rootElement, options) =>
65
65
  }
66
66
  }
67
67
  });
68
- const stream = createReadableStreamFromReadable(body);
68
+ const stream = Readable.toWeb(body);
69
69
  resolve(stream);
70
70
  const passThrough = new PassThrough();
71
71
  const styledStream = sheet.interleaveWithNodeStream(passThrough);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.70.4",
18
+ "version": "2.70.6",
19
19
  "engines": {
20
20
  "node": ">=14.17.6"
21
21
  },
@@ -218,13 +218,13 @@
218
218
  "react-is": "^18",
219
219
  "react-side-effect": "^2.1.2",
220
220
  "styled-components": "^5.3.1",
221
- "@modern-js/plugin": "2.70.4",
222
- "@modern-js/plugin-data-loader": "2.70.4",
223
- "@modern-js/plugin-v2": "2.70.4",
224
- "@modern-js/render": "2.70.4",
225
- "@modern-js/runtime-utils": "2.70.4",
226
- "@modern-js/utils": "2.70.4",
227
- "@modern-js/types": "2.70.4"
221
+ "@modern-js/plugin": "2.70.6",
222
+ "@modern-js/plugin-data-loader": "2.70.6",
223
+ "@modern-js/plugin-v2": "2.70.6",
224
+ "@modern-js/render": "2.70.6",
225
+ "@modern-js/runtime-utils": "2.70.6",
226
+ "@modern-js/types": "2.70.6",
227
+ "@modern-js/utils": "2.70.6"
228
228
  },
229
229
  "peerDependencies": {
230
230
  "react": ">=17",
@@ -232,7 +232,7 @@
232
232
  },
233
233
  "devDependencies": {
234
234
  "@remix-run/web-fetch": "^4.1.3",
235
- "@rsbuild/core": "1.7.2",
235
+ "@rsbuild/core": "1.7.3",
236
236
  "@testing-library/react": "^13.4.0",
237
237
  "@types/cookie": "0.6.0",
238
238
  "@types/invariant": "^2.2.30",
@@ -248,10 +248,10 @@
248
248
  "ts-node": "^10.9.1",
249
249
  "typescript": "^5",
250
250
  "webpack": "^5.103.0",
251
- "@modern-js/app-tools": "2.70.4",
251
+ "@modern-js/app-tools": "2.70.6",
252
252
  "@scripts/build": "2.66.0",
253
- "@scripts/jest-config": "2.66.0",
254
- "@modern-js/core": "2.70.4"
253
+ "@modern-js/core": "2.70.6",
254
+ "@scripts/jest-config": "2.66.0"
255
255
  },
256
256
  "sideEffects": false,
257
257
  "publishConfig": {