@stencil/core 2.9.0 → 2.12.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/index.cjs +16 -5
- package/cli/index.js +16 -5
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +263 -648
- package/compiler/lib.dom.iterable.d.ts +1 -5
- package/compiler/lib.es2015.core.d.ts +2 -2
- package/compiler/lib.es2015.iterable.d.ts +1 -1
- package/compiler/lib.es2015.symbol.wellknown.d.ts +10 -10
- package/compiler/lib.es2018.asynciterable.d.ts +1 -1
- package/compiler/lib.es2020.bigint.d.ts +1 -1
- package/compiler/lib.es2020.intl.d.ts +6 -7
- package/compiler/lib.es2020.symbol.wellknown.d.ts +1 -1
- package/compiler/lib.es2021.d.ts +24 -0
- package/compiler/lib.es2021.full.d.ts +25 -0
- package/compiler/lib.es2021.promise.d.ts +43 -0
- package/compiler/lib.es2021.string.d.ts +35 -0
- package/compiler/lib.es2021.weakref.d.ts +75 -0
- package/compiler/lib.es5.d.ts +9 -9
- package/compiler/lib.esnext.d.ts +1 -4
- package/compiler/lib.esnext.promise.d.ts +26 -26
- package/compiler/lib.esnext.string.d.ts +18 -18
- package/compiler/lib.esnext.weakref.d.ts +58 -58
- package/compiler/lib.webworker.d.ts +98 -153
- package/compiler/lib.webworker.iterable.d.ts +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +497 -725
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +6 -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/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 +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +119 -102
- 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 +9 -10
- package/internal/hydrate/index.js +44 -40
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/shadow-css.js +59 -62
- package/internal/index.js +1 -0
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +1 -1
- package/internal/testing/index.js +54 -47
- package/internal/testing/package.json +1 -1
- package/internal/testing/shadow-css.js +54 -57
- package/mock-doc/index.cjs +5 -2
- package/mock-doc/index.d.ts +6 -6
- package/mock-doc/index.js +5 -2
- package/mock-doc/package.json +1 -1
- package/package.json +17 -9
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +84 -73
- package/testing/jest/jest-environment.d.ts +1 -0
- package/testing/jest/jest-preprocessor.d.ts +56 -8
- package/testing/jest-preset.js +5 -0
- package/testing/mocks.d.ts +1 -5
- package/testing/package.json +1 -1
- package/testing/testing-sys.d.ts +6 -1
- package/screenshot/index.js.map +0 -1
package/cli/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI (CommonJS) v2.
|
|
2
|
+
Stencil CLI (CommonJS) v2.12.0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -230,6 +230,11 @@ const pathComponents = (path, rootLength) => {
|
|
|
230
230
|
return [root, ...rest];
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Validates that a component tag meets required naming conventions to be used for a web component
|
|
235
|
+
* @param tag the tag to validate
|
|
236
|
+
* @returns an error message if the tag has an invalid name, undefined if the tag name passes all checks
|
|
237
|
+
*/
|
|
233
238
|
const validateComponentTag = (tag) => {
|
|
234
239
|
if (tag !== tag.trim()) {
|
|
235
240
|
return `Tag can not contain white spaces`;
|
|
@@ -485,7 +490,7 @@ const getNpmConfigEnvArgs = (sys) => {
|
|
|
485
490
|
const dependencies = [
|
|
486
491
|
{
|
|
487
492
|
name: "@stencil/core",
|
|
488
|
-
version: "2.
|
|
493
|
+
version: "2.12.0",
|
|
489
494
|
main: "compiler/stencil.js",
|
|
490
495
|
resources: [
|
|
491
496
|
"package.json",
|
|
@@ -533,6 +538,11 @@ const dependencies = [
|
|
|
533
538
|
"compiler/lib.es2020.sharedmemory.d.ts",
|
|
534
539
|
"compiler/lib.es2020.string.d.ts",
|
|
535
540
|
"compiler/lib.es2020.symbol.wellknown.d.ts",
|
|
541
|
+
"compiler/lib.es2021.d.ts",
|
|
542
|
+
"compiler/lib.es2021.full.d.ts",
|
|
543
|
+
"compiler/lib.es2021.promise.d.ts",
|
|
544
|
+
"compiler/lib.es2021.string.d.ts",
|
|
545
|
+
"compiler/lib.es2021.weakref.d.ts",
|
|
536
546
|
"compiler/lib.es5.d.ts",
|
|
537
547
|
"compiler/lib.es6.d.ts",
|
|
538
548
|
"compiler/lib.esnext.d.ts",
|
|
@@ -582,7 +592,7 @@ const dependencies = [
|
|
|
582
592
|
},
|
|
583
593
|
{
|
|
584
594
|
name: "typescript",
|
|
585
|
-
version: "4.
|
|
595
|
+
version: "4.3.5",
|
|
586
596
|
main: "lib/typescript.js"
|
|
587
597
|
}
|
|
588
598
|
];
|
|
@@ -1679,7 +1689,7 @@ const runTask = async (coreCompiler, config, task, sys) => {
|
|
|
1679
1689
|
await taskGenerate(coreCompiler, config);
|
|
1680
1690
|
break;
|
|
1681
1691
|
case 'help':
|
|
1682
|
-
taskHelp(config, config.logger, sys);
|
|
1692
|
+
await taskHelp(config, config.logger, sys);
|
|
1683
1693
|
break;
|
|
1684
1694
|
case 'prerender':
|
|
1685
1695
|
await taskPrerender(coreCompiler, config);
|
|
@@ -1701,7 +1711,7 @@ const runTask = async (coreCompiler, config, task, sys) => {
|
|
|
1701
1711
|
break;
|
|
1702
1712
|
default:
|
|
1703
1713
|
config.logger.error(`${config.logger.emoji('❌ ')}Invalid stencil command, please see the options below:`);
|
|
1704
|
-
taskHelp(config, config.logger, sys);
|
|
1714
|
+
await taskHelp(config, config.logger, sys);
|
|
1705
1715
|
return config.sys.exit(1);
|
|
1706
1716
|
}
|
|
1707
1717
|
};
|
|
@@ -1709,3 +1719,4 @@ const runTask = async (coreCompiler, config, task, sys) => {
|
|
|
1709
1719
|
exports.parseFlags = parseFlags;
|
|
1710
1720
|
exports.run = run;
|
|
1711
1721
|
exports.runTask = runTask;
|
|
1722
|
+
//# sourceMappingURL=index.cjs.map
|
package/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI v2.
|
|
2
|
+
Stencil CLI v2.12.0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
const toLowerCase = (str) => str.toLowerCase();
|
|
5
5
|
const dashToPascalCase = (str) => toLowerCase(str)
|
|
@@ -206,6 +206,11 @@ const pathComponents = (path, rootLength) => {
|
|
|
206
206
|
return [root, ...rest];
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Validates that a component tag meets required naming conventions to be used for a web component
|
|
211
|
+
* @param tag the tag to validate
|
|
212
|
+
* @returns an error message if the tag has an invalid name, undefined if the tag name passes all checks
|
|
213
|
+
*/
|
|
209
214
|
const validateComponentTag = (tag) => {
|
|
210
215
|
if (tag !== tag.trim()) {
|
|
211
216
|
return `Tag can not contain white spaces`;
|
|
@@ -461,7 +466,7 @@ const getNpmConfigEnvArgs = (sys) => {
|
|
|
461
466
|
const dependencies = [
|
|
462
467
|
{
|
|
463
468
|
name: "@stencil/core",
|
|
464
|
-
version: "2.
|
|
469
|
+
version: "2.12.0",
|
|
465
470
|
main: "compiler/stencil.js",
|
|
466
471
|
resources: [
|
|
467
472
|
"package.json",
|
|
@@ -509,6 +514,11 @@ const dependencies = [
|
|
|
509
514
|
"compiler/lib.es2020.sharedmemory.d.ts",
|
|
510
515
|
"compiler/lib.es2020.string.d.ts",
|
|
511
516
|
"compiler/lib.es2020.symbol.wellknown.d.ts",
|
|
517
|
+
"compiler/lib.es2021.d.ts",
|
|
518
|
+
"compiler/lib.es2021.full.d.ts",
|
|
519
|
+
"compiler/lib.es2021.promise.d.ts",
|
|
520
|
+
"compiler/lib.es2021.string.d.ts",
|
|
521
|
+
"compiler/lib.es2021.weakref.d.ts",
|
|
512
522
|
"compiler/lib.es5.d.ts",
|
|
513
523
|
"compiler/lib.es6.d.ts",
|
|
514
524
|
"compiler/lib.esnext.d.ts",
|
|
@@ -558,7 +568,7 @@ const dependencies = [
|
|
|
558
568
|
},
|
|
559
569
|
{
|
|
560
570
|
name: "typescript",
|
|
561
|
-
version: "4.
|
|
571
|
+
version: "4.3.5",
|
|
562
572
|
main: "lib/typescript.js"
|
|
563
573
|
}
|
|
564
574
|
];
|
|
@@ -1655,7 +1665,7 @@ const runTask = async (coreCompiler, config, task, sys) => {
|
|
|
1655
1665
|
await taskGenerate(coreCompiler, config);
|
|
1656
1666
|
break;
|
|
1657
1667
|
case 'help':
|
|
1658
|
-
taskHelp(config, config.logger, sys);
|
|
1668
|
+
await taskHelp(config, config.logger, sys);
|
|
1659
1669
|
break;
|
|
1660
1670
|
case 'prerender':
|
|
1661
1671
|
await taskPrerender(coreCompiler, config);
|
|
@@ -1677,9 +1687,10 @@ const runTask = async (coreCompiler, config, task, sys) => {
|
|
|
1677
1687
|
break;
|
|
1678
1688
|
default:
|
|
1679
1689
|
config.logger.error(`${config.logger.emoji('❌ ')}Invalid stencil command, please see the options below:`);
|
|
1680
|
-
taskHelp(config, config.logger, sys);
|
|
1690
|
+
await taskHelp(config, config.logger, sys);
|
|
1681
1691
|
return config.sys.exit(1);
|
|
1682
1692
|
}
|
|
1683
1693
|
};
|
|
1684
1694
|
|
|
1685
1695
|
export { parseFlags, run, runTask };
|
|
1696
|
+
//# sourceMappingURL=index.js.map
|