Skip to content
This repository was archived by the owner on Aug 6, 2019. It is now read-only.

7.0.0

Choose a tag to compare

@Tathanen Tathanen released this 14 Sep 18:47
· 10 commits to master since this release

New features:

  • APIRequestUnauthorized is broadcast if requests repeated after a 401 resolution still return a 401
  • $cancel now halts the HTTP request itself, and doesn't reject the main promise by default
  • keyName method allows customization of the authorization header name

Additional breaking changes/notes:

  • If a repeated request after a 401 resolution still returns a 401, any other requests in the repeat queue are silently canceled
  • $cancel no longer rejects the main promise by default, but can be instructed to do so by passing the reject parameter
  • The authorization header has been renamed from AUTHORIZATION to Authorization. Since HTTP headers are supposed to be case-insensitive this shouldn't be breaking, but in case you were referencing it explicitly in case-sensitive JavaScript, you can use keyName to change it back.