Skip to content

Latest commit

 

History

History
549 lines (337 loc) · 19.5 KB

File metadata and controls

549 lines (337 loc) · 19.5 KB

Changelog

0.19.6 (2025-06-03)

Patches

  • Add size of package to key features (9989dc4)

0.19.5 (2025-06-03)

Patches

  • Update bundle size docs (2a33ab8)

0.19.4 (2025-06-03)

Patches

  • Change build tool from Vite to tsdown (70b7475)

0.19.3 (2025-05-29)

Patches

  • Update docs with Keys and State types (db60c27)

0.19.2 (2025-05-28)

Patches

  • Refactor out one loop (1e5d4aa)

  • Export Keys and State (6067e94)

    Docs required: Keys = any state, derived, or action name. State = only state and their values.

0.19.1 (2025-05-26)

Patches

  • Fix handle retrieval of field that doesn't exist (588e19b)

0.19.0 (2025-05-14)

Minor changes

  • Subscriptions are now tracked by field (2d0e483)

    This means subscriptions will not fire if the thing they are tracking hasn't changed.

This has also had an affect on when state officially changes which is now only after an emit.

0.18.4 (2025-05-14)

Patches

  • Simplify get internals slightly (936ce0a)

0.18.3 (2025-05-13)

Patches

  • Document and test emit-less actions (dcb4cf4)

0.18.2 (2025-05-08)

Patches

  • Remove auto-bind from deps and docs (6f87025)

0.18.1 (2025-05-08)

Patches

  • Rename getStateByField to simply get (88c0edb)
  • Update README with updated API (3b36da7)

0.18.0 (2025-05-08)

Minor changes

0.17.0 (2025-05-08)

Minor changes

  • Replace getInitialState with getStateByField (d785417)

0.16.1 (2025-05-07)

Patches

  • Update README with latest bundle size (985f675)

0.16.0 (2025-05-07)

Minor changes

Patches

  • Update README with non-auto-bound methods (0233581)

0.15.0 (2025-05-07)

Minor changes

  • Make auto-bind optional (4e861f7)

0.14.0 (2025-05-07)

Minor changes

  • Remove Pickle (the new API) (17b733e)

    Didn't work.

0.13.4 (2025-05-06)

Patches

0.13.3 (2025-05-06)

Patches

0.13.2 (2025-05-06)

Patches

  • Completely different API! Zustand meets Redux meets Pinia (d22d8ca)

    This is a complete change to the API. I got fed up of dealing with classes and this 😱 Much more fun to play with functional! This is essentially Zustand but how I would have built it 🤓 Immer is built in, actions are called events (as they should be), and selectors are moved to the store. This is going out as a patch, living next to the original 2n8 until I've tested it in projects.

0.13.1 (2025-04-19)

Patches

  • Add link to name background (7bcd3f6)

0.13.0 (2025-04-19)

Minor changes

0.12.2 (2025-04-19)

Patches

  • Move docs to README, no more website (9c2e7fb)
  • Fix deps getting bundled in build (70749f1)

0.12.1 (2025-04-13)

Patches

  • Fix custom auto-binding not working (22a6667)

0.12.0 (2025-04-13)

Minor changes

  • Use structuredClone instead of rfdc (4a65e21)
  • Use structuredClone instead of rfdc (59b1b3e)

0.11.0 (2025-04-10)

Minor changes

0.10.3 (2025-04-10)

Patches

  • Swap fast-equals for @ver0/deep-equal (9e4e359)

0.10.2 (2025-01-21)

Patches

  • Add emoji-logo to README title (248faeb)

0.10.1 (2025-01-20)

Patches

  • Replace equality checker package for a faster one (dcf68d9)

0.10.0 (2025-01-20)

Minor changes

  • Remove unused API method: getSubscribersCount (da94d77)

0.9.1 (2025-01-20)

Patches

0.9.0 (2025-01-20)

Minor changes

  • Export API from create function rather than off the store class (5561a49)

0.8.3 (2025-01-12)

Patches

0.8.2 (2025-01-07)

Patches

  • Fix initial state being mutated (eead54d)

0.8.1 (2025-01-07)

Patches

  • Expose store on useStore (a93a31c)

0.8.0 (2025-01-06)

