changelogs.md


sethvincent/send-action

Repository  -  API  -  Source

3.0.0

Added

Removed

  • removed redux-style send({ type: 'actionName' }) syntax in favor of send('actionName', data)
  • send.event was removed. consider creating a small thunkified wrapper around send if needed
  • removed testron tests for now, and removed testron and electron-prebuilt dependencies
  • temporarily removed requirebin links (considering replacing them after this version is released and requirebin issues are sorted out)

Changed

  • onAction function now has the signature function onAction (state, action, data) {}
  • onChange function now has the signature function onChange (state, prev) {}
  • onAction and onChange are now aliases for onaction and onchange
  • onAction can return null. in that case onChange will not be called
  • process.nextTick replaced with setTimeout
  • using assert to validate options instead of throwing errors

2.0.0

Changed

  • only call onchange when state actually changes

1.0.0

Added

  • Initial implementation