@stencil/core 2.20.0 → 2.21.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.
- package/cli/config-flags.d.ts +16 -16
- package/cli/index.cjs +5 -4
- package/cli/index.js +5 -4
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +308 -70
- package/compiler/lib.dom.iterable.d.ts +6 -2
- package/compiler/lib.es2015.promise.d.ts +9 -4
- package/compiler/lib.es2015.proxy.d.ts +1 -1
- package/compiler/lib.es2015.reflect.d.ts +25 -2
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2019.d.ts +1 -0
- package/compiler/lib.es2019.intl.d.ts +25 -0
- package/compiler/lib.es2020.intl.d.ts +1 -1
- package/compiler/lib.es5.d.ts +26 -13
- package/compiler/lib.webworker.d.ts +266 -30
- package/compiler/lib.webworker.iterable.d.ts +10 -2
- package/compiler/package.json +1 -1
- package/compiler/stencil.d.ts +1 -23
- package/compiler/stencil.js +1387 -318
- package/compiler/stencil.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +3 -3
- package/compiler/transpile.d.ts +32 -0
- package/dependencies.json +2 -1
- package/dev-server/client/app-error.d.ts +1 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +2 -2
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +8 -2
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/polyfills/css-shim.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +2 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +4 -4
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +37 -37
- package/internal/stencil-public-compiler.d.ts +26 -26
- package/internal/stencil-public-runtime.d.ts +39 -3
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +4 -4
- package/mock-doc/index.d.ts +2 -2
- package/mock-doc/index.js +4 -4
- package/mock-doc/package.json +1 -1
- package/package.json +7 -7
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +1 -1
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +29 -42
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +19 -13
- package/testing/jest/jest-preprocessor.d.ts +3 -3
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +5 -5
- package/testing/testing-utils.d.ts +1 -1
package/cli/config-flags.d.ts
CHANGED
|
@@ -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
|
-
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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) v2.
|
|
2
|
+
Stencil CLI (CommonJS) v2.21.0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -989,7 +989,7 @@ const dereferenceAlias = (maybeAlias) => {
|
|
|
989
989
|
const dependencies = [
|
|
990
990
|
{
|
|
991
991
|
name: "@stencil/core",
|
|
992
|
-
version: "2.
|
|
992
|
+
version: "2.21.0",
|
|
993
993
|
main: "compiler/stencil.js",
|
|
994
994
|
resources: [
|
|
995
995
|
"package.json",
|
|
@@ -1026,6 +1026,7 @@ const dependencies = [
|
|
|
1026
1026
|
"compiler/lib.es2019.array.d.ts",
|
|
1027
1027
|
"compiler/lib.es2019.d.ts",
|
|
1028
1028
|
"compiler/lib.es2019.full.d.ts",
|
|
1029
|
+
"compiler/lib.es2019.intl.d.ts",
|
|
1029
1030
|
"compiler/lib.es2019.object.d.ts",
|
|
1030
1031
|
"compiler/lib.es2019.string.d.ts",
|
|
1031
1032
|
"compiler/lib.es2019.symbol.d.ts",
|
|
@@ -1097,12 +1098,12 @@ const dependencies = [
|
|
|
1097
1098
|
},
|
|
1098
1099
|
{
|
|
1099
1100
|
name: "terser",
|
|
1100
|
-
version: "5.
|
|
1101
|
+
version: "5.16.1",
|
|
1101
1102
|
main: "dist/bundle.min.js"
|
|
1102
1103
|
},
|
|
1103
1104
|
{
|
|
1104
1105
|
name: "typescript",
|
|
1105
|
-
version: "4.
|
|
1106
|
+
version: "4.9.4",
|
|
1106
1107
|
main: "lib/typescript.js"
|
|
1107
1108
|
}
|
|
1108
1109
|
];
|
package/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI v2.
|
|
2
|
+
Stencil CLI v2.21.0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
|
|
@@ -965,7 +965,7 @@ const dereferenceAlias = (maybeAlias) => {
|
|
|
965
965
|
const dependencies = [
|
|
966
966
|
{
|
|
967
967
|
name: "@stencil/core",
|
|
968
|
-
version: "2.
|
|
968
|
+
version: "2.21.0",
|
|
969
969
|
main: "compiler/stencil.js",
|
|
970
970
|
resources: [
|
|
971
971
|
"package.json",
|
|
@@ -1002,6 +1002,7 @@ const dependencies = [
|
|
|
1002
1002
|
"compiler/lib.es2019.array.d.ts",
|
|
1003
1003
|
"compiler/lib.es2019.d.ts",
|
|
1004
1004
|
"compiler/lib.es2019.full.d.ts",
|
|
1005
|
+
"compiler/lib.es2019.intl.d.ts",
|
|
1005
1006
|
"compiler/lib.es2019.object.d.ts",
|
|
1006
1007
|
"compiler/lib.es2019.string.d.ts",
|
|
1007
1008
|
"compiler/lib.es2019.symbol.d.ts",
|
|
@@ -1073,12 +1074,12 @@ const dependencies = [
|
|
|
1073
1074
|
},
|
|
1074
1075
|
{
|
|
1075
1076
|
name: "terser",
|
|
1076
|
-
version: "5.
|
|
1077
|
+
version: "5.16.1",
|
|
1077
1078
|
main: "dist/bundle.min.js"
|
|
1078
1079
|
},
|
|
1079
1080
|
{
|
|
1080
1081
|
name: "typescript",
|
|
1081
|
-
version: "4.
|
|
1082
|
+
version: "4.9.4",
|
|
1082
1083
|
main: "lib/typescript.js"
|
|
1083
1084
|
}
|
|
1084
1085
|
];
|