File tree Expand file tree Collapse file tree 5 files changed +24
-6
lines changed Expand file tree Collapse file tree 5 files changed +24
-6
lines changed Original file line number Diff line number Diff line change
1
+ <a name =" 5.0.2 " ></a >
2
+ ## [ 5.0.2] ( https://github.com/angular/angularfire2/compare/5.0.1...5.0.2 ) (2018-09-21)
3
+
4
+ ### Bug Fixes
5
+
6
+ * ** messaging:** Fix for the binding issue and onTokenRefresh for Messaging ([ e170da1] ( https://github.com/angular/angularfire2/commit/e170da1 ) )
7
+
8
+
9
+ <a name =" 5.0.1 " ></a >
10
+ # [ 5.0.1] ( https://github.com/angular/angularfire2/compare/5.0.0...5.0.1 ) (2018-09-07)
11
+
12
+ Version 5.0.1 has been released for the deprecated ` angularfire2 ` NPM library; this simply re-exports everything from ` @angular/fire ` ; allowing you to use either ` angularfire2 ` or ` @angular/fire ` in your imports and ` package.json ` .
13
+
14
+ It will have it's dependency pinned to the corresponding minor and will be released alongside future ` @angular/fire ` releases for the rest of the 5.x series.
15
+
16
+
1
17
<a name =" 5.0.0 " ></a >
2
18
# [ 5.0.0] ( https://github.com/angular/angularfire2/compare/5.0.0-rc.12...5.0.0 ) (2018-09-04)
3
19
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { BrowserModule } from '@angular/platform-browser';
15
15
import { NgModule } from ' @angular/core' ;
16
16
import { AppComponent } from ' ./app.component' ;
17
17
import { AngularFireModule } from ' @angular/fire' ;
18
- import { AngularFireStorageModule } from ' @angular/fire/messaging' ;
18
+ import { AngularFireMessagingModule } from ' @angular/fire/messaging' ;
19
19
import { environment } from ' ../environments/environment' ;
20
20
21
21
@NgModule ({
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angularfire2" ,
3
- "version" : " 5.0.0 " ,
3
+ "version" : " 5.0.2 " ,
4
4
"description" : " The official library of Firebase and Angular." ,
5
5
"private" : true ,
6
6
"scripts" : {
12
12
"delayed_karma" : " sleep 10 && karma start" ,
13
13
"build" : " rm -rf dist && node tools/build.js" ,
14
14
"changelog" : " conventional-changelog -p angular -i CHANGELOG.md -s -r 1" ,
15
- "build:wrapper" : " npm i --prefix wrapper && VERSION=5.0.0 npm run --prefix wrapper build"
15
+ "build:wrapper" : " npm i --prefix wrapper && VERSION=5.0.2 npm run --prefix wrapper build"
16
16
},
17
17
"keywords" : [
18
18
" angular" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular/fire" ,
3
3
"version" : " ANGULARFIRE2_VERSION" ,
4
- "description" : " The core module " ,
4
+ "description" : " The official library for Firebase and Angular " ,
5
5
"main" : " ./bundles/core.umd.js" ,
6
6
"module" : " index.js" ,
7
7
"es2015" : " es2015/index.js" ,
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ export class AngularFireMessaging {
53
53
) ;
54
54
55
55
const tokenChanges = this . messaging . pipe (
56
- switchMap ( messaging => new Observable ( messaging . onTokenRefresh ) ) ,
56
+ switchMap ( messaging => new Observable ( messaging . onTokenRefresh . bind ( messaging ) ) . pipe (
57
+ switchMap ( ( ) => messaging . getToken ( ) )
58
+ ) ) ,
57
59
runOutsideAngular ( zone )
58
60
) ;
59
61
@@ -62,7 +64,7 @@ export class AngularFireMessaging {
62
64
) ;
63
65
64
66
this . messages = this . messaging . pipe (
65
- switchMap ( messaging => new Observable ( messaging . onMessage ) ) ,
67
+ switchMap ( messaging => new Observable ( messaging . onMessage . bind ( messaging ) ) ) ,
66
68
runOutsideAngular ( zone )
67
69
) ;
68
70
You can’t perform that action at this time.
0 commit comments