Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 2.45 KB

CHANGELOG.md

File metadata and controls

86 lines (59 loc) · 2.45 KB

Change Log

v2.1.9

  • dependency updates

v2.1.8

  • dependency updates
  • updated store provider to just accept stores and not need specific provider functions supplied

v2.1.7

  • dependency updates

v2.1.5

  • dependency updates

v2.1.4

  • Added ability to add store listeners
  • dependency updates

v2.1.3

  • Update license stuff
  • dependency updates

v2.1.2

  • Updated several dependencies
  • Upgrade babel
  • Add sample NextJS project to repo

v2.1.1

  • Updated several dependencies
  • Added custom transformer option for state persistence with the usePersistedState hook
  • Add better type info for usePersistedState

v2.1.0

  • Updated several dependencies
  • Updated package.json to reflect React 18 compatibility as peer dependency
  • Other maintenance changes
  • Updated the wrapper component name to be set from the store hook name

v2.0.2

  • Updated for better intellisence using templates
  • Added useStore to be attached to objects returned from setupStore, which wraps and abstracts the need to explicitly call useContext(StoreContext) when subscribing to a store. This also helps with mocking store objects when unit testing components subscribed to a store.

v2.0.1

  • Minor dependency updates

v2.0.0

  • BREAKING CHANGE - When subscribing to a store via the useContext hook, the returning store object is now a single object which represents the store. Previously this was an array, but the array was arbitrary.
  • chore/bug - Reworked store providers to correctly target rerenders only to subscribing children components. Previously there was a nuance where updates could occur even without a context subscription.

v1.3.0

  • feature - support multiple dynamic stores and forwarding props into the store custom hooks
  • chore - fix persisted falsy value causing default value to come back

v1.2.1

  • Updates to use proxy by default for stores
  • Updates peer dependency
  • Fix dependabot alerts

v1.2.0

  • BREAKING CHANGE - Modified the return format for setupStore to be a single object instead of an array of parts
  • usePersistedState - the set state function now supports the functional state update syntax

v1.1.1

  • Minor dependency updates

v1.1.0

  • Removed deprecated class based container logic

v1.0.2

  • Added generated type declarations

v1.0.1

  • Cleaning up some unused files
  • Adding better error messages for usePersistedState and StoreProvider
  • README updates and tweaks

v1.0.0

  • Initial release as a separate repo