Skip to content

Commit ff9fd72

Browse files
SethDavenporte-schultz
authored andcommitted
Chore/release candidate (#74)
* updating to release-candidate * Update example to RC 0 * Updated the README examples to RC 0. * Minor version bump due to Angular dependency update. * Update to Angular 2 RC 1
1 parent 9006012 commit ff9fd72

File tree

9 files changed

+30
-25
lines changed

9 files changed

+30
-25
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ allow for asynchronous actions, and
214214
* Angular 2's `http` service to make auth requests.
215215

216216
```typescript
217-
import { Injectable } from 'angular2/core';
218-
import { Http } from 'angular2/http';
217+
import { Injectable } from '@angular/core';
218+
import { Http } from '@angular/http';
219219

220220
import {
221221
LOGIN_USER_PENDING,
@@ -254,7 +254,7 @@ To use these action creators, we can just go ahead an map them
254254
to our container component:
255255
256256
```typescript
257-
import { Component } from 'angular2/core';
257+
import { Component } from '@angular/core';
258258
import { NgRedux } from 'ng2-redux';
259259
import { SessionActions } from '../actions/session';
260260
import { IAppState } from './app-state';
@@ -297,7 +297,7 @@ which is available post-bootstrap:
297297
298298
```typescript
299299
import { provider } from 'ng2-redux';
300-
import { HTTP_PROVIDERS } from 'angular2/http';
300+
import { HTTP_PROVIDERS } from '@angular/http';
301301
import { setAppInjector } from './utils/app-injector';
302302

303303
bootstrap(RioSampleApp, [
@@ -312,7 +312,7 @@ bootstrap(RioSampleApp, [
312312
Note `utils/app-injector`, which provides a place to save it:
313313
314314
```typescript
315-
import { Injector } from 'angular2/core';
315+
import { Injector } from '@angular/core';
316316

317317
let appInjector: Injector;
318318

@@ -331,7 +331,7 @@ manually to get access to Angular services like HTTP:
331331
`log-name-middleware.ts`:
332332
333333
```typescript
334-
import { Http } from 'angular2/http';
334+
import { Http } from '@angular/http';
335335
import { getAppInjector } from '../utils/app-injector';
336336

337337
export const logNameMiddleware = store => next => action => {

examples/counter/components/Counter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, Input} from 'angular2/core';
1+
import {Component, Input} from '@angular/core';
22

33
@Component({
44
selector: 'counter',

examples/counter/containers/App.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {Component, Inject, OnDestroy, ApplicationRef} from 'angular2/core';
1+
import {Component, Inject, OnDestroy, ApplicationRef} from '@angular/core';
22
import {Observable} from 'rxjs';
3-
import {AsyncPipe} from 'angular2/common';
3+
import {AsyncPipe} from '@angular/common';
44
import {Counter} from '../components/Counter';
55
import * as CounterActions from '../actions/CounterActions';
66
import {NgRedux} from 'ng2-redux';

examples/counter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bootstrap} from 'angular2/platform/browser';
1+
import {bootstrap} from '@angular/platform-browser-dynamic';
22
import {App} from './containers/App';
33
import configureStore from './store/configureStore';
44
import {provider} from 'ng2-redux';

examples/counter/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@
2424
},
2525
"homepage": "https://github.com/wbuchwalter/ng2-redux#readme",
2626
"dependencies": {
27-
"angular2": "2.0.0-beta.17",
28-
"es6-shim": "0.35.0",
27+
"@angular/common": "^2.0.0-rc.1",
28+
"@angular/compiler": "^2.0.0-rc.1",
29+
"@angular/core": "2.0.0-rc.1",
30+
"@angular/platform-browser": "^2.0.0-rc.1",
31+
"@angular/platform-browser-dynamic": "^2.0.0-rc.1",
32+
"core-js": "^2.3.0",
2933
"ng2-redux": "^2.2.3",
3034
"react": "^0.14.8",
3135
"redux": "^3.4.0",
3236
"redux-logger": "^2.6.1",
3337
"redux-thunk": "^2.0.1",
34-
"reflect-metadata": "0.1.2",
38+
"reflect-metadata": "0.1.3",
3539
"rtts_assert": "2.0.0-alpha.30",
3640
"rxjs": "5.0.0-beta.6",
3741
"zone.js": "0.6.12"

examples/counter/vendor.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import 'es6-shim';
2-
import 'angular2/bundles/angular2-polyfills'
3-
import 'angular2/platform/browser'
4-
import 'angular2/platform/common_dom'
5-
import 'angular2/core'
6-
import 'angular2/router'
7-
import 'angular2/http'
1+
import 'core-js/es6';
2+
import 'core-js/es7/reflect';
3+
require('zone.js/dist/zone');
4+
import '@angular/common';
5+
import '@angular/compiler';
6+
import '@angular/core';
7+
import '@angular/platform-browser';
8+
import '@angular/platform-browser-dynamic';
89
import 'redux'
910
import 'redux-thunk'
1011
import 'redux-logger'

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-redux",
3-
"version": "2.2.3",
3+
"version": "2.3.0",
44
"description": "Angular 2 bindings for Redux",
55
"main": "./lib/index.js",
66
"scripts": {
@@ -50,10 +50,10 @@
5050
"ts-loader": "^0.8.1",
5151
"ts-node": "^0.5.5",
5252
"typescript": "^1.8.10",
53-
"angular2": "2.0.0-beta.17",
53+
"@angular/core": "2.0.0-rc.1",
5454
"es6-shim": "^0.35.0",
5555
"redux": "^3.4.0",
56-
"reflect-metadata": "0.1.2",
56+
"reflect-metadata": "0.1.3",
5757
"rxjs": "5.0.0-beta.6",
5858
"zone.js": "0.6.12"
5959
},

src/components/ng-redux.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as invariant from 'invariant';
55
import * as _ from 'lodash';
66
import { BehaviorSubject, Observable } from 'rxjs';
77
import { Store, Action, ActionCreator, Reducer } from 'redux';
8-
import {Injectable} from 'angular2/core';
8+
import {Injectable} from '@angular/core';
99

1010
const VALID_SELECTORS = ['string', 'number', 'symbol', 'function'];
1111
const ERROR_MESSAGE = `Expected selector to be one of:

src/components/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { provide, Provider } from 'angular2/core';
1+
import { provide, Provider } from '@angular/core';
22
import { Store } from 'redux';
33
import { NgRedux } from './ng-redux';
44

0 commit comments

Comments
 (0)