@stencil/core 2.14.1 → 2.15.1

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.
Files changed (41) hide show
  1. package/bin/stencil +19 -13
  2. package/cli/index.cjs +72 -55
  3. package/cli/index.js +72 -55
  4. package/cli/package.json +1 -1
  5. package/compiler/package.json +1 -1
  6. package/compiler/stencil.js +248 -57
  7. package/compiler/stencil.min.js +2 -2
  8. package/dependencies.json +1 -1
  9. package/dev-server/client/index.js +3 -3
  10. package/dev-server/client/package.json +1 -1
  11. package/dev-server/connector.html +3 -3
  12. package/dev-server/index.js +1 -1
  13. package/dev-server/package.json +1 -1
  14. package/dev-server/server-process.js +2 -2
  15. package/internal/app-data/package.json +1 -1
  16. package/internal/client/css-shim.js +2 -2
  17. package/internal/client/dom.js +1 -1
  18. package/internal/client/index.js +1 -1
  19. package/internal/client/package.json +1 -1
  20. package/internal/client/patch-browser.js +1 -1
  21. package/internal/client/patch-esm.js +1 -1
  22. package/internal/client/polyfills/css-shim.js +1 -1
  23. package/internal/client/shadow-css.js +1 -1
  24. package/internal/hydrate/package.json +1 -1
  25. package/internal/hydrate/runner.d.ts +1 -1
  26. package/internal/hydrate/runner.js +1 -1
  27. package/internal/package.json +1 -1
  28. package/internal/stencil-public-compiler.d.ts +18 -14
  29. package/internal/testing/package.json +1 -1
  30. package/mock-doc/index.cjs +13 -3
  31. package/mock-doc/index.d.ts +4 -0
  32. package/mock-doc/index.js +13 -3
  33. package/mock-doc/package.json +1 -1
  34. package/package.json +7 -5
  35. package/screenshot/package.json +1 -1
  36. package/sys/node/index.js +11 -11
  37. package/sys/node/node-fetch.js +1 -1
  38. package/sys/node/package.json +1 -1
  39. package/sys/node/worker.js +1 -1
  40. package/testing/index.js +8 -8
  41. package/testing/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "2.14.1",
3
+ "version": "2.15.1",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System Worker v2.14.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v2.15.1 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _interopNamespace(e) {
5
5
  if (e && e.__esModule) return e;
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v2.14.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v2.15.1 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -135,7 +135,6 @@ async function runJest(e, t) {
135
135
  e.flags.devtools && r.push("--runInBand"), e.logger.info(e.logger.magenta(`jest args: ${r.join(" ")}`));
136
136
  let s = t(r).argv;
137
137
  if (s = {
138
- ...s,
139
138
  detectLeaks: !1,
140
139
  "detect-leaks": !1,
141
140
  detectOpenHandles: !1,
@@ -153,7 +152,8 @@ async function runJest(e, t) {
153
152
  runTestsByPath: !1,
154
153
  "run-tests-by-path": !1,
155
154
  testLocationInResults: !1,
156
- "test-location-in-results": !1
155
+ "test-location-in-results": !1,
156
+ ...s
157
157
  }, s.config = function n(e) {
158
158
  const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
159
159
  return Object.keys(t).forEach((e => {
@@ -1027,7 +1027,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
1027
1027
  const r = crypto$3.createHash("md5");
1028
1028
  return r.update(t + ":"), r.update(e.userAgent + ":"), r.update(e.viewport.width + ":"),
1029
1029
  r.update(e.viewport.height + ":"), r.update(e.viewport.deviceScaleFactor + ":"),
1030
- r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":"), r.digest("hex").substr(0, 8).toLowerCase();
1030
+ r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":"), r.digest("hex").slice(0, 8).toLowerCase();
1031
1031
  }(e, s), p = {
1032
1032
  id: d,
1033
1033
  image: l,
@@ -1066,7 +1066,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
1066
1066
  if (p.diff.imageA = f, p.diff.imageA !== p.diff.imageB) {
1067
1067
  p.diff.cacheKey = function m(e, t, r) {
1068
1068
  const s = crypto$3.createHash("md5");
1069
- return s.update(`${e}:${t}:${r}`), s.digest("hex").substr(0, 10);
1069
+ return s.update(`${e}:${t}:${r}`), s.digest("hex").slice(0, 10);
1070
1070
  }(p.diff.imageA, p.diff.imageB, a);
1071
1071
  const r = t.cache[p.diff.cacheKey];
1072
1072
  if ("number" != typeof r || isNaN(r)) {
@@ -2882,7 +2882,7 @@ const createSystem = e => {
2882
2882
  u("/");
2883
2883
  const S = {
2884
2884
  name: "in-memory",
2885
- version: "2.14.1",
2885
+ version: "2.15.1",
2886
2886
  events: i,
2887
2887
  access: async e => c(e),
2888
2888
  accessSync: c,
@@ -3017,7 +3017,7 @@ const createSystem = e => {
3017
3017
  generateContentHash: async (e, t) => {
3018
3018
  const r = await crypto.subtle.digest("SHA-256", (new TextEncoder).encode(e));
3019
3019
  let s = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
3020
- return "number" == typeof t && (s = s.substr(0, t)), s;
3020
+ return "number" == typeof t && (s = s.slice(0, t)), s;
3021
3021
  },
3022
3022
  createWorkerController: HAS_WEB_WORKER ? e => ((e, t) => {
3023
3023
  let r, s = 0, n = !1, o = !1, i = 0;
@@ -3156,7 +3156,7 @@ const createSystem = e => {
3156
3156
  const r = createSystem();
3157
3157
  r.platformPath = path__default.default, r.generateContentHash = (e, t) => {
3158
3158
  let r = crypto$3.createHash("sha1").update(e).digest("hex").toLowerCase();
3159
- return "number" == typeof t && (r = r.substr(0, t)), Promise.resolve(r);
3159
+ return "number" == typeof t && (r = r.slice(0, t)), Promise.resolve(r);
3160
3160
  };
3161
3161
  const s = t => {
3162
3162
  const r = t;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "2.14.1",
3
+ "version": "2.15.1",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",