fix(deps): update dependency bloc to v8 #10
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.
This PR contains the following updates:
^4.0.0
->^8.0.0
Release Notes
felangel/bloc
v8.1.1
Compare Source
pubspec.yaml
(#3708)const
constructor support forBlocObserver
(#3704)invariant_booleans
lint rulev8.1.0
Compare Source
Bloc.observer
andBloc.transformer
(#3469)BlocOverrides
async
fromEmitter.onEach
(#3392)mocktail ^0.3.0
(#3477)v8.0.3
Compare Source
v8.0.2
Compare Source
onChange
andaddError
protected (#3071)late
keyword for internal state controller (#3100)isClosed
toClosable
(#3066)v8.0.1
Compare Source
emit
usage within tests (#2982)v8.0.0
Compare Source
BlocOverrides
API (#2932)Bloc.observer
removed in favor ofBlocOverrides.runZoned
andBlocOverrides.current.blocObserver
Bloc.transformer
removed in favor ofBlocOverrides.runZoned
andBlocOverrides.current.eventTransformer
BlocObserver
an abstract classadd
throwsStateError
when bloc is closed (#2912)emit
throwsStateError
when bloc is closed (#2913)BlocUnhandledErrorException
is removedonError
and rethrownaddError
reports error toonError
but does not propagate as an uncaught exceptionemit
inBloc
andCubit
Cubit
,emit
isprotected
so it can only be used within theCubit
instance.Bloc
,emit
isinternal
so it cannot be used outside of the internal package implementation.TransitionFunction
transformEvents
mapEventToState
transformTransitions
listen
onBlocBase
StateError
if an event is added without a registered event handlerv7.2.1
Compare Source
on<E extends Event>
should have anEventTransformer<E>
instead ofEventTransformer<Event>
v7.2.0
Compare Source
on<Event>
API to register event handlersBloc.transformer
API to configure the defaultEventTransformer
Emitter<State>
to trigger state changescall
to trigger a state change (alignment withCubit
)forEach
as an analogue forawait for
onEach
to simplify subscription managementisDone
to abort expensive async operationsStateError
ifmapEventToState
is used in conjunction withon<Event>
StateError
if duplicate event handlers are registeredAssertionError
whenemit
is called in a completedEventHandler
AssertionError
whenemit.onEach
andemit.forEach
are unawaitedmapEventToState
deprecated in favor ofon<Event>
transformEvents
deprecated in favor ofEventTransformer
EventTransformer
or define your owntransformTransitions
deprecatedStream<State> get stream
to modify the outbound streamv7.1.0
Compare Source
isClosed
getter onBlocBase
onChange
description in READMEv7.0.0
Compare Source
Bloc
andCubit
extendBlocBase
void onError(Cubit cubit, Object error, StackTrace stackTrace)
->void onError(BlocBase bloc, Object error, StackTrace stackTrace)
void onCreate(Cubit cubit)
->void onCreate(BlocBase bloc)
void onClose(Cubit cubit)
->void onClose(BlocBase bloc)
Bloc
andCubit
do not extendStream
and implementSink
bloc.stream
orcubit.stream
to accessStream<State>
myBloc.map(...)
->myBloc.stream.map(...)
bloc.listen
in favor ofbloc.stream.listen
CubitUnhandledErrorException
->BlocUnhandledErrorException
>=2.12.0-0 <3.0.0
transformEvents
multiple subscriptions issuetransformEvents
behaviormeta: ^1.3.0
v6.1.3
Compare Source
transformEvents
multiple subscriptions issue due tov6.1.2
v6.1.2
Compare Source
v6.1.1
Compare Source
close
should always emit donev6.1.0
Compare Source
onCreate
andonClose
toBlocObserver
v6.0.3
Compare Source
Bloc
andCubit
.v6.0.2
Compare Source
v6.0.1
Compare Source
v6.0.0
Compare Source
onError
inBlocObserver
takes aCubit
as first parametercubit
and remove external dependency on package:cubitCubit
Change
(Transition
forCubit
)onChange
added toBlocObserver
@visibleForTesting
toemit
on classCubit
v5.0.1
Compare Source
cubit ^0.1.2
v5.0.0
Compare Source
initialState
override in favor of providing the initial state via super (#1304).BlocSupervisor
and renameBlocDelegate
toBlocObserver
.null
states (#1312).Stream
.addError
to conform toEventSink
interface.onError
,onTransition
,onEvent
asprotected
.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.