- dependency updates
- dependency updates
- updated store provider to just accept stores and not need specific provider functions supplied
- dependency updates
- dependency updates
- Added ability to add store listeners
- dependency updates
- Update license stuff
- dependency updates
- Updated several dependencies
- Upgrade babel
- Add sample NextJS project to repo
- Updated several dependencies
- Added custom transformer option for state persistence with the usePersistedState hook
- Add better type info for usePersistedState
- 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
- Updated for better intellisence using templates
- Added
useStore
to be attached to objects returned fromsetupStore
, which wraps and abstracts the need to explicitly calluseContext(StoreContext)
when subscribing to a store. This also helps with mocking store objects when unit testing components subscribed to a store.
- Minor dependency updates
- 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.
- feature - support multiple dynamic stores and forwarding props into the store custom hooks
- chore - fix persisted falsy value causing default value to come back
- Updates to use proxy by default for stores
- Updates peer dependency
- Fix dependabot alerts
- 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
- Minor dependency updates
- Removed deprecated class based container logic
- Added generated type declarations
- Cleaning up some unused files
- Adding better error messages for
usePersistedState
andStoreProvider
- README updates and tweaks
- Initial release as a separate repo