flutter_gb_account_basic 4.0.0 copy "flutter_gb_account_basic: ^4.0.0" to clipboard
flutter_gb_account_basic: ^4.0.0 copied to clipboard

A utility package that helps implementing common account management actions

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_basic dep

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 bypass method 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

0.4.10 #

  • Update dependencies

0.4.9 #

  • Fix requestEmailChange method & 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
  • deleteAccount result now can be listened through AccountBasicBlocListener.
  • submitChangePasswordApiEndpoint method now give us access to the user ID.
  • submitChangePassworApiMethod integrated to allow us decide if it will be executed as POST or PATCH

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

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