Skip to content

11.0.1

Choose a tag to compare

@SwiftfulThinking SwiftfulThinking released this 15 Oct 00:18
· 16 commits to main since this release

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()