Skip to content

1.0.0

Choose a tag to compare

@ipoddubny ipoddubny released this 20 Aug 14:57
· 32 commits to master since this release

Breaking API changes:

  • connect, send and disconnect return JS promises
  • callback to send is now called only once, and must follow the node convention (err, res)
  • send expects object keys to be in lower case
  • keys in events and results of send are always converted to lower case
  • events option is not a boolean anymore but a string, allowing to connect with selective event subscription
  • actions returning event lists are automatically collected into eventlist property (pre-13 Asterisks are also supported)
  • Command action output is collected into output property for compatibility with Asterisk 14 and newer (previously, it was CMD)
  • all returned errors are instances of Error
  • re-connection is not attempted if the initial connection fails