Minor changes

  • Stop using proxies as they are slow (a284ab1)

Patches

  • Remove internal API from React field selectors (64fb7e9)
  • Re-export clone utility (a6d8139)

0.7.7 (2025-01-04)

Patches

  • Remove duplicate set in reset (c527383)

0.7.6 (2025-01-04)

Patches

  • Speed up getState, slightly (37214fd)

0.7.5 (2025-01-04)

Patches

  • Speed up getState, slightly (12696e5)

0.7.4 (2025-01-04)

Patches

0.7.3 (2025-01-03)

Patches

  • Speed up internal cloning (81f5fa7)

0.7.2 (2025-01-03)

Patches

  • Prevent mutating external objects on nested object state (b31d1b5)
  • Refactor-out multiple loops over the same object (4913d84)

0.7.0 (2025-01-02)

Minor changes

  • Change listeners to subscribers (4642a62)

0.6.0 (2025-01-02)

Minor changes

  • Change special $commit action to $emit, to better represent what it does (468c725)

Patches

  • Add getListenersCount (a7e78c4)
  • Set React as an optional peerDep (231634d)

0.5.4 (2024-12-18)

Patches

  • Improve npm README and fields (f6eaf4a)

0.5.3 (2024-12-18)

Patches

  • Internal refactor to fix lint issues (159a5d6)
  • Fix autoBind error in CJS envs (5315e73)

0.5.2 (2024-12-18)

Patches

  • Add compatibility with React 19 (3ff8413)

0.5.1 (2024-12-18)

Patches

  • Fix types on createReactStore returned utils (fcc6155)
  • Refactor to use consistent internal store set (c0a2e42)

0.5.0 (2024-12-18)

Minor changes

  • Remove direct access to fields (cc1d3e3)

0.4.0 (2024-12-18)

Minor changes

  • Change to a commit-based flow (d459837)

Patches

  • Attach vanilla API to React hook (25a1d36)
  • Do not mutate external objects (f62f3a3)
  • Always commit changes (c1734f5)
  • Prevent changes to initial state (626ec28)
  • Prevent mutation of external objects when setting up state (a9d0bd0)

0.3.4 (2024-12-11)

Patches

  • Fixed unchanged objects causing subscriptions to fire (663582a)

0.3.3 (2024-12-11)

Patches

  • Fix subscriptions not firing with derived state (92f067a)

0.3.2 (2024-12-10)

Patches

  • Fix memoizing derived not working (again) (2756ba8)

0.3.1 (2024-12-10)

Patches

  • Fix derived getters causing infinite loops in React (132d94e)

0.3.0 (2024-12-09)

Minor changes

  • Export all from index for one less line of code (1d0bae9)

Patches

  • Add $getState (1b08e2d)
  • Only return state from $getInitialState (887987c)
  • Add subscribe with a selector (2f3139f)

0.2.5 (2024-12-07)

Patches

0.2.4 (2024-12-06)

Patches

  • Remove API methods from React hook (69163c2)
  • Add $getState method (06afbc9)
  • Add $getInitialState method (7c9caba)

0.2.3 (2024-12-05)

Patches

  • Show $ methods as methods in IDE (197fe56)
  • Hide emitChange method as it's an internal method (d63ec4b)

0.2.2 (2024-12-05)

Patches

  • Provide initial state to server snapshot of React store (cec5da1)
  • Throw if attempting to reset an action (4444426)
  • Add type to $reset (10a0f41)

0.2.1 (2024-12-05)

Patches

  • Refactor for one less line of code (1e59973)
  • Fix server and client hydration mismatch (99dc112)
  • Fix reset not announcing change to listeners (19e8250)

0.2.0 (2024-12-03)

Minor changes

  • Removed React hook from main bundle, and exported it from /react (284fb26)

0.1.0 (2024-12-02)

Minor changes

  • ClassyStore -> TwoAndEight, createClassyStore -> createStore (1914c91)

Patches

  • Add reset state ability (ce28af7)

0.0.5 (2024-12-02)

Patches

  • Fix build artefacts not in release (caa40bd)

0.0.4 (2024-12-02)

Patches

  • Initial library release (for testing only) (d0df404)

0.0.3 (2024-12-02)

Patches