@stencil/core 3.0.0-alpha.0 → 3.0.0-alpha.2

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 (73) hide show
  1. package/cli/config-flags.d.ts +16 -16
  2. package/cli/index.cjs +6 -4
  3. package/cli/index.js +6 -4
  4. package/cli/package.json +1 -1
  5. package/compiler/lib.dom.d.ts +434 -251
  6. package/compiler/lib.dom.iterable.d.ts +7 -13
  7. package/compiler/lib.es2015.collection.d.ts +62 -1
  8. package/compiler/lib.es2015.promise.d.ts +9 -4
  9. package/compiler/lib.es2015.proxy.d.ts +91 -2
  10. package/compiler/lib.es2015.reflect.d.ts +25 -2
  11. package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
  12. package/compiler/lib.es2017.intl.d.ts +16 -1
  13. package/compiler/lib.es2019.d.ts +1 -0
  14. package/compiler/lib.es2019.intl.d.ts +25 -0
  15. package/compiler/lib.es2020.intl.d.ts +31 -6
  16. package/compiler/lib.es2021.intl.d.ts +11 -3
  17. package/compiler/lib.es2022.d.ts +1 -0
  18. package/compiler/lib.es2022.error.d.ts +2 -2
  19. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  20. package/compiler/lib.es5.d.ts +39 -14
  21. package/compiler/lib.esnext.intl.d.ts +5 -1
  22. package/compiler/lib.webworker.d.ts +318 -55
  23. package/compiler/lib.webworker.iterable.d.ts +11 -3
  24. package/compiler/package.json +1 -1
  25. package/compiler/stencil.d.ts +1 -23
  26. package/compiler/stencil.js +12597 -11461
  27. package/compiler/stencil.min.js +2 -2
  28. package/compiler/sys/in-memory-fs.d.ts +3 -3
  29. package/compiler/transpile.d.ts +32 -0
  30. package/dependencies.json +3 -1
  31. package/dev-server/client/app-error.d.ts +1 -1
  32. package/dev-server/client/index.js +1 -1
  33. package/dev-server/client/package.json +1 -1
  34. package/dev-server/connector.html +2 -2
  35. package/dev-server/index.js +1 -1
  36. package/dev-server/open-in-editor-api.js +1 -1
  37. package/dev-server/package.json +1 -1
  38. package/dev-server/server-process.js +2 -2
  39. package/internal/app-data/package.json +1 -1
  40. package/internal/client/css-shim.js +2 -2
  41. package/internal/client/dom.js +1 -1
  42. package/internal/client/index.js +1 -1
  43. package/internal/client/package.json +1 -1
  44. package/internal/client/patch-browser.js +1 -1
  45. package/internal/client/patch-esm.js +1 -1
  46. package/internal/client/polyfills/css-shim.js +1 -1
  47. package/internal/client/shadow-css.js +1 -1
  48. package/internal/hydrate/index.js +2 -2
  49. package/internal/hydrate/package.json +1 -1
  50. package/internal/hydrate/runner.js +4 -4
  51. package/internal/package.json +1 -1
  52. package/internal/stencil-private.d.ts +38 -37
  53. package/internal/stencil-public-compiler.d.ts +27 -27
  54. package/internal/stencil-public-runtime.d.ts +3 -3
  55. package/internal/testing/package.json +1 -1
  56. package/mock-doc/index.cjs +1 -1
  57. package/mock-doc/index.d.ts +2 -2
  58. package/mock-doc/index.js +1 -1
  59. package/mock-doc/package.json +1 -1
  60. package/package.json +8 -8
  61. package/screenshot/package.json +1 -1
  62. package/sys/node/autoprefixer.js +1 -1
  63. package/sys/node/glob.js +1 -1
  64. package/sys/node/index.js +31 -44
  65. package/sys/node/package.json +1 -1
  66. package/sys/node/prompts.js +1 -1
  67. package/sys/node/worker.js +1 -1
  68. package/testing/index.js +613 -420
  69. package/testing/jest/jest-preprocessor.d.ts +3 -3
  70. package/testing/package.json +1 -1
  71. package/testing/puppeteer/puppeteer-declarations.d.ts +4 -4
  72. package/testing/puppeteer/puppeteer-element.d.ts +3 -3
  73. package/testing/testing-utils.d.ts +1 -1
@@ -32,15 +32,15 @@ export declare const LOG_LEVEL_CLI_FLAGS: readonly ["logLevel"];
32
32
  * an enum-like type which can be used for e.g. keys in a `Record`
33
33
  * (as in the `AliasMap` type below)
34
34
  */
