Skip to content

Commit 5ad9ce5

Browse files
committed
Merge branch 'release/3.0.0-alpha2'
2 parents 032703e + fc2a009 commit 5ad9ce5

File tree

9 files changed

+31
-39
lines changed

9 files changed

+31
-39
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ node_modules
2929

3030
www/
3131
config.json
32-
typings

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<a name="3.0.0-alpha2"></a>
2+
### 3.0.0-alpha2 (2016-07-24)
3+
4+
Adding peer dependencies
5+
16
<a name="3.0.0-alpha1"></a>
27
### 3.0.0-alpha1 (2016-07-23)
38

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,8 @@ If you want to use AngularJS v1, here is the latest version: [v2.0.0-rc3](https:
77

88
## Installation
99

10-
### Dependencies
11-
12-
make sure you have those packages installed:
13-
14-
- '@angular/core'
15-
- '@angular/http'
16-
- 'rxjs'
17-
18-
### via npm
19-
2010
```shell
21-
npm install wp-api-angularjs@v3.0.x
11+
npm install wp-api-angularjs
2212
```
2313

2414
## Bootstrap

config.dist.json

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"api" : {
44
"wpApiPosts": {
55
"getList": [{
6-
"per_page": 1
6+
"search": "_embed=true&per_page=1"
77
}],
88
"get": [2016],
99
"getMetaList": [2016],
@@ -18,20 +18,14 @@
1818
"wpApiCustom": {
1919
"movie": {
2020
"getList": [{
21-
"per_page": 1
21+
"search": "_embed=true&per_page=1"
2222
}],
23-
"get": [295]
24-
},
25-
"plane": {
26-
"getList": [{
27-
"per_page": 1
28-
}],
29-
"get": [295]
23+
"get": [2595]
3024
}
3125
},
3226
"wpApiPages": {
3327
"getList": [{
34-
"per_page": 1
28+
"search": "_embed=true&per_page=1"
3529
}],
3630
"get": [535],
3731
"getMetaList": [535],
@@ -41,13 +35,13 @@
4135
},
4236
"wpApiMedia": {
4337
"getList": [{
44-
"per_page": 1
38+
"search": "_embed=true&per_page=1"
4539
}],
46-
"get": [2032]
40+
"get": [2499]
4741
},
4842
"wpApiTypes": {
4943
"getList": [{
50-
"per_page": 1
44+
"search": "_embed=true&per_page=1"
5145
}],
5246
"get": ["attachment"]
5347
},
@@ -59,14 +53,13 @@
5953
"getList": [],
6054
"get": ["category"]
6155
},
62-
"wpApiTerms": {
63-
"getCategoryList": [],
64-
"getCategory": [2],
65-
"getTagList": [],
66-
"getTag": [11],
67-
"getCustomList": ["audience"],
68-
"getCustom": ["audience", 6]
69-
},
56+
"wpApiTerms": [{
57+
"getList": ["tags"],
58+
"get": ["tags", 11]
59+
},{
60+
"getList": ["categories"],
61+
"get": ["categories", 2]
62+
}],
7063
"wpApiUsers": {
7164
"getList": [],
7265
"get": [1],

dist/wp-api-angularjs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/wp-api-angularjs.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"name": "wp-api-angularjs",
3-
"version": "3.0.0-alpha1",
3+
"version": "3.0.0-alpha2",
44
"description": "WordPress WP-API v2 client for Angular2",
55
"main": "dist/wp-api-angularjs.js",
66
"scripts": {
77
"start": "webpack-dev-server --port 8080 --json --progress --config webpack.config.js",
88
"build": "npm run dumpdev && npm run dumpprod",
9-
"publish": "npm run build && npm publish dist",
109
"dumpdev": "ENV=dev webpack --progress --colors --config webpack.config.dist.js -d",
1110
"dumpprod": "ENV=prod webpack --progress --colors --config webpack.config.dist.js -p",
1211
"watch": "ENV=dev webpack --watch --progress --colors --config webpack.config.dist.js -d",
@@ -53,7 +52,9 @@
5352
"webpack-dev-server": "~1.14.1",
5453
"zone.js": "^0.6.12"
5554
},
56-
"dependencies": {
57-
"js-base64": "^2.1.9"
55+
"peerDependencies": {
56+
"@angular/core": "2.0.0-rc.2 || 2.0.0-rc.3 || 2.0.0-rc.4 || 2.0.0-rc.5 || 2.0.0-rc.6 || 2.0.0-rc.7 || 2.0.0-rc.8 || 2.0.0-rc.9",
57+
"@angular/http": "2.0.0-rc.2 || 2.0.0-rc.3 || 2.0.0-rc.4 || 2.0.0-rc.5 || 2.0.0-rc.6 || 2.0.0-rc.7 || 2.0.0-rc.8 || 2.0.0-rc.9",
58+
"rxjs": "5.0.0-beta.6"
5859
}
5960
}

typings/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!overwrite.d.ts

typings/overwrite.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare function require(string): any;

0 commit comments

Comments
 (0)