Skip to content

Commit 072c4a8

Browse files
authored
chore(release): 6.0.1 (#2519)
* fix(schematic): merge conflict in deploy action * CRUD operations should be in ngZone * Update perf doc with await * Changelog entry
1 parent 38539d0 commit 072c4a8

File tree

5 files changed

+28
-17
lines changed

5 files changed

+28
-17
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<a name="6.0.1"></a>
2+
# [6.0.1](https://github.com/angular/angularfire2/compare/6.0.0...6.0.1) (2020-06-24)
3+
4+
* Updating peer dependencies to allow for Angular 10
5+
* `ng add @angular/fire` should correctly add the `firebase` peer
6+
* `ng add @angular/fire` will not duplicate settings entries, if they're already present
7+
* `ng add @angular/fire` will error if there are peer incompatabilities
8+
* `ng deploy` should function correctly on Windows devices
9+
* `ng deploy` will now mark the Angular assets as immutable on Firebase Hosting
10+
* RTDB and Firestore CRUD operations should return in the ngZone
11+
* Use of `AngularFireAuthGuard` should no longer destablize Zone.js
12+
113
<a name="6.0.0"></a>
214
# [6.0.0](https://github.com/angular/angularfire2/compare/6.0.0-rc.2...6.0.0) (2020-04-01)
315

docs/performance/getting-started.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ You can inject `AngularFirePerformance` to perform manual traces.
5252
```ts
5353
constructor(private performance: AngularFirePerformance) {}
5454

55-
ngOnInit() {
56-
const trace = this.performance.trace('some-trace');
57-
trace.start();
58-
...
59-
trace.stop();
60-
}
55+
...
56+
57+
const trace = await this.performance.trace('some-trace');
58+
trace.start();
59+
...
60+
trace.stop();
6161
```
6262

6363
## RXJS operators

src/database/list/create-reference.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import { map } from 'rxjs/operators';
99

1010
export function createListReference<T= any>(query: DatabaseQuery, afDatabase: AngularFireDatabase): AngularFireList<T> {
1111
const outsideAngularScheduler = afDatabase.schedulers.outsideAngular;
12+
const refInZone = afDatabase.schedulers.ngZone.run(() => query.ref);
1213
return {
1314
query,
14-
update: createDataOperationMethod<Partial<T>>(query.ref, 'update'),
15-
set: createDataOperationMethod<T>(query.ref, 'set'),
16-
push: (data: T) => query.ref.push(data),
17-
remove: createRemoveMethod(query.ref),
15+
update: createDataOperationMethod<Partial<T>>(refInZone, 'update'),
16+
set: createDataOperationMethod<T>(refInZone, 'set'),
17+
push: (data: T) => refInZone.push(data),
18+
remove: createRemoveMethod(refInZone),
1819
snapshotChanges(events?: ChildEvent[]) {
1920
return snapshotChanges<T>(query, events, outsideAngularScheduler).pipe(afDatabase.keepUnstableUntilFirst);
2021
},

src/firestore/firestore.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ export class AngularFirestore {
182182
collectionRef = pathOrRef;
183183
}
184184
const { ref, query } = associateQuery(collectionRef, queryFn);
185-
return new AngularFirestoreCollection<T>(ref, query, this);
185+
const refInZone = this.schedulers.ngZone.run(() => ref);
186+
return new AngularFirestoreCollection<T>(refInZone, query, this);
186187
}
187188

188189
/**
@@ -212,7 +213,8 @@ export class AngularFirestore {
212213
} else {
213214
ref = pathOrRef;
214215
}
215-
return new AngularFirestoreDocument<T>(ref, this);
216+
const refInZone = this.schedulers.ngZone.run(() => ref);
217+
return new AngularFirestoreDocument<T>(refInZone, this);
216218
}
217219

218220
/**

src/schematics/deploy/actions.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,7 @@ export const deployToFunction = async (
183183
open(`http://localhost:${port}`);
184184
}, 1500);
185185

186-
<<<<<<< HEAD
187-
return firebaseTools.serve({ port, targets: ['hosting', 'functions'] }).then(() =>
188-
=======
189-
return firebaseTools.serve({ port, targets: ["hosting", "functions"], host: 'localhost'}).then(() =>
190-
>>>>>>> 074c477... fix(deploy): undefined:5000 -> localhost:5000
186+
return firebaseTools.serve({ port, targets: ['hosting', 'functions'], host: 'localhost'}).then(() =>
191187
require('inquirer').prompt({
192188
type: 'confirm',
193189
name: 'deployProject',

0 commit comments

Comments
 (0)