Skip to content

v2.0.4

Compare
Choose a tag to compare
@jlivak jlivak released this 10 Jul 21:44
· 2 commits to main since this release

v2 Breaking Changes

  • If a phx_reply is returned from the server with an error status, this will now result in any waiting promises to reject with an error, rather than resolving.
  • Furthermore, it can now be assumed that any reply sent to a promise resolver will have an 'ok' status, so any error handling code will need to be moved to a .catch() call on the promise.

Bug Fixes

  • Various edge cases have been fixed which resulted in a waiting reply promise to hanging forever and never resolve/reject.