Skip to content

fix(deps): update dependency bloc to v9#13

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/bloc-9.x
Open

fix(deps): update dependency bloc to v9#13
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/bloc-9.x

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Jan 13, 2025

This PR contains the following updates:

Package Type Update Change
bloc (source) dependencies major ^4.0.0 -> ^9.0.0

Release Notes

felangel/bloc (bloc)

v9.0.0

Compare Source

  • BREAKING refactor!: introduce EmittableStateStreamableSource (#​4311)
    • BlocBase<State> implements EmittableStateStreamableSource<State>
  • BREAKING refactor!: remove deprecated BlocOverrides (#​4137)
  • refactor: use Object.hashAll internally (#​4310)
    • bumps minimum Dart SDK to 2.14
  • chore: update sponsors

v8.1.4

Compare Source

  • docs: improve diagrams
  • chore: update copyright year
  • chore: update sponsors

v8.1.3

Compare Source

  • chore: update sponsors (#​4054)
  • chore: fix require_trailing_commas (#​3977)
  • chore(deps): upgrade to package:mocktail v1.0.0 (#​3919)
  • chore: add topics to pubspec.yaml (#​3914)

v8.1.2

Compare Source

  • docs: upgrade README snippets to Dart 3 (#​3826)
  • refactor: standardize analysis options and resolve warnings (#​3826)
  • docs: remove superfluous word from inline docs (#​3734)

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 was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Author

renovate Bot commented Jan 13, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pubspec.lock
Command failed: flutter pub upgrade bloc
The lower bound of "sdk: '>=2.1.0 <3.0.0'" must be 2.12.0'
or higher to enable null safety.

The current Dart SDK (3.6.0) only supports null safety.

For details, see https://dart.dev/null-safety
Failed to update packages.

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.

0 participants