Releases: bowheart/react-zedux
v0.4.0
Just some extra features and bug fixes
Changes:
Context.consume()andContext.inject()now also accept a storeFields-to-propNames map. This makes it easier to alias fields from different stores when consuming several of them.- Some typescript definition bug fixes.
- Some doc and typescript tweaks.
v0.3.0
Complete rewrite to support React's new context api! The React Zedux api is now heavily based on React's new context api. This makes it easier to learn. It also makes it easier to switch back and forth between React Zedux and React's own context api.
React Zedux also now supports turning any observable into a consumable Context.
Changes:
- Everything
- Created
createContext()top-level export. - Created
StoreApitop-level export. - Wrote tests for everything.
- Wrote typescript typings for everything.
- Wrote documentation for everything.
- Created this gitbook for housing the React Zedux documentation!
- Added support for observables.
- Added support for Redux.
v0.2.0
React Zedux now has two new features that facilitate some patterns I found emerging from my React Zedux usage.
Changes:
-
createStoreApi()- A new top-level React Zedux export. Call this with an object containingactors,selectorsandhookshashes as well as astoreproperty to auto-bind stuff to the store and flatten the result into a singlestoreApiobject. -
withStores()now takes a second argument,mapStoresToProps. This can be used to prevent a component from re-rendering every time the store's state changes. -
appropriate tests for that stuff 👆
Docs on all this coming soon!
v0.1.3
v0.1.2
The rollup bundle was apparently including references to a babelHelpers object that was never defined. After updating some rollup packages, the problem went away. The babel helpers are now inlined appropriately.
Changes:
- Upgraded
rollupandrollup-plugin-babelpackages.
v0.1.1
We weren't depending on the prop-types package correctly. It was marked as an external package in the rollup config, so the validators weren't getting bundled in our builds. This made it an implicit dependency, which is just awful and we apologize.
Changes:
- Removed
prop-typesfrom theexternalandglobalsfields in the rollup config file. - Added a few extra dev dependencies to bundle in the now non-external
prop-typespackage.
v0.1.0
The first pre-release! We are well on our way to v1.0.0!
The code should be stable enough. Feel free to use it in your React + Zedux projects. Be on the lookout for bugs and please submit them and any feedback to https://github.com/bowheart/react-zedux/issues
This is the start of React Zedux. Let's make it awesome! Happy coding!