Skip to content

v2.0.0-beta.6

Choose a tag to compare

@JeelGajera JeelGajera released this 16 Nov 09:03
· 14 commits to master since this release
93bd867

What's Changed

Core Improvements

  • Enhanced type system with RawActions, GetterDefinitions, InferActions, and full store-level type inference.
  • Reworked StoreInstance to correctly merge state, getters, and actions with proper return types.
  • Added deep reactive bubbling using parentMap and bubbleTrigger() for upward dependency propagation.
  • Introduced reactiveMap to cache proxies and prevent double-wrapping.
  • Improved nested reactivity with parent linking and cache-aware creation.
  • Added deep reactive watcher in createStore, plus pre-touching logic for stable dependency initialization.
  • Improved persistence typings and internal dependency maps.

Getters & Actions

  • More accurate getter type inference and computed initialization.
  • Consistent getter unwrapping via new resolveGetterValue utility.
  • Strengthened action binding and flattening logic (flattenStore updates).
  • Improved set-trap behavior for stable action/getter merging.

React Integrations

  • Updated useComputed, useQuantaStore, useCreateStore, and useWatch to use the new typing model (GDefs, RawActions).
  • Major snapshot system rewrite:
    • Snapshots now contain live reactive proxies (no more shallow flattening).
    • Lazily rebuild snapshots only when invalidated.
    • Selector mode now uses stable refs and avoids unnecessary re-renders.
    • Improved server snapshot behavior.

Full Changelog: v2.0.0-beta.5...v2.0.0-beta.6