Skip to content

Commit da7562f

Browse files
committed
bump beta8 with ng4 support
1 parent 1e754ed commit da7562f

File tree

7 files changed

+478
-435
lines changed

7 files changed

+478
-435
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ www/
3131
config.json
3232
dist/
3333
aot/
34+
aot2/
3435
angular2-webpack-starter/
3536
testionic/

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<a name="3.0.0-beta8></a>
2+
### 3.0.0-beta8 (2017-05-24)
3+
4+
Angular 4.x support for AOT
5+
16
<a name="3.0.0-beta7></a>
27
### 3.0.0-beta7 (2017-02-04)
38

demo/app.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from '@angular/core';
1+
import { Component, VERSION } from '@angular/core';
22
import {
33
WpApiPosts,
44
WpApiPages,
@@ -56,6 +56,7 @@ export class App {
5656
private wpApiTerms: WpApiTerms,
5757
private wpApiCustom: WpApiCustom
5858
) {
59+
console.log('VERSION', VERSION.full);
5960
const serviceNames = Object.keys(config.api);
6061
for (let i = 0, len = serviceNames.length; i <= len; i++) {
6162
let serviceName = serviceNames[i];

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-api-angular",
3-
"version": "3.0.0-beta7",
3+
"version": "3.0.0-beta8",
44
"description": "WordPress WP-API v2 client for Angular2",
55
"main": "wp-api-angular.js",
66
"typings": "wp-api-angular.d.ts",
@@ -12,9 +12,7 @@
1212
"watch": "rm -rf dist && node ./node_modules/@angular/compiler-cli/src/main.js",
1313
"publish": "npm run build && npm publish dist",
1414
"dumpdev": "ENV=dev webpack --progress --colors --config webpack.config.dist.js -d",
15-
"dumpprod": "ENV=prod webpack --progress --colors --config webpack.config.dist.js -p",
16-
"postinstall": "typings install",
17-
"typings": "typings"
15+
"dumpprod": "ENV=prod webpack --progress --colors --config webpack.config.dist.js -p"
1816
},
1917
"repository": {
2018
"type": "git",
@@ -34,17 +32,19 @@
3432
"url": "https://github.com/shprink/wp-api-angular/issues"
3533
},
3634
"homepage": "https://github.com/shprink/wp-api-angular",
35+
"peerDependencies": {
36+
"@angular/core": "^4.0.0",
37+
"@angular/http": "^4.0.0"
38+
},
3739
"dependencies": {
38-
"@angular/common": "^2.0.0",
39-
"@angular/compiler": "^2.0.0",
40-
"@angular/compiler-cli": "^2.4.4",
41-
"@angular/core": "^2.0.0",
42-
"@angular/http": "^2.0.0",
43-
"@angular/platform-browser": "^2.0.0",
44-
"@angular/platform-browser-dynamic": "^2.0.0",
40+
"@angular/common": "^4.0.0",
41+
"@angular/compiler": "^4.0.0",
42+
"@angular/platform-browser": "^4.0.0",
43+
"@angular/platform-browser-dynamic": "^4.0.0",
4544
"rxjs": "^5.0.0"
4645
},
4746
"devDependencies": {
47+
"@angular/compiler-cli": "^4.0.0",
4848
"babel-core": "^6.10.4",
4949
"babel-loader": "^6.2.4",
5050
"core-js": "^2.4.0",

src/tokens.ts

-4
This file was deleted.

src/wp-api-angular.ts

-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import {
66
import 'rxjs';
77
import { Http, HttpModule } from '@angular/http';
88

9-
import { WpApiApp } from './tokens';
10-
119
import { WpApiPosts } from './Posts';
1210
import { WpApiPages } from './Pages';
1311
import { WpApiComments } from './Comments';
@@ -32,8 +30,6 @@ export { WpApiTerms } from './Terms';
3230
export { WpApiCustom } from './Custom';
3331
export { WpApiLoader, WpApiStaticLoader } from './Loaders';
3432

35-
export { WpApiApp } from './tokens';
36-
3733
export function WpApiLoaderFactory(http: Http) {
3834
return new WpApiStaticLoader(http);
3935
}

0 commit comments

Comments
 (0)