Releases: SwiftfulThinking/SwiftfulFirestore
Releases · SwiftfulThinking/SwiftfulFirestore
11.0.1
Minor syntax changes. No functionality changes.
1. 🚨 The protocol IdentifiableByString
has been renamed to StringIdentifiable
The protocol has moved to a separate package (https://github.com/SwiftfulThinking/IdentifiableByString.git).
This allows the protocol to be reused by other packages as well.
import IdentifiableByString
struct MyModel: StringIdentifiable {
let id: String
}
2. 🚨 getDocumentsQuery
and getAllDocuments(where:)
have been removed.
These added unnecessary abstraction from the Firebase SDK.
For example, this code:
try await collection.getDocumentsQuery { reference in
reference
.whereField("key", isEqualTo: value)
}
// and
try await collection.getAllDocuments(whereField: "key", isEqualTo: value)
Now looks like this:
try await collection
.whereField("key", isEqualTo: value)
.getAllDocuments()
11.0.0
Supports Firebase 11.0.0...<12.0.0
10.0.0
Supports Firebase 10.0.0...<11.0.0