@casual-simulation/aux-runtime 4.1.3 → 4.1.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casual-simulation/aux-runtime",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "Runtime for AUX projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@casual-simulation/aux-common": "^4.1.
|
|
29
|
-
"@casual-simulation/aux-records": "^4.1.
|
|
28
|
+
"@casual-simulation/aux-common": "^4.1.4",
|
|
29
|
+
"@casual-simulation/aux-records": "^4.1.4",
|
|
30
30
|
"@casual-simulation/crypto": "^4.0.5",
|
|
31
31
|
"@casual-simulation/engine262": "0.0.1-4de2170374e22761996e46eb1362f4496ee57f8f",
|
|
32
32
|
"@casual-simulation/error-stack-parser": "^2.0.7",
|
|
@@ -15599,6 +15599,14 @@ interface Os {
|
|
|
15599
15599
|
*/
|
|
15600
15600
|
useDebugValue<T>(value: T, formatter?: (value: T) => any): void;
|
|
15601
15601
|
|
|
15602
|
+
/**
|
|
15603
|
+
* Returns the current context value, as given by the nearest context provider for the given context.
|
|
15604
|
+
* When the provider updates, this Hook will trigger a rerender with the latest context value.
|
|
15605
|
+
*
|
|
15606
|
+
* @param context The context you want to use
|
|
15607
|
+
*/
|
|
15608
|
+
useContext<T>(context: PreactContext<T>): T;
|
|
15609
|
+
|
|
15602
15610
|
useErrorBoundary(
|
|
15603
15611
|
callback?: (error: any) => Promise<void> | void
|
|
15604
15612
|
): [any, () => void];
|