@vue/runtime-core 3.5.43 → 3.5.45
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/dist/runtime-core.cjs.js +424 -162
- package/dist/runtime-core.cjs.prod.js +400 -148
- package/dist/runtime-core.d.ts +17 -5
- package/dist/runtime-core.esm-bundler.js +427 -165
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -42,7 +42,17 @@ declare enum SchedulerJobFlags {
|
|
|
42
42
|
* stabilizes (#1727).
|
|
43
43
|
*/
|
|
44
44
|
ALLOW_RECURSE = 4,
|
|
45
|
-
DISPOSED = 8
|
|
45
|
+
DISPOSED = 8,
|
|
46
|
+
/**
|
|
47
|
+
* A post job buffered by a suspense boundary is queued, not dropped, when
|
|
48
|
+
* the pending branch is discarded.
|
|
49
|
+
*/
|
|
50
|
+
REQUEUE_ON_SUSPENSE_DISCARD = 16,
|
|
51
|
+
/**
|
|
52
|
+
* A post job buffered by a suspense boundary is queued as soon as that
|
|
53
|
+
* boundary resolves.
|
|
54
|
+
*/
|
|
55
|
+
FLUSH_ON_SUSPENSE_RESOLVE = 32
|
|
46
56
|
}
|
|
47
57
|
interface SchedulerJob extends Function {
|
|
48
58
|
id?: number;
|
|
@@ -54,8 +64,9 @@ interface SchedulerJob extends Function {
|
|
|
54
64
|
/**
|
|
55
65
|
* Attached by renderer.ts when setting up a component's render effect
|
|
56
66
|
* Used to obtain component information when reporting max recursive updates.
|
|
67
|
+
* Also set on watcher jobs: null marks a watcher without an owner component.
|
|
57
68
|
*/
|
|
58
|
-
i?: ComponentInternalInstance;
|
|
69
|
+
i?: ComponentInternalInstance | null;
|
|
59
70
|
}
|
|
60
71
|
type SchedulerJobs = SchedulerJob | SchedulerJob[];
|
|
61
72
|
export declare function nextTick(): Promise<void>;
|
|
@@ -582,6 +593,7 @@ export interface SuspenseBoundary {
|
|
|
582
593
|
deps: number;
|
|
583
594
|
pendingId: number;
|
|
584
595
|
timeout: number;
|
|
596
|
+
timeoutTimer: ReturnType<typeof setTimeout> | undefined;
|
|
585
597
|
isInFallback: boolean;
|
|
586
598
|
isHydrating: boolean;
|
|
587
599
|
isUnmounted: boolean;
|
|
@@ -590,7 +602,7 @@ export interface SuspenseBoundary {
|
|
|
590
602
|
fallback(fallbackVNode: VNode): void;
|
|
591
603
|
move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;
|
|
592
604
|
next(): RendererNode | null;
|
|
593
|
-
registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn, optimized: boolean): void;
|
|
605
|
+
registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn, optimized: boolean, namespace: ElementNamespace): void;
|
|
594
606
|
unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
|
|
595
607
|
}
|
|
596
608
|
declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
|
|
@@ -645,7 +657,7 @@ export declare const BaseTransition: {
|
|
|
645
657
|
};
|
|
646
658
|
};
|
|
647
659
|
};
|
|
648
|
-
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance
|
|
660
|
+
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
649
661
|
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
|
|
650
662
|
export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
|
|
651
663
|
|
|
@@ -1626,7 +1638,7 @@ export declare enum ErrorCodes {
|
|
|
1626
1638
|
type ErrorTypes = LifecycleHooks | ErrorCodes | WatchErrorCodes;
|
|
1627
1639
|
export declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null | undefined, type: ErrorTypes, args?: unknown[]): any;
|
|
1628
1640
|
export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any;
|
|
1629
|
-
export declare function handleError(err: unknown, instance: ComponentInternalInstance | null | undefined, type: ErrorTypes, throwInDev?: boolean): void;
|
|
1641
|
+
export declare function handleError(err: unknown, instance: ComponentInternalInstance | null | undefined, type: ErrorTypes, throwInDev?: boolean, isAsyncError?: boolean): void;
|
|
1630
1642
|
|
|
1631
1643
|
export declare function initCustomFormatter(): void;
|
|
1632
1644
|
|