Repository navigation
docs: add a CHANGELOG with the changes since v16.2.0 #1440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
+31
−0
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b17dc2b
docs: add a CHANGELOG with the changes since v16.2.0
demolaf c559ba6
docs: drop the internal section from the CHANGELOG
demolaf 4902665
docs: match the CHANGELOG to the firebase-admin-dart format
demolaf 1363b10
docs: drop the -wip suffix from the CHANGELOG version
demolaf 1452b24
docs: address review of the CHANGELOG
demolaf 212de8a
docs: add missing CHANGELOG entries and a release step for it
demolaf 8396407
docs: fold the signIn/signUp routes into their breaking entry
demolaf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| ## 17.0.0 | ||
|
|
||
| - **Breaking:** `AuthView` gains `signIn` and `signUp` cases, shown as `SignInView` and `SignUpView`, so a custom first screen can open separate sign-in and sign-up screens. An exhaustive `switch` over `AuthView` needs new branches or a `default:`. | ||
| - **Breaking:** `AuthServiceError` gains `multiFactorReauthenticationRequired(MFARequired)`, so an exhaustive `switch` over `AuthServiceError` needs a new case. `reauthenticate(with:)` and `reauthenticate(context:)` throw it instead of Firebase's raw `secondFactorRequired` error. | ||
| - Add SwiftUI auth theming with `AuthTextFieldStyle`, `AuthCTAButtonStyle` and `AuthTypography`, set with `.authTextFieldStyle(_:)`, `.authCTAButtonStyle(_:)` and `.authTypography(_:)` and carried to every screen in the auth sheet. Apply the typography to your own text with `.authFont(_:weight:)`. Unset values keep the default look and leave an app's own `.font`, `.tint` and `.buttonBorderShape` in place. | ||
| - Re-export `FirebaseAuthUIComponents` from `FirebaseAuthSwiftUI`, so the theming types are available from `import FirebaseAuthSwiftUI`. | ||
| - Add `.pickerContent` and `.pickerDestination` to `AuthPickerView` to replace the first screen and pushed screens, while the library keeps driving navigation, MFA and account conflicts. `DefaultAuthPickerContent`, `DefaultAuthMethodPicker` and `DefaultAuthPickerDestination` hold the stock screens. | ||
| - Add `DefaultAuthPickerContent(authMethodPicker:)` to lay out the provider buttons with an `AuthMethodPickerState`. `AuthService` gains `registeredProviders` and `triggerSignIn(for:)`, and providers without a credential can adopt `AuthProviderAction`. | ||
| - Add `.signedInContent` to replace the screen shown to signed-in users, with `DefaultSignedInContent` as the default. `SignedInView` gains a public `init()`. | ||
| - Add `.reauthContent` to replace the password, phone and email-link reauthentication prompts. The closure receives a `ReauthPrompt` and can return `DefaultReauthContent(prompt:)` for the prompts it keeps stock. | ||
| - Add content slots for the phone, email, MFA and reauthentication screens: `EnterPhoneNumberScreen`, `EnterVerificationCodeScreen`, `EmailAuthScreen`, `PasswordRecoveryScreen`, `EmailLinkScreen`, `MFAEnrolmentScreen`, `MFAResolutionScreen`, `MFAManagementScreen`, `EmailReauthScreen`, `PhoneReauthScreen` and `EmailLinkReauthScreen`. Each passes its content a state value with actions, `isLoading` and a localized `errorMessage`, plus input bindings and `isValid` where the screen takes input, and a matching `Default…Content` holds the stock markup. | ||
| - Add Resend Code with a 60 second countdown to the phone verification screen. | ||
| - Add `requireDisplayName` and `allowNewEmailAccounts` to `withEmailSignIn`, restoring the v15 options to ask for a name on sign-up and to turn sign-up off. Both default to the previous behavior. | ||
| - Add cross-device email-link sign-in: a link opened on a device that didn't request it asks for the email address instead of failing, as in v15. `handleSignInLink(url:)` still throws for such a link but keeps it in `pendingEmailLink`, and `confirmEmailLinkSignIn(email:)` finishes it. Add `forceSameDevice` to `withEmailLinkSignIn` to keep links on the requesting device. | ||
| - Changed the default look of `MFAResolutionView` buttons to match the other MFA screens, and of the `EmailAuthView` sign up and password recovery labels. | ||
| - Closing the auth sheet now clears its navigation, so reopening it starts on the first screen. | ||
| - Swiping away a reauthentication sheet now cancels reauthentication instead of leaving the waiting operation hanging. | ||
| - Signing in now closes the screens that only apply while signed out (sign-in, sign-up, email link, password recovery, phone verification and MFA resolution), so an email sign-in link lands on the signed-in screen instead of the email-link screen. | ||
| - Phone and anonymous users no longer see the Verify email action on the signed-in screen. | ||
| - MFA enrollment keeps Get Started disabled until the selected factor is allowed, and expired or finished sessions return to factor selection. | ||
| - Fixed reauthenticating an MFA-enrolled user doing nothing visible. It now asks for the second factor, and `signOut()` clears the stored MFA resolver. | ||
| - Fixed email-link reauthentication not completing when the link opens the app after a cold launch. | ||
| - Fixed cancelled or abandoned email-link reauthentication making later sign-in links route to reauthentication. | ||
| - Fixed email sign-in links dropping the app's own continue URL parameters. | ||
| - Fixed sending a phone verification code showing no progress. | ||
| - Fixed the phone, email, password recovery and MFA actions accepting taps while their input is invalid or an action is in flight. | ||
| - Fixed password recovery failures being dropped instead of shown. | ||
| - Selecting a provider that is neither credential-based nor an `AuthProviderAction` now reports an error instead of doing nothing. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.