Skip to content

Conversation

@dmurvihill
Copy link
Owner

Re-submitting the pull request from the original repo.

op added 12 commits March 1, 2019 11:09
This has been the default for Firebase for a while now.
Previously, when a document have a reference to another document, we
ended up in an infinite loop. This is now prevented by only follow plain
objects.

This logic makes it easier to reason about the call chain too.
Previous behavior for Server Timestamp was to return UNIX timestamp.
This is the correct bahviour still for the client firebase.database
library. This change restores this.
Internally date is now stored as Date until returned, where it is
converted to Timestamp. This fixes orderBy.
@dmurvihill dmurvihill added this to the v3.0.0 milestone Dec 2, 2019
@dmurvihill
Copy link
Owner Author

@op, there have been conflicting changes to the API of the utils.removeEmptyFirestoreProperties function. Can you investigate please?

# Conflicts:
#	package-lock.json
#	src/firestore-document-snapshot.js
#	src/firestore-document.js
#	src/firestore-query.js
#	src/utils.js
#	test/unit/firestore-collection.js
#	test/unit/utils.js
@dmurvihill
Copy link
Owner Author

Thanks @op, great PR. Merging now! Look for this in 3.0.0.

@dmurvihill dmurvihill merged commit 467ecc0 into master Jan 6, 2020
@dmurvihill dmurvihill deleted the timestamp branch January 6, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants