@stencil/core 4.31.0 → 4.32.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.31.0",
3
+ "version": "4.32.0",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
1
  /*!
2
- Stencil Node System Worker v4.31.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v4.32.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var f=Object.create;var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(n,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of E(t))!R.call(n,e)&&e!==r&&d(n,e,{get:()=>t[e],enumerable:!(s=p(t,e))||s.enumerable});return n};var c=(n,t,r)=>(r=n!=null?f(y(n)):{},g(t||!n||!n.__esModule?d(r,"default",{value:n,enumerable:!0}):r,n));var l=c(require("../../compiler/stencil.js")),m=c(require("../../sys/node/index.js"));var a=(n,t)=>{let r=e=>{e&&e.code==="ERR_IPC_CHANNEL_CLOSED"&&n.exit(0)},s=(e,o)=>{let i={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};typeof o=="string"?i.stencilRtnError+=": "+o:o&&(o.stack?i.stencilRtnError+=": "+o.stack:o.message&&(i.stencilRtnError+=":"+o.message)),n.send(i,r)};n.on("message",async e=>{if(e&&typeof e.stencilId=="number")try{let o={stencilId:e.stencilId,stencilRtnValue:await t(e),stencilRtnError:null};n.send(o,r)}catch(o){s(e.stencilId,o)}}),n.on("unhandledRejection",e=>{s(-1,e)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);a(process,M);
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v4.31.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v4.32.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
 
@@ -6869,7 +6869,13 @@ var validateRollupConfig = (config) => {
6869
6869
  if (rollupConfig.inputOptions && isObject(rollupConfig.inputOptions)) {
6870
6870
  cleanRollupConfig = {
6871
6871
  ...cleanRollupConfig,
6872
- inputOptions: pluck(rollupConfig.inputOptions, ["context", "moduleContext", "treeshake", "external"])
6872
+ inputOptions: pluck(rollupConfig.inputOptions, [
6873
+ "context",
6874
+ "moduleContext",
6875
+ "treeshake",
6876
+ "external",
6877
+ "maxParallelFileOps"
6878
+ ])
6873
6879
  };
6874
6880
  }
6875
6881
  if (rollupConfig.outputOptions && isObject(rollupConfig.outputOptions)) {
@@ -10105,7 +10111,7 @@ function writeFile(filePath, data) {
10105
10111
  var DEFAULT_SCREENSHOT_TIMEOUT = 2500;
10106
10112
  async function compareScreenshot(emulateConfig, screenshotBuildData, currentScreenshotBuf, screenshotTimeoutMs, desc, width, height, testPath, pixelmatchThreshold) {
10107
10113
  var _a, _b, _c, _d, _e, _f, _g, _h;
10108
- const currentImageHash = (0, import_crypto2.createHash)("md5").update(currentScreenshotBuf).digest("hex");
10114
+ const currentImageHash = (0, import_crypto2.createHash)("sha256").update(currentScreenshotBuf).digest("hex");
10109
10115
  const currentImageName = `${currentImageHash}.png`;
10110
10116
  const currentImagePath = (0, import_path26.join)(screenshotBuildData.imagesDir, currentImageName);
10111
10117
  await writeScreenshotImage(currentImagePath, currentScreenshotBuf);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "4.31.0",
3
+ "version": "4.32.0",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",