@jsenv/core 27.2.0 → 27.3.0

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/README.md CHANGED
@@ -23,7 +23,7 @@ npm create jsenv@latest
23
23
  npm install --save-dev @jsenv/core
24
24
  ```
25
25
 
26
- _@jsenv/core_ is tested on Mac, Windows, Linux on Node.js 16.14.0. Other operating systems and Node.js versions are not tested.
26
+ _@jsenv/core_ is tested on Mac, Windows, Linux on Node.js 18.5.0. Other operating systems and Node.js versions are not tested.
27
27
 
28
28
  # Documentation
29
29
 
package/dist/main.js CHANGED
@@ -26022,20 +26022,23 @@ const evalException = (exceptionSource, {
26022
26022
 
26023
26023
  const chromium = createRuntimeFromPlaywright({
26024
26024
  browserName: "chromium",
26025
- browserVersion: "97.0.4666.0",
26025
+ browserVersion: "104.0.5112.20",
26026
+ // to update, check https://github.com/microsoft/playwright/releases
26026
26027
  coveragePlaywrightAPIAvailable: true
26027
26028
  });
26028
26029
  const chromiumIsolatedTab = chromium.isolatedTab;
26029
26030
 
26030
26031
  const firefox = createRuntimeFromPlaywright({
26031
26032
  browserName: "firefox",
26032
- browserVersion: "93.0"
26033
+ browserVersion: "100.0.2" // to update, check https://github.com/microsoft/playwright/releases
26034
+
26033
26035
  });
26034
26036
  const firefoxIsolatedTab = firefox.isolatedTab;
26035
26037
 
26036
26038
  const webkit = createRuntimeFromPlaywright({
26037
26039
  browserName: "webkit",
26038
26040
  browserVersion: "15.4",
26041
+ // to update, check https://github.com/microsoft/playwright/releases
26039
26042
  ignoreErrorHook: error => {
26040
26043
  // we catch error during execution but safari throw unhandled rejection
26041
26044
  // in a non-deterministic way.
@@ -26757,7 +26760,6 @@ nodeWorkerThread.run = async ({
26757
26760
  env: envForWorkerThread,
26758
26761
  execArgv: execArgvForWorkerThread,
26759
26762
  // workerData: { options },
26760
- // trackUnmanagedFds: true,
26761
26763
  stdin: true,
26762
26764
  stdout: true,
26763
26765
  stderr: true
@@ -26775,7 +26777,6 @@ nodeWorkerThread.run = async ({
26775
26777
  onceWorkerThreadMessage(workerThread, "ready", resolve);
26776
26778
  });
26777
26779
  const stop = memoize(async () => {
26778
- await workerThreadReadyPromise;
26779
26780
  await workerThread.terminate();
26780
26781
  });
26781
26782
  const winnerPromise = new Promise(resolve => {
@@ -26913,25 +26914,27 @@ nodeWorkerThread.run = async ({
26913
26914
  const installWorkerThreadOutputListener = (workerThread, callback) => {
26914
26915
  // beware that we may receive ansi output here, should not be a problem but keep that in mind
26915
26916
  const stdoutDataCallback = chunk => {
26917
+ const text = String(chunk);
26916
26918
  callback({
26917
26919
  type: "log",
26918
- text: String(chunk)
26920
+ text
26919
26921
  });
26920
26922
  };
26921
26923
 
26922
26924
  workerThread.stdout.on("data", stdoutDataCallback);
26923
26925
 
26924
26926
  const stdErrorDataCallback = chunk => {
26927
+ const text = String(chunk);
26925
26928
  callback({
26926
26929
  type: "error",
26927
- text: String(chunk)
26930
+ text
26928
26931
  });
26929
26932
  };
26930
26933
 
26931
26934
  workerThread.stderr.on("data", stdErrorDataCallback);
26932
26935
  return () => {
26933
26936
  workerThread.stdout.removeListener("data", stdoutDataCallback);
26934
- workerThread.stderr.removeListener("data", stdoutDataCallback);
26937
+ workerThread.stderr.removeListener("data", stdErrorDataCallback);
26935
26938
  };
26936
26939
  };
26937
26940
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "27.2.0",
3
+ "version": "27.3.0",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -13,7 +13,7 @@
13
13
  "url": "https://github.com/jsenv/jsenv-core"
14
14
  },
15
15
  "engines": {
16
- "node": ">=16.13.0"
16
+ "node": ">=18.5.0"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public",
@@ -66,8 +66,8 @@
66
66
  "@c88/v8-coverage": "0.1.1",
67
67
  "@financial-times/polyfill-useragent-normaliser": "2.0.1",
68
68
  "@jsenv/abort": "4.2.3",
69
- "@jsenv/ast": "1.1.1",
70
- "@jsenv/babel-plugins": "1.0.5",
69
+ "@jsenv/ast": "1.1.2",
70
+ "@jsenv/babel-plugins": "1.0.6",
71
71
  "@jsenv/filesystem": "4.1.0",
72
72
  "@jsenv/importmap": "1.2.1",
73
73
  "@jsenv/integrity": "0.0.1",
@@ -87,7 +87,7 @@
87
87
  "istanbul-lib-report": "3.0.0",
88
88
  "istanbul-reports": "3.1.4",
89
89
  "pidtree": "0.6.0",
90
- "rollup": "2.75.7",
90
+ "rollup": "2.76.0",
91
91
  "string-width": "5.1.2",
92
92
  "strip-ansi": "7.0.1",
93
93
  "terser": "5.14.1",
@@ -108,7 +108,7 @@
108
108
  "eslint-plugin-html": "6.2.0",
109
109
  "eslint-plugin-import": "2.26.0",
110
110
  "eslint-plugin-react": "7.30.1",
111
- "playwright": "1.23.1",
111
+ "playwright": "1.23.2",
112
112
  "prettier": "2.7.1"
113
113
  }
114
114
  }
@@ -2,7 +2,7 @@ import { createRuntimeFromPlaywright } from "./from_playwright.js"
2
2
 
3
3
  export const chromium = createRuntimeFromPlaywright({
4
4
  browserName: "chromium",
5
- browserVersion: "97.0.4666.0",
5
+ browserVersion: "104.0.5112.20", // to update, check https://github.com/microsoft/playwright/releases
6
6
  coveragePlaywrightAPIAvailable: true,
7
7
  })
8
8
  export const chromiumIsolatedTab = chromium.isolatedTab
@@ -2,6 +2,6 @@ import { createRuntimeFromPlaywright } from "./from_playwright.js"
2
2
 
3
3
  export const firefox = createRuntimeFromPlaywright({
4
4
  browserName: "firefox",
5
- browserVersion: "93.0",
5
+ browserVersion: "100.0.2", // to update, check https://github.com/microsoft/playwright/releases
6
6
  })
7
7
  export const firefoxIsolatedTab = firefox.isolatedTab
@@ -2,7 +2,7 @@ import { createRuntimeFromPlaywright } from "./from_playwright.js"
2
2
 
3
3
  export const webkit = createRuntimeFromPlaywright({
4
4
  browserName: "webkit",
5
- browserVersion: "15.4",
5
+ browserVersion: "15.4", // to update, check https://github.com/microsoft/playwright/releases
6
6
  ignoreErrorHook: (error) => {
7
7
  // we catch error during execution but safari throw unhandled rejection
8
8
  // in a non-deterministic way.
@@ -86,7 +86,6 @@ nodeWorkerThread.run = async ({
86
86
  env: envForWorkerThread,
87
87
  execArgv: execArgvForWorkerThread,
88
88
  // workerData: { options },
89
- // trackUnmanagedFds: true,
90
89
  stdin: true,
91
90
  stdout: true,
92
91
  stderr: true,
@@ -103,7 +102,6 @@ nodeWorkerThread.run = async ({
103
102
  })
104
103
 
105
104
  const stop = memoize(async () => {
106
- await workerThreadReadyPromise
107
105
  await workerThread.terminate()
108
106
  })
109
107
 
@@ -232,16 +230,18 @@ nodeWorkerThread.run = async ({
232
230
  const installWorkerThreadOutputListener = (workerThread, callback) => {
233
231
  // beware that we may receive ansi output here, should not be a problem but keep that in mind
234
232
  const stdoutDataCallback = (chunk) => {
235
- callback({ type: "log", text: String(chunk) })
233
+ const text = String(chunk)
234
+ callback({ type: "log", text })
236
235
  }
237
236
  workerThread.stdout.on("data", stdoutDataCallback)
238
237
  const stdErrorDataCallback = (chunk) => {
239
- callback({ type: "error", text: String(chunk) })
238
+ const text = String(chunk)
239
+ callback({ type: "error", text })
240
240
  }
241
241
  workerThread.stderr.on("data", stdErrorDataCallback)
242
242
  return () => {
243
243
  workerThread.stdout.removeListener("data", stdoutDataCallback)
244
- workerThread.stderr.removeListener("data", stdoutDataCallback)
244
+ workerThread.stderr.removeListener("data", stdErrorDataCallback)
245
245
  }
246
246
  }
247
247