@stencil/core 3.0.0 → 3.0.1-dev.1677269299.a47c587
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/index.cjs +1 -133
- package/cli/index.js +1 -133
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +133 -148
- package/compiler/stencil.min.js +2 -2
- 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/package.json +1 -1
- package/dev-server/server-process.js +26 -4
- package/dev-server/ws.js +1 -1
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +8 -1
- 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/shadow-css.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/hydrate/runner.js +43 -43
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +9 -0
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +5 -5
- package/mock-doc/index.js +5 -5
- package/mock-doc/package.json +1 -1
- package/package.json +10 -11
- package/readme.md +1 -1
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +93 -97
- package/sys/node/node-fetch.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +338 -338
- package/testing/package.json +1 -1
- package/dependencies.json +0 -120
package/cli/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI (CommonJS) v3.0.
|
|
2
|
+
Stencil CLI (CommonJS) v3.0.1-dev.1677269299.a47c587 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -984,128 +984,6 @@ const dereferenceAlias = (maybeAlias) => {
|
|
|
984
984
|
return maybeAlias;
|
|
985
985
|
};
|
|
986
986
|
|
|
987
|
-
const dependencies = [
|
|
988
|
-
{
|
|
989
|
-
name: "@stencil/core",
|
|
990
|
-
version: "3.0.0",
|
|
991
|
-
main: "compiler/stencil.js",
|
|
992
|
-
resources: [
|
|
993
|
-
"package.json",
|
|
994
|
-
"compiler/lib.d.ts",
|
|
995
|
-
"compiler/lib.dom.d.ts",
|
|
996
|
-
"compiler/lib.dom.iterable.d.ts",
|
|
997
|
-
"compiler/lib.es2015.collection.d.ts",
|
|
998
|
-
"compiler/lib.es2015.core.d.ts",
|
|
999
|
-
"compiler/lib.es2015.d.ts",
|
|
1000
|
-
"compiler/lib.es2015.generator.d.ts",
|
|
1001
|
-
"compiler/lib.es2015.iterable.d.ts",
|
|
1002
|
-
"compiler/lib.es2015.promise.d.ts",
|
|
1003
|
-
"compiler/lib.es2015.proxy.d.ts",
|
|
1004
|
-
"compiler/lib.es2015.reflect.d.ts",
|
|
1005
|
-
"compiler/lib.es2015.symbol.d.ts",
|
|
1006
|
-
"compiler/lib.es2015.symbol.wellknown.d.ts",
|
|
1007
|
-
"compiler/lib.es2016.array.include.d.ts",
|
|
1008
|
-
"compiler/lib.es2016.d.ts",
|
|
1009
|
-
"compiler/lib.es2016.full.d.ts",
|
|
1010
|
-
"compiler/lib.es2017.d.ts",
|
|
1011
|
-
"compiler/lib.es2017.full.d.ts",
|
|
1012
|
-
"compiler/lib.es2017.intl.d.ts",
|
|
1013
|
-
"compiler/lib.es2017.object.d.ts",
|
|
1014
|
-
"compiler/lib.es2017.sharedmemory.d.ts",
|
|
1015
|
-
"compiler/lib.es2017.string.d.ts",
|
|
1016
|
-
"compiler/lib.es2017.typedarrays.d.ts",
|
|
1017
|
-
"compiler/lib.es2018.asyncgenerator.d.ts",
|
|
1018
|
-
"compiler/lib.es2018.asynciterable.d.ts",
|
|
1019
|
-
"compiler/lib.es2018.d.ts",
|
|
1020
|
-
"compiler/lib.es2018.full.d.ts",
|
|
1021
|
-
"compiler/lib.es2018.intl.d.ts",
|
|
1022
|
-
"compiler/lib.es2018.promise.d.ts",
|
|
1023
|
-
"compiler/lib.es2018.regexp.d.ts",
|
|
1024
|
-
"compiler/lib.es2019.array.d.ts",
|
|
1025
|
-
"compiler/lib.es2019.d.ts",
|
|
1026
|
-
"compiler/lib.es2019.full.d.ts",
|
|
1027
|
-
"compiler/lib.es2019.intl.d.ts",
|
|
1028
|
-
"compiler/lib.es2019.object.d.ts",
|
|
1029
|
-
"compiler/lib.es2019.string.d.ts",
|
|
1030
|
-
"compiler/lib.es2019.symbol.d.ts",
|
|
1031
|
-
"compiler/lib.es2020.bigint.d.ts",
|
|
1032
|
-
"compiler/lib.es2020.d.ts",
|
|
1033
|
-
"compiler/lib.es2020.date.d.ts",
|
|
1034
|
-
"compiler/lib.es2020.full.d.ts",
|
|
1035
|
-
"compiler/lib.es2020.intl.d.ts",
|
|
1036
|
-
"compiler/lib.es2020.number.d.ts",
|
|
1037
|
-
"compiler/lib.es2020.promise.d.ts",
|
|
1038
|
-
"compiler/lib.es2020.sharedmemory.d.ts",
|
|
1039
|
-
"compiler/lib.es2020.string.d.ts",
|
|
1040
|
-
"compiler/lib.es2020.symbol.wellknown.d.ts",
|
|
1041
|
-
"compiler/lib.es2021.d.ts",
|
|
1042
|
-
"compiler/lib.es2021.full.d.ts",
|
|
1043
|
-
"compiler/lib.es2021.intl.d.ts",
|
|
1044
|
-
"compiler/lib.es2021.promise.d.ts",
|
|
1045
|
-
"compiler/lib.es2021.string.d.ts",
|
|
1046
|
-
"compiler/lib.es2021.weakref.d.ts",
|
|
1047
|
-
"compiler/lib.es2022.array.d.ts",
|
|
1048
|
-
"compiler/lib.es2022.d.ts",
|
|
1049
|
-
"compiler/lib.es2022.error.d.ts",
|
|
1050
|
-
"compiler/lib.es2022.full.d.ts",
|
|
1051
|
-
"compiler/lib.es2022.intl.d.ts",
|
|
1052
|
-
"compiler/lib.es2022.object.d.ts",
|
|
1053
|
-
"compiler/lib.es2022.sharedmemory.d.ts",
|
|
1054
|
-
"compiler/lib.es2022.string.d.ts",
|
|
1055
|
-
"compiler/lib.es5.d.ts",
|
|
1056
|
-
"compiler/lib.es6.d.ts",
|
|
1057
|
-
"compiler/lib.esnext.d.ts",
|
|
1058
|
-
"compiler/lib.esnext.full.d.ts",
|
|
1059
|
-
"compiler/lib.esnext.intl.d.ts",
|
|
1060
|
-
"compiler/lib.esnext.promise.d.ts",
|
|
1061
|
-
"compiler/lib.esnext.string.d.ts",
|
|
1062
|
-
"compiler/lib.esnext.weakref.d.ts",
|
|
1063
|
-
"compiler/lib.scripthost.d.ts",
|
|
1064
|
-
"compiler/lib.webworker.d.ts",
|
|
1065
|
-
"compiler/lib.webworker.importscripts.d.ts",
|
|
1066
|
-
"compiler/lib.webworker.iterable.d.ts",
|
|
1067
|
-
"internal/index.d.ts",
|
|
1068
|
-
"internal/index.js",
|
|
1069
|
-
"internal/package.json",
|
|
1070
|
-
"internal/stencil-ext-modules.d.ts",
|
|
1071
|
-
"internal/stencil-private.d.ts",
|
|
1072
|
-
"internal/stencil-public-compiler.d.ts",
|
|
1073
|
-
"internal/stencil-public-docs.d.ts",
|
|
1074
|
-
"internal/stencil-public-runtime.d.ts",
|
|
1075
|
-
"mock-doc/index.js",
|
|
1076
|
-
"mock-doc/package.json",
|
|
1077
|
-
"internal/client/css-shim.js",
|
|
1078
|
-
"internal/client/dom.js",
|
|
1079
|
-
"internal/client/index.js",
|
|
1080
|
-
"internal/client/package.json",
|
|
1081
|
-
"internal/client/patch-browser.js",
|
|
1082
|
-
"internal/client/patch-esm.js",
|
|
1083
|
-
"internal/client/shadow-css.js",
|
|
1084
|
-
"internal/hydrate/index.js",
|
|
1085
|
-
"internal/hydrate/package.json",
|
|
1086
|
-
"internal/hydrate/runner.js",
|
|
1087
|
-
"internal/hydrate/shadow-css.js",
|
|
1088
|
-
"internal/stencil-core/index.d.ts",
|
|
1089
|
-
"internal/stencil-core/index.js"
|
|
1090
|
-
]
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
name: "rollup",
|
|
1094
|
-
version: "2.42.3",
|
|
1095
|
-
main: "dist/es/rollup.browser.js"
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
name: "terser",
|
|
1099
|
-
version: "5.16.1",
|
|
1100
|
-
main: "dist/bundle.min.js"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
name: "typescript",
|
|
1104
|
-
version: "4.9.4",
|
|
1105
|
-
main: "lib/typescript.js"
|
|
1106
|
-
}
|
|
1107
|
-
];
|
|
1108
|
-
|
|
1109
987
|
const IS_NODE_ENV = typeof global !== 'undefined' &&
|
|
1110
988
|
typeof require === 'function' &&
|
|
1111
989
|
!!global.process &&
|
|
@@ -2495,15 +2373,6 @@ const run = async (init) => {
|
|
|
2495
2373
|
logger.printDiagnostics(findConfigResults.diagnostics);
|
|
2496
2374
|
return sys.exit(1);
|
|
2497
2375
|
}
|
|
2498
|
-
const ensureDepsResults = await sys.ensureDependencies({
|
|
2499
|
-
rootDir: findConfigResults.rootDir,
|
|
2500
|
-
logger,
|
|
2501
|
-
dependencies: dependencies,
|
|
2502
|
-
});
|
|
2503
|
-
if (hasError(ensureDepsResults.diagnostics)) {
|
|
2504
|
-
logger.printDiagnostics(ensureDepsResults.diagnostics);
|
|
2505
|
-
return sys.exit(1);
|
|
2506
|
-
}
|
|
2507
2376
|
const coreCompiler = await loadCoreCompiler(sys);
|
|
2508
2377
|
if (task === 'version' || flags.version) {
|
|
2509
2378
|
console.log(coreCompiler.version);
|
|
@@ -2532,7 +2401,6 @@ const run = async (init) => {
|
|
|
2532
2401
|
if (isFunction(sys.applyGlobalPatch)) {
|
|
2533
2402
|
sys.applyGlobalPatch(validated.config.rootDir);
|
|
2534
2403
|
}
|
|
2535
|
-
await sys.ensureResources({ rootDir: validated.config.rootDir, logger, dependencies: dependencies });
|
|
2536
2404
|
await telemetryAction(sys, validated.config, coreCompiler, async () => {
|
|
2537
2405
|
await runTask(coreCompiler, validated.config, task, sys);
|
|
2538
2406
|
});
|
package/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI v3.0.
|
|
2
|
+
Stencil CLI v3.0.1-dev.1677269299.a47c587 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
|
|
@@ -960,128 +960,6 @@ const dereferenceAlias = (maybeAlias) => {
|
|
|
960
960
|
return maybeAlias;
|
|
961
961
|
};
|
|
962
962
|
|
|
963
|
-
const dependencies = [
|
|
964
|
-
{
|
|
965
|
-
name: "@stencil/core",
|
|
966
|
-
version: "3.0.0",
|
|
967
|
-
main: "compiler/stencil.js",
|
|
968
|
-
resources: [
|
|
969
|
-
"package.json",
|
|
970
|
-
"compiler/lib.d.ts",
|
|
971
|
-
"compiler/lib.dom.d.ts",
|
|
972
|
-
"compiler/lib.dom.iterable.d.ts",
|
|
973
|
-
"compiler/lib.es2015.collection.d.ts",
|
|
974
|
-
"compiler/lib.es2015.core.d.ts",
|
|
975
|
-
"compiler/lib.es2015.d.ts",
|
|
976
|
-
"compiler/lib.es2015.generator.d.ts",
|
|
977
|
-
"compiler/lib.es2015.iterable.d.ts",
|
|
978
|
-
"compiler/lib.es2015.promise.d.ts",
|
|
979
|
-
"compiler/lib.es2015.proxy.d.ts",
|
|
980
|
-
"compiler/lib.es2015.reflect.d.ts",
|
|
981
|
-
"compiler/lib.es2015.symbol.d.ts",
|
|
982
|
-
"compiler/lib.es2015.symbol.wellknown.d.ts",
|
|
983
|
-
"compiler/lib.es2016.array.include.d.ts",
|
|
984
|
-
"compiler/lib.es2016.d.ts",
|
|
985
|
-
"compiler/lib.es2016.full.d.ts",
|
|
986
|
-
"compiler/lib.es2017.d.ts",
|
|
987
|
-
"compiler/lib.es2017.full.d.ts",
|
|
988
|
-
"compiler/lib.es2017.intl.d.ts",
|
|
989
|
-
"compiler/lib.es2017.object.d.ts",
|
|
990
|
-
"compiler/lib.es2017.sharedmemory.d.ts",
|
|
991
|
-
"compiler/lib.es2017.string.d.ts",
|
|
992
|
-
"compiler/lib.es2017.typedarrays.d.ts",
|
|
993
|
-
"compiler/lib.es2018.asyncgenerator.d.ts",
|
|
994
|
-
"compiler/lib.es2018.asynciterable.d.ts",
|
|
995
|
-
"compiler/lib.es2018.d.ts",
|
|
996
|
-
"compiler/lib.es2018.full.d.ts",
|
|
997
|
-
"compiler/lib.es2018.intl.d.ts",
|
|
998
|
-
"compiler/lib.es2018.promise.d.ts",
|
|
999
|
-
"compiler/lib.es2018.regexp.d.ts",
|
|
1000
|
-
"compiler/lib.es2019.array.d.ts",
|
|
1001
|
-
"compiler/lib.es2019.d.ts",
|
|
1002
|
-
"compiler/lib.es2019.full.d.ts",
|
|
1003
|
-
"compiler/lib.es2019.intl.d.ts",
|
|
1004
|
-
"compiler/lib.es2019.object.d.ts",
|
|
1005
|
-
"compiler/lib.es2019.string.d.ts",
|
|
1006
|
-
"compiler/lib.es2019.symbol.d.ts",
|
|
1007
|
-
"compiler/lib.es2020.bigint.d.ts",
|
|
1008
|
-
"compiler/lib.es2020.d.ts",
|
|
1009
|
-
"compiler/lib.es2020.date.d.ts",
|
|
1010
|
-
"compiler/lib.es2020.full.d.ts",
|
|
1011
|
-
"compiler/lib.es2020.intl.d.ts",
|
|
1012
|
-
"compiler/lib.es2020.number.d.ts",
|
|
1013
|
-
"compiler/lib.es2020.promise.d.ts",
|
|
1014
|
-
"compiler/lib.es2020.sharedmemory.d.ts",
|
|
1015
|
-
"compiler/lib.es2020.string.d.ts",
|
|
1016
|
-
"compiler/lib.es2020.symbol.wellknown.d.ts",
|
|
1017
|
-
"compiler/lib.es2021.d.ts",
|
|
1018
|
-
"compiler/lib.es2021.full.d.ts",
|
|
1019
|
-
"compiler/lib.es2021.intl.d.ts",
|
|
1020
|
-
"compiler/lib.es2021.promise.d.ts",
|
|
1021
|
-
"compiler/lib.es2021.string.d.ts",
|
|
1022
|
-
"compiler/lib.es2021.weakref.d.ts",
|
|
1023
|
-
"compiler/lib.es2022.array.d.ts",
|
|
1024
|
-
"compiler/lib.es2022.d.ts",
|
|
1025
|
-
"compiler/lib.es2022.error.d.ts",
|
|
1026
|
-
"compiler/lib.es2022.full.d.ts",
|
|
1027
|
-
"compiler/lib.es2022.intl.d.ts",
|
|
1028
|
-
"compiler/lib.es2022.object.d.ts",
|
|
1029
|
-
"compiler/lib.es2022.sharedmemory.d.ts",
|
|
1030
|
-
"compiler/lib.es2022.string.d.ts",
|
|
1031
|
-
"compiler/lib.es5.d.ts",
|
|
1032
|
-
"compiler/lib.es6.d.ts",
|
|
1033
|
-
"compiler/lib.esnext.d.ts",
|
|
1034
|
-
"compiler/lib.esnext.full.d.ts",
|
|
1035
|
-
"compiler/lib.esnext.intl.d.ts",
|
|
1036
|
-
"compiler/lib.esnext.promise.d.ts",
|
|
1037
|
-
"compiler/lib.esnext.string.d.ts",
|
|
1038
|
-
"compiler/lib.esnext.weakref.d.ts",
|
|
1039
|
-
"compiler/lib.scripthost.d.ts",
|
|
1040
|
-
"compiler/lib.webworker.d.ts",
|
|
1041
|
-
"compiler/lib.webworker.importscripts.d.ts",
|
|
1042
|
-
"compiler/lib.webworker.iterable.d.ts",
|
|
1043
|
-
"internal/index.d.ts",
|
|
1044
|
-
"internal/index.js",
|
|
1045
|
-
"internal/package.json",
|
|
1046
|
-
"internal/stencil-ext-modules.d.ts",
|
|
1047
|
-
"internal/stencil-private.d.ts",
|
|
1048
|
-
"internal/stencil-public-compiler.d.ts",
|
|
1049
|
-
"internal/stencil-public-docs.d.ts",
|
|
1050
|
-
"internal/stencil-public-runtime.d.ts",
|
|
1051
|
-
"mock-doc/index.js",
|
|
1052
|
-
"mock-doc/package.json",
|
|
1053
|
-
"internal/client/css-shim.js",
|
|
1054
|
-
"internal/client/dom.js",
|
|
1055
|
-
"internal/client/index.js",
|
|
1056
|
-
"internal/client/package.json",
|
|
1057
|
-
"internal/client/patch-browser.js",
|
|
1058
|
-
"internal/client/patch-esm.js",
|
|
1059
|
-
"internal/client/shadow-css.js",
|
|
1060
|
-
"internal/hydrate/index.js",
|
|
1061
|
-
"internal/hydrate/package.json",
|
|
1062
|
-
"internal/hydrate/runner.js",
|
|
1063
|
-
"internal/hydrate/shadow-css.js",
|
|
1064
|
-
"internal/stencil-core/index.d.ts",
|
|
1065
|
-
"internal/stencil-core/index.js"
|
|
1066
|
-
]
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
name: "rollup",
|
|
1070
|
-
version: "2.42.3",
|
|
1071
|
-
main: "dist/es/rollup.browser.js"
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
name: "terser",
|
|
1075
|
-
version: "5.16.1",
|
|
1076
|
-
main: "dist/bundle.min.js"
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
name: "typescript",
|
|
1080
|
-
version: "4.9.4",
|
|
1081
|
-
main: "lib/typescript.js"
|
|
1082
|
-
}
|
|
1083
|
-
];
|
|
1084
|
-
|
|
1085
963
|
const IS_NODE_ENV = typeof global !== 'undefined' &&
|
|
1086
964
|
typeof require === 'function' &&
|
|
1087
965
|
!!global.process &&
|
|
@@ -2471,15 +2349,6 @@ const run = async (init) => {
|
|
|
2471
2349
|
logger.printDiagnostics(findConfigResults.diagnostics);
|
|
2472
2350
|
return sys.exit(1);
|
|
2473
2351
|
}
|
|
2474
|
-
const ensureDepsResults = await sys.ensureDependencies({
|
|
2475
|
-
rootDir: findConfigResults.rootDir,
|
|
2476
|
-
logger,
|
|
2477
|
-
dependencies: dependencies,
|
|
2478
|
-
});
|
|
2479
|
-
if (hasError(ensureDepsResults.diagnostics)) {
|
|
2480
|
-
logger.printDiagnostics(ensureDepsResults.diagnostics);
|
|
2481
|
-
return sys.exit(1);
|
|
2482
|
-
}
|
|
2483
2352
|
const coreCompiler = await loadCoreCompiler(sys);
|
|
2484
2353
|
if (task === 'version' || flags.version) {
|
|
2485
2354
|
console.log(coreCompiler.version);
|
|
@@ -2508,7 +2377,6 @@ const run = async (init) => {
|
|
|
2508
2377
|
if (isFunction(sys.applyGlobalPatch)) {
|
|
2509
2378
|
sys.applyGlobalPatch(validated.config.rootDir);
|
|
2510
2379
|
}
|
|
2511
|
-
await sys.ensureResources({ rootDir: validated.config.rootDir, logger, dependencies: dependencies });
|
|
2512
2380
|
await telemetryAction(sys, validated.config, coreCompiler, async () => {
|
|
2513
2381
|
await runTask(coreCompiler, validated.config, task, sys);
|
|
2514
2382
|
});
|
package/cli/package.json
CHANGED