From b22ce5da637a1cf819d3a637573ed7374e166aeb Mon Sep 17 00:00:00 2001 From: Ajmal Salim Date: Thu, 16 Jan 2025 22:53:01 +0000 Subject: [PATCH 1/2] chore: update dependencies --- pubspec.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 53e0d24..9a1d29a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,13 +7,13 @@ environment: sdk: ">=2.12.0 <4.0.0" dependencies: - bloc: ^8.0.2 + bloc: ^9.0.0 rxdart: ^0.28.0 dev_dependencies: - bloc_test: ^9.0.2 - equatable: ^2.0.3 - lints: ^4.0.0 + bloc_test: ^10.0.0 + equatable: ^2.0.7 + lints: ^5.1.1 # For information on the generic Dart part of this file, see the From 8a18df7d4f0f590366def2c4680151ac00b91fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wr=C3=B3blewski?= Date: Fri, 7 Feb 2025 08:41:00 +0100 Subject: [PATCH 2/2] fix: docs according to linter warning, throttle test --- lib/src/delay.dart | 2 +- lib/src/throttle.dart | 2 +- test/src/throttle/throttle_test.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/delay.dart b/lib/src/delay.dart index 41b27b4..13aef85 100644 --- a/lib/src/delay.dart +++ b/lib/src/delay.dart @@ -1,6 +1,6 @@ part of '../bloc_event_transformers.dart'; -/// The delay() transformer is pausing adding events for a particular +/// The `delay()` transformer is pausing adding events for a particular /// increment of time (that you specify) before emitting each of the events. /// This has the effect of shifting the entire sequence of /// events added to the bloc forward in time by that specified increment. diff --git a/lib/src/throttle.dart b/lib/src/throttle.dart index 6be79d8..d9e3ea7 100644 --- a/lib/src/throttle.dart +++ b/lib/src/throttle.dart @@ -1,6 +1,6 @@ part of '../bloc_event_transformers.dart'; -/// Emits an , then ignores subsequent events +/// Emits an [Event], then ignores subsequent events /// for a [duration], then repeats this process. /// /// If [leading] is true, then the first event in each window is emitted. diff --git a/test/src/throttle/throttle_test.dart b/test/src/throttle/throttle_test.dart index 9446712..030e4bf 100644 --- a/test/src/throttle/throttle_test.dart +++ b/test/src/throttle/throttle_test.dart @@ -45,7 +45,7 @@ void main() { act: (bloc) async { List.generate(100, (index) => index) .forEach((count) => bloc.add(NewThrottleEvent(count + 1))); - await Future.delayed(throttleWindow); + await Future.delayed(throttleWindow * 1.5); List.generate(100, (index) => index) .forEach((count) => bloc.add(NewThrottleEvent(count + 101))); },