You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client Ping: Client class now have a new method ping() to test if the client was initialized correctly.
Group and Aggregation: DataStore.group() is a set of new methods that allows group / aggregation functions. You can write your own reduce function using JavaScript or use pre-defined functions like count, sum, avg (average), min (minimum) and max (maximum).
User Refresh: a new method User.refresh() will reload the user's data. Also applies for Client.activeUser which will refresh and persist the new user's data.
Result Enumeration: a new pattern for all completionHandlers in the library was introduced. All methods containing completionHandlers has now overloaded versions which returns a Result<SuccessType, FailureType> instance where you can use a switch statement to figure if the call succeed (case .success(let successObject):) or failed (case .failure(let error):)
Bugfixes
User.lookup() now returns the correct User type if a custom user type was set.
Deprecated
None
Breaking Changes
User.destroy(), User.sendEmailConfirmation(), User.resetPassword() and User.forgotUsername() were changed to have the completionHandler block following the Result enumeration pattern described above.