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

Releases: pagekit/vue-resource

1.0.0

04 Sep 12:36
Compare
Choose a tag to compare

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

New

  • Added Headers class

Changed

  • Changed Request.headers to Headers object
  • Changed Response.headers to Headers object
  • Changed Response.body property to provide processed body data as Object, Blob, string
  • Changed Response methods text(), json() and blob() to return a Promise

Fixed

  • Blob issue (#320)
  • Lowercase HTTP header issue (#317)

0.9.3

01 Jul 16:16
Compare
Choose a tag to compare

Fixed

  • Timeout request abort

0.9.2

01 Jul 16:20
Compare
Choose a tag to compare

New

  • Allow Promise in Response interceptor as return value

0.9.1

25 Jun 08:28
Compare
Choose a tag to compare

Fixed

  • XDR status

0.9.0

24 Jun 14:35
Compare
Choose a tag to compare

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

0.8.0

15 Jun 15:04
Compare
Choose a tag to compare

New

  • Added jsnext:main in package.json

Changed

  • Updated interceptor implementation
Vue.http.interceptors.push((request, next)  => {

    // modify request
    resquest.method = 'POST';

    // continue to next interceptor
    next((response) => {

        // modify response
        response.data = '...';

    });
});

0.7.4

12 Jun 13:52
Compare
Choose a tag to compare

New

  • ES6 modules

Fixed

  • Trim status text (#276)
  • IE9 status 1223 bug (#288)
  • Use XHR2 response (#268)

0.7.3

11 Jun 13:34
Compare
Choose a tag to compare

Fixed

  • Strict mode issue (#250)

0.7.2

26 May 12:21
Compare
Choose a tag to compare

New

  • Add CommonJS build for npm

0.7.1

26 May 09:29
Compare
Choose a tag to compare

Changed

  • Check if plugin is installed