Skip to content

Releases: SwiftfulThinking/SwiftfulFirestore

11.0.1

15 Oct 00:18
Compare
Choose a tag to compare

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

02 Oct 02:06
Compare
Choose a tag to compare

Supports Firebase 11.0.0...<12.0.0

10.0.0

02 Oct 02:05
Compare
Choose a tag to compare

Supports Firebase 10.0.0...<11.0.0