Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions firestore/collection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,11 @@ const filterEmptyUnlessFirst = <T = unknown>(): UnaryFunction<
export function collectionChanges<T=DocumentData>(
query: Query<T>,
options: {
events?: DocumentChangeType[]
}={},
events?: DocumentChangeType[],
includeMetadataChanges: boolean
}={includeMetadataChanges: true},
): Observable<DocumentChange<T>[]> {
return fromRef(query, {includeMetadataChanges: true}).pipe(
return fromRef(query, {includeMetadataChanges: options.includeMetadataChanges}).pipe(
windowwise(),
map(([priorSnapshot, currentSnapshot]) => {
const docChanges = currentSnapshot.docChanges();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rxfire",
"version": "6.0.6",
"version": "6.0.7",
"private": true,
"description": "Firebase JavaScript library RxJS",
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
Expand Down