35
- declare type ArrayValuesAsUnion<T extends ReadonlyArray<string>> = T[number];
36
- export declare type BooleanCLIFlag = ArrayValuesAsUnion<typeof BOOLEAN_CLI_FLAGS>;
37
- export declare type StringCLIFlag = ArrayValuesAsUnion<typeof STRING_CLI_FLAGS>;
38
- export declare type StringArrayCLIFlag = ArrayValuesAsUnion<typeof STRING_ARRAY_CLI_FLAGS>;
39
- export declare type NumberCLIFlag = ArrayValuesAsUnion<typeof NUMBER_CLI_FLAGS>;
40
- export declare type StringNumberCLIFlag = ArrayValuesAsUnion<typeof STRING_NUMBER_CLI_FLAGS>;
41
- export declare type LogCLIFlag = ArrayValuesAsUnion<typeof LOG_LEVEL_CLI_FLAGS>;
42
- export declare type KnownCLIFlag = BooleanCLIFlag | StringCLIFlag | StringArrayCLIFlag | NumberCLIFlag | StringNumberCLIFlag | LogCLIFlag;
43
- declare type AliasMap = Partial<Record<string, KnownCLIFlag>>;
35
+ type ArrayValuesAsUnion<T extends ReadonlyArray<string>> = T[number];
36
+ export type BooleanCLIFlag = ArrayValuesAsUnion<typeof BOOLEAN_CLI_FLAGS>;
37
+ export type StringCLIFlag = ArrayValuesAsUnion<typeof STRING_CLI_FLAGS>;
38
+ export type StringArrayCLIFlag = ArrayValuesAsUnion<typeof STRING_ARRAY_CLI_FLAGS>;
39
+ export type NumberCLIFlag = ArrayValuesAsUnion<typeof NUMBER_CLI_FLAGS>;
40
+ export type StringNumberCLIFlag = ArrayValuesAsUnion<typeof STRING_NUMBER_CLI_FLAGS>;
41
+ export type LogCLIFlag = ArrayValuesAsUnion<typeof LOG_LEVEL_CLI_FLAGS>;
42
+ export type KnownCLIFlag = BooleanCLIFlag | StringCLIFlag | StringArrayCLIFlag | NumberCLIFlag | StringNumberCLIFlag | LogCLIFlag;
43
+ type AliasMap = Partial<Record<string, KnownCLIFlag>>;
44
44
  /**
45
45
  * For a small subset of CLI options we support a short alias e.g. `'h'` for `'help'`
46
46
  */
@@ -58,39 +58,39 @@ export declare const CLI_FLAG_REGEX: RegExp;
58
58
  * for which we want optional keys, we make all the properties optional (w/ `'?'`)
59
59
  * and possibly null.
60
60
  */
