@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.
Files changed (41) hide show
  1. package/bin/stencil +3 -3
  2. package/cli/index.cjs +3 -5
  3. package/cli/index.d.ts +3 -3
  4. package/cli/index.js +3 -5
  5. package/cli/package.json +1 -1
  6. package/compiler/package.json +1 -1
  7. package/compiler/stencil.js +190 -308
  8. package/compiler/stencil.min.js +2 -2
  9. package/dependencies.json +1 -1
  10. package/dev-server/client/index.js +1 -1
  11. package/dev-server/client/package.json +1 -1
  12. package/dev-server/connector.html +2 -2
  13. package/dev-server/index.js +1 -1
  14. package/dev-server/package.json +1 -1
  15. package/dev-server/server-process.js +2 -2
  16. package/internal/app-data/package.json +1 -1
  17. package/internal/client/css-shim.js +1 -1
  18. package/internal/client/dom.js +1 -1
  19. package/internal/client/index.js +1 -1
  20. package/internal/client/package.json +1 -1
  21. package/internal/client/patch-browser.js +1 -1
  22. package/internal/client/patch-esm.js +1 -1
  23. package/internal/client/shadow-css.js +1 -1
  24. package/internal/hydrate/package.json +1 -1
  25. package/internal/package.json +1 -1
  26. package/internal/stencil-private.d.ts +1 -0
  27. package/internal/stencil-public-compiler.d.ts +31 -17
  28. package/internal/stencil-public-runtime.d.ts +12 -12
  29. package/internal/testing/package.json +1 -1
  30. package/mock-doc/index.cjs +1 -1
  31. package/mock-doc/index.js +1 -1
  32. package/mock-doc/package.json +1 -1
  33. package/package.json +3 -3
  34. package/screenshot/package.json +1 -1
  35. package/sys/node/index.js +11 -11
  36. package/sys/node/package.json +1 -1
  37. package/sys/node/worker.js +1 -1
  38. package/testing/index.js +597 -410
  39. package/testing/package.json +1 -1
  40. package/testing/puppeteer/puppeteer-declarations.d.ts +1 -27
  41. package/testing/puppeteer/puppeteer-element.d.ts +3 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "2.20.0",
3
+ "version": "3.0.0-alpha.1",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,32 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { EventInitDict, EventSpy, ScreenshotDiff, ScreenshotOptions } from '@stencil/core/internal';
3
- import type { ClickOptions, HTTPResponse as PuppeteerHTTPResponse, Page, ScreenshotOptions as PuppeteerScreenshotOptions, WaitForOptions } from 'puppeteer';
4
- /**
5
- * This type helps with declaration merging as a part of Stencil's migration from Puppeteer v5.4.3 to v10.0.0. In
6
- * v5.4.3, `HttpResponse` was an interface whereas v10.0.0 declares it as a class. It is redeclared here to help teams
7
- * migrate to a newer minor version of Stencil without requiring a Puppeteer upgrade/major version of Stencil. This type
8
- * should be removed as a part of the Stencil 3.0 release.
9
- */
10
- export declare type HTTPResponse = PuppeteerHTTPResponse;
11
- /**
12
- * These types help with declaration merging as a part of Stencil's migration from Puppeteer v5.4.3 to v10.0.0. In
13
- * v10.0.0, `WaitForOptions` is a renamed version of `NavigationOptions` from v5.4.3, who has had its type hierarchy
14
- * flattened.
15
- *
16
- * See {@link https://github.com/DefinitelyTyped/DefinitelyTyped/blob/8290e943f6b398acf39ee1b2e486824144e15bc8/types/puppeteer/index.d.ts#L605-L622}
17
- * for the v5.4.3 types.
18
- *
19
- * These types are redeclared here to help teams migrate to a newer minor version of Stencil without requiring a
20
- * Puppeteer upgrade/major version of Stencil. These type additions should be removed as a part of the Stencil 3.0
21
- * release.
22
- */
23
- declare module 'puppeteer' {
24
- type LifeCycleEvent = 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2';
25
- interface WaitForOptions {
26
- timeout?: number;
27
- waitUntil?: LifeCycleEvent | LifeCycleEvent[];
28
- }
29
- }
3
+ import type { ClickOptions, HTTPResponse, Page, ScreenshotOptions as PuppeteerScreenshotOptions, WaitForOptions } from 'puppeteer';
30
4
  /**
31
5
  * This type was once exported by Puppeteer, but has since moved to an object literal in (Puppeteer’s) native types.
32
6
  * Re-create it here as a named type to use across multiple Stencil-related testing files.
@@ -11,7 +11,7 @@ export declare class E2EElement extends MockHTMLElement implements pd.E2EElement
11
11
  constructor(_page: pd.E2EPageInternal, _elmHandle: puppeteer.ElementHandle);
12
12
  find(selector: string): Promise<E2EElement>;
13
13
  findAll(selector: string): Promise<E2EElement[]>;
14
- callMethod(methodName: string, ...methodArgs: any[]): Promise<unknown>;
14
+ callMethod(methodName: string, ...methodArgs: any[]): Promise<any>;
15
15
  triggerEvent(eventName: string, eventInitDict?: EventInitDict): void;
16
16
  spyOnEvent(eventName: string): Promise<EventSpy>;
17
17
  click(options?: puppeteer.ClickOptions): Promise<void>;
@@ -30,7 +30,7 @@ export declare class E2EElement extends MockHTMLElement implements pd.E2EElement
30
30
  type(text: string, options?: {
31
31
  delay: number;
32
32
  }): Promise<void>;
33
- getProperty(propertyName: string): Promise<unknown>;
33
+ getProperty(propertyName: string): Promise<any>;
34
34
  setProperty(propertyName: string, value: any): void;
35
35
  getAttribute(name: string): any;
36
36
  setAttribute(name: string, value: any): void;
@@ -58,7 +58,7 @@ export declare class E2EElement extends MockHTMLElement implements pd.E2EElement
58
58
  get title(): string;
59
59
  set title(value: string);
60
60
  getComputedStyle(pseudoElt?: string | null): Promise<any>;
61
- e2eRunActions(): Promise<unknown>;
61
+ e2eRunActions(): Promise<any>;
62
62
  e2eSync(): Promise<void>;
63
63
  private _validate;
64
64
  e2eDispose(): Promise<void>;