Skip to content

Commit 3173b71

Browse files
authored
Merge pull request #22 from angular/master
[GSF] Syncing Fork
2 parents a131d0e + ce12956 commit 3173b71

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<a name="5.1.2"></a>
2+
# [5.1.2](https://github.com/angular/angularfire2/compare/5.1.1...5.1.2) (2019-03-11)
3+
4+
5+
### Bug Fixes
6+
7+
* **afs:** No longer pull in the depreciated timestampsInSnapshots setting for Firebase 5.8 ([#2013](https://github.com/angular/angularfire2/issues/2013)) ([5df31c3](https://github.com/angular/angularfire2/commit/5df31c3))
8+
9+
<a name="5.1.1"></a>
10+
# [5.1.1](https://github.com/angular/angularfire2/compare/5.1.0...5.1.1) (2018-11-29)
11+
12+
13+
### Bug Fixes
14+
15+
* **functions:** Fix the default Functions region bug ([#1945](https://github.com/angular/angularfire2/issues/1945)) ([7d175b3](https://github.com/angular/angularfire2/commit/7d175b3))
16+
17+
18+
119
<a name="5.1.0"></a>
220
# [5.1.0](https://github.com/angular/angularfire2/compare/5.0.0-rc.12...5.1.0) (2018-10-17)
321

@@ -9,7 +27,7 @@
927

1028

1129
<a name="5.0.2"></a>
12-
## [5.0.2](https://github.com/angular/angularfire2/compare/5.0.1...5.0.2) (2018-09-21)
30+
# [5.0.2](https://github.com/angular/angularfire2/compare/5.0.1...5.0.2) (2018-09-21)
1331

1432
### Bug Fixes
1533

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularfire2",
3-
"version": "5.1.0",
3+
"version": "5.1.2",
44
"description": "The official library of Firebase and Angular.",
55
"private": true,
66
"scripts": {
@@ -12,7 +12,7 @@
1212
"delayed_karma": "sleep 10 && karma start",
1313
"build": "rm -rf dist && node tools/build.js",
1414
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
15-
"build:wrapper": "npm i --prefix wrapper && VERSION=5.1.0 npm run --prefix wrapper build"
15+
"build:wrapper": "npm i --prefix wrapper && VERSION=5.1.2 npm run --prefix wrapper build"
1616
},
1717
"keywords": [
1818
"angular",

src/firestore/firestore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { AngularFirestoreDocument } from './document/document';
77
import { AngularFirestoreCollection } from './collection/collection';
88

99
import { FirebaseFirestore, FirebaseOptions, FirebaseAppConfig, FirebaseOptionsToken, FirebaseNameOrConfigToken, _firebaseAppFactory, FirebaseZoneScheduler } from '@angular/fire';
10-
import { isPlatformBrowser } from '@angular/common';
10+
import { isPlatformServer } from '@angular/common';
1111

1212
import { firestore, SDK_VERSION } from 'firebase/app';
1313

@@ -123,7 +123,7 @@ export class AngularFirestore {
123123
return firestore;
124124
});
125125

126-
if (shouldEnablePersistence && isPlatformBrowser(platformId)) {
126+
if (shouldEnablePersistence && !isPlatformServer(platformId)) {
127127
// We need to try/catch here because not all enablePersistence() failures are caught
128128
// https://github.com/firebase/firebase-js-sdk/issues/608
129129
const enablePersistence = () => {

src/messaging/messaging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable, Inject, Optional, NgZone, PLATFORM_ID } from '@angular/core';
2-
import { isPlatformBrowser } from '@angular/common';
2+
import { isPlatformServer } from '@angular/common';
33
import { messaging } from 'firebase/app';
44
import { Observable, empty, from, of, throwError } from 'rxjs';
55
import { mergeMap, catchError, map, switchMap, concat, defaultIfEmpty } from 'rxjs/operators';
@@ -23,7 +23,7 @@ export class AngularFireMessaging {
2323
zone: NgZone
2424
) {
2525

26-
if (isPlatformBrowser(platformId)) {
26+
if (!isPlatformServer(platformId)) {
2727

2828
// @ts-ignore
2929
const requireMessaging = from(import('firebase/messaging'));

0 commit comments

Comments
 (0)