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

Commit 6dc41c4

Browse files
committed
Merge branch 'release/1.0.0'
2 parents e48b6fe + 93d687e commit 6dc41c4

27 files changed

+2587
-1780
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vue-resource [![npm package](https://img.shields.io/npm/v/vue-resource.svg)](https://www.npmjs.com/package/vue-resource)
1+
# vue-resource [![Downloads](https://img.shields.io/npm/dt/vue-resource.svg)](https://www.npmjs.com/package/vue-resource) [![Version](https://img.shields.io/npm/v/vue-resource.svg)](https://www.npmjs.com/package/vue-resource) [![License](https://img.shields.io/npm/l/vue-resource.svg)](https://www.npmjs.com/package/vue-resource)
22

33
The plugin for [Vue.js](http://vuejs.org) provides services for making web requests and handle responses using a [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) or JSONP.
44

@@ -7,7 +7,7 @@ The plugin for [Vue.js](http://vuejs.org) provides services for making web reque
77
- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API and [URI Templates](https://medialize.github.io/URI.js/uri-template.html)
88
- Supports [interceptors](docs/http.md#interceptors) for request and response
99
- Supports latest Firefox, Chrome, Safari, Opera and IE9+
10-
- Compact size 12KB (4.5KB gzipped)
10+
- Compact size 14KB (5.3KB gzipped)
1111

1212
## Installation
1313

@@ -22,9 +22,21 @@ $ bower install vue-resource
2222
```
2323

2424
### CDN
25-
Available on [jsdelivr](https://cdn.jsdelivr.net/vue.resource/0.9.3/vue-resource.min.js), [cdnjs](https://cdnjs.com/libraries/vue-resource) or [npmcdn](https://npmcdn.com/vue-resource@0.9.3/dist/vue-resource.min.js).
25+
Available on [jsdelivr](https://cdn.jsdelivr.net/vue.resource/1.0.0/vue-resource.min.js), [cdnjs](https://cdnjs.com/libraries/vue-resource) or [npmcdn](https://npmcdn.com/vue-resource@1.0.0/dist/vue-resource.min.js).
2626
```html
27-
<script src="https://cdn.jsdelivr.net/vue.resource/0.9.3/vue-resource.min.js"></script>
27+
<script src="https://cdn.jsdelivr.net/vue.resource/1.0.0/vue-resource.min.js"></script>
28+
```
29+
30+
## Example
31+
```js
32+
{
33+
// GET /someUrl
34+
this.$http.get('/someUrl').then((response) => {
35+
// success callback
36+
}, (response) => {
37+
// error callback
38+
});
39+
}
2840
```
2941

3042
## Documentation
@@ -33,6 +45,7 @@ Available on [jsdelivr](https://cdn.jsdelivr.net/vue.resource/0.9.3/vue-resource
3345
- [HTTP Requests/Response](docs/http.md)
3446
- [Creating Resources](docs/resource.md)
3547
- [Code Recipes](docs/recipes.md)
48+
- [API Reference](docs/api.md)
3649

3750
## Changelog
3851

bower.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"name": "vue-resource",
33
"main": "dist/vue-resource.js",
4-
"description": "A web request service for Vue.js",
5-
"version": "0.9.3",
4+
"version": "1.0.0",
5+
"description": "The HTTP client for Vue.js",
66
"homepage": "https://github.com/vuejs/vue-resource",
77
"license": "MIT",
8+
"keywords": [
9+
"vue",
10+
"xhr",
11+
"http",
12+
"ajax"
13+
],
814
"ignore": [
915
".*",
1016
"build",

0 commit comments

Comments
 (0)