diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de94fc..04608ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,86 +1,95 @@ +## 1.5.1 - Jun 23, 2022 + +- Update `meta: ^1.7.0`. + +- Internal: migrated from `pedantic` to `lints`. + ## 1.5.0 - Mar 21, 2021 -- Stable release for null safety. +- Stable release for null safety. ## 1.5.0-nullsafety.1 - Feb 14, 2021 -- **Breaking**: - - changes logger: `DisposeBagConfigs.logger = ...;` (previous `DisposeBag.logger = ...;`). - - changes signature of `Logger`. - - rename `defaultLogger` to `disposeBagDefaultLogger`. - - now, `DisposeBag.clear`, `DisposeBag.dispose` and `DisposeBag.addAll` return a `Future` instead of a `Future`. - - `DisposeBag.delete` returns a `bool` instead of a `Future`. -- Add debug tag to `DisposeBag` via constructor `DisposeBag([], 'tag');`. -- More docs. +- **Breaking**: + - changes logger: `DisposeBagConfigs.logger = ...;` (previous `DisposeBag.logger = ...;`). + - changes signature of `Logger`. + - rename `defaultLogger` to `disposeBagDefaultLogger`. + - now, `DisposeBag.clear`, `DisposeBag.dispose` and `DisposeBag.addAll` return a `Future` instead of + a `Future`. + - `DisposeBag.delete` returns a `bool` instead of a `Future`. +- Add debug tag to `DisposeBag` via constructor `DisposeBag([], 'tag');`. +- More docs. ## 1.5.0-nullsafety.0 - Dec 11, 2020 -- Migrate this package to null safety. -- Sdk constraints: `>=2.12.0-0 <3.0.0` based on beta release guidelines. +- Migrate this package to null safety. +- Sdk constraints: `>=2.12.0-0 <3.0.0` based on beta release guidelines. ## 1.4.0 - Nov 25, 2020 -- **Breaking change**: custom logger via static variable `DisposeBag.logger`. It can be set to `null` to disable logging. -- Refactor: performance optimization. +- **Breaking change**: custom logger via static variable `DisposeBag.logger`. It can be set to `null` to disable + logging. +- Refactor: performance optimization. ## 1.3.2 - Nov 18, 2020 -- Fix: `The method 'mapIndexed' is defined in multiple extensions for 'Set' and neither is more specific.` when using `collection: 1.15.0-nullsafety.5` package. +- Fix: `The method 'mapIndexed' is defined in multiple extensions for 'Set' and neither is more specific.` when + using `collection: 1.15.0-nullsafety.5` package. ## 1.3.1 - Oct 6, 2020 -- Add extension for `Iterable` and `Iterable`. -- Update docs. +- Add extension for `Iterable` and `Iterable`. +- Update docs. ## 1.3.0 - Sep 29, 2020 -- Bugfix: `Uncaught Error: Bad state: Cannot add event after closing`. +- Bugfix: `Uncaught Error: Bad state: Cannot add event after closing`. ## 1.2.0 - Aug 15, 2020 -- Updated: `constructor` allow only **`Sink | StreamSubscription`** type. +- Updated: `constructor` allow only **`Sink | StreamSubscription`** type. ## 1.1.4 - Aug 15, 2020 -- Updated: methods `add`, `addAll`, `remove` and `delete` allow only **`Sink | StreamSubscription`** type. -- Updated: internal implementation. -- Fixed: default logger logs `error` and `StackTrace` to console, before missing. +- Updated: methods `add`, `addAll`, `remove` and `delete` allow only **`Sink | StreamSubscription`** type. +- Updated: internal implementation. +- Fixed: default logger logs `error` and `StackTrace` to console, before missing. ## 1.1.3 - Aug 4, 2020 -- Updated: `README.md`. +- Updated: `README.md`. -- Breaking change: Change `Logger`'s signature. - The `clear` and `dispose` methods now returns a `Future` instead of `Future`. +- Breaking change: Change `Logger`'s signature. + The `clear` and `dispose` methods now returns a `Future` instead of `Future`. ## 1.1.2 - Apr 11, 2020 -- Add `disposedBy` extension method for `StreamSubscription` -- Add `disposedBy` extension method for `Sink` +- Add `disposedBy` extension method for `StreamSubscription` +- Add `disposedBy` extension method for `Sink` ## 1.1.1+1 - Jan 26, 2020 -- Update `logger` +- Update `logger` ## 1.1.1 - Jan 22, 2020 -- Fix `collection` version +- Fix `collection` version ## 1.1.0 - Jan 22, 2020 -- Add `logger` that logs disposed resources -- Minors update -- Upgrade min sdk to `2.6.0` +- Add `logger` that logs disposed resources +- Minors update +- Upgrade min sdk to `2.6.0` ## 1.0.0+1 - Nov 9, 2019 -- Minors update +- Minors update ## 1.0.0 - Aug 14, 2019 -- Minors update -- Add tests +- Minors update +- Add tests ## 0.0.9 -- Initial version, created by Stagehand +- Initial version, created by Stagehand diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 1621015..4e49943 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,7 +1,7 @@ name: disposebag_example description: disposebag_example publish_to: none -version: 1.5.0 +version: 1.5.1 environment: sdk: '>=2.12.0 <3.0.0' diff --git a/pubspec.yaml b/pubspec.yaml index 235d192..2380f2d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: disposebag description: A package helps to cancel StreamSubscriptions and close Sinks. -version: 1.5.0 +version: 1.5.1 homepage: https://github.com/hoc081098/disposebag.git repository: https://github.com/hoc081098/disposebag.git issue_tracker: https://github.com/hoc081098/disposebag/issues