@stencil/core 2.18.1 → 2.19.1-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 (44) hide show
  1. package/cli/index.cjs +16 -14
  2. package/cli/index.d.ts +2 -0
  3. package/cli/index.js +16 -14
  4. package/cli/package.json +1 -1
  5. package/compiler/package.json +1 -1
  6. package/compiler/stencil.js +1527 -1207
  7. package/compiler/stencil.min.js +2 -2
  8. package/dependencies.json +1 -1
  9. package/dev-server/client/index.js +1 -1
  10. package/dev-server/client/package.json +1 -1
  11. package/dev-server/connector.html +2 -2
  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 +1 -1
  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/shadow-css.js +1 -1
  23. package/internal/hydrate/package.json +1 -1
  24. package/internal/hydrate/runner.d.ts +1 -1
  25. package/internal/package.json +1 -1
  26. package/internal/stencil-private.d.ts +31 -12
  27. package/internal/stencil-public-compiler.d.ts +10 -0
  28. package/internal/stencil-public-docs.d.ts +24 -0
  29. package/internal/stencil-public-runtime.d.ts +5 -0
  30. package/internal/testing/package.json +1 -1
  31. package/mock-doc/index.cjs +16 -6
  32. package/mock-doc/index.js +16 -6
  33. package/mock-doc/package.json +1 -1
  34. package/package.json +11 -12
  35. package/screenshot/package.json +1 -1
  36. package/sys/node/autoprefixer.js +5 -5
  37. package/sys/node/graceful-fs.js +1 -1
  38. package/sys/node/index.d.ts +2 -0
  39. package/sys/node/index.js +93 -95
  40. package/sys/node/package.json +1 -1
  41. package/sys/node/prompts.js +1 -1
  42. package/sys/node/worker.js +1 -1
  43. package/testing/index.js +131 -130
  44. package/testing/package.json +1 -1
package/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v2.18.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v2.19.1-0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  'use strict';
5
5
 
@@ -839,7 +839,7 @@ const isLogLevel = (maybeLogLevel) => readOnlyArrayHasStringMember(LOG_LEVELS, m
839
839
  const dependencies = [
840
840
  {
841
841
  name: "@stencil/core",
842
- version: "2.18.1",
842
+ version: "2.19.1-0",
843
843
  main: "compiler/stencil.js",
844
844
  resources: [
845
845
  "package.json",
@@ -1541,26 +1541,28 @@ const prepareData = async (coreCompiler, config, sys, duration_ms, component_cou
1541
1541
  const build = coreCompiler.buildId || 'unknown';
1542
1542
  const has_app_pwa_config = hasAppTarget(config);
1543
1543
  const anonymizedConfig = anonymizeConfigForTelemetry(config);
1544
+ const is_browser_env = IS_BROWSER_ENV;
1544
1545
  return {
1545
- yarn,
1546
- duration_ms,
1546
+ arguments: config.flags.args,
1547
+ build,
1547
1548
  component_count,
1548
- targets,
1549
+ config: anonymizedConfig,
1550
+ cpu_model,
1551
+ duration_ms,
1552
+ has_app_pwa_config,
1553
+ is_browser_env,
1554
+ os_name,
1555
+ os_version,
1549
1556
  packages,
1550
1557
  packages_no_versions: packagesNoVersions,
1551
- arguments: config.flags.args,
1552
- task: config.flags.task,
1558
+ rollup,
1553
1559
  stencil,
1554
1560
  system,
1555
1561
  system_major: getMajorVersion(system),
1556
- os_name,
1557
- os_version,
1558
- cpu_model,
1559
- build,
1562
+ targets,
1563
+ task: config.flags.task,
1560
1564
  typescript,
1561
- rollup,
1562
- has_app_pwa_config,
1563
- config: anonymizedConfig,
1565
+ yarn,
1564
1566
  };
1565
1567
  };
1566
1568
  // props in output targets for which we retain their original values when
package/cli/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import type { ConfigFlags } from './config-flags';
4
4
  * Runs the CLI with the given options. This is used by Stencil's default `bin/stencil` file,
5
5
  * but can be used externally too.
6
6
  * @param init a set of initialization options needed to run Stencil from its CLI
7
+ * @returns an empty promise
7
8
  */
8
9
  export declare function run(init: CliInitOptions): Promise<void>;
9
10
  /**
@@ -11,6 +12,7 @@ export declare function run(init: CliInitOptions): Promise<void>;
11
12
  * @param coreCompiler The core Stencil compiler to be used. The `run()` method handles loading the core compiler, however, `runTask()` must be passed it.
12
13
  * @param config Assumes the config has already been validated and has the "sys" and "logger" properties.
13
14
  * @param task The task command to run, such as `build`.
15
+ * @returns an empty promise
14
16
  */
15
17
  export declare function runTask(coreCompiler: any, config: Config, task: TaskCommand): Promise<void>;
16
18
  export declare function parseFlags(args: string[], _sys?: CompilerSystem): ConfigFlags;
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v2.18.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v2.19.1-0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  /**
5
5
  * Convert a string from PascalCase to dash-case
@@ -815,7 +815,7 @@ const isLogLevel = (maybeLogLevel) => readOnlyArrayHasStringMember(LOG_LEVELS, m
815
815
  const dependencies = [
816
816
  {
817
817
  name: "@stencil/core",
818
- version: "2.18.1",
818
+ version: "2.19.1-0",
819
819
  main: "compiler/stencil.js",
820
820
  resources: [
821
821
  "package.json",
@@ -1517,26 +1517,28 @@ const prepareData = async (coreCompiler, config, sys, duration_ms, component_cou
1517
1517
  const build = coreCompiler.buildId || 'unknown';
1518
1518
  const has_app_pwa_config = hasAppTarget(config);
1519
1519
  const anonymizedConfig = anonymizeConfigForTelemetry(config);
1520
+ const is_browser_env = IS_BROWSER_ENV;
1520
1521
  return {
1521
- yarn,
1522
- duration_ms,
1522
+ arguments: config.flags.args,
1523
+ build,
1523
1524
  component_count,
1524
- targets,
1525
+ config: anonymizedConfig,
1526
+ cpu_model,
1527
+ duration_ms,
1528
+ has_app_pwa_config,
1529
+ is_browser_env,
1530
+ os_name,
1531
+ os_version,
1525
1532
  packages,
1526
1533
  packages_no_versions: packagesNoVersions,
1527
- arguments: config.flags.args,
1528
- task: config.flags.task,
1534
+ rollup,
1529
1535
  stencil,
1530
1536
  system,
1531
1537
  system_major: getMajorVersion(system),
1532
- os_name,
1533
- os_version,
1534
- cpu_model,
1535
- build,
1538
+ targets,
1539
+ task: config.flags.task,
1536
1540
  typescript,
1537
- rollup,
1538
- has_app_pwa_config,
1539
- config: anonymizedConfig,
1541
+ yarn,
1540
1542
  };
1541
1543
  };
1542
1544
  // props in output targets for which we retain their original values when
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "2.18.1",
3
+ "version": "2.19.1-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": "2.18.1",
3
+ "version": "2.19.1-0",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",