@stencil/core 2.19.3 → 3.0.0-alpha.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 (40) hide show
  1. package/bin/stencil +3 -3
  2. package/cli/index.cjs +3 -5
  3. package/cli/index.d.ts +3 -3
  4. package/cli/index.js +3 -5
  5. package/cli/package.json +1 -1
  6. package/compiler/package.json +1 -1
  7. package/compiler/stencil.js +202 -314
  8. package/compiler/stencil.min.js +2 -2
  9. package/dependencies.json +1 -1
  10. package/dev-server/client/index.js +1 -1
  11. package/dev-server/client/package.json +1 -1
  12. package/dev-server/connector.html +2 -2
  13. package/dev-server/index.js +1 -1
  14. package/dev-server/package.json +1 -1
  15. package/dev-server/server-process.js +2 -2
  16. package/internal/app-data/package.json +1 -1
  17. package/internal/client/css-shim.js +1 -1
  18. package/internal/client/dom.js +1 -1
  19. package/internal/client/index.js +1 -1
  20. package/internal/client/package.json +1 -1
  21. package/internal/client/patch-browser.js +1 -1
  22. package/internal/client/patch-esm.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/package.json +1 -1
  27. package/internal/stencil-public-compiler.d.ts +31 -17
  28. package/internal/stencil-public-runtime.d.ts +12 -12
  29. package/internal/testing/package.json +1 -1
  30. package/mock-doc/index.cjs +6 -6
  31. package/mock-doc/index.js +6 -6
  32. package/mock-doc/package.json +1 -1
  33. package/package.json +13 -13
  34. package/screenshot/package.json +1 -1
  35. package/sys/node/index.js +11 -11
  36. package/sys/node/package.json +1 -1
  37. package/sys/node/worker.js +1 -1
  38. package/testing/index.js +15 -13
  39. package/testing/package.json +1 -1
  40. package/testing/puppeteer/puppeteer-declarations.d.ts +1 -27
package/bin/stencil CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var minimumVersion = '12.10';
4
+ var minimumVersion = '14.5';
5
5
  var futureDeprecationMinVersion = '14.0';
6
- var recommendedVersion = '14.5';
6
+ var recommendedVersion = '16.4';
7
7
  var currentVersion = process.versions.node;
8
8
 
9
9
  function isNodeLT(v) {
@@ -33,7 +33,7 @@ if (isNodeLT(futureDeprecationMinVersion)) {
33
33
  currentVersion +
34
34
  ", however Stencil's recommendation is v" +
35
35
  recommendedVersion +
36
- '.0 or greater. Note that future versions of Stencil will eventually remove support for non-LTS Node versions and an Active LTS version is recommended (https://nodejs.org/en/about/releases/).\n'
36
+ '.0 or greater. Note that future versions of Stencil will eventually remove support for older Node versions and an Active LTS version is recommended (https://nodejs.org/en/about/releases/).\n'
37
37
  );
38
38
  }
39
39
 
package/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v2.19.3 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v3.0.0-alpha.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  'use strict';
5
5
 
@@ -564,11 +564,9 @@ const createConfigFlags = (init = {}) => {
564
564
  * Parse command line arguments into a structured `ConfigFlags` object
565
565
  *
566
566
  * @param args an array of CLI flags
567
- * @param _sys an optional compiler system
568
567
  * @returns a structured ConfigFlags object
569
568
  */
570
- const parseFlags = (args, _sys) => {
571
- // TODO(STENCIL-509): remove the _sys parameter here ^^ (for v3)
569
+ const parseFlags = (args) => {
572
570
  const flags = createConfigFlags();
573
571
  // cmd line has more priority over npm scripts cmd
574
572
  flags.args = Array.isArray(args) ? args.slice() : [];
@@ -989,7 +987,7 @@ const dereferenceAlias = (maybeAlias) => {
989
987
  const dependencies = [
990
988
  {
991
989
  name: "@stencil/core",
992
- version: "2.19.3",
990
+ version: "3.0.0-alpha.0",
993
991
  main: "compiler/stencil.js",
994
992
  resources: [
995
993
  "package.json",
package/cli/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CliInitOptions, CompilerSystem, Config, Logger, TaskCommand } from '../internal/index';
1
+ import type { CliInitOptions, Config, Logger, TaskCommand } from '../internal/index';
2
2
  import type { ConfigFlags } from './config-flags';
3
3
  /**
4
4
  * Runs the CLI with the given options. This is used by Stencil's default `bin/stencil` file,
@@ -15,5 +15,5 @@ export declare function run(init: CliInitOptions): Promise<void>;
15
15
  * @returns an empty promise
16
16
  */
17
17
  export declare function runTask(coreCompiler: any, config: Config, task: TaskCommand): Promise<void>;
18
- export declare function parseFlags(args: string[], _sys?: CompilerSystem): ConfigFlags;
19
- export { CompilerSystem, Config, ConfigFlags, Logger, TaskCommand };
18
+ export declare function parseFlags(args: string[]): ConfigFlags;
19
+ export { Config, ConfigFlags, Logger, TaskCommand };
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v2.19.3 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v3.0.0-alpha.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  /**
5
5
  * Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
@@ -540,11 +540,9 @@ const createConfigFlags = (init = {}) => {
540
540
  * Parse command line arguments into a structured `ConfigFlags` object
541
541
  *
542
542
  * @param args an array of CLI flags
543
- * @param _sys an optional compiler system
544
543
  * @returns a structured ConfigFlags object
545
544
  */
546
- const parseFlags = (args, _sys) => {
547
- // TODO(STENCIL-509): remove the _sys parameter here ^^ (for v3)
545
+ const parseFlags = (args) => {
548
546
  const flags = createConfigFlags();
549
547
  // cmd line has more priority over npm scripts cmd
550
548
  flags.args = Array.isArray(args) ? args.slice() : [];
@@ -965,7 +963,7 @@ const dereferenceAlias = (maybeAlias) => {
965
963
  const dependencies = [
966
964
  {
967
965
  name: "@stencil/core",
968
- version: "2.19.3",
966
+ version: "3.0.0-alpha.0",
969
967
  main: "compiler/stencil.js",
970
968
  resources: [
971
969
  "package.json",
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "2.19.3",
3
+ "version": "3.0.0-alpha.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.19.3",
3
+ "version": "3.0.0-alpha.0",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",