added a new FAQ entry on representing normalised data in app-db
added a new FAQ entry on how to register a global interceptor
Breaking
#357
I'd be amazed if this actually broke any apps. Shocked! But, better safe than sorry.
The effect handler for :db has changed: if the new value provided tests
identical? to the existing value within app-db, then app-db is not reset!.
Previously, app-db was always reset! irrespective,
which potentially caused Layer 2 subscriptions to run unnecessarily. So this is a tiny
efficiency change in this edge case, and it results in behaviour that better matches
programmer intuitions.
Minor Fixes and Improvements
#400 Improve error message when a registered cofx can't be found
The effect handler for :dispatch-n will now ignore nils. See checkin
re-frame now supports self-hosted ClojureScript at an alpha/unofficial/experimental level. It may be removed in the future if it causes problems elsewhere. #325
reg-sub enforces using :<- to indicate subscription inputs. Previously any keyword would have worked here. While using anything other than :<- was undefined behaviour previously, this could possibly break some code when upgrading. Thanks to @Sohalt#336.
Fixes
re-frame.interceptor/update-coeffect has been fixed. #328
Fix ns form in re-frame.interceptor. Thanks to @ggeoffrey. #338
Update dependency on reagent from 0.6.0-rc to 0.6.0.
A truckload of tweaks, spelling fixes, and general improvements to the docs. A big thanks to everyone who contributed!
Fixes
Use :devDependencies instead of :dependencies for the lein-npm Karma dependencies. This stops consumers of re-frame with the lein-npm plugin from having to install Karma and friends.
Correct :id of on-changes interceptor from :enrich to :on-changes