@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.
@@ -20,7 +20,6 @@ export default extendConfig(baseConfig, () => {
20
20
  ssg: {
21
21
  include: ["/*"],
22
22
  origin: "https://yoursite.dev",
23
- maxWorkers: 1, // Limit Workers to 1, otherwise SSG will hang when compiling Qwik Router app with `bun run --bun build`.
24
23
  },
25
24
  }),
26
25
  ],
@@ -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?: ErrorBoundaryPhase): void;
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[];