@stencil/core 2.19.2 → 2.20.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.
Files changed (51) hide show
  1. package/cli/config-flags.d.ts +31 -19
  2. package/cli/index.cjs +359 -188
  3. package/cli/index.js +359 -188
  4. package/cli/package.json +1 -1
  5. package/compiler/lib.dom.d.ts +130 -185
  6. package/compiler/lib.dom.iterable.d.ts +1 -11
  7. package/compiler/lib.es2015.collection.d.ts +62 -1
  8. package/compiler/lib.es2015.proxy.d.ts +91 -2
  9. package/compiler/lib.es2017.intl.d.ts +16 -1
  10. package/compiler/lib.es2020.intl.d.ts +30 -5
  11. package/compiler/lib.es2021.intl.d.ts +11 -3
  12. package/compiler/lib.es2022.d.ts +1 -0
  13. package/compiler/lib.es2022.error.d.ts +2 -2
  14. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  15. package/compiler/lib.es5.d.ts +13 -1
  16. package/compiler/lib.esnext.intl.d.ts +5 -1
  17. package/compiler/lib.webworker.d.ts +56 -29
  18. package/compiler/lib.webworker.iterable.d.ts +1 -1
  19. package/compiler/package.json +1 -1
  20. package/compiler/stencil.js +22740 -22830
  21. package/compiler/stencil.min.js +2 -2
  22. package/dependencies.json +2 -1
  23. package/dev-server/client/index.js +1 -1
  24. package/dev-server/client/package.json +1 -1
  25. package/dev-server/connector.html +2 -2
  26. package/dev-server/index.js +1 -1
  27. package/dev-server/package.json +1 -1
  28. package/dev-server/server-process.js +2 -2
  29. package/internal/app-data/package.json +1 -1
  30. package/internal/client/css-shim.js +1 -1
  31. package/internal/client/dom.js +1 -1
  32. package/internal/client/index.js +1 -1
  33. package/internal/client/package.json +1 -1
  34. package/internal/client/patch-browser.js +1 -1
  35. package/internal/client/patch-esm.js +1 -1
  36. package/internal/client/shadow-css.js +1 -1
  37. package/internal/hydrate/package.json +1 -1
  38. package/internal/hydrate/runner.d.ts +1 -1
  39. package/internal/package.json +1 -1
  40. package/internal/testing/package.json +1 -1
  41. package/mock-doc/index.cjs +6 -6
  42. package/mock-doc/index.js +6 -6
  43. package/mock-doc/package.json +1 -1
  44. package/package.json +16 -16
  45. package/screenshot/package.json +1 -1
  46. package/sys/node/autoprefixer.js +2 -2
  47. package/sys/node/index.js +1 -1
  48. package/sys/node/package.json +1 -1
  49. package/sys/node/worker.js +1 -1
  50. package/testing/index.js +13 -11
  51. package/testing/package.json +1 -1
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v2.19.2 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v2.20.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _interopDefaultLegacy(e) {
5
5
  return e && "object" == typeof e && "default" in e ? e : {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "2.19.2",
3
+ "version": "2.20.0",
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.19.2 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v2.20.0 | 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.19.2 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v2.20.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -198,11 +198,13 @@ async function runJest(e, t) {
198
198
  e.flags.ci || e.flags.e2e ? t.__STENCIL_DEFAULT_TIMEOUT__ = "30000" : t.__STENCIL_DEFAULT_TIMEOUT__ = "15000",
199
199
  e.flags.devtools && (t.__STENCIL_DEFAULT_TIMEOUT__ = "300000000"), e.logger.debug(`default timeout: ${t.__STENCIL_DEFAULT_TIMEOUT__}`);
200
200
  const n = function n(e) {
201
- const t = require("yargs"), r = [ ...e.flags.knownArgs.slice(), ...e.flags.unknownArgs.slice() ];
201
+ const t = require("yargs"), r = e.flags.knownArgs.slice();
202
202
  r.some((e => e.startsWith("--max-workers") || e.startsWith("--maxWorkers"))) || r.push(`--max-workers=${e.maxConcurrentWorkers}`),
203
- e.flags.devtools && r.push("--runInBand"), e.logger.info(e.logger.magenta(`jest args: ${r.join(" ")}`));
204
- let s = t(r).argv;
205
- if (s = {
203
+ e.flags.devtools && r.push("--runInBand");
204
+ const s = [ ...r, ...e.flags.unknownArgs ];
205
+ e.logger.info(e.logger.magenta(`jest args: ${s.join(" ")}`));
206
+ let n = t(s).argv;
207
+ if (n = {
206
208
  detectLeaks: !1,
207
209
  "detect-leaks": !1,
208
210
  detectOpenHandles: !1,
@@ -221,8 +223,8 @@ async function runJest(e, t) {
221
223
  "run-tests-by-path": !1,
222
224
  testLocationInResults: !1,
223
225
  "test-location-in-results": !1,
224
- ...s
225
- }, s.config = function n(e) {
226
+ ...n
227
+ }, n.config = function o(e) {
226
228
  const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
227
229
  return Object.keys(t).forEach((e => {
228
230
  s.includes(e) && (n[e] = t[e]);
@@ -234,10 +236,10 @@ async function runJest(e, t) {
234
236
  Array.isArray(t.reporters) && (n.reporters = t.reporters), isString(t.testResultsProcessor) && (n.testResultsProcessor = t.testResultsProcessor),
235
237
  t.transform && (n.transform = t.transform), t.verbose && (n.verbose = t.verbose),
236
238
  n.testRunner = "jest-jasmine2", JSON.stringify(n);
237
- }(e), "string" == typeof s.maxWorkers) try {
238
- s.maxWorkers = parseInt(s.maxWorkers, 10);
239
+ }(e), "string" == typeof n.maxWorkers) try {
240
+ n.maxWorkers = parseInt(n.maxWorkers, 10);
239
241
  } catch (e) {}
240
- return "string" == typeof s.ci && (s.ci = "true" === s.ci || "" === s.ci), s;
242
+ return "string" == typeof n.ci && (n.ci = "true" === n.ci || "" === n.ci), n;
241
243
  }(e), o = function o(e, t) {
242
244
  const r = t.projects ? t.projects : [];
243
245
  return r.push(e.rootDir), r;
@@ -2955,7 +2957,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2955
2957
  d("/");
2956
2958
  const C = {
2957
2959
  name: "in-memory",
2958
- version: "2.19.2",
2960
+ version: "2.20.0",
2959
2961
  events: a,
2960
2962
  access: async e => u(e),
2961
2963
  accessSync: u,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "2.19.2",
3
+ "version": "2.20.0",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",