This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
Releases: pagekit/vue-resource
Releases · pagekit/vue-resource
1.0.0
Note this release has API changes, make sure to update your code when upgrading
New
- Added
Headers
class
Changed
- Changed
Request.headers
toHeaders
object - Changed
Response.headers
toHeaders
object - Changed
Response.body
property to provide processed body data asObject
,Blob
,string
- Changed
Response
methodstext()
,json()
andblob()
to return aPromise
Fixed
0.9.3
0.9.2
0.9.1
0.9.0
Note this release has API changes, make sure to update your code when upgrading
New
- Added
Request
andResponse
classes - Added
Response
methodstext()
,json()
andblob()
- Added
credentials
option for CORS requests - Added
progress
option to handle progress events of uploads
Changed
- Renamed option
data
tobody
- Renamed option
beforeSend
tobefore
- Renamed method
Request.cancel()
toRequest.abort()
- Changed property
Response.headers
toobject
- Changed arguments for
Http.get(url, [data], [options])
toHttp.get(url, [options])
- Interceptors use
Request.respondWith()
method to return aResponse
Removed
- No chain break in Promise (#248)
- Callbacks
success
,error
andalways
- Removed property
Response.request
- Removed option
xhr
useprogress
orcredentials
options instead - Removed option
upload
useprogress
orcredentials
options instead
0.8.0
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 = '...';
});
});