@solidjs/signals 2.0.0-rc.4 → 2.0.0-rc.6
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/dev.js +1618 -232
- package/dist/node.cjs +2262 -1199
- package/dist/prod/boundaries.js +4 -1
- package/dist/prod/core/async.js +152 -101
- package/dist/prod/core/constants.js +55 -1
- package/dist/prod/core/core.js +305 -234
- package/dist/prod/core/effect.js +28 -28
- package/dist/prod/core/error.js +13 -1
- package/dist/prod/core/external.js +2 -2
- package/dist/prod/core/graph.js +27 -27
- package/dist/prod/core/heap.js +30 -30
- package/dist/prod/core/lanes.js +32 -32
- package/dist/prod/core/optimistic.js +57 -57
- package/dist/prod/core/owner.js +34 -34
- package/dist/prod/core/scheduler.js +346 -152
- package/dist/prod/core/verdict.js +122 -65
- package/dist/prod/index.js +3 -3
- package/dist/prod/map.js +106 -106
- package/dist/prod/signals.js +321 -26
- package/dist/prod/store/next/optimistic.js +363 -151
- package/dist/prod/store/next/patch.js +6 -6
- package/dist/prod/store/next/projection.js +25 -21
- package/dist/prod/store/next/store.js +223 -113
- package/dist/prod/store/store.js +2 -2
- package/dist/types/core/async.d.ts +2 -0
- package/dist/types/core/attribution-hooks.d.ts +11 -0
- package/dist/types/core/attribution.d.ts +57 -4
- package/dist/types/core/constants.d.ts +54 -0
- package/dist/types/core/core.d.ts +19 -20
- package/dist/types/core/dev.d.ts +8 -2
- package/dist/types/core/error.d.ts +9 -0
- package/dist/types/core/index.d.ts +2 -2
- package/dist/types/core/scheduler.d.ts +39 -0
- package/dist/types/core/types.d.ts +12 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/signals.d.ts +108 -11
- package/dist/types/store/next/optimistic.d.ts +13 -10
- package/dist/types/store/next/projection.d.ts +1 -1
- package/dist/types/store/next/store.d.ts +22 -0
- package/dist/types/store/next/target.d.ts +25 -0
- package/dist/types-cjs/core/async.d.cts +2 -0
- package/dist/types-cjs/core/attribution-hooks.d.cts +11 -0
- package/dist/types-cjs/core/attribution.d.cts +57 -4
- package/dist/types-cjs/core/constants.d.cts +54 -0
- package/dist/types-cjs/core/core.d.cts +19 -20
- package/dist/types-cjs/core/dev.d.cts +8 -2
- package/dist/types-cjs/core/error.d.cts +9 -0
- package/dist/types-cjs/core/index.d.cts +2 -2
- package/dist/types-cjs/core/scheduler.d.cts +39 -0
- package/dist/types-cjs/core/types.d.cts +12 -0
- package/dist/types-cjs/index.d.cts +3 -3
- package/dist/types-cjs/signals.d.cts +108 -11
- package/dist/types-cjs/store/next/optimistic.d.cts +13 -10
- package/dist/types-cjs/store/next/projection.d.cts +1 -1
- package/dist/types-cjs/store/next/store.d.cts +22 -0
- package/dist/types-cjs/store/next/target.d.cts +25 -0
- package/package.json +1 -1
|
@@ -27,6 +27,27 @@ export interface StoreNextFamily {
|
|
|
27
27
|
/** Targets currently carrying active node overrides (landing-consumption
|
|
28
28
|
* walk, RUL-2: visible landed truth replaces optimism). */
|
|
29
29
|
overlaid?: Set<any>;
|
|
30
|
+
/** Retaining transactions (#3164 fold ruling): every transaction that made
|
|
31
|
+
* an optimistic setter call on this family and may still be open. While
|
|
32
|
+
* any member is live, truth landings FOLD — they stage into the retaining
|
|
33
|
+
* transaction and reveal atomically at its settle, exactly like a signal
|
|
34
|
+
* landing under an active override. Dead members prune lazily at each
|
|
35
|
+
* landing (retainingTransition). */
|
|
36
|
+
rt?: Set<any>;
|
|
37
|
+
/** Flight-owned transaction (#3146): declared when a truth-flight
|
|
38
|
+
* registers (the ask's transaction — created by the flight's own pending
|
|
39
|
+
* throw when none was ambient, the causing write's when one was), renewed
|
|
40
|
+
* per settle event once the previous reveal committed. Bare optimistic
|
|
41
|
+
* writes and landings route into it BY DECLARATION; the transitionBlocked
|
|
42
|
+
* store-half checks it for ownership instead of reconstructing it from
|
|
43
|
+
* `_optimisticStores` membership. null = no flight declared one (sync
|
|
44
|
+
* derive, or a loading-window flight — the loading rail is
|
|
45
|
+
* transaction-invisible, #2933). */
|
|
46
|
+
ft?: any;
|
|
47
|
+
/** Normalized row-key fn (same resolution as the projection channels:
|
|
48
|
+
* `options.key`, "id" default, null = unkeyed). The staged-landing walk
|
|
49
|
+
* reads it: key-matched rows keep their proxy identity across a fold. */
|
|
50
|
+
key?: ((item: any) => any) | null;
|
|
30
51
|
map: WeakMap<object, StoreNextTarget>;
|
|
31
52
|
/** The projection computed — assigned after creation (accessor pattern). */
|
|
32
53
|
node: Computed<any> | null;
|
|
@@ -159,6 +180,10 @@ export interface OptStoreHooks {
|
|
|
159
180
|
notifyOptimisticWrites(t: any, pb: Record<PropertyKey, any>): void;
|
|
160
181
|
optimisticView(t: any, src: Record<PropertyKey, any>): Record<PropertyKey, any>;
|
|
161
182
|
applyTentative(t: any, incoming: any, keyFn: ((item: any) => any) | null): void;
|
|
183
|
+
/** #3164 fold: does this live transaction still retain optimism (armed
|
|
184
|
+
* nodes or tracked stores)? Backs the held-truth masks in next/store.ts so
|
|
185
|
+
* plain-store bundles don't carry the transition-optimism probe. */
|
|
186
|
+
retainsOptimism(t: any): boolean;
|
|
162
187
|
}
|
|
163
188
|
export declare let optHooks: OptStoreHooks | null;
|
|
164
189
|
export declare function setOptHooks(h: OptStoreHooks): void;
|
package/package.json
CHANGED