From 275f5df8016b299ba58834a68f3496833b5425ec Mon Sep 17 00:00:00 2001 From: Nikodem Bernat Date: Tue, 29 Oct 2024 14:00:48 +0100 Subject: [PATCH 1/2] Remove direct dependency on `provider` --- packages/bloc_presentation/pubspec.yaml | 1 - .../test/bloc_presentation_listener_test.dart | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/bloc_presentation/pubspec.yaml b/packages/bloc_presentation/pubspec.yaml index 7690c8d..fb42ab9 100644 --- a/packages/bloc_presentation/pubspec.yaml +++ b/packages/bloc_presentation/pubspec.yaml @@ -14,7 +14,6 @@ dependencies: sdk: flutter flutter_bloc: ^8.0.0 nested: ^1.0.0 - provider: ^6.0.1 dev_dependencies: flutter_test: diff --git a/packages/bloc_presentation/test/bloc_presentation_listener_test.dart b/packages/bloc_presentation/test/bloc_presentation_listener_test.dart index cc78981..a0928e0 100644 --- a/packages/bloc_presentation/test/bloc_presentation_listener_test.dart +++ b/packages/bloc_presentation/test/bloc_presentation_listener_test.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart'; -import 'package:provider/provider.dart'; import 'fakes.dart'; @@ -60,7 +59,7 @@ void main() { testWidgets('Correctly fallsback to the Provider cubit', (tester) async { await tester.pumpWidget( - Provider<_TestCubit>.value( + BlocProvider<_TestCubit>.value( value: cubit, child: BlocPresentationListener<_TestCubit, _PresentationEvent>( listener: listener, From 62379dc84e09c931b93d9ca9aab2f62a1a0d78ad Mon Sep 17 00:00:00 2001 From: Nikodem Bernat Date: Tue, 29 Oct 2024 14:12:56 +0100 Subject: [PATCH 2/2] Bump version & update changelog --- packages/bloc_presentation/CHANGELOG.md | 4 ++++ packages/bloc_presentation/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/bloc_presentation/CHANGELOG.md b/packages/bloc_presentation/CHANGELOG.md index ae612ab..a39c66d 100644 --- a/packages/bloc_presentation/CHANGELOG.md +++ b/packages/bloc_presentation/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.0.1 + +- Removed dependency on `provider`. + # 1.0.0 - **BREAKING**: Removed `useBlocPresentationListener` hook. Use `useOnStreamChanged` from `flutter_hooks` instead. diff --git a/packages/bloc_presentation/pubspec.yaml b/packages/bloc_presentation/pubspec.yaml index fb42ab9..83c5f51 100644 --- a/packages/bloc_presentation/pubspec.yaml +++ b/packages/bloc_presentation/pubspec.yaml @@ -2,7 +2,7 @@ name: bloc_presentation description: > Extends blocs with an additional stream which can serve as a way of indicating single-time events (so-called "presentation events"). -version: 1.0.0 +version: 1.0.1 homepage: https://github.com/leancodepl/bloc_presentation/tree/master/packages/bloc_presentation environment: