flutter_gb_account_basic 9.0.0
flutter_gb_account_basic: ^9.0.0 copied to clipboard
A utility package that helps implementing common account management actions
9.0.0 #
-
feat: Upgrade Flutter SDK to 3.35.7 and update dependencies
This commit upgrades the project's Flutter SDK version from 3.29.3 to 3.35.7. This update includes:
- Updating the FVM configuration files (.fvm/flutter_sdk, .fvm/fvm_config.json) to reflect the new SDK path and version.
- Updating the VS Code settings (.vscode/settings.json) to point to the new SDK version.
- Updating the
pubspec.yamlto:- Adjust the Dart SDK constraint to
>=3.6.0 <4.0.0. - Upgrade various package dependencies to their latest compatible versions, including
auto_route,bloc,flutter_bloc,flutter_gb_authentication_basic,flutter_gb_stack_base,freezed_annotation,get_it,http,logger,mockito,bloc_test,build_runner,flutter_lints, andfreezed.
- Adjust the Dart SDK constraint to
This upgrade ensures compatibility with the latest Flutter features and bug fixes, and keeps the project's dependencies up-to-date.
8.0.0 #
- Refactor password reset functionality to include email parameter in submitPasswordReset event. Updated related event and state classes for consistency and improved handling of password reset requests.
7.1.0 #
- Added support for additionalParams in submitChangePassword event
7.0.0 #
- Enhancement: Add custom verification validator to AccountVerificationGuard for flexible user verification logic, removed validation of "active" field to be considered as verified
6.0.0 #
- Update dependencies for flutter_gb_authentication_basic to version 5.0.0 and flutter_gb_stack_base to version 4.0.0
5.2.0 #
-
Enhanced ResendChangeEmailCode event: Now accepts optional additionalParams parameter of type Map<String, dynamic>?
Updated service interface: Modified AccountBasicService.resendChangeEmailCode() to accept additional parameters Improved implementation: Updated AccountBasicServiceImpl to handle the new parameters and pass them to the custom request mapper
5.1.0 #
- Add additional parameters support to email change functionality
5.0.2 #
-
Refactor: Remove AuthenticationData from password reset methods and remove unnecessary authentication check in password reset
-
Removes the
AuthenticationDataparameter fromrequestPasswordResetandsubmitPasswordResetmethods across the bloc, service, and config. This simplifies the API and removes an unnecessary dependency, as authentication data is not required for these operations.
5.0.0 #
- feature: Allow full customization of user profile picture upload request
- The
updateUserProfilePictureCustomRequestMapperinAccountBasicConfignow allows full customization of theMultipartRequest. - It receives the
imagePath, thebaseRequest(an initializedMultipartRequest), andAuthenticationData. - It is expected to return a
FutureOr<MultipartRequest>, enabling developers to add additional fields, headers, or modify the file attachment logic. AccountBasicServiceImplnow uses theMultipartRequestreturned by the mapper directly if provided, otherwise it falls back to default file attachment.
4.0.1 #
- Refactor: Change nullable Unit to non-nullable Unit for email change operations
- Updated the return type of
cancelChangeEmailinAccountBasicServiceandAccountBasicServiceImplfromFuture<Either<Failure, Unit?>>toFuture<Either<Failure, Unit>>. - Also updated the result type for
requestEmailChangeResultandcancelChangeEmailResultevents and their corresponding callbacks inAccountBasicBlocListenerfromEither<Failure, Unit?>toEither<Failure, Unit>. - Added the
onCancelChangeEmailResultevent handler toAccountBasicBlocListenerand its corresponding listener logic.
4.0.0 #
- Improve authentication handling and add state reset
- Add ResetAccountState event and handler to allow resetting the bloc's state.
- Introduce authentication checks in various account-related event handlers, emitting NoAuthenticatedFailure if authentication data is missing.
- Update AccountBasicConfig, AccountBasicService, and AccountBasicServiceImpl to accept AuthenticationData for relevant methods.
- Refactor updateAccountInfo and updateProfilePicture methods to use AuthenticationData directly instead of an optional userId.
- Update tests to reflect the changes in method signatures and authentication requirements.
3.12.2 #
- Improve 'AccountVerificationPageBloc', added 'customCanSubmitValidation' API
3.12.1 #
- Update dependencies rxdar: ^0.28.0
3.12.0 #
- Update dependencies http: ^1.0.0
3.11.3 #
- Pass AuthenticationData to AccountBasicConfig.requestEmailChangeApiEndpoint
3.11.2 #
- Auto dispatch user fetch on methods that used to mutate user data (UpdateAccountInfo UpdateAccountProfilePicture)
3.11.1 #
- Make optional the 'userId' parameter on updateProfileInfo
3.11.0 #
- Refactor all ResponseParser to provide full Response object for better flexibility
- Added new optional CustomVerificationCodePayload for ResendVerificationCode event
3.10.0 #
- Updated dependencies like
- auto_router
- freezed
Regenerated build_runner files
3.0.0 #
- Flutter 3.13.0 compatibility
2.0.0 #
- Upgrade to autoroute 7.6 & dependencies
1.3.2 #
- Prevent emit new states after calling close in account_verification_page_bloc
1.3.1 #
- Updated dependencies
- Removed verification guard forced delay
1.3.0 #
- Update autoroute dependency
1.2.1 #
- Remove config as model, now is just a normal class
1.1.0 #
- Removed delete account action
- Migrated to auth basic package
1.0.0 #
- Prepare for publishing
- Fixed some unit tests
0.8.6 #
- Upgrade dependencies
0.8.1 #
- Updated API endpoints to Uris
0.8.0 #
- Updated dependencies
- Refreshed freezed generated outputs
0.7.4 #
- Added "Cancel email change"
0.7.3 #
- Update dependencies
0.7.2 #
- Ensure guards always resolve
- Updated stack_base dep
0.7.1 #
- Upgrade dependencies
0.7.0 #
- Update packages to use flutter 3.3.x
- Use RepoServiceBaseImpl
0.6.7 #
- Update dependencies and refactor class name
_SubmitVerificationCodeResult
0.6.6 #
- Dependency updates:
flutter_gb_stack_base&flutter_gb_authentication_basic - Make more config options optional
0.6.5 #
- Updated
flutter_gb_authentication_basicdep
0.6.4 #
The AccountBasicConfig now accepts the following properties:
- String Function(String userId) get updateUsernameApiEndpoint
- String? get updateUsernameApiEndpointMethod
- String Function(String username)? get updateUsernameCustomRequestMapper
- User? Function(Map<String, dynamic> response)? get updateUsernameCustomResponseParser
AccountBasicBloc has a new public method:
- updateUsername(String username)
AccountBasicBlocListener widget has a new callback:
- void Function(BuildContext context, Either<Failure, User?> result)? onUpdateUsernameResult
0.6.3 #
-
The AccountBasicConfig now accepts the following properties:
- String Function() get confirmChangeEmailApiEndpoint
- String? get confirmChangeEmailApiEndpointMethod
- String Function()? get confirmChangeEmailCustomRequestMapper
- void Function(Map<String, dynamic> response)? get confirmChangeEmailCustomResponseParser
-
AccountBasicBloc has a new public method:
- confirmEmailChange(String token)
-
AccountBasicBlocListener widget has a new callback:
- void Function(BuildContext context, Either<Failure, Unit> result)? onConfirmChangeEmailResult
0.6.2 #
- Improve
AccountBasicProvider
0.6.1 #
- Added
bypassmethod to [AccountVerificationGuard]
0.6.0 #
- Upgrade dependencies
0.5.0 #
- Upgrade dependencies to be compatible Flutter 3.0
0.4.14 #
- Upgrade dependencies
- Update copyWith of Config model
0.4.13 #
- ResendChangeEmailCode method integration. Small improvements.
0.4.12 #
- Update dependencies
0.4.11 #
- Breaking change
- renamed
submitChangeEmailCustomRequestParser=>submitChangeEmailCustomResponseParser - renamed
submitChangePasswordCustomRequestParser=>submitChangePasswordCustomResponseParser
- renamed
0.4.10 #
- Update dependencies
0.4.9 #
- Fix
requestEmailChangemethod & update dependencies
0.4.8 #
- Post and Patch Options for Email Change
0.4.7 #
- Update stack_base dependency & some refactors with utils
0.4.6 #
- New improvements
deleteAccountresult now can be listened throughAccountBasicBlocListener.submitChangePasswordApiEndpointmethod now give us access to the user ID.submitChangePassworApiMethodintegrated to allow us decide if it will be executed asPOSTorPATCH
0.4.5 #
- Improve accountValidation in guard
- Change use of PATCH instead of POST for resendVerificationCode method
0.4.4 #
- Improve AuthBasicBloc access on provider
0.4.3 #
- Make update API config properties optional
- Delete account functionality
0.4.1 #
- Update Account Methods
- Added:
- UpdateUserInfo
- UpdateUserProfilePicture
- RequestEmailChange
0.4.0 #
- Major Breaking changes
- Upgrade to use new
flutter_gb_stack_base - Updated other dependencies
- Upgrade to use new
0.3.0 #
- Updated flutils & Auth Basic dependencies
0.2.4 #
- Fixes in [AccountVerificationPageBloc]
- Updated flutils dependencies
0.2.3 #
- Improved [onFailure] handle
- Now it binds [UserInfoNotAvailableFailure] to callback when no user data
0.2.1 #
- Updated Auth Basic lib dependency
0.2.0 #
- Breaking Changes
- Updated flutils & Auth Basic dependencies
- Changes in account verification guard
0.1.0 #
- Updated flutils dependency &
- Perform corresponding changes for new lib version
0.0.7 #
- Updated dependency on flutils & gb-authentication-basic
0.0.6 #
- Updated dependency on gb-authentication-basic
0.0.5 #
- Updated flutils dependency
0.0.4 #
- Updated dependency on gb-authentication-basic
0.0.3 #
- Export utils from main entry file
0.0.2 #
- Code improves (small)
0.0.1 #
- Initial release