@stencil/core 2.12.1 → 2.14.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 +15 -6
- package/cli/index.js +15 -6
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +2855 -4909
- package/compiler/lib.dom.iterable.d.ts +42 -66
- package/compiler/lib.es2015.core.d.ts +60 -18
- package/compiler/lib.es2015.iterable.d.ts +3 -11
- package/compiler/lib.es2015.promise.d.ts +2 -74
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2018.intl.d.ts +23 -11
- package/compiler/lib.es2019.string.d.ts +8 -2
- package/compiler/lib.es2020.bigint.d.ts +2 -2
- package/compiler/lib.es2020.intl.d.ts +173 -114
- package/compiler/lib.es2020.promise.d.ts +2 -3
- package/compiler/lib.es2021.d.ts +1 -0
- package/compiler/lib.es2021.intl.d.ts +44 -0
- package/compiler/lib.es2021.promise.d.ts +8 -1
- package/compiler/lib.es5.d.ts +112 -52
- package/compiler/lib.esnext.intl.d.ts +1 -10
- package/compiler/lib.webworker.d.ts +1013 -1267
- package/compiler/lib.webworker.iterable.d.ts +28 -34
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +399 -78
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +2 -1
- package/dev-server/client/index.js +1 -1
- 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 +16 -5
- 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 +28 -2
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +5 -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 +3 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/index.js +3 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +29 -2
- package/mock-doc/index.d.ts +4 -3
- package/mock-doc/index.js +29 -2
- package/mock-doc/package.json +1 -1
- package/package.json +7 -8
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +9 -6
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +365 -345
- package/testing/jest/jest-config.d.ts +11 -0
- package/testing/jest/jest-runner.d.ts +4 -0
- package/testing/package.json +1 -1
|
@@ -26,10 +26,6 @@ interface Cache {
|
|
|
26
26
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
interface CanvasPathDrawingStyles {
|
|
30
|
-
setLineDash(segments: Iterable<number>): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
29
|
interface DOMStringList {
|
|
34
30
|
[Symbol.iterator](): IterableIterator<string>;
|
|
35
31
|
}
|
|
@@ -38,42 +34,31 @@ interface FileList {
|
|
|
38
34
|
[Symbol.iterator](): IterableIterator<File>;
|
|
39
35
|
}
|
|
40
36
|
|
|
37
|
+
interface FontFaceSet extends Set<FontFace> {
|
|
38
|
+
}
|
|
39
|
+
|
|
41
40
|
interface FormData {
|
|
42
41
|
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
|
43
|
-
/**
|
|
44
|
-
* Returns an array of key, value pairs for every entry in the list.
|
|
45
|
-
*/
|
|
42
|
+
/** Returns an array of key, value pairs for every entry in the list. */
|
|
46
43
|
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
|
47
|
-
/**
|
|
48
|
-
* Returns a list of keys in the list.
|
|
49
|
-
*/
|
|
44
|
+
/** Returns a list of keys in the list. */
|
|
50
45
|
keys(): IterableIterator<string>;
|
|
51
|
-
/**
|
|
52
|
-
* Returns a list of values in the list.
|
|
53
|
-
*/
|
|
46
|
+
/** Returns a list of values in the list. */
|
|
54
47
|
values(): IterableIterator<FormDataEntryValue>;
|
|
55
48
|
}
|
|
56
49
|
|
|
57
50
|
interface Headers {
|
|
58
51
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
59
|
-
/**
|
|
60
|
-
* Returns an iterator allowing to go through all key/value pairs contained in this object.
|
|
61
|
-
*/
|
|
52
|
+
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
|
|
62
53
|
entries(): IterableIterator<[string, string]>;
|
|
63
|
-
/**
|
|
64
|
-
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
|
|
65
|
-
*/
|
|
54
|
+
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
|
|
66
55
|
keys(): IterableIterator<string>;
|
|
67
|
-
/**
|
|
68
|
-
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
|
|
69
|
-
*/
|
|
56
|
+
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
|
|
70
57
|
values(): IterableIterator<string>;
|
|
71
58
|
}
|
|
72
59
|
|
|
73
60
|
interface IDBDatabase {
|
|
74
|
-
/**
|
|
75
|
-
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
76
|
-
*/
|
|
61
|
+
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
77
62
|
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
|
|
78
63
|
}
|
|
79
64
|
|
|
@@ -86,19 +71,28 @@ interface IDBObjectStore {
|
|
|
86
71
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
87
72
|
}
|
|
88
73
|
|
|
74
|
+
interface MessageEvent<T = any> {
|
|
75
|
+
/** @deprecated */
|
|
76
|
+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface SubtleCrypto {
|
|
80
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
81
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
|
|
82
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
83
|
+
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
84
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
85
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
86
|
+
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
89
|
interface URLSearchParams {
|
|
90
90
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
91
|
-
/**
|
|
92
|
-
* Returns an array of key, value pairs for every entry in the search params.
|
|
93
|
-
*/
|
|
91
|
+
/** Returns an array of key, value pairs for every entry in the search params. */
|
|
94
92
|
entries(): IterableIterator<[string, string]>;
|
|
95
|
-
/**
|
|
96
|
-
* Returns a list of keys in the search params.
|
|
97
|
-
*/
|
|
93
|
+
/** Returns a list of keys in the search params. */
|
|
98
94
|
keys(): IterableIterator<string>;
|
|
99
|
-
/**
|
|
100
|
-
* Returns a list of values in the search params.
|
|
101
|
-
*/
|
|
95
|
+
/** Returns a list of values in the search params. */
|
|
102
96
|
values(): IterableIterator<string>;
|
|
103
97
|
}
|
|
104
98
|
|