Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Timestamp support #143

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Add Timestamp support #143

wants to merge 12 commits into from

Conversation

op
Copy link

@op op commented Apr 12, 2019

This is a breaking change, which follows upstream breaking change on returning Timestamp instead of Date.

References:

  1. https://cloud.google.com/nodejs/docs/reference/firestore/latest/Timestamp
  2. https://github.com/googleapis/nodejs-firestore/blob/master/CHANGELOG.md#v0200

@op
Copy link
Author

op commented Apr 12, 2019

This change includes all work from #135.

op added 2 commits April 14, 2019 19:37
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.
op added 2 commits April 16, 2019 12:38
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.
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.

1 participant