Skip to content

Commit 44dbf50

Browse files
authored
Backport changelog fixups from http://cl/229787474 (#207)
1 parent aaf0ca9 commit 44dbf50

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

firebase-firestore/CHANGELOG.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# Unreleased
2+
3+
# 18.0.0
24
- [changed] The `timestampsInSnapshotsEnabled` setting is now enabled by
3-
default so timestamp fields read from a `DocumentSnapshot` will be returned
4-
as `Timestamp` objects instead of `Date`. Any code expecting to receive a
5-
`Date` object must be updated.
6-
- [feature] Custom objects (POJOs) can now be passed as a field value in
7-
update(), within `Map<>` objects passed to set(), in array transform
8-
operations, and in query filters.
9-
- [feature] DocumentSnapshot.get() now supports retrieving fields as
10-
custom objects (POJOs) by passing a Class<T> instance, e.g.
5+
default. Timestamp fields that read from a `DocumentSnapshot` are now
6+
returned as `Timestamp` objects instead of `Date` objects. This is a breaking
7+
change; developers must update any code that expects to receive a `Date`
8+
object. See https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/FirebaseFirestoreSettings.Builder.html#setTimestampsInSnapshotsEnabled(boolean) for more details.
9+
- [feature] Custom objects (POJOs) can now be passed in several ways: as a
10+
field value in `update()`, within `Map<>` objects passed to `set()`, in array
11+
transform operations, and in query filters.
12+
- [feature] `DocumentSnapshot.get()` now supports retrieving fields as
13+
custom objects (POJOs) by passing a `Class<T>` instance, e.g.,
1114
`snapshot.get("field", CustomType.class)`.
12-
- [fixed] Fixed a crash that could happen when the app is shut down after
13-
a write has been sent to the server but before it has been received on
14-
a listener.
15+
- [fixed] Fixed an issue where if an app sent a write to the server, but the
16+
app was shut down before a listener received the write, the app could crash.
1517

1618
# 17.1.5
1719
- [changed] Firestore now recovers more quickly from bad network states.

0 commit comments

Comments
 (0)