61
- declare type ObjectFromKeys<K extends ReadonlyArray<string>, T> = {
61
+ type ObjectFromKeys<K extends ReadonlyArray<string>, T> = {
62
62
  [key in K[number]]?: T | null;
63
63
  };
64
64
  /**
65
65
  * Type containing the possible Boolean configuration flags, to be included
66
66
  * in ConfigFlags, below
67
67
  */
68
- declare type BooleanConfigFlags = ObjectFromKeys<typeof BOOLEAN_CLI_FLAGS, boolean>;
68
+ type BooleanConfigFlags = ObjectFromKeys<typeof BOOLEAN_CLI_FLAGS, boolean>;
69
69
  /**
70
70
  * Type containing the possible String configuration flags, to be included
71
71
  * in ConfigFlags, below
72
72
  */
73
- declare type StringConfigFlags = ObjectFromKeys<typeof STRING_CLI_FLAGS, string>;
73
+ type StringConfigFlags = ObjectFromKeys<typeof STRING_CLI_FLAGS, string>;
74
74
  /**
75
75
  * Type containing the possible String Array configuration flags. This is
76
76
  * one of the 'constituent types' for `ConfigFlags`.
77
77
  */
78
- declare type StringArrayConfigFlags = ObjectFromKeys<typeof STRING_ARRAY_CLI_FLAGS, string[]>;
78
+ type StringArrayConfigFlags = ObjectFromKeys<typeof STRING_ARRAY_CLI_FLAGS, string[]>;
79
79
  /**
80
80
  * Type containing the possible numeric configuration flags, to be included
81
81
  * in ConfigFlags, below
82
82
  */
83
- declare type NumberConfigFlags = ObjectFromKeys<typeof NUMBER_CLI_FLAGS, number>;
83
+ type NumberConfigFlags = ObjectFromKeys<typeof NUMBER_CLI_FLAGS, number>;
84
84
  /**
85
85
  * Type containing the configuration flags which may be set to either string
86
86
  * or number values.
87
87
  */
88
- declare type StringNumberConfigFlags = ObjectFromKeys<typeof STRING_NUMBER_CLI_FLAGS, string | number>;
88
+ type StringNumberConfigFlags = ObjectFromKeys<typeof STRING_NUMBER_CLI_FLAGS, string | number>;
89
89
  /**
90
90
  * Type containing the possible LogLevel configuration flags, to be included
91
91
  * in ConfigFlags, below
92
92
  */
93
- declare type LogLevelFlags = ObjectFromKeys<typeof LOG_LEVEL_CLI_FLAGS, LogLevel>;
93
+ type LogLevelFlags = ObjectFromKeys<typeof LOG_LEVEL_CLI_FLAGS, LogLevel>;
94
94
  /**
95
95
  * The configuration flags which can be set by the user on the command line.
96
96
  * This interface captures both known arguments (which are enumerated and then
package/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v3.0.0-alpha.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v3.0.0-alpha.2 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  'use strict';
5
5
 
@@ -987,7 +987,7 @@ const dereferenceAlias = (maybeAlias) => {
987
987
  const dependencies = [
988
988
  {
989
989
  name: "@stencil/core",
990
- version: "3.0.0-alpha.0",
990
+ version: "3.0.0-alpha.2",
991
991
  main: "compiler/stencil.js",
992
992
  resources: [
993
993
  "package.json",
@@ -1024,6 +1024,7 @@ const dependencies = [
1024
1024
  "compiler/lib.es2019.array.d.ts",
1025
1025
  "compiler/lib.es2019.d.ts",
1026
1026
  "compiler/lib.es2019.full.d.ts",
1027
+ "compiler/lib.es2019.intl.d.ts",
1027
1028
  "compiler/lib.es2019.object.d.ts",
1028
1029
  "compiler/lib.es2019.string.d.ts",
1029
1030
  "compiler/lib.es2019.symbol.d.ts",
@@ -1049,6 +1050,7 @@ const dependencies = [
1049
1050
  "compiler/lib.es2022.full.d.ts",
1050
1051
  "compiler/lib.es2022.intl.d.ts",
1051
1052
  "compiler/lib.es2022.object.d.ts",
1053
+ "compiler/lib.es2022.sharedmemory.d.ts",
1052
1054
  "compiler/lib.es2022.string.d.ts",
1053
1055
  "compiler/lib.es5.d.ts",
1054
1056
  "compiler/lib.es6.d.ts",
@@ -1094,12 +1096,12 @@ const dependencies = [
1094
1096
  },
1095
1097
  {
1096
1098
  name: "terser",
1097
- version: "5.6.1",
1099
+ version: "5.16.1",
1098
1100
  main: "dist/bundle.min.js"
1099
1101
  },
1100
1102
  {
1101
1103
  name: "typescript",
1102
- version: "4.7.4",
1104
+ version: "4.9.4",
1103
1105
  main: "lib/typescript.js"
1104
1106
  }
1105
1107
  ];
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v3.0.0-alpha.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v3.0.0-alpha.2 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  /**
5
5
  * Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
@@ -963,7 +963,7 @@ const dereferenceAlias = (maybeAlias) => {
963
963
  const dependencies = [
964
964
  {
965
965
  name: "@stencil/core",
966
- version: "3.0.0-alpha.0",
966
+ version: "3.0.0-alpha.2",
967
967
  main: "compiler/stencil.js",
968
968
  resources: [
969
969
  "package.json",
@@ -1000,6 +1000,7 @@ const dependencies = [
1000
1000
  "compiler/lib.es2019.array.d.ts",
1001
1001
  "compiler/lib.es2019.d.ts",
1002
1002
  "compiler/lib.es2019.full.d.ts",
1003
+ "compiler/lib.es2019.intl.d.ts",
1003
1004
  "compiler/lib.es2019.object.d.ts",
1004
1005
  "compiler/lib.es2019.string.d.ts",
1005
1006
  "compiler/lib.es2019.symbol.d.ts",
@@ -1025,6 +1026,7 @@ const dependencies = [
1025
1026
  "compiler/lib.es2022.full.d.ts",
1026
1027
  "compiler/lib.es2022.intl.d.ts",
1027
1028
  "compiler/lib.es2022.object.d.ts",
1029
+ "compiler/lib.es2022.sharedmemory.d.ts",
1028
1030
  "compiler/lib.es2022.string.d.ts",
1029
1031
  "compiler/lib.es5.d.ts",
1030
1032
  "compiler/lib.es6.d.ts",
@@ -1070,12 +1072,12 @@ const dependencies = [
1070
1072
  },
1071
1073
  {
1072
1074
  name: "terser",
1073
- version: "5.6.1",
1075
+ version: "5.16.1",
1074
1076
  main: "dist/bundle.min.js"
1075
1077
  },
1076
1078
  {
1077
1079
  name: "typescript",
1078
- version: "4.7.4",
1080
+ version: "4.9.4",
1079
1081
  main: "lib/typescript.js"
1080
1082
  }
1081
1083
  ];
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "Stencil CLI.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",