Skip to content

1.2.1

Compare
Choose a tag to compare
@benlmyers benlmyers released this 19 Apr 10:33
· 78 commits to main since this release

⚠️ Warning: This update contains some breaking changes. Be sure to fix your project when you update this package!

🎉 Thank you for supporting EasyFirebase! I'm a full-time student spending my free time on this library, so I apologize if there any bugs present. Feel free to contribute with a pull request or report buts in Issues!

Breaking Changes

You now must add in the field name when updating/linking document field values.

// Before
global.user.set("apples", to: \.favoriteFood)

// After
global.user.set(field: "favoriteFood", with: "apples", using: \.favoriteFood)

This changes affects field-specific calls of .set(...), as well as all calls of .assign(...), .unassign(...), and .setAssign(...). Under very rare circumstances should the String and KeyPath parameters of these methods match after this change.

🤔 Why add this? Sometimes using just the KeyPath to grab the field name as a String causes a fatal error related to Objective-C. This removes the risk of this error at the cost of library code prettiness.