@qwik.dev/core 2.0.0-alpha.7 → 2.0.0-alpha.8

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/build",
3
- "version": "2.0.0-alpha.7-dev+a26598a",
3
+ "version": "2.0.0-alpha.8-dev+66037b5",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
package/dist/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/cli 2.0.0-alpha.7-dev+a26598a
3
+ * @qwik.dev/core/cli 2.0.0-alpha.8-dev+66037b5
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
@@ -5536,7 +5536,7 @@ async function printHelp(app) {
5536
5536
  await runCommand2(Object.assign(app, { task: args[0], args }));
5537
5537
  }
5538
5538
  function printVersion() {
5539
- console.log("2.0.0-alpha.7-dev+a26598a");
5539
+ console.log("2.0.0-alpha.8-dev+66037b5");
5540
5540
  }
5541
5541
  // Annotate the CommonJS export names for ESM import in node:
5542
5542
  0 && (module.exports = {
@@ -95,6 +95,8 @@ declare type _AllowPlainQrl<Q> = QRLEventHandlerMulti<any, any> extends Q ? Q ex
95
95
 
96
96
  declare type AllPascalEventMaps = PascalMap<AllEventsMap>;
97
97
 
98
+ declare type AllSignalFlags = SignalFlags | WrappedSignalFlags;
99
+
98
100
  /**
99
101
  * TS defines these with the React syntax which is not compatible with Qwik. E.g. `ariaAtomic`
100
102
  * instead of `aria-atomic`.
@@ -2410,6 +2412,10 @@ declare class Signal_2<T = any> implements Signal<T> {
2410
2412
  };
2411
2413
  }
2412
2414
 
2415
+ declare const enum SignalFlags {
2416
+ INVALID = 1
2417
+ }
2418
+
2413
2419
  declare interface SimplifiedServerRequestEvent<T = unknown> {
2414
2420
  url: URL;
2415
2421
  locale: string | undefined;
@@ -3741,7 +3747,7 @@ export declare const _VAR_PROPS: unique symbol;
3741
3747
  export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;
3742
3748
 
3743
3749
  /**
3744
- * 2.0.0-alpha.7-dev+a26598a
3750
+ * 2.0.0-alpha.8-dev+66037b5
3745
3751
  *
3746
3752
  * @public
3747
3753
  */
@@ -3892,11 +3898,11 @@ declare class WrappedSignal<T> extends Signal_2<T> implements BackRef {
3892
3898
  $args$: any[];
3893
3899
  $func$: (...args: any[]) => T;
3894
3900
  $funcStr$: string | null;
3895
- $invalid$: boolean;
3901
+ $flags$: AllSignalFlags;
3896
3902
  $hostElement$: HostElement | null;
3897
3903
  $forceRunEffects$: boolean;
3898
3904
  [_EFFECT_BACK_REF]: Map<EffectProperty | string, EffectSubscription> | null;
3899
- constructor(container: Container | null, fn: (...args: any[]) => T, args: any[], fnStr: string | null);
3905
+ constructor(container: Container | null, fn: (...args: any[]) => T, args: any[], fnStr: string | null, flags?: SignalFlags);
3900
3906
  $invalidate$(): void;
3901
3907
  /**
3902
3908
  * Use this to force running subscribers, for example when the calculated value has mutated but
@@ -3909,6 +3915,10 @@ declare class WrappedSignal<T> extends Signal_2<T> implements BackRef {
3909
3915
  set value(_: any);
3910
3916
  }
3911
3917
 
3918
+ declare const enum WrappedSignalFlags {
3919
+ UNWRAP = 2
3920
+ }
3921
+
3912
3922
  /**
3913
3923
  * This wraps a property access of a possible Signal/Store into a WrappedSignal. The optimizer does
3914
3924
  * this automatically when a prop is only used as a prop on JSX.
@@ -3925,4 +3935,7 @@ export declare const _wrapProp: <T extends Record<any, any>, P extends keyof T>(
3925
3935
  /** @internal @deprecated v1 compat */
3926
3936
  export declare const _wrapSignal: <T extends Record<any, any>, P extends keyof T>(obj: T, prop: P) => any;
3927
3937
 
3938
+ /** @internal */
3939
+ export declare const _wrapStore: <T extends Record<any, any>, P extends keyof T>(obj: T, prop: P) => Signal<T>;
3940
+
3928
3941
  export { }