This is our first major release. If you experience any undocumented issues, please let us know immediately in the issues or feel free to open a pull request. Any contribution is much appreciated. We try our best to ship new fix releases as fast as we can.
From now on we are checking heavily for correct usage of this library and using invariant
for throwing errors. It is a mirror of Facebooks invariant
in React and makes use of the process.env.NODE_ENV
value as well.
Another big change is that the payload can only be omitted with undefined
. That allows us to pass null
as payload, which has been requested many times by the community. We also had a long discussion on the proper usage of null
and undefined
for omitting values in general. You can read it in #115 and #128.
If you want to have a quick chat with us, tweet us @yangmillstheory or @timche_.
BREAKING CHANGES
- Omit payload on undefined only (#128) (aaaa110) - @timche
- Make defaultState required when creating reducers (#127) (26a9ccb) - @yangmillstheory
- Enforce reducer type in handleAction (#156) (69f69ec) - @yangmillstheory
- Check type of payload creator (#129) (f9bf59e) - @yangmillstheory
- Add descriptive error for missing or invalid actions (ea04ccf) - @JaKXz
Enhancements
- standardize on invariant for runtime checks (227db63) - @yangmillstheory