🎁 Specify Auth Params and Handle Complex Events
AKA, the @hamiltoes release, because this release includes three well-tested PRs from @hamiltoes.
🎁 New Features
- #476 Handle Complex Events: Model-layer events have gained some additional smarts, now supporting an array tuple syntax in additional to the regular dispatched model object. Using the tuple syntax allows returning a tuple [affectsStore, dataToDispatch] where affectsStore behaves exactly as it does now (can be truthy), and dataToDispatch is the data to dispatch to actions. To preserve current functionality and not make this a breaking change, if an array is not returned from the handler, the value is used for affectsStore and the original item is dispatched. Thank you @hamiltoes for the great PR and tests!
- #474 Allow Passing Auth Params: You can now pass a params object to the Auth plugin's
authenticate
method. Thank you @hamiltoes for the great PR and tests!
🐜 handleEvents
Bug Fix
This release also includes one bug fix surrounding the handleEvents
options for makeServicePlugin. After a regression a couple of patch releases ago, the handleEvents
methods weren't even running. Thanks to @s3ns3i and @J3m5for reporting and reviewing the bug, and finally @hamiltoes for the PR to fix it.