@qwik.dev/core 2.0.0-beta.41 → 2.0.0-beta.42
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/backpatch/package.json +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/core-internal.d.ts +85 -16
- package/dist/core.min.mjs +11 -9
- package/dist/core.mjs +695 -89
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +3863 -3310
- package/dist/error-swap-executor.debug.js +37 -0
- package/dist/error-swap-executor.js +1 -0
- package/dist/loader/index.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.d.ts +2 -0
- package/dist/optimizer.mjs +5 -3
- package/dist/out-of-order-executor.debug.js +12 -12
- package/dist/qwikloader.debug.js +1 -1
- package/dist/qwikloader.js +1 -1
- package/dist/server.d.ts +27 -0
- package/dist/server.mjs +100 -40
- package/dist/server.prod.mjs +849 -781
- package/dist/testing/index.d.ts +11 -2
- package/dist/testing/index.mjs +6565 -6295
- package/dist/testing/package.json +1 -1
- package/dist/worker/package.json +1 -1
- package/handlers.mjs +3 -0
- package/package.json +2 -2
- package/public.d.ts +3 -1
package/dist/testing/index.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ declare interface Container {
|
|
|
94
94
|
$resolveRenderPromise$: (() => void) | null;
|
|
95
95
|
$pendingCount$: number;
|
|
96
96
|
$checkPendingCount$(): void;
|
|
97
|
-
handleError(err: any, $host$: HostElement | null): void;
|
|
97
|
+
handleError(err: any, $host$: HostElement | null, phase?: ErrorBoundaryPhase): void;
|
|
98
98
|
getParentHost(host: HostElement): HostElement | null;
|
|
99
99
|
setContext<T>(host: HostElement, context: ContextId<T>, value: T): void;
|
|
100
100
|
resolveContext<T>(host: HostElement, contextId: ContextId<T>): T | undefined;
|
|
@@ -307,6 +307,13 @@ declare interface ElementFixtureOptions {
|
|
|
307
307
|
/** @public */
|
|
308
308
|
export declare function emulateExecutionOfQwikFuncs(document: Document): void;
|
|
309
309
|
|
|
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
|
+
|
|
310
317
|
/** @public */
|
|
311
318
|
export declare function expectDOM(actual: Element, expected: string): Promise<void>;
|
|
312
319
|
|
|
@@ -888,6 +895,7 @@ export declare function ssrRenderToDom(jsx: JSXOutput, opts?: {
|
|
|
888
895
|
resume?: boolean;
|
|
889
896
|
/** Inject nodes into the document before test runs (for testing purposes) */
|
|
890
897
|
onBeforeResume?: (document: Document) => void;
|
|
898
|
+
transformError?: (error: unknown) => Error | undefined | null | void;
|
|
891
899
|
}): Promise<{
|
|
892
900
|
container: _DomContainer;
|
|
893
901
|
document: Document;
|
|
@@ -1054,7 +1062,8 @@ declare const enum VNodeDataFlag {
|
|
|
1054
1062
|
VIRTUAL_NODE = 2,
|
|
1055
1063
|
ELEMENT_NODE = 4,
|
|
1056
1064
|
REFERENCE = 8,
|
|
1057
|
-
SERIALIZE = 16
|
|
1065
|
+
SERIALIZE = 16,
|
|
1066
|
+
INERT = 32
|
|
1058
1067
|
}
|
|
1059
1068
|
|
|
1060
1069
|
/**
|