Skip to content

Commit 793dd9a

Browse files
Fix/generic aot fun (#248)
* remove redundant decorator invocation * prep changelog for 4.0.0
1 parent 7fea7a9 commit 793dd9a

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# 4.0.0-beta.6
1+
# 4.0.0
22

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)
47

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
69

710
* 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
1013

11-
### Using NgReduxModule
14+
### Breaking Change: Using NgReduxModule
1215

1316
```js
1417
import { BrowserModule } from '@angular/platform-browser';
@@ -17,6 +20,7 @@ import { AppComponent } from './app.component';
1720
import { NgReduxModule, NgRedux } from 'ng2-redux';
1821
import { IAppState } from './appstate';
1922
import { rootReducer } from './store';
23+
2024
@NgModule({
2125
declarations: [
2226
AppComponent

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-redux",
3-
"version": "4.0.0-beta.7",
3+
"version": "4.0.0-beta.9",
44
"description": "Angular 2 bindings for Redux",
55
"main": "./lib/index.js",
66
"scripts": {

src/components/ng-redux.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'rxjs/add/operator/filter';
1616
import 'rxjs/add/observable/from';
1717
import 'rxjs/add/operator/distinctUntilChanged';
1818
import 'rxjs/add/operator/switchMap';
19-
import { Injectable, Optional, ApplicationRef } from '@angular/core';
19+
import { Optional, ApplicationRef } from '@angular/core';
2020

2121
import shallowEqual from '../utils/shallow-equal';
2222
import wrapActionCreators from '../utils/wrap-action-creators';
@@ -40,7 +40,6 @@ export type Comparator = (x: any, y: any) => boolean;
4040
// released.
4141
type RetypedCompose = (func: Function, ...funcs: Function[]) => Function;
4242

43-
@Injectable()
4443
export class NgRedux<RootState> {
4544
private _store: Store<RootState> = null;
4645
private _store$: BehaviorSubject<RootState> = null;

0 commit comments

Comments
 (0)