@stencil/core 2.18.1 → 2.19.1-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 -14
- package/cli/index.d.ts +2 -0
- package/cli/index.js +16 -14
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +1527 -1207
- 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/hydrate/runner.d.ts +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +31 -12
- package/internal/stencil-public-compiler.d.ts +10 -0
- package/internal/stencil-public-docs.d.ts +24 -0
- package/internal/stencil-public-runtime.d.ts +5 -0
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +16 -6
- package/mock-doc/index.js +16 -6
- package/mock-doc/package.json +1 -1
- package/package.json +11 -12
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +5 -5
- package/sys/node/graceful-fs.js +1 -1
- package/sys/node/index.d.ts +2 -0
- package/sys/node/index.js +93 -95
- 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 +131 -130
- package/testing/package.json +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI (CommonJS) v2.
|
|
2
|
+
Stencil CLI (CommonJS) v2.19.1-0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -839,7 +839,7 @@ const isLogLevel = (maybeLogLevel) => readOnlyArrayHasStringMember(LOG_LEVELS, m
|
|
|
839
839
|
const dependencies = [
|
|
840
840
|
{
|
|
841
841
|
name: "@stencil/core",
|
|
842
|
-
version: "2.
|
|
842
|
+
version: "2.19.1-0",
|
|
843
843
|
main: "compiler/stencil.js",
|
|
844
844
|
resources: [
|
|
845
845
|
"package.json",
|
|
@@ -1541,26 +1541,28 @@ const prepareData = async (coreCompiler, config, sys, duration_ms, component_cou
|
|
|
1541
1541
|
const build = coreCompiler.buildId || 'unknown';
|
|
1542
1542
|
const has_app_pwa_config = hasAppTarget(config);
|
|
1543
1543
|
const anonymizedConfig = anonymizeConfigForTelemetry(config);
|
|
1544
|
+
const is_browser_env = IS_BROWSER_ENV;
|
|
1544
1545
|
return {
|
|
1545
|
-
|
|
1546
|
-
|
|
1546
|
+
arguments: config.flags.args,
|
|
1547
|
+
build,
|
|
1547
1548
|
component_count,
|
|
1548
|
-
|
|
1549
|
+
config: anonymizedConfig,
|
|
1550
|
+
cpu_model,
|
|
1551
|
+
duration_ms,
|
|
1552
|
+
has_app_pwa_config,
|
|
1553
|
+
is_browser_env,
|
|
1554
|
+
os_name,
|
|
1555
|
+
os_version,
|
|
1549
1556
|
packages,
|
|
1550
1557
|
packages_no_versions: packagesNoVersions,
|
|
1551
|
-
|
|
1552
|
-
task: config.flags.task,
|
|
1558
|
+
rollup,
|
|
1553
1559
|
stencil,
|
|
1554
1560
|
system,
|
|
1555
1561
|
system_major: getMajorVersion(system),
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
cpu_model,
|
|
1559
|
-
build,
|
|
1562
|
+
targets,
|
|
1563
|
+
task: config.flags.task,
|
|
1560
1564
|
typescript,
|
|
1561
|
-
|
|
1562
|
-
has_app_pwa_config,
|
|
1563
|
-
config: anonymizedConfig,
|
|
1565
|
+
yarn,
|
|
1564
1566
|
};
|
|
1565
1567
|
};
|
|
1566
1568
|
// props in output targets for which we retain their original values when
|
package/cli/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { ConfigFlags } from './config-flags';
|
|
|
4
4
|
* Runs the CLI with the given options. This is used by Stencil's default `bin/stencil` file,
|
|
5
5
|
* but can be used externally too.
|
|
6
6
|
* @param init a set of initialization options needed to run Stencil from its CLI
|
|
7
|
+
* @returns an empty promise
|
|
7
8
|
*/
|
|
8
9
|
export declare function run(init: CliInitOptions): Promise<void>;
|
|
9
10
|
/**
|
|
@@ -11,6 +12,7 @@ export declare function run(init: CliInitOptions): Promise<void>;
|
|
|
11
12
|
* @param coreCompiler The core Stencil compiler to be used. The `run()` method handles loading the core compiler, however, `runTask()` must be passed it.
|
|
12
13
|
* @param config Assumes the config has already been validated and has the "sys" and "logger" properties.
|
|
13
14
|
* @param task The task command to run, such as `build`.
|
|
15
|
+
* @returns an empty promise
|
|
14
16
|
*/
|
|
15
17
|
export declare function runTask(coreCompiler: any, config: Config, task: TaskCommand): Promise<void>;
|
|
16
18
|
export declare function parseFlags(args: string[], _sys?: CompilerSystem): ConfigFlags;
|
package/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI v2.
|
|
2
|
+
Stencil CLI v2.19.1-0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string from PascalCase to dash-case
|
|
@@ -815,7 +815,7 @@ const isLogLevel = (maybeLogLevel) => readOnlyArrayHasStringMember(LOG_LEVELS, m
|
|
|
815
815
|
const dependencies = [
|
|
816
816
|
{
|
|
817
817
|
name: "@stencil/core",
|
|
818
|
-
version: "2.
|
|
818
|
+
version: "2.19.1-0",
|
|
819
819
|
main: "compiler/stencil.js",
|
|
820
820
|
resources: [
|
|
821
821
|
"package.json",
|
|
@@ -1517,26 +1517,28 @@ const prepareData = async (coreCompiler, config, sys, duration_ms, component_cou
|
|
|
1517
1517
|
const build = coreCompiler.buildId || 'unknown';
|
|
1518
1518
|
const has_app_pwa_config = hasAppTarget(config);
|
|
1519
1519
|
const anonymizedConfig = anonymizeConfigForTelemetry(config);
|
|
1520
|
+
const is_browser_env = IS_BROWSER_ENV;
|
|
1520
1521
|
return {
|
|
1521
|
-
|
|
1522
|
-
|
|
1522
|
+
arguments: config.flags.args,
|
|
1523
|
+
build,
|
|
1523
1524
|
component_count,
|
|
1524
|
-
|
|
1525
|
+
config: anonymizedConfig,
|
|
1526
|
+
cpu_model,
|
|
1527
|
+
duration_ms,
|
|
1528
|
+
has_app_pwa_config,
|
|
1529
|
+
is_browser_env,
|
|
1530
|
+
os_name,
|
|
1531
|
+
os_version,
|
|
1525
1532
|
packages,
|
|
1526
1533
|
packages_no_versions: packagesNoVersions,
|
|
1527
|
-
|
|
1528
|
-
task: config.flags.task,
|
|
1534
|
+
rollup,
|
|
1529
1535
|
stencil,
|
|
1530
1536
|
system,
|
|
1531
1537
|
system_major: getMajorVersion(system),
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
cpu_model,
|
|
1535
|
-
build,
|
|
1538
|
+
targets,
|
|
1539
|
+
task: config.flags.task,
|
|
1536
1540
|
typescript,
|
|
1537
|
-
|
|
1538
|
-
has_app_pwa_config,
|
|
1539
|
-
config: anonymizedConfig,
|
|
1541
|
+
yarn,
|
|
1540
1542
|
};
|
|
1541
1543
|
};
|
|
1542
1544
|
// props in output targets for which we retain their original values when
|
package/cli/package.json
CHANGED