@jsenv/core 29.8.3 → 29.8.4
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
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
|
|
package/dist/main.js
CHANGED
|
@@ -27580,7 +27580,7 @@ const registerEvent = ({
|
|
|
27580
27580
|
|
|
27581
27581
|
const chromium = createRuntimeFromPlaywright({
|
|
27582
27582
|
browserName: "chromium",
|
|
27583
|
-
browserVersion: "
|
|
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: "
|
|
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.
|
|
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
|
+
"version": "29.8.4",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -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.
|
|
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.
|
|
113
|
-
"playwright": "1.
|
|
112
|
+
"eslint-plugin-react": "7.31.11",
|
|
113
|
+
"playwright": "1.28.0",
|
|
114
114
|
"prettier": "2.7.1"
|
|
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: "
|
|
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: "
|
|
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.
|
|
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.
|