@stencil/core 2.14.2 → 2.15.2
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 +14 -15
- package/cli/index.cjs +153 -66
- package/cli/index.js +153 -66
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +417 -106
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +1 -1
- package/dev-server/client/index.js +3 -3
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- 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 +2 -2
- 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/polyfills/css-shim.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 +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +39 -3
- package/internal/stencil-public-compiler.d.ts +21 -15
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +13 -3
- package/mock-doc/index.d.ts +4 -0
- package/mock-doc/index.js +13 -3
- package/mock-doc/package.json +1 -1
- package/package.json +5 -5
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +1 -1
- package/sys/node/index.js +2046 -1338
- 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 +8 -8
- package/testing/package.json +1 -1
|
@@ -655,7 +655,7 @@ const templateWindows = new Map, createHydrateBuildId = () => {
|
|
|
655
655
|
}, commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, getCssSelectors = e => {
|
|
656
656
|
SELECTORS.all.length = SELECTORS.tags.length = SELECTORS.classNames.length = SELECTORS.ids.length = SELECTORS.attrs.length = 0;
|
|
657
657
|
const t = (e = e.replace(/\./g, " .").replace(/\#/g, " #").replace(/\[/g, " [").replace(/\>/g, " > ").replace(/\+/g, " + ").replace(/\~/g, " ~ ").replace(/\*/g, " * ").replace(/\:not\((.*?)\)/g, " ")).split(" ");
|
|
658
|
-
for (let e = 0, r = t.length; e < r; e++) t[e] = t[e].split(":")[0], 0 !== t[e].length && ("." === t[e].charAt(0) ? SELECTORS.classNames.push(t[e].
|
|
658
|
+
for (let e = 0, r = t.length; e < r; e++) t[e] = t[e].split(":")[0], 0 !== t[e].length && ("." === t[e].charAt(0) ? SELECTORS.classNames.push(t[e].slice(1)) : "#" === t[e].charAt(0) ? SELECTORS.ids.push(t[e].slice(1)) : "[" === t[e].charAt(0) ? (t[e] = t[e].slice(1).split("=")[0].split("]")[0].trim(),
|
|
659
659
|
SELECTORS.attrs.push(t[e].toLowerCase())) : /[a-z]/g.test(t[e].charAt(0)) && SELECTORS.tags.push(t[e].toLowerCase()));
|
|
660
660
|
return SELECTORS.classNames = SELECTORS.classNames.sort(((e, t) => e.length < t.length ? -1 : e.length > t.length ? 1 : 0)),
|
|
661
661
|
SELECTORS;
|
package/internal/package.json
CHANGED
|
@@ -708,11 +708,29 @@ export interface ComponentCompilerPropertyComplexType {
|
|
|
708
708
|
resolved: string;
|
|
709
709
|
references: ComponentCompilerTypeReferences;
|
|
710
710
|
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
711
|
+
/**
|
|
712
|
+
* A record of `ComponentCompilerTypeReference` entities.
|
|
713
|
+
*
|
|
714
|
+
* Each key in this record is intended to be the names of the types used by a component. However, this is not enforced
|
|
715
|
+
* by the type system (I.E. any string can be used as a key).
|
|
716
|
+
*
|
|
717
|
+
* Note any key can be a user defined type or a TypeScript standard type.
|
|
718
|
+
*/
|
|
719
|
+
export declare type ComponentCompilerTypeReferences = Record<string, ComponentCompilerTypeReference>;
|
|
720
|
+
/**
|
|
721
|
+
* Describes a reference to a type used by a component.
|
|
722
|
+
*/
|
|
714
723
|
export interface ComponentCompilerTypeReference {
|
|
724
|
+
/**
|
|
725
|
+
* A type may be defined:
|
|
726
|
+
* - locally (in the same file as the component that uses it)
|
|
727
|
+
* - globally
|
|
728
|
+
* - by importing it into a file (and is defined elsewhere)
|
|
729
|
+
*/
|
|
715
730
|
location: 'local' | 'global' | 'import';
|
|
731
|
+
/**
|
|
732
|
+
* The path to the type reference, if applicable (global types should not need a path associated with them)
|
|
733
|
+
*/
|
|
716
734
|
path?: string;
|
|
717
735
|
}
|
|
718
736
|
export interface ComponentCompilerStaticEvent {
|
|
@@ -2087,11 +2105,29 @@ export interface NewSpecPageOptions {
|
|
|
2087
2105
|
attachStyles?: boolean;
|
|
2088
2106
|
strictBuild?: boolean;
|
|
2089
2107
|
}
|
|
2108
|
+
/**
|
|
2109
|
+
* A record of `TypesMemberNameData` entities.
|
|
2110
|
+
*
|
|
2111
|
+
* Each key in this record is intended to be the path to a file that declares one or more types used by a component.
|
|
2112
|
+
* However, this is not enforced by the type system - users of this interface should not make any assumptions regarding
|
|
2113
|
+
* the format of the path used as a key (relative vs. absolute)
|
|
2114
|
+
*/
|
|
2090
2115
|
export interface TypesImportData {
|
|
2091
2116
|
[key: string]: TypesMemberNameData[];
|
|
2092
2117
|
}
|
|
2118
|
+
/**
|
|
2119
|
+
* A type describing how Stencil may alias an imported type to avoid naming collisions when performing operations such
|
|
2120
|
+
* as generating `components.d.ts` files.
|
|
2121
|
+
*/
|
|
2093
2122
|
export interface TypesMemberNameData {
|
|
2123
|
+
/**
|
|
2124
|
+
* The name of the type as it's used within a file.
|
|
2125
|
+
*/
|
|
2094
2126
|
localName: string;
|
|
2127
|
+
/**
|
|
2128
|
+
* An alias that Stencil may apply to the `localName` to avoid naming collisions. This name does not appear in the
|
|
2129
|
+
* file that is using `localName`.
|
|
2130
|
+
*/
|
|
2095
2131
|
importName?: string;
|
|
2096
2132
|
}
|
|
2097
2133
|
export interface TypesModule {
|
|
@@ -43,7 +43,7 @@ export interface StencilConfig {
|
|
|
43
43
|
* However, it's still common to have styles which should be "global" across all components and the website.
|
|
44
44
|
* A global CSS file is often useful to set CSS Variables.
|
|
45
45
|
*
|
|
46
|
-
*
|
|
46
|
+
* Additionally, the globalStyle config can be used to precompile styles with Sass, PostCss, etc.
|
|
47
47
|
* Below is an example folder structure containing a webapp's global sass file, named app.css.
|
|
48
48
|
*/
|
|
49
49
|
globalStyle?: string;
|
|
@@ -102,7 +102,7 @@ export interface StencilConfig {
|
|
|
102
102
|
*/
|
|
103
103
|
nodeResolve?: NodeResolveConfig;
|
|
104
104
|
/**
|
|
105
|
-
* Passes custom configuration down to rollup itself, not all rollup options can be
|
|
105
|
+
* Passes custom configuration down to rollup itself, not all rollup options can be overridden.
|
|
106
106
|
*/
|
|
107
107
|
rollupConfig?: RollupConfig;
|
|
108
108
|
/**
|
|
@@ -145,14 +145,14 @@ export interface StencilConfig {
|
|
|
145
145
|
* The hydrated flag identifies if a component and all of its child components
|
|
146
146
|
* have finished hydrating. This helps prevent any flash of unstyled content (FOUC)
|
|
147
147
|
* as various components are asynchronously downloaded and rendered. By default it
|
|
148
|
-
* will add the `hydrated` CSS class to the element. The `hydratedFlag`
|
|
148
|
+
* will add the `hydrated` CSS class to the element. The `hydratedFlag` config can be used
|
|
149
149
|
* to change the name of the CSS class, change it to an attribute, or change which
|
|
150
150
|
* type of CSS properties and values are assigned before and after hydrating. This config
|
|
151
151
|
* can also be used to not include the hydrated flag at all by setting it to `null`.
|
|
152
152
|
*/
|
|
153
153
|
hydratedFlag?: HydratedFlag;
|
|
154
154
|
/**
|
|
155
|
-
* Ionic
|
|
155
|
+
* Ionic prefers to hide all components prior to hydration with a style tag appended
|
|
156
156
|
* to the head of the document containing some `visibility: hidden;` css rules.
|
|
157
157
|
*
|
|
158
158
|
* Disabling this will remove the style tag that sets `visibility: hidden;` on all
|
|
@@ -178,11 +178,11 @@ export interface StencilConfig {
|
|
|
178
178
|
* - `congestionAsync`: DOM reads and writes are scheduled in the next frame to prevent layout
|
|
179
179
|
* thrashing. When the app is heavily tasked and the queue becomes congested it will then
|
|
180
180
|
* split the work across multiple frames to prevent blocking the main thread. However, it can
|
|
181
|
-
* also introduce
|
|
182
|
-
* is ideal for apps running animations while also
|
|
181
|
+
* also introduce unnecessary reflows in some cases, especially during startup. `congestionAsync`
|
|
182
|
+
* is ideal for apps running animations while also simultaneously executing intensive tasks
|
|
183
183
|
* which may lock-up the main thread.
|
|
184
184
|
*
|
|
185
|
-
* - `immediate`: Makes writeTask() and readTask() callbacks to be executed
|
|
185
|
+
* - `immediate`: Makes writeTask() and readTask() callbacks to be executed synchronously. Tasks
|
|
186
186
|
* are not scheduled to run in the next frame, but do note there is at least one microtask.
|
|
187
187
|
* The `immediate` setting is ideal for apps that do not provide long running and smooth
|
|
188
188
|
* animations. Like the async setting, if the app has intensive tasks causing the main thread
|
|
@@ -229,7 +229,7 @@ export interface ConfigExtras {
|
|
|
229
229
|
* By default, the slot polyfill does not update `appendChild()` so that it appends
|
|
230
230
|
* new child nodes into the correct child slot like how shadow dom works. This is an opt-in
|
|
231
231
|
* polyfill for those who need it when using `element.appendChild(node)` and expecting the
|
|
232
|
-
* child to be appended in the same location
|
|
232
|
+
* child to be appended in the same location shadow dom would. This is not required for
|
|
233
233
|
* IE11 or Edge 18, but can be enabled if the app is using `appendChild()`. Defaults to `false`.
|
|
234
234
|
*/
|
|
235
235
|
appendChildSlotFix?: boolean;
|
|
@@ -432,7 +432,7 @@ export interface StencilDevServerConfig {
|
|
|
432
432
|
*/
|
|
433
433
|
ssr?: boolean;
|
|
434
434
|
/**
|
|
435
|
-
* If the dev server fails to start up within the given
|
|
435
|
+
* If the dev server fails to start up within the given timeout (in milliseconds), the startup will
|
|
436
436
|
* be canceled. Set to zero to disable the timeout. Defaults to `15000`.
|
|
437
437
|
*/
|
|
438
438
|
startupTimeout?: number;
|
|
@@ -722,7 +722,7 @@ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
|
722
722
|
* Sets an approximate line width the HTML should attempt to stay within.
|
|
723
723
|
* Note that this is "approximate", in that HTML may often not be able
|
|
724
724
|
* to be split at an exact line width. Additionally, new lines created
|
|
725
|
-
* is where HTML naturally already has
|
|
725
|
+
* is where HTML naturally already has whitespace, such as before an
|
|
726
726
|
* attribute or spaces between words. Defaults to `100`.
|
|
727
727
|
*/
|
|
728
728
|
approximateLineWidth?: number;
|
|
@@ -823,7 +823,7 @@ export interface SitemapXmpResults {
|
|
|
823
823
|
* build all actions the in-memory fs performed will be written to disk using this system.
|
|
824
824
|
* A NodeJS based system will use APIs such as `fs` and `crypto`, and a web-based system
|
|
825
825
|
* will use in-memory Maps and browser APIs. Either way, the compiler itself is unaware
|
|
826
|
-
* of the actual platform it's being ran
|
|
826
|
+
* of the actual platform it's being ran on top of.
|
|
827
827
|
*/
|
|
828
828
|
export interface CompilerSystem {
|
|
829
829
|
name: 'node' | 'in-memory';
|
|
@@ -872,7 +872,7 @@ export interface CompilerSystem {
|
|
|
872
872
|
*/
|
|
873
873
|
isTTY(): boolean;
|
|
874
874
|
/**
|
|
875
|
-
* Each
|
|
875
|
+
* Each platform as a different way to dynamically import modules.
|
|
876
876
|
*/
|
|
877
877
|
dynamicImport?(p: string): Promise<any>;
|
|
878
878
|
/**
|
|
@@ -1553,7 +1553,7 @@ export interface TestingConfig extends JestConfig {
|
|
|
1553
1553
|
browserSlowMo?: number;
|
|
1554
1554
|
/**
|
|
1555
1555
|
* By default, all E2E pages wait until the "load" event, this global setting can be used
|
|
1556
|
-
* to change the default `waitUntil`
|
|
1556
|
+
* to change the default `waitUntil` behavior.
|
|
1557
1557
|
*/
|
|
1558
1558
|
browserWaitUntil?: 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2';
|
|
1559
1559
|
/**
|
|
@@ -1665,6 +1665,7 @@ export interface OutputTargetDist extends OutputTargetBase {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
export interface OutputTargetDistCollection extends OutputTargetBase {
|
|
1667
1667
|
type: 'dist-collection';
|
|
1668
|
+
empty?: boolean;
|
|
1668
1669
|
dir: string;
|
|
1669
1670
|
collectionDir: string;
|
|
1670
1671
|
}
|
|
@@ -1685,6 +1686,7 @@ export interface OutputTargetDistLazy extends OutputTargetBase {
|
|
|
1685
1686
|
esmIndexFile?: string;
|
|
1686
1687
|
cjsIndexFile?: string;
|
|
1687
1688
|
systemLoaderFile?: string;
|
|
1689
|
+
legacyLoaderFile?: string;
|
|
1688
1690
|
empty?: boolean;
|
|
1689
1691
|
}
|
|
1690
1692
|
export interface OutputTargetDistGlobalStyles extends OutputTargetBase {
|
|
@@ -1695,7 +1697,7 @@ export interface OutputTargetDistLazyLoader extends OutputTargetBase {
|
|
|
1695
1697
|
type: 'dist-lazy-loader';
|
|
1696
1698
|
dir: string;
|
|
1697
1699
|
esmDir: string;
|
|
1698
|
-
esmEs5Dir
|
|
1700
|
+
esmEs5Dir?: string;
|
|
1699
1701
|
cjsDir: string;
|
|
1700
1702
|
componentDts: string;
|
|
1701
1703
|
empty: boolean;
|
|
@@ -1763,6 +1765,10 @@ export interface OutputTargetDistCustomElements extends OutputTargetBaseNext {
|
|
|
1763
1765
|
* children, etc. Users of this flag should be aware that enabling this functionality may increase bundle size.
|
|
1764
1766
|
*/
|
|
1765
1767
|
autoDefineCustomElements?: boolean;
|
|
1768
|
+
/**
|
|
1769
|
+
* Enables the generation of type definition files for the output target.
|
|
1770
|
+
*/
|
|
1771
|
+
generateTypeDeclarations?: boolean;
|
|
1766
1772
|
}
|
|
1767
1773
|
export interface OutputTargetDistCustomElementsBundle extends OutputTargetBaseNext {
|
|
1768
1774
|
type: 'dist-custom-elements-bundle';
|
|
@@ -1840,7 +1846,7 @@ export interface OutputTargetWww extends OutputTargetBase {
|
|
|
1840
1846
|
baseUrl?: string;
|
|
1841
1847
|
/**
|
|
1842
1848
|
* By default, stencil will include all the polyfills required by legacy browsers in the ES5 build.
|
|
1843
|
-
* If it's `false`, stencil will not emit this polyfills anymore and it's your
|
|
1849
|
+
* If it's `false`, stencil will not emit this polyfills anymore and it's your responsibility to provide them before
|
|
1844
1850
|
* stencil initializes.
|
|
1845
1851
|
*/
|
|
1846
1852
|
polyfills?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.2",
|
|
4
4
|
"description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc (CommonJS) v2.
|
|
2
|
+
Stencil Mock Doc (CommonJS) v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var mockDoc = (function(exports) {
|
|
5
5
|
'use strict';
|
|
@@ -381,7 +381,7 @@ function toDataAttribute(str) {
|
|
|
381
381
|
.toLowerCase());
|
|
382
382
|
}
|
|
383
383
|
function dashToPascalCase(str) {
|
|
384
|
-
str = String(str).
|
|
384
|
+
str = String(str).slice(5);
|
|
385
385
|
return str
|
|
386
386
|
.split('-')
|
|
387
387
|
.map((segment, index) => {
|
|
@@ -585,7 +585,7 @@ function cssCaseToJsCase(str) {
|
|
|
585
585
|
.split('-')
|
|
586
586
|
.map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
|
|
587
587
|
.join('');
|
|
588
|
-
str = str.
|
|
588
|
+
str = str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
589
589
|
}
|
|
590
590
|
return str;
|
|
591
591
|
}
|
|
@@ -3165,6 +3165,15 @@ class MockResponse {
|
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
3167
|
|
|
3168
|
+
class MockDOMParser {
|
|
3169
|
+
parseFromString(htmlToParse, mimeType) {
|
|
3170
|
+
if (mimeType !== 'text/html') {
|
|
3171
|
+
console.error('XML parsing not implemented yet, continuing as html');
|
|
3172
|
+
}
|
|
3173
|
+
return parseHtmlToDocument(htmlToParse);
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3168
3177
|
function setupGlobal(gbl) {
|
|
3169
3178
|
if (gbl.window == null) {
|
|
3170
3179
|
const win = (gbl.window = new MockWindow());
|
|
@@ -3294,6 +3303,7 @@ const GLOBAL_CONSTRUCTORS = [
|
|
|
3294
3303
|
['MouseEvent', MockMouseEvent],
|
|
3295
3304
|
['Request', MockRequest],
|
|
3296
3305
|
['Response', MockResponse],
|
|
3306
|
+
['DOMParser', MockDOMParser],
|
|
3297
3307
|
['HTMLAnchorElement', MockAnchorElement],
|
|
3298
3308
|
['HTMLBaseElement', MockBaseElement],
|
|
3299
3309
|
['HTMLButtonElement', MockButtonElement],
|
package/mock-doc/index.d.ts
CHANGED
|
@@ -624,6 +624,10 @@ declare function parseHtmlToDocument(html: string, ownerDocument?: MockDocument)
|
|
|
624
624
|
declare function parseHtmlToFragment(html: string, ownerDocument?: MockDocument): any;
|
|
625
625
|
declare function parseDocumentUtil(ownerDocument: any, html: string): any;
|
|
626
626
|
declare function parseFragmentUtil(ownerDocument: any, html: string): any;
|
|
627
|
+
declare type DOMParserSupportedType = 'text/html' | 'text/xml' | 'application/xml' | 'application/xhtml+xml' | 'image/svg+xml';
|
|
628
|
+
declare class MockDOMParser {
|
|
629
|
+
parseFromString(htmlToParse: string, mimeType: DOMParserSupportedType): MockDocument;
|
|
630
|
+
}
|
|
627
631
|
/**
|
|
628
632
|
* https://developer.mozilla.org/en-US/docs/Web/API/Performance
|
|
629
633
|
*/
|
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc v2.
|
|
2
|
+
Stencil Mock Doc v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
const CONTENT_REF_ID = 'r';
|
|
5
5
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -378,7 +378,7 @@ function toDataAttribute(str) {
|
|
|
378
378
|
.toLowerCase());
|
|
379
379
|
}
|
|
380
380
|
function dashToPascalCase(str) {
|
|
381
|
-
str = String(str).
|
|
381
|
+
str = String(str).slice(5);
|
|
382
382
|
return str
|
|
383
383
|
.split('-')
|
|
384
384
|
.map((segment, index) => {
|
|
@@ -582,7 +582,7 @@ function cssCaseToJsCase(str) {
|
|
|
582
582
|
.split('-')
|
|
583
583
|
.map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
|
|
584
584
|
.join('');
|
|
585
|
-
str = str.
|
|
585
|
+
str = str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
586
586
|
}
|
|
587
587
|
return str;
|
|
588
588
|
}
|
|
@@ -3162,6 +3162,15 @@ class MockResponse {
|
|
|
3162
3162
|
}
|
|
3163
3163
|
}
|
|
3164
3164
|
|
|
3165
|
+
class MockDOMParser {
|
|
3166
|
+
parseFromString(htmlToParse, mimeType) {
|
|
3167
|
+
if (mimeType !== 'text/html') {
|
|
3168
|
+
console.error('XML parsing not implemented yet, continuing as html');
|
|
3169
|
+
}
|
|
3170
|
+
return parseHtmlToDocument(htmlToParse);
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3165
3174
|
function setupGlobal(gbl) {
|
|
3166
3175
|
if (gbl.window == null) {
|
|
3167
3176
|
const win = (gbl.window = new MockWindow());
|
|
@@ -3291,6 +3300,7 @@ const GLOBAL_CONSTRUCTORS = [
|
|
|
3291
3300
|
['MouseEvent', MockMouseEvent],
|
|
3292
3301
|
['Request', MockRequest],
|
|
3293
3302
|
['Response', MockResponse],
|
|
3303
|
+
['DOMParser', MockDOMParser],
|
|
3294
3304
|
['HTMLAnchorElement', MockAnchorElement],
|
|
3295
3305
|
['HTMLBaseElement', MockBaseElement],
|
|
3296
3306
|
['HTMLButtonElement', MockButtonElement],
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./internal/stencil-core/index.cjs",
|
|
6
6
|
"module": "./internal/stencil-core/index.js",
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"!**/*.map",
|
|
13
|
+
"!**/*.stub.ts",
|
|
14
|
+
"!**/*.stub.tsx",
|
|
13
15
|
"bin/",
|
|
14
16
|
"cli/",
|
|
15
17
|
"compiler/",
|
|
@@ -39,7 +41,7 @@
|
|
|
39
41
|
"rollup.watch": "rollup --watch --config",
|
|
40
42
|
"license": "node scripts --license",
|
|
41
43
|
"prettier": "npm run prettier.base -- --write",
|
|
42
|
-
"prettier.base": "prettier \"./{bin,scripts,src,test}/**/*.{ts,tsx,js,jsx}\"",
|
|
44
|
+
"prettier.base": "prettier \"./({bin,scripts,src,test}/**/*.{ts,tsx,js,jsx})|bin/stencil\"",
|
|
43
45
|
"prettier.dry-run": "npm run prettier.base -- --list-different",
|
|
44
46
|
"test": "jest --coverage",
|
|
45
47
|
"test.analysis": "cd test && npm run analysis.build-and-analyze",
|
|
@@ -49,7 +51,6 @@
|
|
|
49
51
|
"test.karma": "cd test/karma && npm ci && npm run karma",
|
|
50
52
|
"test.karma.prod": "cd test/karma && npm ci && npm run karma.prod",
|
|
51
53
|
"test.testing": "node scripts/test/validate-testing.js",
|
|
52
|
-
"test.sys.node": "echo test.sys.node",
|
|
53
54
|
"test.prod": "npm run test.dist && npm run test.end-to-end && npm run test.jest && npm run test.karma && npm run test.sys.node && npm run test.testing && npm run test.analysis",
|
|
54
55
|
"test.watch": "jest --watch",
|
|
55
56
|
"test.watch-all": "jest --watchAll --coverage"
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
"merge-source-map": "^1.1.0",
|
|
107
108
|
"mime-db": "^1.46.0",
|
|
108
109
|
"minimatch": "3.0.4",
|
|
109
|
-
"node-fetch": "2.6.
|
|
110
|
+
"node-fetch": "2.6.7",
|
|
110
111
|
"open": "8.2.1",
|
|
111
112
|
"open-in-editor": "2.2.0",
|
|
112
113
|
"parse5": "6.0.1",
|
|
@@ -118,7 +119,6 @@
|
|
|
118
119
|
"puppeteer": "~10.0.0",
|
|
119
120
|
"rollup": "2.42.3",
|
|
120
121
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
121
|
-
"semiver": "^1.1.0",
|
|
122
122
|
"semver": "7.3.4",
|
|
123
123
|
"sizzle": "^2.3.6",
|
|
124
124
|
"terser": "5.6.1",
|