@stencil/core 2.20.0 → 3.0.0-alpha.1
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/bin/stencil +3 -3
- package/cli/index.cjs +3 -5
- package/cli/index.d.ts +3 -3
- package/cli/index.js +3 -5
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +190 -308
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +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/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 +1 -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/package.json +1 -1
- package/internal/stencil-private.d.ts +1 -0
- package/internal/stencil-public-compiler.d.ts +31 -17
- package/internal/stencil-public-runtime.d.ts +12 -12
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +3 -3
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +11 -11
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +597 -410
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +1 -27
- package/testing/puppeteer/puppeteer-element.d.ts +3 -3
package/bin/stencil
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var minimumVersion = '
|
|
4
|
+
var minimumVersion = '14.5';
|
|
5
5
|
var futureDeprecationMinVersion = '14.0';
|
|
6
|
-
var recommendedVersion = '
|
|
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
|
|
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)
|
|
2
|
+
Stencil CLI (CommonJS) v3.0.0-alpha.1 | 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
|
|
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: "
|
|
990
|
+
version: "3.0.0-alpha.1",
|
|
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,
|
|
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[]
|
|
19
|
-
export {
|
|
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
|
|
2
|
+
Stencil CLI v3.0.0-alpha.1 | 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
|
|
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: "
|
|
966
|
+
version: "3.0.0-alpha.1",
|
|
969
967
|
main: "compiler/stencil.js",
|
|
970
968
|
resources: [
|
|
971
969
|
"package.json",
|
package/cli/package.json
CHANGED