@jsenv/core 29.8.3 → 29.8.5

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
@@ -3,9 +3,9 @@
3
3
  Jsenv was created to provide a tool that can be used both for the web and Node.js.
4
4
  It has naturally evolved to cover the core needs of a JavaScript project: developement, testing and building for production.
5
5
 
6
- - :exploding_head: Execute HTML files as tests
7
- - :sparkles: Dev, tests and build in a single tool
8
- - :ok_hand: Seamless integration with standard HTML, CSS and JS
6
+ - :ok_hand: Seamless integration with standard HTML, CSS and JS.
7
+ - :sparkles: Same tooling for dev, tests and build.
8
+ - :exploding_head: Can execute tests on Chrome, Firefox, Safari and Node.js.
9
9
 
10
10
  # Documentation
11
11
 
@@ -22,10 +22,8 @@ Other operating systems and Node.js versions are not tested.
22
22
 
23
23
  # Name
24
24
 
25
- The name "jsenv" stands for JavaScript environments.
26
-
27
- Maybe "jsenv" should be written "JSEnv", but it would be too painful to type.
28
- The prefered syntax is "jsenv".
25
+ The name "jsenv" stands for JavaScript environments.<br />
26
+ "jsenv" without capital letter because "JSEnv" would be too painful to type.
29
27
 
30
28
  # Logo
31
29
 
package/dist/main.js CHANGED
@@ -27580,7 +27580,7 @@ const registerEvent = ({
27580
27580
 
27581
27581
  const chromium = createRuntimeFromPlaywright({
27582
27582
  browserName: "chromium",
27583
- browserVersion: "105.0.5195.19",
27583
+ browserVersion: "108.0.5359.29",
27584
27584
  // to update, check https://github.com/microsoft/playwright/releases
27585
27585
  coveragePlaywrightAPIAvailable: true
27586
27586
  });
@@ -27588,14 +27588,14 @@ const chromiumIsolatedTab = chromium.isolatedTab;
27588
27588
 
27589
27589
  const firefox = createRuntimeFromPlaywright({
27590
27590
  browserName: "firefox",
27591
- browserVersion: "103.0" // to update, check https://github.com/microsoft/playwright/releases
27591
+ browserVersion: "106.0" // to update, check https://github.com/microsoft/playwright/releases
27592
27592
  });
27593
27593
 
27594
27594
  const firefoxIsolatedTab = firefox.isolatedTab;
27595
27595
 
27596
27596
  const webkit = createRuntimeFromPlaywright({
27597
27597
  browserName: "webkit",
27598
- browserVersion: "16.0",
27598
+ browserVersion: "16.4",
27599
27599
  // to update, check https://github.com/microsoft/playwright/releases
27600
27600
  ignoreErrorHook: error => {
27601
27601
  // we catch error during execution but safari throw unhandled rejection
@@ -28457,6 +28457,14 @@ const onceWorkerThreadEvent = (worker, type, callback) => {
28457
28457
  * "startBuildServer" must be as close as possible from a static file server because
28458
28458
  * we want to be in the user shoes and we should not alter build files.
28459
28459
  */
28460
+
28461
+ /**
28462
+ * Start a server for build files.
28463
+ * @param {Object} buildServerParameters
28464
+ * @param {string|url} buildServerParameters.rootDirectoryUrl Root directory of the project
28465
+ * @param {string|url} buildServerParameters.buildDirectoryUrl Directory where build files are written
28466
+ * @return {Object} A build server object
28467
+ */
28460
28468
  const startBuildServer = async ({
28461
28469
  signal = new AbortController().signal,
28462
28470
  handleSIGINT = true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "29.8.3",
3
+ "version": "29.8.5",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -67,7 +67,7 @@
67
67
  "@c88/v8-coverage": "0.1.1",
68
68
  "@financial-times/polyfill-useragent-normaliser": "1.10.2",
69
69
  "@jsenv/abort": "4.2.4",
70
- "@jsenv/ast": "1.4.5",
70
+ "@jsenv/ast": "1.4.6",
71
71
  "@jsenv/babel-plugins": "1.0.10",
72
72
  "@jsenv/filesystem": "4.1.6",
73
73
  "@jsenv/importmap": "1.2.1",
@@ -90,10 +90,10 @@
90
90
  "istanbul-reports": "3.1.5",
91
91
  "launch-editor": "2.6.0",
92
92
  "pidtree": "0.6.0",
93
- "rollup": "3.3.0",
93
+ "rollup": "3.4.0",
94
94
  "string-width": "5.1.2",
95
95
  "strip-ansi": "7.0.1",
96
- "terser": "5.15.1",
96
+ "terser": "5.16.0",
97
97
  "v8-to-istanbul": "9.0.1",
98
98
  "wrap-ansi": "8.0.1"
99
99
  },
@@ -106,11 +106,11 @@
106
106
  "@jsenv/https-local": "3.0.1",
107
107
  "@jsenv/package-workspace": "0.5.0",
108
108
  "@jsenv/performance-impact": "3.0.1",
109
- "eslint": "8.27.0",
109
+ "eslint": "8.28.0",
110
110
  "eslint-plugin-html": "7.1.0",
111
111
  "eslint-plugin-import": "2.26.0",
112
- "eslint-plugin-react": "7.31.10",
113
- "playwright": "1.27.1",
114
- "prettier": "2.7.1"
112
+ "eslint-plugin-react": "7.31.11",
113
+ "playwright": "1.28.1",
114
+ "prettier": "2.8.0"
115
115
  }
116
116
  }
@@ -32,6 +32,13 @@ import { getCallerPosition } from "@jsenv/urls"
32
32
 
33
33
  import { createReloadableWorker } from "@jsenv/core/src/helpers/worker_reload.js"
34
34
 
35
+ /**
36
+ * Start a server for build files.
37
+ * @param {Object} buildServerParameters
38
+ * @param {string|url} buildServerParameters.rootDirectoryUrl Root directory of the project
39
+ * @param {string|url} buildServerParameters.buildDirectoryUrl Directory where build files are written
40
+ * @return {Object} A build server object
41
+ */
35
42
  export const startBuildServer = async ({
36
43
  signal = new AbortController().signal,
37
44
  handleSIGINT = true,
@@ -2,7 +2,7 @@ import { createRuntimeFromPlaywright } from "./from_playwright.js"
2
2
 
3
3
  export const chromium = createRuntimeFromPlaywright({
4
4
  browserName: "chromium",
5
- browserVersion: "105.0.5195.19", // to update, check https://github.com/microsoft/playwright/releases
5
+ browserVersion: "108.0.5359.29", // 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: "103.0", // to update, check https://github.com/microsoft/playwright/releases
5
+ browserVersion: "106.0", // 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: "16.0", // to update, check https://github.com/microsoft/playwright/releases
5
+ browserVersion: "16.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.