|
1 | 1 | # Unreleased
|
| 2 | + |
| 3 | +# 18.0.0 |
2 | 4 | - [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., |
11 | 14 | `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. |
15 | 17 |
|
16 | 18 | # 17.1.5
|
17 | 19 | - [changed] Firestore now recovers more quickly from bad network states.
|
|
0 commit comments