All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Changelog
- Mock
auth.Auth.onIdTokenChanged()
method, matching the previous behavior ofonAuthStateChanged()
(see below) - Support for Firebase Messaging (Admin API)
- Support for FieldValue.increment
- Support for firestore.Timestamp.now()
- Support for
listCollections
in DocumentReferences
- (Breaking) Consistent with Firebase SDK version 4.0.0 and later,
and later,
onAuthStateChanged
no longer issues an event when a new ID token is issued for the same user. TheonIdTokenChanged
method is now mocked, keeping the previous behavior. MockStorageFile.download()
now allows omitting the destination arg; in that case, it simply resolves thePromise
with the file contents and does not write it anywhere else.
onAuthStateChanged
now correctly calls its callback immediately with the current auth state.MockStorage.bucket()
andMockStorageBucket.file()
now return the existing artifact if one exists, rather than overwriting it with a new one.DataSnapshot.child
now correctly splits child paths by '/' characters- Boolean values are now allowed in RTDB priority fields and as
arguments to
Query.startAt
,Query.endAt
, andQuery.equalTo
. MockFirestoreDocument.create()
now correctly returns aPromise<WriteResult>
instead ofPromise<void>
.