|
1 | 1 | # Unreleased |
2 | 2 |
|
3 | 3 | # v1.0.0 |
4 | | -- [changed] The `areTimestampsInSnapshotsEnabled` setting is now enabled by |
5 | | - default so timestamp fields read from a FIRDocumentSnapshot will be returned |
6 | | - as FIRTimestamp objects instead of NSDate. Any code expecting to receive an |
7 | | - NSDate object must be updated. |
8 | | -- [changed] `Transaction.getDocument()` has been changed to return a non-nil |
9 | | - `DocumentSnapshot` with `exists` equal to `false` if the document does not |
10 | | - exist (instead of returning a nil DocumentSnapshot). Code that was previously |
11 | | - doing `if (snapshot) { ... }` must be changed to |
12 | | - `if (snapshot.exists) { ... }`. |
| 4 | +- [changed] **Breaking change:** The `areTimestampsInSnapshotsEnabled` setting |
| 5 | + is now enabled by default. Timestamp fields that read from a |
| 6 | + `FIRDocumentSnapshot` will be returned as `FIRTimestamp` objects instead of |
| 7 | + `NSDate` objects. Update any code that expects to recive a `NSDate` object. |
| 8 | + See [the reference |
| 9 | + documentation](https://firebase.google.com/docs/reference/ios/firebasefirestore/api/reference/Classes/FIRFirestoreSettings#/c:objc(cs)FIRFirestoreSettings(py)timestampsInSnapshotsEnabled) |
| 10 | + for more details. |
| 11 | +- [changed] **Breaking change:** `FIRTransaction.getDocument()` has been changed |
| 12 | + to return a non-nil `FIRDocumentSnapshot` with `exists` equal to `false` if |
| 13 | + the document does not exist (instead of returning a nil |
| 14 | + `FIRDocumentSnapshot`). Code that includes `if (snapshot) { ... }` must be |
| 15 | + changed to `if (snapshot.exists) { ... }`. |
13 | 16 | - [fixed] Fixed a crash that could happen when the app is shut down after |
14 | 17 | a write has been sent to the server but before it has been received on |
15 | 18 | a listener (#2237). |
| 19 | +- [changed] Firestore no longer bundles a copy of the gRPC certificates, now |
| 20 | + that the gRPC-C++ CocoaPod includes them. CocoaPods users should be updated |
| 21 | + automatically. Carthage users should follow the [updated |
| 22 | + instructions](https://github.com/firebase/firebase-ios-sdk/blob/master/Carthage.md) |
| 23 | + to get `gRPCCertificates.bundle` from the correct location. |
16 | 24 |
|
17 | 25 | # v0.16.1 |
18 | 26 | - [fixed] Offline persistence now properly records schema downgrades. This is a |
|
0 commit comments