@stencil/core 2.17.4 → 2.18.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/cli/index.cjs +285 -220
- package/cli/index.d.ts +1 -0
- package/cli/index.js +285 -220
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +620 -89
- package/compiler/lib.dom.iterable.d.ts +27 -3
- package/compiler/lib.es2015.core.d.ts +3 -3
- package/compiler/lib.es2015.iterable.d.ts +2 -1
- package/compiler/lib.es2015.reflect.d.ts +1 -1
- package/compiler/lib.es2020.bigint.d.ts +7 -5
- package/compiler/lib.es2020.d.ts +2 -0
- package/compiler/lib.es2020.date.d.ts +44 -0
- package/compiler/lib.es2020.intl.d.ts +51 -11
- package/compiler/lib.es2020.number.d.ts +30 -0
- package/compiler/lib.es2021.intl.d.ts +106 -4
- package/compiler/lib.es2022.array.d.ts +123 -0
- package/compiler/lib.es2022.d.ts +26 -0
- package/compiler/lib.es2022.error.d.ts +75 -0
- package/compiler/lib.es2022.full.d.ts +25 -0
- package/compiler/lib.es2022.intl.d.ts +111 -0
- package/compiler/lib.es2022.object.d.ts +28 -0
- package/compiler/lib.es2022.string.d.ts +27 -0
- package/compiler/lib.es5.d.ts +25 -19
- package/compiler/lib.esnext.d.ts +1 -1
- package/compiler/lib.esnext.intl.d.ts +4 -1
- package/compiler/lib.webworker.d.ts +236 -40
- package/compiler/lib.webworker.iterable.d.ts +10 -3
- package/compiler/package.json +1 -1
- package/compiler/stencil.d.ts +2 -2
- package/compiler/stencil.js +47263 -45624
- package/compiler/stencil.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +218 -0
- package/dependencies.json +10 -1
- package/dev-server/client/index.d.ts +2 -2
- package/dev-server/client/index.js +241 -241
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.d.ts +1 -1
- package/dev-server/index.js +2 -2
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +1198 -1167
- 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 +1022 -824
- 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/index.js +119 -119
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/hydrate/runner.js +100 -100
- package/internal/package.json +1 -1
- package/internal/stencil-core/index.d.ts +8 -10
- package/internal/stencil-private.d.ts +77 -138
- package/internal/stencil-public-compiler.d.ts +44 -10
- package/internal/stencil-public-runtime.d.ts +15 -4
- package/internal/testing/index.js +148 -148
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +534 -518
- package/mock-doc/index.d.ts +13 -12
- package/mock-doc/index.js +534 -518
- package/mock-doc/package.json +1 -1
- package/package.json +23 -32
- package/readme.md +27 -33
- package/screenshot/index.d.ts +1 -1
- package/screenshot/index.js +13 -13
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +983 -849
- package/sys/node/glob.js +1 -1
- package/sys/node/index.d.ts +2 -0
- package/sys/node/index.js +374 -373
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +6 -6
- package/testing/index.js +427 -441
- package/testing/jest/jest-config.d.ts +1 -1
- package/testing/matchers/index.d.ts +3 -3
- package/testing/mock-fetch.d.ts +1 -1
- package/testing/mocks.d.ts +2 -2
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-element.d.ts +2 -2
- package/testing/puppeteer/puppeteer-events.d.ts +1 -1
- package/testing/testing-logger.d.ts +1 -1
- package/testing/testing-utils.d.ts +5 -4
- package/testing/testing.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as d from '@stencil/core/internal';
|
|
2
1
|
import type { Config } from '@jest/types';
|
|
2
|
+
import type * as d from '@stencil/core/internal';
|
|
3
3
|
/**
|
|
4
4
|
* Builds the `argv` to be used when programmatically invoking the Jest CLI
|
|
5
5
|
* @param config the Stencil config to use while generating Jest CLI arguments
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toEqualAttribute, toEqualAttributes, toHaveAttribute } from './attributes';
|
|
2
|
-
import { toHaveReceivedEvent, toHaveReceivedEventDetail, toHaveReceivedEventTimes, toHaveFirstReceivedEventDetail, toHaveNthReceivedEventDetail } from './events';
|
|
3
|
-
import { toEqualHtml, toEqualLightHtml } from './html';
|
|
4
|
-
import { toEqualText } from './text';
|
|
5
2
|
import { toHaveClass, toHaveClasses, toMatchClasses } from './class-list';
|
|
3
|
+
import { toHaveFirstReceivedEventDetail, toHaveNthReceivedEventDetail, toHaveReceivedEvent, toHaveReceivedEventDetail, toHaveReceivedEventTimes } from './events';
|
|
4
|
+
import { toEqualHtml, toEqualLightHtml } from './html';
|
|
6
5
|
import { toMatchScreenshot } from './screenshot';
|
|
6
|
+
import { toEqualText } from './text';
|
|
7
7
|
export declare const expectExtend: {
|
|
8
8
|
toEqualAttribute: typeof toEqualAttribute;
|
|
9
9
|
toEqualAttributes: typeof toEqualAttributes;
|
package/testing/mock-fetch.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export declare const mockFetch: {
|
|
|
8
8
|
reject(rsp?: MockResponse, url?: string): void;
|
|
9
9
|
reset: typeof mockFetchReset;
|
|
10
10
|
};
|
|
11
|
-
export { MockHeaders, MockRequest,
|
|
11
|
+
export { MockHeaders, MockRequest, MockRequestInfo, MockRequestInit, MockResponse, MockResponseInit, } from '../mock-doc';
|
package/testing/mocks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BuildCtx, Cache, CompilerCtx, Config, LoadConfigInit,
|
|
2
|
-
import { TestingSystem } from './testing-sys';
|
|
1
|
+
import type { BuildCtx, Cache, CompilerCtx, Config, LoadConfigInit, Module, UnvalidatedConfig, ValidatedConfig } from '@stencil/core/internal';
|
|
3
2
|
import { TestingLogger } from './testing-logger';
|
|
3
|
+
import { TestingSystem } from './testing-sys';
|
|
4
4
|
/**
|
|
5
5
|
* Creates a mock instance of an internal, validated Stencil configuration object
|
|
6
6
|
* the caller
|
package/testing/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EventInitDict } from '@stencil/core/internal';
|
|
2
|
-
import
|
|
2
|
+
import { MockHTMLElement } from '@stencil/core/mock-doc';
|
|
3
3
|
import type * as puppeteer from 'puppeteer';
|
|
4
|
+
import type * as pd from './puppeteer-declarations';
|
|
4
5
|
import { EventSpy } from './puppeteer-events';
|
|
5
|
-
import { MockHTMLElement } from '@stencil/core/mock-doc';
|
|
6
6
|
export declare class E2EElement extends MockHTMLElement implements pd.E2EElementInternal {
|
|
7
7
|
private _page;
|
|
8
8
|
private _elmHandle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SerializedEvent } from '@stencil/core/internal';
|
|
2
|
-
import type * as pd from './puppeteer-declarations';
|
|
3
2
|
import type * as puppeteer from 'puppeteer';
|
|
3
|
+
import type * as pd from './puppeteer-declarations';
|
|
4
4
|
export declare function initPageEvents(page: pd.E2EPageInternal): Promise<void>;
|
|
5
5
|
export declare function waitForEvent(page: pd.E2EPageInternal, eventName: string, elementHandle: puppeteer.ElementHandle): Promise<any>;
|
|
6
6
|
export declare class EventSpy implements EventSpy {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Diagnostic, Logger,
|
|
1
|
+
import type { Diagnostic, Logger, LoggerTimeSpan, LogLevel } from '@stencil/core/internal';
|
|
2
2
|
export declare class TestingLogger implements Logger {
|
|
3
3
|
private isEnabled;
|
|
4
4
|
setLevel(_level: LogLevel): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
2
|
import type * as d from '@stencil/core/internal';
|
|
3
|
+
import { InMemoryFileSystem } from '../compiler/sys/in-memory-fs';
|
|
3
4
|
export declare function shuffleArray(array: any[]): any[];
|
|
4
5
|
/**
|
|
5
6
|
* Testing utility to validate the existence of some provided file paths using a specific file system
|
|
@@ -8,7 +9,7 @@ export declare function shuffleArray(array: any[]): any[];
|
|
|
8
9
|
* @param filePaths the paths to validate
|
|
9
10
|
* @throws when one or more of the provided file paths cannot be found
|
|
10
11
|
*/
|
|
11
|
-
export declare function expectFilesExist(fs:
|
|
12
|
+
export declare function expectFilesExist(fs: InMemoryFileSystem, filePaths: string[]): void;
|
|
12
13
|
/**
|
|
13
14
|
* Testing utility to validate the non-existence of some provided file paths using a specific file system
|
|
14
15
|
*
|
|
@@ -16,9 +17,9 @@ export declare function expectFilesExist(fs: d.InMemoryFileSystem, filePaths: st
|
|
|
16
17
|
* @param filePaths the paths to validate
|
|
17
18
|
* @throws when one or more of the provided file paths is found
|
|
18
19
|
*/
|
|
19
|
-
export declare function expectFilesDoNotExist(fs:
|
|
20
|
-
export declare function getAppScriptUrl(config: d.
|
|
21
|
-
export declare function getAppStyleUrl(config: d.
|
|
20
|
+
export declare function expectFilesDoNotExist(fs: InMemoryFileSystem, filePaths: string[]): void;
|
|
21
|
+
export declare function getAppScriptUrl(config: d.ValidatedConfig, browserUrl: string): string;
|
|
22
|
+
export declare function getAppStyleUrl(config: d.ValidatedConfig, browserUrl: string): string;
|
|
22
23
|
/**
|
|
23
24
|
* Utility for silencing `console` functions in tests.
|
|
24
25
|
*
|
package/testing/testing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Testing, ValidatedConfig } from '@stencil/core/internal';
|
|
2
2
|
export declare const createTesting: (config: ValidatedConfig) => Promise<Testing>;
|