-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Timestamp a part of the public Firestore API. (#544)
* Make Timestamp a part of the public Firestore API. * Accept Timestamps as a parameter where Dates are currently accepted. * Add an option to settings to control how timestamp fields are returned. This is a transitional state; eventually, Timestamp will live in a new separate package (common-types/). The behavior to return timestamp fields as dates is now legacy. It's on by default to allow for a transitional period. The new behavior to return Timestamp objects instead is opt-in, but will become default in the future. The advantage Timestamps have is higher precision than native browser Date. If the new behavior is not enabled, a warning is logged on startup urging users to upgrade.
- Loading branch information
Showing
38 changed files
with
831 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.