@casual-simulation/aux-runtime 4.1.6-alpha.22774766502 → 4.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casual-simulation/aux-runtime",
3
- "version": "4.1.6-alpha.22774766502",
3
+ "version": "4.2.0",
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.6-alpha.22774766502",
29
- "@casual-simulation/aux-records": "^4.1.6-alpha.22774766502",
28
+ "@casual-simulation/aux-common": "^4.2.0",
29
+ "@casual-simulation/aux-records": "^4.2.0",
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",
@@ -53,7 +53,7 @@
53
53
  "lru-cache": "^5.1.1",
54
54
  "luxon": "3.4.4",
55
55
  "mime": "2.4.6",
56
- "preact": "10.19.6",
56
+ "preact": "10.28.4",
57
57
  "rxjs": "8.0.0-alpha.14",
58
58
  "seedrandom": "3.0.5",
59
59
  "stackframe": "^1.2.0",
@@ -2611,21 +2611,21 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
2611
2611
  render: typeof render;
2612
2612
  createRef: typeof createRef;
2613
2613
  createContext: typeof createContext;
2614
- useState<S>(initialState: S | (() => S)): [S, hooks.StateUpdater<S>];
2615
- useState<S = undefined>(): [S | undefined, hooks.StateUpdater<S | undefined>];
2614
+ useState<S>(initialState: S | (() => S)): [S, hooks.Dispatch<hooks.StateUpdater<S>>];
2615
+ useState<S = undefined>(): [S | undefined, hooks.Dispatch<hooks.StateUpdater<S | undefined>>];
2616
2616
  useReducer<S, A>(reducer: hooks.Reducer<S, A>, initialState: S): [S, hooks.Dispatch<A>];
2617
2617
  useReducer<S, A, I>(reducer: hooks.Reducer<S, A>, initialArg: I, init: (arg: I) => S): [S, hooks.Dispatch<A>];
2618
2618
  useRef<T>(initialValue: T): hooks.MutableRef<T>;
2619
- useRef<T>(initialValue: T | null): hooks.Ref<T>;
2619
+ useRef<T>(initialValue: T | null): compat.RefObject<T>;
2620
2620
  useRef<T = undefined>(): hooks.MutableRef<T | undefined>;
2621
2621
  useEffect(effect: hooks.EffectCallback, inputs?: hooks.Inputs): void;
2622
- useImperativeHandle<T, R extends T>(ref: import("preact").Ref<T>, create: () => R, inputs?: hooks.Inputs): void;
2622
+ useImperativeHandle<T, R extends T>(ref: compat.Ref<T>, create: () => R, inputs?: hooks.Inputs): void;
2623
2623
  useLayoutEffect(effect: hooks.EffectCallback, inputs?: hooks.Inputs): void;
2624
2624
  useCallback<T extends Function>(callback: T, inputs: hooks.Inputs): T;
2625
2625
  useMemo<T>(factory: () => T, inputs: hooks.Inputs | undefined): T;
2626
2626
  useContext<T>(context: import("preact").PreactContext<T>): T;
2627
2627
  useDebugValue<T>(value: T, formatter?: (value: T) => any): void;
2628
- useErrorBoundary(callback?: (error: any, errorInfo: import("preact").ErrorInfo) => Promise<void> | void): [any, () => void];
2628
+ useErrorBoundary(callback?: (error: any, errorInfo: compat.ErrorInfo) => Promise<void> | void): [any, () => void];
2629
2629
  useId(): string;
2630
2630
  };
2631
2631
  appCompat: {
@@ -2633,17 +2633,18 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
2633
2633
  useDeferredValue<T = any>(val: T): T;
2634
2634
  useSyncExternalStore<T>(subscribe: (flush: () => void) => () => void, getSnapshot: () => T): T;
2635
2635
  startTransition(cb: () => void): void;
2636
- createPortal(vnode: preact.VNode, container: preact.ContainerNode): preact.VNode<any>;
2637
- render(vnode: preact.VNode<any>, parent: preact.ContainerNode, callback?: () => void): compat.Component | null;
2638
- hydrate(vnode: preact.VNode<any>, parent: preact.ContainerNode, callback?: () => void): compat.Component | null;
2636
+ createPortal(vnode: preact.ComponentChildren, container: preact.ContainerNode): preact.VNode<any>;
2637
+ render(vnode: preact.ComponentChild, parent: preact.ContainerNode, callback?: () => void): compat.Component | null;
2638
+ hydrate(vnode: preact.ComponentChild, parent: preact.ContainerNode, callback?: () => void): compat.Component | null;
2639
2639
  unmountComponentAtNode(container: preact.ContainerNode): boolean;
2640
2640
  createFactory(type: preact.VNode<any>["type"]): (props?: any, ...children: preact.ComponentChildren[]) => preact.VNode<any>;
2641
2641
  isValidElement(element: any): boolean;
2642
2642
  isFragment(element: any): boolean;
2643
+ isMemo(element: any): boolean;
2643
2644
  findDOMNode(component: preact.Component | Element): Element | null;
2644
2645
  memo<P = {}>(component: preact.FunctionalComponent<P>, comparer?: (prev: P, next: P) => boolean): preact.FunctionComponent<P>;
2645
2646
  memo<C extends preact.FunctionalComponent<any>>(component: C, comparer?: (prev: preact.ComponentProps<C>, next: preact.ComponentProps<C>) => boolean): C;
2646
- forwardRef<R, P = {}>(fn: compat.ForwardFn<P, R>): preact.FunctionalComponent<compat.PropsWithoutRef<P> & {
2647
+ forwardRef<R, P = {}>(fn: compat.ForwardRefRenderFunction<R, P>): preact.FunctionalComponent<compat.PropsWithoutRef<P> & {
2647
2648
  ref?: preact.Ref<R>;
2648
2649
  }>;
2649
2650
  flushSync<R>(fn: () => R): R;