File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
- # 4.0.0-beta.6
1
+ # 4.0.0
2
2
3
- ### Fixes / Features
3
+ ### Features
4
+
5
+ * Better support for Angular CLI
6
+ * NgModule interface changes to better support Angular 2's ahead-of-time compiler (AoT)
4
7
5
- Sorry for the delay on this, was hoping to get AoT working for decorators also - but there seems to be some challenges around that.
8
+ ### Fixes
6
9
7
10
* Update build to use ngc - metadata.json is now produced
8
- * Fix ` Unexpected value ' NgReduxModule' imported `
9
- * NgReduxModule
11
+ * Introduced NgReduxModule
12
+ * Fix AoT related bugs # 247 , # 235 , # 228
10
13
11
- ### Using NgReduxModule
14
+ ### Breaking Change: Using NgReduxModule
12
15
13
16
``` js
14
17
import { BrowserModule } from ' @angular/platform-browser' ;
@@ -17,6 +20,7 @@ import { AppComponent } from './app.component';
17
20
import { NgReduxModule , NgRedux } from ' ng2-redux' ;
18
21
import { IAppState } from ' ./appstate' ;
19
22
import { rootReducer } from ' ./store' ;
23
+
20
24
@NgModule ({
21
25
declarations: [
22
26
AppComponent
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ng2-redux" ,
3
- "version" : " 4.0.0-beta.7 " ,
3
+ "version" : " 4.0.0-beta.9 " ,
4
4
"description" : " Angular 2 bindings for Redux" ,
5
5
"main" : " ./lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import 'rxjs/add/operator/filter';
16
16
import 'rxjs/add/observable/from' ;
17
17
import 'rxjs/add/operator/distinctUntilChanged' ;
18
18
import 'rxjs/add/operator/switchMap' ;
19
- import { Injectable , Optional , ApplicationRef } from '@angular/core' ;
19
+ import { Optional , ApplicationRef } from '@angular/core' ;
20
20
21
21
import shallowEqual from '../utils/shallow-equal' ;
22
22
import wrapActionCreators from '../utils/wrap-action-creators' ;
@@ -40,7 +40,6 @@ export type Comparator = (x: any, y: any) => boolean;
40
40
// released.
41
41
type RetypedCompose = ( func : Function , ...funcs : Function [ ] ) => Function ;
42
42
43
- @Injectable ( )
44
43
export class NgRedux < RootState > {
45
44
private _store : Store < RootState > = null ;
46
45
private _store$ : BehaviorSubject < RootState > = null ;
You can’t perform that action at this time.
0 commit comments