diff --git a/firestore/collection/index.ts b/firestore/collection/index.ts index 1a2ae88..cda24e0 100644 --- a/firestore/collection/index.ts +++ b/firestore/collection/index.ts @@ -188,10 +188,11 @@ const filterEmptyUnlessFirst = (): UnaryFunction< export function collectionChanges( query: Query, options: { - events?: DocumentChangeType[] - }={}, + events?: DocumentChangeType[], + includeMetadataChanges: boolean + }={includeMetadataChanges: true}, ): Observable[]> { - return fromRef(query, {includeMetadataChanges: true}).pipe( + return fromRef(query, {includeMetadataChanges: options.includeMetadataChanges}).pipe( windowwise(), map(([priorSnapshot, currentSnapshot]) => { const docChanges = currentSnapshot.docChanges(); diff --git a/package.json b/package.json index d2c1ec4..f849edc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rxfire", - "version": "6.0.6", + "version": "6.0.7", "private": true, "description": "Firebase JavaScript library RxJS", "author": "Firebase (https://firebase.google.com/)",