Releases: aws-amplify/amplify-swift
1.8.0 (2021-04-07)
1.7.2 (2021-04-01)
Bug Fixes
- DataStore: remove reconcile operations serially (#1137)
1.7.1 (2021-04-01) (Deprecated)
Deprecated release
This release is deprecated due to errors. Please use 1.7.2 or greater.
Bug Fixes
1.7.0 (2021-03-19)
1.6.1 (2021-02-19)
Misc updates
- Amplify/Tools pod is currently deprecated and it will be completely removed in a future release, a deprecation warning will be issued if used in an Xcode build script
1.6.0 (2020-02-04)
Features
- Support lazy load and pagination for API (#1009)
- Separate DataStore List logic out to list provider (#1000)
Behavior Change
-
Auth: Fix cancelling hostedUI returning a generic error (#982).
When a user cancels the sign in flow from
Amplify.Auth.signInWithWebUI, the callback will now deliver an error of typeAuthError.service, with an underlying error ofAWSCognitoAuthError.userCancelled. Previously, the error was aSFAuthenticationError.canceledLogin. TheAuthError.serviceerror type will be returned regardless of whether the underlying HostedUI operation was performed via an SFAuthenticationSession or an ASWebAuthenticationSession.You can detect the user cancellation case by
switching on the error, as in:switch result { case .success: print("SignOut") case .failure(let error): if case AuthError.service(_, _, let underlyingError) = error, case .userCancelled = (underlyingError as? AWSCognitoAuthError) { print("User cancelled") } }
Misc updates
-
Auth:
Amplify.Auth.signInWithWebUInow automatically usesASWebAuthenticationSessioninternally for iOS 13.0+. For older iOS versions, it will fall back toSFAuthenticationSession.
This release also introduces a newpreferPrivateSessionflag toAWSAuthWebUISignInOptionsduring the sign in flow. IfpreferPrivateSessionis set totrueduring sign in, and the user's preferred browser supportsASWebAuthenticationSession.prefersEphemeralWebBrowserSession, the user will not see a web view displayed when they sign out.Amplify.Auth.signInWithWebUI(presentationAnchor: self.view.window!, options: .preferPrivateSession()) { ... }
1.5.5 (2021-01-26)
1.5.4 (2021-01-21)
1.5.3 (2021-01-08)
Bug Fixes
- DataStore/API: retrieve correct associated target name (#965)