@stencil/core 4.18.2-dev.1716526899.56c60d4 → 4.18.2-dev.1716872498.9e823d6
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/cli/index.cjs +27 -12
- package/cli/index.js +27 -12
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +4 -4
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +7 -3
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +5 -3
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +3 -3
- package/internal/testing/index.js +4 -2
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +4 -1
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +2 -2
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +6 -3
- package/testing/mock-fetch.d.ts +4 -4
- package/testing/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Platform v4.18.2-dev.
|
|
2
|
+
Stencil Hydrate Platform v4.18.2-dev.1716872498.9e823d6 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -2655,10 +2655,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
|
|
|
2655
2655
|
}
|
|
2656
2656
|
};
|
|
2657
2657
|
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2658
|
+
var _a;
|
|
2658
2659
|
try {
|
|
2659
2660
|
if (BUILD20.lazyLoad) {
|
|
2660
2661
|
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2661
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
2662
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2662
2663
|
} else {
|
|
2663
2664
|
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2664
2665
|
}
|
|
@@ -2673,7 +2674,8 @@ var getHostListenerTarget = (elm, flags) => {
|
|
|
2673
2674
|
if (BUILD20.hostListenerTargetDocument && flags & 4 /* TargetDocument */) return doc;
|
|
2674
2675
|
if (BUILD20.hostListenerTargetWindow && flags & 8 /* TargetWindow */) return win;
|
|
2675
2676
|
if (BUILD20.hostListenerTargetBody && flags & 16 /* TargetBody */) return doc.body;
|
|
2676
|
-
if (BUILD20.hostListenerTargetParent && flags & 32 /* TargetParent */
|
|
2677
|
+
if (BUILD20.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement)
|
|
2678
|
+
return elm.parentElement;
|
|
2677
2679
|
return elm;
|
|
2678
2680
|
};
|
|
2679
2681
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.18.2-dev.
|
|
3
|
+
"version": "4.18.2-dev.1716872498.9e823d6",
|
|
4
4
|
"description": "Stencil internal hydrate platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Runner v4.18.2-dev.
|
|
2
|
+
Stencil Hydrate Runner v4.18.2-dev.1716872498.9e823d6 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.18.2-dev.
|
|
3
|
+
"version": "4.18.2-dev.1716872498.9e823d6",
|
|
4
4
|
"description": "Stencil internals only to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -2370,9 +2370,9 @@ export interface ResolveModuleOptions {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
export interface PrerenderStartOptions {
|
|
2372
2372
|
buildId?: string;
|
|
2373
|
-
hydrateAppFilePath
|
|
2374
|
-
componentGraph
|
|
2375
|
-
srcIndexHtmlPath
|
|
2373
|
+
hydrateAppFilePath?: string;
|
|
2374
|
+
componentGraph?: BuildResultsComponentGraph;
|
|
2375
|
+
srcIndexHtmlPath?: string;
|
|
2376
2376
|
}
|
|
2377
2377
|
export interface PrerenderResults {
|
|
2378
2378
|
buildId: string;
|
|
@@ -2760,10 +2760,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
|
|
|
2760
2760
|
}
|
|
2761
2761
|
};
|
|
2762
2762
|
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2763
|
+
var _a;
|
|
2763
2764
|
try {
|
|
2764
2765
|
if (import_app_data20.BUILD.lazyLoad) {
|
|
2765
2766
|
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2766
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
2767
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2767
2768
|
} else {
|
|
2768
2769
|
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2769
2770
|
}
|
|
@@ -2778,7 +2779,8 @@ var getHostListenerTarget = (elm, flags) => {
|
|
|
2778
2779
|
if (import_app_data20.BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */) return doc;
|
|
2779
2780
|
if (import_app_data20.BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */) return win;
|
|
2780
2781
|
if (import_app_data20.BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) return doc.body;
|
|
2781
|
-
if (import_app_data20.BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */
|
|
2782
|
+
if (import_app_data20.BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement)
|
|
2783
|
+
return elm.parentElement;
|
|
2782
2784
|
return elm;
|
|
2783
2785
|
};
|
|
2784
2786
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.18.2-dev.
|
|
3
|
+
"version": "4.18.2-dev.1716872498.9e823d6",
|
|
4
4
|
"description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED
package/mock-doc/index.js
CHANGED
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "4.18.2-dev.
|
|
3
|
+
"version": "4.18.2-dev.1716872498.9e823d6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./internal/stencil-core/index.cjs",
|
|
6
6
|
"module": "./internal/stencil-core/index.js",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"execa": "8.0.1",
|
|
99
99
|
"exit": "^0.1.2",
|
|
100
100
|
"fs-extra": "^11.0.0",
|
|
101
|
-
"glob": "10.
|
|
101
|
+
"glob": "10.4.1",
|
|
102
102
|
"graceful-fs": "~4.2.6",
|
|
103
103
|
"jest": "^27.4.5",
|
|
104
104
|
"jest-cli": "^27.4.5",
|
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Screenshot Pixel Match v4.18.2-dev.
|
|
2
|
+
Stencil Screenshot Pixel Match v4.18.2-dev.1716872498.9e823d6 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -2306,6 +2306,9 @@ function getMismatchedPixels(pixelMatchInput) {
|
|
|
2306
2306
|
threshold: pixelMatchInput.pixelmatchThreshold,
|
|
2307
2307
|
includeAA: false
|
|
2308
2308
|
});
|
|
2309
|
+
if (typeof process.send !== "function") {
|
|
2310
|
+
throw new Error("`getMismatchedPixels` must be run in a child process.");
|
|
2311
|
+
}
|
|
2309
2312
|
process.send(mismatchedPixels);
|
|
2310
2313
|
}
|
|
2311
2314
|
}
|