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

feat(bloc)!: v8.0.0 #2798

Merged
merged 46 commits into from Nov 18, 2021
Merged

feat(bloc)!: v8.0.0 #2798

merged 46 commits into from Nov 18, 2021

Conversation

felangel
Copy link
Owner

@felangel felangel commented Sep 26, 2021

Status

READY

Breaking Changes

YES

Description

  • feat(bloc)!: v8.0.0

Changelog

package:bloc

  • BREAKING: feat: BlocOverrides API
    • 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: BlocObserver is abstract and cannot be instantiated
  • 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
  • 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

package:bloc_concurrency

  • feat: upgrade to bloc v8.0.0-dev.5

package:bloc_test

  • BREAKING: feat: upgrade to bloc v8.0.0-dev.5
  • BREAKING: feat: upgrade to mocktail v0.2.0
  • feat: MockBloc no longer implicitly requires registerFallbackValue for events and states

package:hydrated_bloc

  • BREAKING: feat: introduce HydratedBlocOverrides API (#2947)
    • HydratedBloc.storage removed in favor of HydratedBlocOverrides.runZoned and HydratedBlocOverrides.current.storage
  • BREAKING: feat: upgrade to bloc v8.0.0-dev.5

package:angular_bloc

  • BREAKING: feat: upgrade to bloc v8.0.0-dev.5

package:flutter_bloc

  • BREAKING: feat: upgrade to bloc v8.0.0-dev.5

package:replay_bloc

  • BREAKING: feat: upgrade to bloc v8.0.0-dev.5

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel added pkg:bloc This issue is related to the bloc package breaking change Enhancement candidate would introduce a breaking change labels Sep 26, 2021
@felangel felangel self-assigned this Sep 26, 2021
@felangel felangel added this to In progress in bloc via automation Sep 26, 2021
@codecov
Copy link

codecov bot commented Sep 26, 2021

Codecov Report

Merging #2798 (c1cf518) into master (6757246) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2798   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines          724       712   -12     
=========================================
- Hits           724       712   -12     
Impacted Files Coverage Δ
packages/bloc/lib/src/bloc_observer.dart 100.00% <ø> (ø)
packages/bloc_test/lib/src/mock_bloc.dart 100.00% <ø> (ø)
packages/bloc_test/lib/src/when_listen.dart 100.00% <ø> (ø)
...ckages/hydrated_bloc/lib/src/hydrated_storage.dart 100.00% <ø> (ø)
packages/bloc/lib/src/bloc.dart 100.00% <100.00%> (ø)
packages/bloc_test/lib/src/bloc_test.dart 100.00% <100.00%> (ø)
packages/hydrated_bloc/lib/src/hydrated_bloc.dart 100.00% <100.00%> (ø)
packages/replay_bloc/lib/src/replay_bloc.dart 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5352f42...c1cf518. Read the comment docs.

@felangel
Copy link
Owner Author

Published bloc v8.0.0-dev.1 🎉

@felangel
Copy link
Owner Author

Published bloc v8.0.0-dev.2 🎉

@felangel felangel added the pkg:bloc_test This issue is related to the bloc_test package label Sep 29, 2021
@felangel
Copy link
Owner Author

Published bloc_test v9.0.0-dev.1 🎉

@PiN73
Copy link

PiN73 commented Oct 2, 2021

Are you really going to break core API?

@felangel
Copy link
Owner Author

felangel commented Oct 2, 2021

Are you really going to break core API?

Yup bloc v7.2.0 deprecates the various APIs that will be removed in v8.0.0 and introduces the new APIs so you have time to migrate gradually. See #2526 for more info.

@felangel felangel added the pkg:hydrated_bloc This issue is related to the hydrated_bloc package label Oct 6, 2021
@felangel
Copy link
Owner Author

felangel commented Oct 6, 2021

Published hydrated_bloc v8.0.0-dev.1 🎉

@felangel felangel added the pkg:flutter_bloc This issue is related to the flutter_bloc package label Oct 6, 2021
@felangel
Copy link
Owner Author

felangel commented Oct 6, 2021

Published flutter_bloc v8.0.0-dev.1 🎉

@felangel felangel added the pkg:angular_bloc This issue is related to the angular_bloc package label Oct 6, 2021
@felangel
Copy link
Owner Author

felangel commented Oct 6, 2021

Published angular_bloc v8.0.0-dev.1 🎉

@felangel felangel added the pkg:replay_bloc This issue is related to the replay_bloc package label Oct 9, 2021
@felangel
Copy link
Owner Author

felangel commented Oct 9, 2021

Published replay_bloc v0.2.0-dev.1 🎉

@felangel
Copy link
Owner Author

felangel commented Oct 9, 2021

Published sealed_flutter_bloc v8.0.0-dev.1 🎉

@felangel
Copy link
Owner Author

felangel commented Oct 9, 2021

Published bloc_test v9.0.0-dev.2 🎉

@felangel
Copy link
Owner Author

Published bloc v8.0.0-dev.3 🎉

@felangel
Copy link
Owner Author

Published bloc_test v9.0.0-dev.3 🎉

@felangel felangel marked this pull request as ready for review November 17, 2021 23:26
@felangel felangel added this to the v8.0.0 milestone Nov 17, 2021
@felangel felangel merged commit 774d1c1 into master Nov 18, 2021
bloc automation moved this from In progress to Done Nov 18, 2021
@felangel felangel deleted the feat/v8.0.0 branch November 18, 2021 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Enhancement candidate would introduce a breaking change pkg:angular_bloc This issue is related to the angular_bloc package pkg:bloc_concurrency This issue is related to the bloc_concurrency package pkg:bloc_test This issue is related to the bloc_test package pkg:bloc This issue is related to the bloc package pkg:flutter_bloc This issue is related to the flutter_bloc package pkg:hydrated_bloc This issue is related to the hydrated_bloc package pkg:replay_bloc This issue is related to the replay_bloc package
Projects
bloc
  
Done
Development

Successfully merging this pull request may close these issues.

BlocUnhandledErrorException in assert does not get fired in release mode
7 participants