Skip to content

Releases: shipt/osmosis

2.1.2

26 Oct 15:03
1ac14ea
Compare
Choose a tag to compare
  • Updated several dependencies
  • Upgrade babel
  • Add sample NextJS project to repo

Full Changelog: v2.1.1...v2.1.2

2.1.1

22 May 16:38
ee7321d
Compare
Choose a tag to compare
  • Updated several dependencies
  • Added custom transformer option for state persistence with the usePersistedState hook
  • Add better type info for usePersistedState

2.1.0

16 Nov 21:10
fba18c8
Compare
Choose a tag to compare
  • 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

2.0.2

24 May 20:00
089c3fe
Compare
Choose a tag to compare
  • Updated for better intellisense 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.

2.0.1

02 May 17:05
87cdadc
Compare
Choose a tag to compare
  • Minor dependency updates

2.0.0

31 Jan 18:57
8138363
Compare
Choose a tag to compare
  • 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.

1.3.0

08 Dec 21:25
79c3e53
Compare
Choose a tag to compare

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

1.2.0

18 Aug 19:34
e2ad358
Compare
Choose a tag to compare
  • 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

1.1.1

07 Jul 18:10
042c9b0
Compare
Choose a tag to compare
  • Minor dependency updates

1.1.0

17 Apr 05:11
fc3f82c
Compare
Choose a tag to compare
  • Removed deprecated class based container logic