@stencil/core 2.8.0 → 2.10.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 +234 -209
- package/cli/index.js +234 -209
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +263 -648
- package/compiler/lib.dom.iterable.d.ts +1 -5
- package/compiler/lib.es2015.core.d.ts +2 -2
- package/compiler/lib.es2015.iterable.d.ts +1 -1
- package/compiler/lib.es2015.symbol.wellknown.d.ts +10 -10
- package/compiler/lib.es2018.asynciterable.d.ts +1 -1
- package/compiler/lib.es2020.bigint.d.ts +1 -1
- package/compiler/lib.es2020.intl.d.ts +6 -7
- package/compiler/lib.es2020.symbol.wellknown.d.ts +1 -1
- package/compiler/lib.es2021.d.ts +24 -0
- package/compiler/lib.es2021.full.d.ts +25 -0
- package/compiler/lib.es2021.promise.d.ts +43 -0
- package/compiler/lib.es2021.string.d.ts +35 -0
- package/compiler/lib.es2021.weakref.d.ts +75 -0
- package/compiler/lib.es5.d.ts +9 -9
- package/compiler/lib.esnext.d.ts +1 -4
- package/compiler/lib.esnext.promise.d.ts +26 -26
- package/compiler/lib.esnext.string.d.ts +18 -18
- package/compiler/lib.esnext.weakref.d.ts +58 -58
- package/compiler/lib.webworker.d.ts +98 -153
- package/compiler/lib.webworker.iterable.d.ts +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +923 -234
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +6 -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/index.cjs +1 -0
- package/internal/app-data/index.js +1 -0
- 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 +188 -99
- 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/index.js +64 -39
- package/internal/hydrate/package.json +1 -1
- package/internal/index.js +1 -0
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +130 -6
- package/internal/stencil-public-compiler.d.ts +20 -2
- package/internal/testing/index.js +78 -50
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +4 -1
- package/mock-doc/index.d.ts +7 -6
- package/mock-doc/index.js +4 -1
- package/mock-doc/package.json +1 -1
- package/package.json +11 -5
- package/readme.md +2 -2
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +4435 -425
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +24 -19
- package/testing/mocks.d.ts +1 -5
- package/testing/package.json +1 -1
- package/testing/testing-sys.d.ts +6 -1
- package/bin/cli.ts +0 -20
- package/screenshot/index.js.map +0 -1
- package/sys/deno/index.js +0 -1791
- package/sys/deno/node-compat.js +0 -2654
- package/sys/deno/worker.js +0 -44
|
@@ -15,61 +15,61 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
interface WeakRef<T extends object> {
|
|
22
|
-
readonly [Symbol.toStringTag]: "WeakRef";
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Returns the WeakRef instance's target object, or undefined if the target object has been
|
|
26
|
-
* reclaimed.
|
|
27
|
-
*/
|
|
28
|
-
deref(): T | undefined;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface WeakRefConstructor {
|
|
32
|
-
readonly prototype: WeakRef<any>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Creates a WeakRef instance for the given target object.
|
|
36
|
-
* @param target The target object for the WeakRef instance.
|
|
37
|
-
*/
|
|
38
|
-
new<T extends object>(target?: T): WeakRef<T>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare var WeakRef: WeakRefConstructor;
|
|
42
|
-
|
|
43
|
-
interface FinalizationRegistry {
|
|
44
|
-
readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Registers an object with the registry.
|
|
48
|
-
* @param target The target object to register.
|
|
49
|
-
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
|
|
50
|
-
* target object.
|
|
51
|
-
* @param unregisterToken The token to pass to the unregister method to unregister the target
|
|
52
|
-
* object. If provided (and not undefined), this must be an object. If not provided, the target
|
|
53
|
-
* cannot be unregistered.
|
|
54
|
-
*/
|
|
55
|
-
register(target: object, heldValue: any, unregisterToken?: object): void;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Unregisters an object from the registry.
|
|
59
|
-
* @param unregisterToken The token that was used as the unregisterToken argument when calling
|
|
60
|
-
* register to register the target object.
|
|
61
|
-
*/
|
|
62
|
-
unregister(unregisterToken: object): void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface FinalizationRegistryConstructor {
|
|
66
|
-
readonly prototype: FinalizationRegistry;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Creates a finalization registry with an associated cleanup callback
|
|
70
|
-
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
|
|
71
|
-
*/
|
|
72
|
-
new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare var FinalizationRegistry: FinalizationRegistryConstructor;
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface WeakRef<T extends object> {
|
|
22
|
+
readonly [Symbol.toStringTag]: "WeakRef";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns the WeakRef instance's target object, or undefined if the target object has been
|
|
26
|
+
* reclaimed.
|
|
27
|
+
*/
|
|
28
|
+
deref(): T | undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface WeakRefConstructor {
|
|
32
|
+
readonly prototype: WeakRef<any>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Creates a WeakRef instance for the given target object.
|
|
36
|
+
* @param target The target object for the WeakRef instance.
|
|
37
|
+
*/
|
|
38
|
+
new<T extends object>(target?: T): WeakRef<T>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare var WeakRef: WeakRefConstructor;
|
|
42
|
+
|
|
43
|
+
interface FinalizationRegistry {
|
|
44
|
+
readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Registers an object with the registry.
|
|
48
|
+
* @param target The target object to register.
|
|
49
|
+
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
|
|
50
|
+
* target object.
|
|
51
|
+
* @param unregisterToken The token to pass to the unregister method to unregister the target
|
|
52
|
+
* object. If provided (and not undefined), this must be an object. If not provided, the target
|
|
53
|
+
* cannot be unregistered.
|
|
54
|
+
*/
|
|
55
|
+
register(target: object, heldValue: any, unregisterToken?: object): void;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Unregisters an object from the registry.
|
|
59
|
+
* @param unregisterToken The token that was used as the unregisterToken argument when calling
|
|
60
|
+
* register to register the target object.
|
|
61
|
+
*/
|
|
62
|
+
unregister(unregisterToken: object): void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface FinalizationRegistryConstructor {
|
|
66
|
+
readonly prototype: FinalizationRegistry;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Creates a finalization registry with an associated cleanup callback
|
|
70
|
+
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
|
|
71
|
+
*/
|
|
72
|
+
new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare var FinalizationRegistry: FinalizationRegistryConstructor;
|