This repository was 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
Headersclass
Changed
- Changed
Request.headerstoHeadersobject - Changed
Response.headerstoHeadersobject - Changed
Response.bodyproperty to provide processed body data asObject,Blob,string - Changed
Responsemethodstext(),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
RequestandResponseclasses - Added
Responsemethodstext(),json()andblob() - Added
credentialsoption for CORS requests - Added
progressoption to handle progress events of uploads
Changed
- Renamed option
datatobody - Renamed option
beforeSendtobefore - Renamed method
Request.cancel()toRequest.abort() - Changed property
Response.headerstoobject - 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,errorandalways - Removed property
Response.request - Removed option
xhruseprogressorcredentialsoptions instead - Removed option
uploaduseprogressorcredentialsoptions instead
0.8.0
New
- Added
jsnext:mainin 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 = '...';
});
});