@qwik.dev/core 2.0.0-beta.38 → 2.0.0-beta.39
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 +14 -5
- package/dist/core-internal.d.ts +19 -76
- package/dist/core.min.mjs +9 -9
- package/dist/core.mjs +177 -266
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +2647 -2716
- package/dist/loader/index.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.mjs +1681 -1754
- package/dist/qwikloader.debug.js +1 -1
- package/dist/qwikloader.js +1 -1
- package/dist/server.mjs +28 -28
- package/dist/server.prod.mjs +282 -283
- package/dist/starters/adapters/fastify/package.json +2 -2
- package/dist/starters/features/csr/package.json +1 -1
- package/dist/starters/features/drizzle/package.json +1 -1
- package/dist/starters/features/vitest/package.json +1 -1
- package/dist/testing/index.d.ts +4 -2
- package/dist/testing/index.mjs +188 -257
- package/dist/testing/package.json +1 -1
- package/dist/worker/package.json +1 -1
- package/package.json +6 -6
package/dist/testing/index.d.ts
CHANGED
|
@@ -22,8 +22,6 @@ declare type AllSignalFlags = ComputedSignalFlags | SerializationSignalFlags | A
|
|
|
22
22
|
declare const enum AsyncSignalFlags {
|
|
23
23
|
EAGER_CLEANUP = 32,
|
|
24
24
|
CLIENT_ONLY = 64,
|
|
25
|
-
CLEAR_ON_INVALIDATE = 128,
|
|
26
|
-
NO_POLL = 256,
|
|
27
25
|
/** The compute fn is async: the async engine (jobs, loading, error) is active */
|
|
28
26
|
ASYNC_MODE = 512,
|
|
29
27
|
/** Invoke the compute fn AsyncSignal-style: pass the ComputeCtx argument, no auto-tracking */
|
|
@@ -473,6 +471,7 @@ declare class LazyRef<TYPE = unknown> {
|
|
|
473
471
|
readonly $symbolFn$: undefined | null | (() => Promise<Record<string, TYPE>>);
|
|
474
472
|
$ref$?: (null | ValueOrPromise<TYPE>) | undefined;
|
|
475
473
|
$container$: Container | undefined;
|
|
474
|
+
$hasMovedCaptures$?: boolean;
|
|
476
475
|
dev?: QRLDev | null | undefined;
|
|
477
476
|
qrls?: Set<any>;
|
|
478
477
|
constructor($chunk$: string | null, $symbol$: string, $symbolFn$: undefined | null | (() => Promise<Record<string, TYPE>>), $ref$?: (null | ValueOrPromise<TYPE>) | undefined, container?: Container | null);
|
|
@@ -697,6 +696,7 @@ declare type QRLInternalMethods<TYPE> = {
|
|
|
697
696
|
readonly $hash$: string;
|
|
698
697
|
/** Captures are stored lazily after deserialization. */
|
|
699
698
|
readonly $captures$?: QrlCaptures;
|
|
699
|
+
readonly $hasMovedCaptures$?: boolean;
|
|
700
700
|
dev?: QRLDev | null;
|
|
701
701
|
resolve(container?: Container): Promise<TYPE>;
|
|
702
702
|
resolved: undefined | TYPE;
|
|
@@ -714,6 +714,8 @@ declare type QRLInternalMethods<TYPE> = {
|
|
|
714
714
|
* after the $name$ props are mangled
|
|
715
715
|
*/
|
|
716
716
|
w(captures: QrlCaptures): QRLInternal<TYPE>;
|
|
717
|
+
/** Mark that the handler receives captures moved to its element. */
|
|
718
|
+
m(): QRLInternal<TYPE>;
|
|
717
719
|
/**
|
|
718
720
|
* "set ref" - Set the ref of the QRL. It's an internal method but we need to have a stable name
|
|
719
721
|
* because it gets called in user code by the optimizer, after the $name$ props are mangled
|