v2.0.0-beta.4
·
20 commits
to master
since this release
What's Changed
- chore(deps-dev): bump @types/react from 19.1.9 to 19.1.13 by @dependabot[bot] in #40
- chore(deps-dev): bump @types/node from 24.1.0 to 24.4.0 by @dependabot[bot] in #39
- chore(deps-dev): bump eslint-plugin-prettier from 5.5.3 to 5.5.4 by @dependabot[bot] in #30
- chore(deps-dev): bump eslint from 9.30.0 to 9.35.0 by @dependabot[bot] in #38
- chore(deps-dev): bump @eslint/js from 9.30.0 to 9.35.0 by @dependabot[bot] in #36
- chore(deps-dev): bump vite from 6.3.5 to 6.3.6 by @dependabot[bot] in #41
- feat(react): refactor useQuantaStore with cached snapshots & update dependency by @JeelGajera in #63
- Add store-level Set + notifyAll in createStore
- Wire flattenStore.set trap → trigger + notifyAll
- Generic
Dependency<S>with snapshot-aware notify() - Update StoreSubscriber to
(snapshot?: S) => void - Rewrite @quantajs/react useQuantaStore:
• useRef cache + fresh flat snapshot on every core mutation
• stable actions/getters (no re-bind loops)
• selector support for fine-grained re-renders
• SSR-safe server snapshot
• full error isolation (warn, never crash on bad subscriber) - Fix React re-render staleness: UI now updates instantly
- Eliminate infinite-loop warning (cached snapshot is stable until dirty)
Full Changelog: v2.0.0-beta.3...v2.0.0-beta.4