@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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Client Patch Browser v4.18.2-dev.1716526899.56c60d4 | MIT Licensed | https://stenciljs.com
2
+ Stencil Client Patch Browser v4.18.2-dev.1716872498.9e823d6 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/client/client-patch-browser.ts
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Hydrate Platform v4.18.2-dev.1716526899.56c60d4 | MIT Licensed | https://stenciljs.com
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 */) return elm.parentElement;
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.1716526899.56c60d4",
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.1716526899.56c60d4 | MIT Licensed | https://stenciljs.com
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) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.18.2-dev.1716526899.56c60d4",
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: string;
2374
- componentGraph: BuildResultsComponentGraph;
2375
- srcIndexHtmlPath: string;
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 */) return elm.parentElement;
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.1716526899.56c60d4",
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.18.2-dev.1716526899.56c60d4 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.18.2-dev.1716872498.9e823d6 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.18.2-dev.1716526899.56c60d4 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.18.2-dev.1716872498.9e823d6 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/runtime/runtime-constants.ts
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.18.2-dev.1716526899.56c60d4",
3
+ "version": "4.18.2-dev.1716872498.9e823d6",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "4.18.2-dev.1716526899.56c60d4",
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.3.15",
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",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot v4.18.2-dev.1716526899.56c60d4 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.18.2-dev.1716872498.9e823d6 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.18.2-dev.1716526899.56c60d4",
3
+ "version": "4.18.2-dev.1716872498.9e823d6",
4
4
  "description": "Stencil Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot Pixel Match v4.18.2-dev.1716526899.56c60d4 | MIT Licensed | https://stenciljs.com
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
  }