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
listCollectionsin DocumentReferences
- (Breaking) Consistent with Firebase SDK version 4.0.0 and later,
and later,
onAuthStateChangedno longer issues an event when a new ID token is issued for the same user. TheonIdTokenChangedmethod is now mocked, keeping the previous behavior. MockStorageFile.download()now allows omitting the destination arg; in that case, it simply resolves thePromisewith the file contents and does not write it anywhere else.
onAuthStateChangednow 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.childnow 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>.