flutter_gb_stack_base 4.0.0
flutter_gb_stack_base: ^4.0.0 copied to clipboard
A utility package that helps develop application in a Geekbears way. This is also the base of some other packages like authentication and account
4.0.0 #
- Refactor query_utils.dart.
Enhanced
ApiPopulate
class by removing thedeepPopulate
parameter. Updated equality and hash code implementations inApiPopulate
to reflect the changes.
3.2.0 #
- feat: Add CommonApiParams and ApiPopulate classes for enhanced API parameter handling
- Introduced
CommonApiParams
class to encapsulate common API parameters with methods for merging and converting to map/query parameters. - Added
ApiPopulate
class to facilitate nested population of API responses. - Refactored
queryMerge
anddeepMergeMap
functions for improved readability and consistency.
- Introduced
3.1.0 #
- feature: Rename internal event classes in RepoServiceBloc to make them public API available
The changes include renaming
_ActorExecutor
toRepoServiceEventActorExecutor
,_ActorResult
toRepoServiceEventActorResult
, and_SetGroupState
toRepoServiceEventSetGroupState
.
3.0.1 #
- Enhance HttpAuthClient and HttpClientImpl with logging capabilities Added a Logger dependency to both HttpAuthClient and HttpClientImpl for improved debugging and monitoring. Updated various methods to utilize the logger for better traceability of token refresh operations and request handling.
3.0.0 #
- refactor: Refactored HttpAuthClient to fix some inconsistencies in refresh token logic Chanded signature of 'onRefreshToken', 'customRefreshTokenCallback' and 'customRefreshTokenResponseParser' to introduce new type: 'AuthenticationTokenParsedData'
2.3.0 #
- feature: Add MappedBlocBuilder for granular BLoC state mapping
Introduced a new
MappedBlocBuilder
widget that extendsBlocBuilder
functionality. This widget allows developers to map a BLoC stateS
to a new typeT
, enabling more precise control over widget rebuilds.
2.2.0 #
- refactor: Implement IHttpClient interface for AuthClient and JsonClient Introduced the IHttpClient interface and updated HttpAuthClient and JsonHttpClient to implement it. This change provides a common abstraction for HTTP client functionalities, improving consistency and enabling easier mocking and testing of HTTP interactions across the application.
2.1.3 #
- Fixes of (2.0.5+3)
- Improve refresh logic avoiding calling twice API when refresh called externally
2.1.2 #
- Fixes of (2.0.5+2)
- Improve Refresh Token logic
- Changed the way the RefreshToken request is detected in order to avoid loops when refreshing token, now it relies on Custom http header AuthHttpClientKeys.refreshTokenRequestHeader
2.1.1 #
- Added 'closed$' Stream api for ListenableBloc
2.1.0 #
- Update http dependency to ^1.0.0
2.0.10 #
- Integrated changed from 2.0.5+1
2.0.9 #
- Added "resetData" flag to LoadedData.copyWithLoading
2.0.8 #
- Export 'actor_dependant_bloc_event_listener' file
2.0.7 #
- Added RepoServiceBloc.setGroupEventState api
2.0.6 #
-
Added LoadedData.hasBeenSet helper getter
2.0.5+1 #
- Add more flexibility to ServerException messages handling
2.0.5 #
- Added helper method 'getStateForEvent' for 'RepoServiceBloc' and 'RepoServiceBlocState'
- Regenerated Freezed classes
2.0.3 #
- Minor improve on ServerException.fromResponse, handle possible messages as string
2.0.2 #
- Implement toString override for UnknownFailure
2.0.1 #
- Fix minor issue on json client
- Deprecate dependencies on json_client and auth_client libs, now they are maintained here
2.0.0 #
- Upgrade to flutter ">=3.13.0" and sdk: ">=3.0.0 <4.0.0"
1.2.1 #
- Support customRefreshTokenRequestWrapper on AuthClient
1.2.0 #
- Refactor on http client:
- customRefreshTokenRequestBodyFieldsMapper
- customRefreshTokenRequestBodyMapper
1.1.0 #
- Upgrade freezed & built_value, get it and other packages
1.0.5 #
- Support
customRefreshTokenCallback
on httpClient
1.0.3 #
- Handle SocketException as InternetConnectionIssueFailure
1.0.2 #
- Fix minor export issue
1.0.1 #
- Publishing configurations
- Minor updates to support async refresh logic
0.8.4 #
- Update dependencies
0.8.3 #
- Added 'ActorDependantBlocEventListener'
0.8.2 #
- Fix Cannot add new events after calling close
0.8.1 #
- Resolve wrong use of bloc "emitter" after is completed
0.8.0 #
- Allow null "email" and "firstName" for anonymous ones
0.7.10 #
- Update auth_http_client dependency
0.7.9 #
- Added LoadedDataBuilder.wrapper property
0.7.8 #
- Fix bloc "emit" being called after being dispatch on repoService bloc
- Improve queryMerge function
0.7.7 #
- Small change in
queryMerge
util
0.7.6 #
- Small improve in actor dependant bloc
0.7.5 #
- Updated dependencies
0.7.4 #
- Added
queryMerge
util
0.7.3 #
- Small improve in
BlocEventListener
0.7.2 #
- Added BlocEventListener.onlyOnActiveRoute property
0.7.1 #
- Make RepoServiceBaseImpl.wrapAndHandleHttpBaseRequest to support async callback
0.7.0 #
- Updated dependencies for flutter 3.3.x
0.6.18 #
- Added
customLogOutput
to blocs
0.6.16 #
- Prevent Bad state: Cannot add new events after calling close On repo service bloc
0.6.15 #
- Allow async parser on repo service base
0.6.14 #
- Make
LoadedData
classconst
0.6.13 #
- Added FailuresGroup.uniqueMessage
0.6.12 #
- Added
FailuresGroup
utility - Added request property to ServerFailures & Exceptions
0.6.10 #
- Added
RepoServiceEventHandlerFn
0.6.9 #
- Small improves in User model
- Make
LoadedDataBuilder
animation optional - Fixes in
LoadedDataBuilder
0.6.7 #
- Improves logging
- Make some fields of
LoadedDataBuilder
optional
0.6.6 #
- Add userName getter to User entity
0.6.3 #
- Improve server exception handling
- Allow to override textContentType default header in [RepoServiceBaseImpl]
- Improves in SeverException class
- Improves in SeverFailures class
0.6.2 #
- Disable
ListenableBloc
event logs by default But support flag and [logFilter] properties
0.6.1 #
- Support
FutureOr
in:UriMapperFunction
RequestMapperFunction
forRepoServiceConfiguration
this will allow the user to use async code in their implementation
0.6.0 #
- Update auth_http_client
auth_http_client
dependency - Make possible to recycle defaultHttpClient
0.4.2 #
- Fixed exception in
actor_dependant_bloc
Future already completed
0.4.1 #
- Make
ActorDependantBloc
extends fromActorDependantBloc
0.4.0 #
- Breaking change
BlocEventListener
&RepoServiceBlocListener
now pass the context with the event
0.3.6 #
- Updated
auth_http_client
dependency
0.3.5 #
- Added AppEnvironment.sValues
- Minor changes
0.3.4 #
- Fix
dispatchOnDependant
method onActorDependantBloc
class
0.3.3 #
- Added support for
key
onRepoServiceBloc
executor event
0.3.0 #
- Provide bloc 'add' function in
ActorDependantDefinition
- This introduces breaking changes,
- since now you need to specify
DependantBlocEvent
Type for each generic constructor inActorDependantDefinition
GroupActions
have been renamed toGroupEvents
- since now you need to specify
0.2.10 #
- Small fixes in
ActorDependantBloc
when removing subscriptions
0.2.9 #
- Replace .forEach to for in
0.2.8 #
- Improved
RepoServiceBlocListener
- Added support for to handle multiple GroupActions
0.2.7 #
- Improved
ActorDependantBloc
class - Added static utility methods to class
ActorDependencyDefinition
- Fixed issued related to previous classes
- Added
LoadedDataBuilder
helper widget - Fix no params passed on
ActorDependantBloc.dispatchOnRepoServiceDependant
function
0.2.6 #
- Added
ActorDependantBloc
- Other test utility improvements
0.2.5 #
- Added some docs
- Improvements to test bloc utils
0.2.4 #
- Fix tests and other improves
0.2.3 #
- Fix public
logger
function
0.2.2 #
- Improve
repoServiceBlocActionGroupTestUtil
util- It now provides access to executor result
0.2.1 #
- Added utilities for testing when using RepoServiceBase & RepoServiceBloc specific usecases
utilities:
repoServiceTestHttpUtil
repoServiceTestGenericUtil
repoServiceBlocActionGroupTestUtil
0.2.0 #
-
RepoServiceBloc
- Is a Helper class intended to be extended by you and help get rid of a lot of boilerplate that otherwise you would be required to implement yourself
-
RepoServiceBlocBuilder
- Helper Widget lets you build your UI based on state changes of a [RepoServiceBloc]
-
RepoServiceGroupBlocBuilder
- Helper Widget lets you build your UI based on state changes of a [RepoServiceBloc
-
BlocEventListener
- This Helper Widget helps you subscribe to the stream of [Event]s of a [ListenableBloc] which is also provided in this package It automatically subscribes and disposes of when this widget is no longer present in the tree
-
RepoServiceBlocListener
- This Helper Widget helps you subscribing to the stream of [RepoServiceBlocEvent]s of a [RepoServiceBloc] which is also provided in this package
-
Breaking changes This update also removes the export of material package with was an error, so you may end up needing to update your project to manually import that dependency
0.1.2 #
- Added
RepoServiceBase
utility class- It will help reducing boilerplate when implementing Services or Repositories in our projects
0.1.1 #
- Update dependencies
auth_http_client
0.1.0 #
- Initial release.