Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

0.9.0

Compare
Choose a tag to compare
@steffans steffans released this 24 Jun 14:35
· 245 commits to develop since this release

Note this release has API changes, make sure to update your code when upgrading

New

  • Added Request and Response classes
  • Added Response methods text(), json() and blob()
  • Added credentials option for CORS requests
  • Added progress option to handle progress events of uploads

Changed

  • Renamed option data to body
  • Renamed option beforeSend to before
  • Renamed method Request.cancel() to Request.abort()
  • Changed property Response.headers to object
  • Changed arguments for Http.get(url, [data], [options]) to Http.get(url, [options])
  • Interceptors use Request.respondWith() method to return a Response

Removed

  • No chain break in Promise (#248)
  • Callbacks success, error and always
  • Removed property Response.request
  • Removed option xhr use progress or credentials options instead
  • Removed option upload use progress or credentials options instead