@stencil/core 4.40.1 → 4.41.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 (45) hide show
  1. package/cli/config-flags.d.ts +2 -2
  2. package/cli/index.cjs +9 -4
  3. package/cli/index.js +9 -4
  4. package/cli/package.json +1 -1
  5. package/compiler/package.json +1 -1
  6. package/compiler/stencil.js +268 -136
  7. package/dev-server/client/index.js +12 -12
  8. package/dev-server/client/package.json +1 -1
  9. package/dev-server/connector.html +3 -3
  10. package/dev-server/index.js +2 -2
  11. package/dev-server/package.json +1 -1
  12. package/dev-server/server-process.js +18 -11
  13. package/internal/app-data/package.json +1 -1
  14. package/internal/app-globals/package.json +1 -1
  15. package/internal/client/index.js +105 -25
  16. package/internal/client/package.json +1 -1
  17. package/internal/client/patch-browser.js +1 -1
  18. package/internal/hydrate/index.js +64 -25
  19. package/internal/hydrate/package.json +1 -1
  20. package/internal/hydrate/runner.js +196 -135
  21. package/internal/package.json +1 -1
  22. package/internal/stencil-core/jsx-dev-runtime.cjs +7 -0
  23. package/internal/stencil-core/jsx-dev-runtime.d.ts +23 -0
  24. package/internal/stencil-core/jsx-dev-runtime.js +2 -0
  25. package/internal/stencil-core/jsx-runtime.cjs +8 -0
  26. package/internal/stencil-core/jsx-runtime.d.ts +22 -0
  27. package/internal/stencil-core/jsx-runtime.js +2 -0
  28. package/internal/stencil-private.d.ts +20 -0
  29. package/internal/stencil-public-compiler.d.ts +6 -0
  30. package/internal/stencil-public-docs.d.ts +11 -0
  31. package/internal/stencil-public-runtime.d.ts +29 -0
  32. package/internal/testing/index.js +753 -638
  33. package/internal/testing/package.json +1 -1
  34. package/mock-doc/index.cjs +192 -135
  35. package/mock-doc/index.js +193 -135
  36. package/mock-doc/package.json +1 -1
  37. package/package.json +11 -1
  38. package/screenshot/index.js +29 -8
  39. package/screenshot/package.json +1 -1
  40. package/screenshot/pixel-match.js +1 -1
  41. package/sys/node/index.js +29 -29
  42. package/sys/node/package.json +1 -1
  43. package/sys/node/worker.js +1 -1
  44. package/testing/index.js +98 -70
  45. package/testing/package.json +1 -1
@@ -2,7 +2,7 @@ import type { LogLevel, TaskCommand } from '../internal/index';
2
2
  /**
3
3
  * All the Boolean options supported by the Stencil CLI
4
4
  */
5
- export declare const BOOLEAN_CLI_FLAGS: readonly ["build", "cache", "checkVersion", "ci", "compare", "debug", "dev", "devtools", "docs", "e2e", "es5", "esm", "help", "log", "open", "prerender", "prerenderExternal", "prod", "profile", "serviceWorker", "screenshot", "serve", "skipNodeCheck", "spec", "ssr", "stats", "updateScreenshot", "verbose", "version", "watch", "all", "automock", "bail", "changedFilesWithAncestor", "clearCache", "clearMocks", "collectCoverage", "color", "colors", "coverage", "detectLeaks", "detectOpenHandles", "errorOnDeprecated", "expand", "findRelatedTests", "forceExit", "init", "injectGlobals", "json", "lastCommit", "listTests", "logHeapUsage", "noStackTrace", "notify", "onlyChanged", "onlyFailures", "passWithNoTests", "resetMocks", "resetModules", "restoreMocks", "runInBand", "runTestsByPath", "showConfig", "silent", "skipFilter", "testLocationInResults", "updateSnapshot", "useStderr", "watchAll", "watchman"];
5
+ export declare const BOOLEAN_CLI_FLAGS: readonly ["build", "cache", "checkVersion", "ci", "compare", "debug", "dev", "devtools", "docs", "e2e", "es5", "esm", "help", "log", "open", "prerender", "prerenderExternal", "prod", "profile", "serviceWorker", "screenshot", "serve", "skipNodeCheck", "spec", "ssr", "updateScreenshot", "verbose", "version", "watch", "all", "automock", "bail", "changedFilesWithAncestor", "clearCache", "clearMocks", "collectCoverage", "color", "colors", "coverage", "detectLeaks", "detectOpenHandles", "errorOnDeprecated", "expand", "findRelatedTests", "forceExit", "init", "injectGlobals", "json", "lastCommit", "listTests", "logHeapUsage", "noStackTrace", "notify", "onlyChanged", "onlyFailures", "passWithNoTests", "resetMocks", "resetModules", "restoreMocks", "runInBand", "runTestsByPath", "showConfig", "silent", "skipFilter", "testLocationInResults", "updateSnapshot", "useStderr", "watchAll", "watchman"];
6
6
  /**
7
7
  * All the Number options supported by the Stencil CLI
8
8
  */
