@qwik.dev/core 2.0.0-beta.15 → 2.0.0-beta.16
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 +13 -12
- package/dist/core.min.mjs +1 -1
- package/dist/core.mjs +2 -2
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.mjs +1 -1
- package/dist/server.mjs +2 -2
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.mjs +1 -1
- package/dist/testing/package.json +1 -1
- package/package.json +2 -2
package/dist/build/package.json
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/cli 2.0.0-beta.
|
|
3
|
+
* @qwik.dev/core/cli 2.0.0-beta.16-dev+a83ccf3
|
|
4
4
|
* Copyright QwikDev. All Rights Reserved.
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
|
|
@@ -5625,7 +5625,7 @@ async function printHelp(app) {
|
|
|
5625
5625
|
await runCommand2(Object.assign(app, { task: args[0], args }));
|
|
5626
5626
|
}
|
|
5627
5627
|
function printVersion() {
|
|
5628
|
-
console.log("2.0.0-beta.
|
|
5628
|
+
console.log("2.0.0-beta.16-dev+a83ccf3");
|
|
5629
5629
|
}
|
|
5630
5630
|
export {
|
|
5631
5631
|
runCli,
|
package/dist/core-internal.d.ts
CHANGED
|
@@ -409,7 +409,7 @@ declare class AsyncComputedSignalImpl<T> extends ComputedSignalImpl<T | undefine
|
|
|
409
409
|
private setValue;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
declare type AsyncComputeQRL<T> =
|
|
412
|
+
declare type AsyncComputeQRL<T> = _QRLInternal<AsyncComputedFn<T>>;
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
415
|
* Replace given element's props with custom types and return all props specific to the element. Use
|
|
@@ -473,7 +473,7 @@ declare enum ChoreState {
|
|
|
473
473
|
DONE = 3
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
declare type ChoreTarget = HostElement |
|
|
476
|
+
declare type ChoreTarget = HostElement | _QRLInternal<(...args: unknown[]) => unknown> | Signal | StoreTarget;
|
|
477
477
|
|
|
478
478
|
declare const enum ChoreType {
|
|
479
479
|
MACRO = 240,
|
|
@@ -646,7 +646,7 @@ export declare interface ComputedSignal<T> extends ReadonlySignal<T> {
|
|
|
646
646
|
*
|
|
647
647
|
* The value is available synchronously, but the computation is done lazily.
|
|
648
648
|
*/
|
|
649
|
-
declare class ComputedSignalImpl<T, S extends
|
|
649
|
+
declare class ComputedSignalImpl<T, S extends _QRLInternal = ComputeQRL<T>> extends SignalImpl<T> implements BackRef {
|
|
650
650
|
/**
|
|
651
651
|
* The compute function is stored here.
|
|
652
652
|
*
|
|
@@ -669,7 +669,7 @@ declare class ComputedSignalImpl<T, S extends QRLInternal = ComputeQRL<T>> exten
|
|
|
669
669
|
get value(): any;
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
declare type ComputeQRL<T> =
|
|
672
|
+
declare type ComputeQRL<T> = _QRLInternal<ComputedFn<T>>;
|
|
673
673
|
|
|
674
674
|
/** @internal */
|
|
675
675
|
export declare const _CONST_PROPS: unique symbol;
|
|
@@ -955,8 +955,8 @@ declare const createScheduler: (container: Container, journalFlush: () => void,
|
|
|
955
955
|
(type: ChoreType.WAIT_FOR_QUEUE): Chore<ChoreType.WAIT_FOR_QUEUE>;
|
|
956
956
|
(type: ChoreType.RECOMPUTE_AND_SCHEDULE_EFFECTS, host: HostElement | undefined, target: Signal<unknown> | StoreTarget, effects: Set<EffectSubscription> | undefined): Chore<ChoreType.RECOMPUTE_AND_SCHEDULE_EFFECTS>;
|
|
957
957
|
(type: ChoreType.TASK | ChoreType.VISIBLE, task: Task): Chore<ChoreType.TASK | ChoreType.VISIBLE>;
|
|
958
|
-
(type: ChoreType.RUN_QRL, host: HostElement, target:
|
|
959
|
-
(type: ChoreType.COMPONENT, host: HostElement, qrl:
|
|
958
|
+
(type: ChoreType.RUN_QRL, host: HostElement, target: _QRLInternal<(...args: unknown[]) => unknown>, args: unknown[]): Chore<ChoreType.RUN_QRL>;
|
|
959
|
+
(type: ChoreType.COMPONENT, host: HostElement, qrl: _QRLInternal<OnRenderFn<unknown>>, props: Props | null): Chore<ChoreType.COMPONENT>;
|
|
960
960
|
(type: ChoreType.NODE_DIFF, host: HostElement, target: HostElement, value: JSXOutput | Signal): Chore<ChoreType.NODE_DIFF>;
|
|
961
961
|
(type: ChoreType.NODE_PROP, host: HostElement, prop: string, value: any): Chore<ChoreType.NODE_PROP>;
|
|
962
962
|
(type: ChoreType.CLEANUP_VISIBLE, task: Task): Chore<ChoreType.CLEANUP_VISIBLE>;
|
|
@@ -1004,7 +1004,7 @@ declare interface DescriptorBase<T = unknown, B = unknown> extends BackRef {
|
|
|
1004
1004
|
$flags$: number;
|
|
1005
1005
|
$index$: number;
|
|
1006
1006
|
$el$: HostElement;
|
|
1007
|
-
$qrl$:
|
|
1007
|
+
$qrl$: _QRLInternal<T>;
|
|
1008
1008
|
$state$: B | undefined;
|
|
1009
1009
|
$destroy$: NoSerialize<() => void> | null;
|
|
1010
1010
|
}
|
|
@@ -2235,7 +2235,8 @@ export declare const qrlDEV: <T = any>(chunkOrFn: string | (() => Promise<any>),
|
|
|
2235
2235
|
*/
|
|
2236
2236
|
export declare type QRLEventHandlerMulti<EV extends Event, EL> = QRL<EventHandler<EV, EL>> | undefined | null | QRLEventHandlerMulti<EV, EL>[];
|
|
2237
2237
|
|
|
2238
|
-
|
|
2238
|
+
/** @internal */
|
|
2239
|
+
export declare type _QRLInternal<TYPE = unknown> = QRL<TYPE> & QRLInternalMethods<TYPE>;
|
|
2239
2240
|
|
|
2240
2241
|
declare type QRLInternalMethods<TYPE> = {
|
|
2241
2242
|
readonly $chunk$: string | null;
|
|
@@ -2915,7 +2916,7 @@ declare interface SerializerSignal<T> extends ComputedSignal<T> {
|
|
|
2915
2916
|
* @public
|
|
2916
2917
|
*/
|
|
2917
2918
|
declare class SerializerSignalImpl<T, S> extends ComputedSignalImpl<T> {
|
|
2918
|
-
constructor(container: Container | null, argQrl:
|
|
2919
|
+
constructor(container: Container | null, argQrl: _QRLInternal<SerializerArg<T, S>>);
|
|
2919
2920
|
$didInitialize$: boolean;
|
|
2920
2921
|
$computeIfNeeded$(): void;
|
|
2921
2922
|
}
|
|
@@ -3728,10 +3729,10 @@ declare class Task<T = unknown, B = T> extends BackRef implements DescriptorBase
|
|
|
3728
3729
|
$flags$: number;
|
|
3729
3730
|
$index$: number;
|
|
3730
3731
|
$el$: HostElement;
|
|
3731
|
-
$qrl$:
|
|
3732
|
+
$qrl$: _QRLInternal<T>;
|
|
3732
3733
|
$state$: Signal<B> | ResourceReturnInternal<B> | undefined;
|
|
3733
3734
|
$destroy$: NoSerialize<() => void> | null;
|
|
3734
|
-
constructor($flags$: number, $index$: number, $el$: HostElement, $qrl$:
|
|
3735
|
+
constructor($flags$: number, $index$: number, $el$: HostElement, $qrl$: _QRLInternal<T>, $state$: Signal<B> | ResourceReturnInternal<B> | undefined, $destroy$: NoSerialize<() => void> | null);
|
|
3735
3736
|
}
|
|
3736
3737
|
|
|
3737
3738
|
/**
|
|
@@ -4485,7 +4486,7 @@ export declare const _VAR_PROPS: unique symbol;
|
|
|
4485
4486
|
export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;
|
|
4486
4487
|
|
|
4487
4488
|
/**
|
|
4488
|
-
* 2.0.0-beta.
|
|
4489
|
+
* 2.0.0-beta.16-dev+a83ccf3
|
|
4489
4490
|
*
|
|
4490
4491
|
* @public
|
|
4491
4492
|
*/
|