@qwik.dev/core 2.0.0-beta.43 → 2.0.0-beta.47
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/build.d.ts +1 -1
- package/dist/async-local-storage.d.ts +3 -0
- package/dist/async-local-storage.mjs +8 -0
- package/dist/async-local-storage.node.mjs +6 -0
- package/dist/backpatch/package.json +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +26 -5
- package/dist/core-internal.d.ts +223 -162
- package/dist/core.min.mjs +10 -11
- package/dist/core.mjs +6268 -6181
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +5104 -5104
- package/dist/error-swap-executor.debug.js +2 -2
- package/dist/error-swap-executor.js +1 -1
- package/dist/insights.d.ts +2 -2
- package/dist/jsx-runtime/index.d.ts +1 -1
- package/dist/loader/index.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.d.ts +240 -11
- package/dist/optimizer.mjs +879 -656
- package/dist/out-of-order-executor.debug.js +2 -2
- package/dist/preloader.mjs +77 -69
- package/dist/qwikloader.debug.js +12 -10
- package/dist/qwikloader.js +1 -1
- package/dist/server-modules.d.ts +7 -7
- package/dist/server.d.ts +17 -17
- package/dist/server.mjs +99 -66
- package/dist/server.prod.mjs +485 -448
- package/dist/starters/adapters/bun/adapters/bun/vite.config.ts +0 -1
- package/dist/testing/index.d.ts +26 -30
- package/dist/testing/index.mjs +7560 -7335
- package/dist/testing/package.json +1 -1
- package/dist/ts-optimizer.mjs +10477 -0
- package/dist/worker/index.mjs +12 -10
- package/dist/worker/package.json +1 -1
- package/dist/worker/worker.shared.js +3 -3
- package/handlers.mjs +6 -6
- package/jsx-dev-runtime.d.ts +1 -1
- package/jsx-runtime.d.ts +1 -1
- package/loader.d.ts +1 -1
- package/optimizer.d.ts +1 -1
- package/package.json +22 -7
- package/public.d.ts +6 -6
- package/server.d.ts +1 -1
- package/testing.d.ts +1 -1
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ClientContainer } from '
|
|
2
|
-
import type { ClientContainer as ClientContainer_2 } from '../internal';
|
|
3
|
-
import type { CorePlatform } from '
|
|
4
|
-
import type { _DomContainer } from '../internal';
|
|
5
|
-
import type { _ElementVNode } from '../internal';
|
|
6
|
-
import type { JSXNodeInternal } from '../internal';
|
|
7
|
-
import { JSXOutput } from '
|
|
8
|
-
import type { _QDocument } from '../internal';
|
|
9
|
-
import { RenderResult } from '
|
|
10
|
-
import { StreamWriter } from '
|
|
11
|
-
import type { _Stringifiable } from '../internal';
|
|
12
|
-
import type { _VirtualVNode } from '../internal';
|
|
13
|
-
import type { _VNode } from '../internal';
|
|
1
|
+
import { ClientContainer } from '../core-internal.js';
|
|
2
|
+
import type { ClientContainer as ClientContainer_2 } from '../core-internal.js';
|
|
3
|
+
import type { CorePlatform } from '../core-internal.js';
|
|
4
|
+
import type { _DomContainer } from '../core-internal.js';
|
|
5
|
+
import type { _ElementVNode } from '../core-internal.js';
|
|
6
|
+
import type { JSXNodeInternal } from '../core-internal.js';
|
|
7
|
+
import { JSXOutput } from '../core-internal.js';
|
|
8
|
+
import type { _QDocument } from '../core-internal.js';
|
|
9
|
+
import { RenderResult } from '../core-internal.js';
|
|
10
|
+
import { StreamWriter } from '../core-internal.js';
|
|
11
|
+
import type { _Stringifiable } from '../core-internal.js';
|
|
12
|
+
import type { _VirtualVNode } from '../core-internal.js';
|
|
13
|
+
import type { _VNode } from '../core-internal.js';
|
|
14
14
|
|
|
15
15
|
declare interface AddRootFn {
|
|
16
16
|
(obj: unknown, returnRef?: never): number;
|
|
@@ -43,6 +43,13 @@ declare type BivariantQrlFn<ARGS extends any[], RETURN> = {
|
|
|
43
43
|
bivarianceHack(...args: ARGS): Promise<RETURN>;
|
|
44
44
|
}['bivarianceHack'];
|
|
45
45
|
|
|
46
|
+
/** Identifies where an error caught by an error boundary originated. @public @experimental */
|
|
47
|
+
declare const enum CatchPhase {
|
|
48
|
+
Render = "render",
|
|
49
|
+
Event = "event",
|
|
50
|
+
Hook = "hook"
|
|
51
|
+
}
|
|
52
|
+
|
|
46
53
|
declare const enum ChoreBits {
|
|
47
54
|
NONE = 0,
|
|
48
55
|
TASKS = 1,
|
|
@@ -94,7 +101,7 @@ declare interface Container {
|
|
|
94
101
|
$resolveRenderPromise$: (() => void) | null;
|
|
95
102
|
$pendingCount$: number;
|
|
96
103
|
$checkPendingCount$(): void;
|
|
97
|
-
handleError(err: any, $host$: HostElement | null, phase?:
|
|
104
|
+
handleError(err: any, $host$: HostElement | null, phase?: CatchPhase): void;
|
|
98
105
|
getParentHost(host: HostElement): HostElement | null;
|
|
99
106
|
setContext<T>(host: HostElement, context: ContextId<T>, value: T): void;
|
|
100
107
|
resolveContext<T>(host: HostElement, contextId: ContextId<T>): T | undefined;
|
|
@@ -307,13 +314,6 @@ declare interface ElementFixtureOptions {
|
|
|
307
314
|
/** @public */
|
|
308
315
|
export declare function emulateExecutionOfQwikFuncs(document: Document): void;
|
|
309
316
|
|
|
310
|
-
/** Identifies where an error caught by an error boundary originated. @public @experimental */
|
|
311
|
-
declare const enum ErrorBoundaryPhase {
|
|
312
|
-
Render = "render",
|
|
313
|
-
Event = "event",
|
|
314
|
-
Hook = "hook"
|
|
315
|
-
}
|
|
316
|
-
|
|
317
317
|
/** @public */
|
|
318
318
|
export declare function expectDOM(actual: Element, expected: string): Promise<void>;
|
|
319
319
|
|
|
@@ -376,6 +376,7 @@ declare interface ISsrNode {
|
|
|
376
376
|
readonly [_EFFECT_BACK_REF]: Map<EffectProperty | string, EffectSubscription> | null;
|
|
377
377
|
setProp(name: string, value: any): void;
|
|
378
378
|
getProp(name: string): any;
|
|
379
|
+
hasSlotProps(): boolean;
|
|
379
380
|
removeProp(name: string): void;
|
|
380
381
|
addChild(child: ISsrNode): void;
|
|
381
382
|
setTreeNonUpdatable(): void;
|
|
@@ -521,7 +522,7 @@ export declare type OutOfOrderStreaming = boolean;
|
|
|
521
522
|
/** @internal */
|
|
522
523
|
declare const _OWNER: unique symbol;
|
|
523
524
|
|
|
524
|
-
declare type PossibleEvents = Event |
|
|
525
|
+
declare type PossibleEvents = Event | typeof TaskEvent | typeof RenderEvent;
|
|
525
526
|
|
|
526
527
|
declare type Props = Record<string, unknown>;
|
|
527
528
|
|
|
@@ -789,7 +790,7 @@ declare interface SerializationContext {
|
|
|
789
790
|
$setSyncFnOffset$(offset: number, existingFns?: string[]): void;
|
|
790
791
|
$isSsrNode$: (obj: unknown) => obj is ISsrNode;
|
|
791
792
|
$isDomRef$: (obj: unknown) => obj is DomRef;
|
|
792
|
-
$markSsrNodeForSerialization$: (node: ISsrNode, flags: number) => void;
|
|
793
|
+
$markSsrNodeForSerialization$: (node: ISsrNode, flags: number, isStateRoot?: boolean) => void;
|
|
793
794
|
$writer$: SSRInternalStreamWriter;
|
|
794
795
|
$setWriter$(writer: SSRInternalStreamWriter): void;
|
|
795
796
|
$syncFns$: string[];
|
|
@@ -856,12 +857,6 @@ declare class SignalImpl<T = any> implements Signal<T> {
|
|
|
856
857
|
};
|
|
857
858
|
}
|
|
858
859
|
|
|
859
|
-
declare interface SimplifiedServerRequestEvent<T = unknown> {
|
|
860
|
-
url: URL;
|
|
861
|
-
locale: string | undefined;
|
|
862
|
-
request: Request;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
860
|
/** @internal */
|
|
866
861
|
declare interface SSRInternalStreamWriter extends StreamWriter_2 {
|
|
867
862
|
writeRootRef(id: number): ValueOrPromise<void>;
|
|
@@ -946,7 +941,8 @@ declare const enum TaskFlags {
|
|
|
946
941
|
DIRTY = 4,
|
|
947
942
|
RENDER_BLOCKING = 8,
|
|
948
943
|
NEEDS_CLEANUP = 16,
|
|
949
|
-
EVENTS_REGISTERED = 32
|
|
944
|
+
EVENTS_REGISTERED = 32,
|
|
945
|
+
EXECUTED = 64
|
|
950
946
|
}
|
|
951
947
|
|
|
952
948
|
/** @public */
|