Skip to content

Commit

Permalink
prepare for 1.5.1 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Jun 23, 2022
1 parent 23ee775 commit 52db6b1
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 37 deletions.
79 changes: 44 additions & 35 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<void>` instead of a `Future<bool>`.
- `DisposeBag.delete` returns a `bool` instead of a `Future<bool>`.
- 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<void>` instead of
a `Future<bool>`.
- `DisposeBag.delete` returns a `bool` instead of a `Future<bool>`.
- 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<dynamic>' 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<dynamic>' and neither is more specific.` when
using `collection: 1.15.0-nullsafety.5` package.

## 1.3.1 - Oct 6, 2020

- Add extension for `Iterable<Sink>` and `Iterable<StreamSubscription>`.
- Update docs.
- Add extension for `Iterable<Sink>` and `Iterable<StreamSubscription>`.
- 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<bool>` instead of `Future<void>`.
- Breaking change: Change `Logger`'s signature.
The `clear` and `dispose` methods now returns a `Future<bool>` instead of `Future<void>`.

## 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
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 52db6b1

Please sign in to comment.