@@ -22,7 +22,7 @@ export declare const STRING_NUMBER_CLI_FLAGS: readonly ["maxWorkers"];
22
22
  /**
23
23
  * All the CLI arguments which may have boolean or string values.
24
24
  */
25
- export declare const BOOLEAN_STRING_CLI_FLAGS: readonly ["headless"];
25
+ export declare const BOOLEAN_STRING_CLI_FLAGS: readonly ["headless", "stats"];
26
26
  /**
27
27
  * All the LogLevel-type options supported by the Stencil CLI
28
28
  *
package/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v4.40.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v4.41.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -2587,7 +2587,6 @@ var BOOLEAN_CLI_FLAGS = [
2587
2587
  "skipNodeCheck",
2588
2588
  "spec",
2589
2589
  "ssr",
2590
- "stats",
2591
2590
  "updateScreenshot",
2592
2591
  "verbose",
2593
2592
  "version",
@@ -2716,7 +2715,13 @@ var BOOLEAN_STRING_CLI_FLAGS = [
2716
2715
  *
2717
2716
  * {@see https://developer.chrome.com/blog/chrome-headless-shell/}
2718
2717
  */
2719
- "headless"
2718
+ "headless",
2719
+ /**
2720
+ * `stats` is an argument that can optionally accept a file path where stats should be written.
2721
+ * When used as a boolean (--stats), it defaults to 'stencil-stats.json'.
2722
+ * When used with a path (--stats dist/stats.json), it writes to that path.
2723
+ */
2724
+ "stats"
2720
2725
  ];
2721
2726
  var LOG_LEVEL_CLI_FLAGS = ["logLevel"];
2722
2727
  var CLI_FLAG_ALIASES = {
@@ -5581,7 +5586,7 @@ var taskHelp = async (flags, logger, sys) => {
5581
5586
  ${logger.cyan("--prerender")} ${logger.dim(".......")} Prerender the application
5582
5587
  ${logger.cyan("--docs")} ${logger.dim("............")} Generate component readme.md docs
5583
5588
  ${logger.cyan("--config")} ${logger.dim("..........")} Set stencil config file
5584
- ${logger.cyan("--stats")} ${logger.dim("...........")} Write stencil-stats.json file
5589
+ ${logger.cyan("--stats")} ${logger.dim("...........")} Write stats, optional file path (default: stencil-stats.json)
5585
5590
  ${logger.cyan("--log")} ${logger.dim(".............")} Write stencil-build.log file
5586
5591
  ${logger.cyan("--debug")} ${logger.dim("...........")} Set the log level to debug
5587
5592
 
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v4.40.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v4.41.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -2581,7 +2581,6 @@ var BOOLEAN_CLI_FLAGS = [
2581
2581
  "skipNodeCheck",
2582
2582
  "spec",
2583
2583
  "ssr",
2584
- "stats",
2585
2584
  "updateScreenshot",
2586
2585
  "verbose",
2587
2586
  "version",
@@ -2710,7 +2709,13 @@ var BOOLEAN_STRING_CLI_FLAGS = [
2710
2709
  *
2711
2710
  * {@see https://developer.chrome.com/blog/chrome-headless-shell/}
2712
2711
  */
2713
- "headless"
2712
+ "headless",
2713
+ /**
2714
+ * `stats` is an argument that can optionally accept a file path where stats should be written.
2715
+ * When used as a boolean (--stats), it defaults to 'stencil-stats.json'.
2716
+ * When used with a path (--stats dist/stats.json), it writes to that path.
2717
+ */
2718
+ "stats"
2714
2719
  ];
2715
2720
  var LOG_LEVEL_CLI_FLAGS = ["logLevel"];
2716
2721
  var CLI_FLAG_ALIASES = {
@@ -5575,7 +5580,7 @@ var taskHelp = async (flags, logger, sys) => {
5575
5580
  ${logger.cyan("--prerender")} ${logger.dim(".......")} Prerender the application
5576
5581
  ${logger.cyan("--docs")} ${logger.dim("............")} Generate component readme.md docs
5577
5582
  ${logger.cyan("--config")} ${logger.dim("..........")} Set stencil config file
5578
- ${logger.cyan("--stats")} ${logger.dim("...........")} Write stencil-stats.json file
5583
+ ${logger.cyan("--stats")} ${logger.dim("...........")} Write stats, optional file path (default: stencil-stats.json)
5579
5584
  ${logger.cyan("--log")} ${logger.dim(".............")} Write stencil-build.log file
5580
5585
  ${logger.cyan("--debug")} ${logger.dim("...........")} Set the log level to debug
5581
5586
 
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "4.40.1",
3
+ "version": "4.41.0",
4
4
  "description": "Stencil CLI.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/compiler",
3
- "version": "4.40.1",
3
+ "version": "4.41.0",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",