@qwik.dev/core 2.0.0-beta.45 → 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/backpatch/package.json +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/core-internal.d.ts +177 -108
- package/dist/core.min.mjs +10 -11
- package/dist/core.mjs +2354 -2126
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +4191 -4007
- 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/package.json +1 -1
- package/dist/optimizer.d.ts +14 -4
- package/dist/optimizer.mjs +492 -446
- package/dist/out-of-order-executor.debug.js +2 -2
- package/dist/preloader.mjs +77 -69
- package/dist/server-modules.d.ts +7 -7
- package/dist/server.d.ts +17 -17
- package/dist/server.mjs +93 -62
- package/dist/server.prod.mjs +419 -384
- package/dist/starters/adapters/bun/adapters/bun/vite.config.ts +0 -1
- package/dist/testing/index.d.ts +23 -22
- package/dist/testing/index.mjs +7484 -7364
- package/dist/testing/package.json +1 -1
- package/dist/ts-optimizer.mjs +1095 -1068
- package/dist/worker/index.mjs +2 -2
- 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 +3 -2
- 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;
|
|
@@ -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[];
|