@qwik.dev/core 2.0.0-beta.30 → 2.0.0-beta.31
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 +215 -170
- package/dist/core-internal.d.ts +51 -11
- package/dist/core.min.mjs +2 -2
- package/dist/core.mjs +9314 -8994
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +5672 -5412
- package/dist/insights/vite/index.mjs +36 -33
- package/dist/loader/index.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.mjs +787 -763
- package/dist/preloader.mjs +210 -112
- package/dist/qwikloader.debug.js +26 -13
- package/dist/qwikloader.js +1 -1
- package/dist/server.mjs +266 -92
- package/dist/server.prod.mjs +552 -364
- package/dist/testing/index.d.ts +4 -1
- package/dist/testing/index.mjs +530 -212
- package/dist/testing/package.json +1 -1
- package/package.json +3 -3
package/dist/testing/index.d.ts
CHANGED
|
@@ -48,7 +48,8 @@ declare const enum ChoreBits {
|
|
|
48
48
|
CHILDREN = 32,
|
|
49
49
|
CLEANUP = 64,
|
|
50
50
|
RECONCILE = 128,
|
|
51
|
-
|
|
51
|
+
ERROR_WRAP = 256,
|
|
52
|
+
DIRTY_MASK = 511
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
/** @internal */
|
|
@@ -441,6 +442,7 @@ declare class LazyRef<TYPE = unknown> {
|
|
|
441
442
|
$ref$?: (null | ValueOrPromise<TYPE>) | undefined;
|
|
442
443
|
$container$: Container | undefined;
|
|
443
444
|
dev?: QRLDev | null | undefined;
|
|
445
|
+
qrls?: Set<any>;
|
|
444
446
|
constructor($chunk$: string | null, $symbol$: string, $symbolFn$: undefined | null | (() => Promise<Record<string, TYPE>>), $ref$?: (null | ValueOrPromise<TYPE>) | undefined, container?: Container | null);
|
|
445
447
|
/** We don't read hash very often so let's not allocate a string for every QRL */
|
|
446
448
|
get $hash$(): string;
|
|
@@ -668,6 +670,7 @@ declare type QRLInternalMethods<TYPE> = {
|
|
|
668
670
|
/** If this returns false, the function execution will be skipped */
|
|
669
671
|
beforeFn?: () => void | false): TYPE extends (...args: any) => any ? (...args: Parameters<TYPE>) => ValueOrPromise<ReturnType<TYPE> | undefined> : unknown;
|
|
670
672
|
$callFn$(withThis: unknown, ...args: QrlArgs<TYPE>): ValueOrPromise<QrlReturn<TYPE>>;
|
|
673
|
+
$setDev$(dev: QRLDev | null): void;
|
|
671
674
|
/**
|
|
672
675
|
* "with captures" - Get a new QRL for these captures, reusing the lazy ref. It's an internal
|
|
673
676
|
* method but we need to have a stable name because it gets called in user code by the optimizer,
|