Skip to content
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

fix(deps): update dependency bloc to v8 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 7, 2022

Mend Renovate

This PR contains the following updates:

Package Type Update Change
bloc dependencies major ^4.0.0 -> ^8.0.0

Release Notes

felangel/bloc

v8.1.1

Compare Source

  • chore: add screenshots to pubspec.yaml (#​3708)
  • refactor: const constructor support for BlocObserver (#​3704)
  • refactor: upgrade to Dart 2.19 (#​3699)
    • remove deprecated invariant_booleans lint rule

v8.1.0

Compare Source

  • feat: reintroduce Bloc.observer and Bloc.transformer (#​3469)
    • deprecate: BlocOverrides
  • fix: remove unnecessary async from Emitter.onEach (#​3392)
  • chore: upgrade to mocktail ^0.3.0 (#​3477)

v8.0.3

Compare Source

  • refactor: resolve analysis warnings (#​3189)
  • docs: fix inline doc comment (#​3167)
  • docs: update GetStream utm tags (#​3136)
  • docs: update VGV sponsors logo (#​3125)

v8.0.2

Compare Source

  • fix: make onChange and addError protected (#​3071)
  • refactor: use late keyword for internal state controller (#​3100)
  • refactor: add isClosed to Closable (#​3066)
  • refactor: add core interfaces (#​3012)
  • refactor: internal reorganization (#​3011)
  • docs: update example to follow naming conventions (#​3029)

v8.0.1

Compare Source

  • fix: allow emit usage within tests (#​2982)

v8.0.0

Compare Source

  • BREAKING: feat: introduce BlocOverrides API (#​2932)
    • Bloc.observer removed in favor of BlocOverrides.runZoned and BlocOverrides.current.blocObserver
    • Bloc.transformer removed in favor of BlocOverrides.runZoned and BlocOverrides.current.eventTransformer
  • BREAKING: refactor: make BlocObserver an abstract class
  • BREAKING: feat: add throws StateError when bloc is closed (#​2912)
  • BREAKING: feat: emit throws StateError when bloc is closed (#​2913)
  • BREAKING: feat: improve error handling/reporting
    • BlocUnhandledErrorException is removed
    • Uncaught exceptions are always reported to onError and rethrown
    • addError reports error to onError but does not propagate as an uncaught exception
  • BREAKING: feat: restrict scope of emit in Bloc and Cubit
    • In Cubit, emit is protected so it can only be used within the Cubit instance.
    • In Bloc, emit is internal so it cannot be used outside of the internal package implementation.
  • BREAKING: refactor: remove deprecated TransitionFunction
  • BREAKING: refactor: remove deprecated transformEvents
  • BREAKING: refactor: remove deprecated mapEventToState
  • BREAKING: refactor: remove deprecated transformTransitions
  • BREAKING: refactor: remove deprecated listen on BlocBase
  • feat: throw StateError if an event is added without a registered event handler

v7.2.1

Compare Source

  • fix: on<E extends Event> should have an EventTransformer<E> instead of EventTransformer<Event>

v7.2.0

Compare Source

  • feat: introduce on<Event> API to register event handlers
    • by default events are processed concurrently
  • feat: introduce Bloc.transformer API to configure the default EventTransformer
  • feat: introduce Emitter<State> to trigger state changes
    • call to trigger a state change (alignment with Cubit)
    • forEach as an analogue for await for
    • onEach to simplify subscription management
    • isDone to abort expensive async operations
  • feat: throw StateError if mapEventToState is used in conjunction with on<Event>
  • feat: throw StateError if duplicate event handlers are registered
  • feat: throw AssertionError when emit is called in a completed EventHandler
  • feat: throw AssertionError when emit.onEach and emit.forEach are unawaited
  • DEPRECATE: fix: mapEventToState deprecated in favor of on<Event>
  • DEPRECATE: fix: transformEvents deprecated in favor of EventTransformer
    • use a built in EventTransformer or define your own
  • DEPRECATE: fix: transformTransitions deprecated
    • override Stream<State> get stream to modify the outbound stream

v7.1.0

Compare Source

  • feat: expose isClosed getter on BlocBase
  • refactor: simplify internal event controller initialization
  • docs: update onChange description in README
  • docs: update GetStream sponsorship urls

v7.0.0

Compare Source

  • BREAKING: refactor: Bloc and Cubit extend BlocBase
    • refactor: void onError(Cubit cubit, Object error, StackTrace stackTrace) -> void onError(BlocBase bloc, Object error, StackTrace stackTrace)
    • refactor: void onCreate(Cubit cubit) -> void onCreate(BlocBase bloc)
    • refactor: void onClose(Cubit cubit) -> void onClose(BlocBase bloc)
  • BREAKING: refactor: Bloc and Cubit do not extend Stream and implement Sink
    • refactor: use bloc.stream or cubit.stream to access Stream<State>
      • myBloc.map(...) -> myBloc.stream.map(...)
    • refactor: deprecate bloc.listen in favor of bloc.stream.listen
  • BREAKING: refactor: CubitUnhandledErrorException -> BlocUnhandledErrorException
  • BREAKING: opt into null safety
    • feat!: upgrade Dart SDK constraints to >=2.12.0-0 <3.0.0
  • fix: transformEvents multiple subscriptions issue
  • test: improve testing for advanced transformEvents behavior
  • chore: bump to meta: ^1.3.0

v6.1.3

Compare Source

  • fix: transformEvents multiple subscriptions issue due to v6.1.2

v6.1.2

Compare Source

  • fix: bloc memory leak due to internal event stream being a broadcast stream

v6.1.1

Compare Source

  • fix: close should always emit done

v6.1.0

Compare Source

  • feat: add onCreate and onClose to BlocObserver

v6.0.3

Compare Source

  • docs: README updates to include flow diagrams for Bloc and Cubit.

v6.0.2

Compare Source

  • refactor: cubit internal memory and performance optimizations

v6.0.1

Compare Source

  • docs: minor documentation fixes and improvements

v6.0.0

Compare Source

  • BREAKING: do not emit current state on subscription
  • BREAKING: onError in BlocObserver takes a Cubit as first parameter
  • BREAKING: allow blocs and cubits to emit the initial state
  • feat: include cubit and remove external dependency on package:cubit
    • exports class Cubit
    • exports class Change (Transition for Cubit)
  • feat: onChange added to BlocObserver
  • refactor: apply additional lint rules
  • fix: add @visibleForTesting to emit on class Cubit
  • docs: fix inline documentation references

v5.0.1

Compare Source

  • fix: upgrade to cubit ^0.1.2
  • docs: minor documentation updates

v5.0.0

Compare Source

  • BREAKING: remove initialState override in favor of providing the initial state via super (#​1304).
  • BREAKING: Remove BlocSupervisor and rename BlocDelegate to BlocObserver.
  • feat: support null states (#​1312).
  • refactor: bloc to extend cubit rather than Stream.
  • feat: ignore newly added events after bloc is closed (#​1236).
  • feat: add addError to conform to EventSink interface.
  • feat: mark onError, onTransition, onEvent as protected.
  • docs: documentation improvements
  • docs: logo updates

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate
Copy link
Author

renovate bot commented Mar 24, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant