Skip to content

Commit

Permalink
Prepare for release of dispose_scope v2.0.0 (#26)
Browse files Browse the repository at this point in the history
* set version to 2.0.0
  • Loading branch information
bartekpacia authored Aug 31, 2022
1 parent c3c1935 commit d8deb0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/dispose_scope/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Unreleased
## 2.0.0

- Add safety checks (#25)
- Throw `StateError` if `DisposeScope.dispose()` is called more than once
- Add `DisposeScope.run` which will run a callback only if dispose scope is not
disposed
- Add `DisposeScope.run()` which will run a callback only if dispose scope is
not disposed
- Rename extensions from `disposed()` to `disposedBy` (#24)
- Add `disposedBy` extension for `Process` from `dart:io` (#19)
- Add `disposedBy()` extension for `Process` from `dart:io` (#19)

## 1.0.0

Expand Down
4 changes: 2 additions & 2 deletions packages/dispose_scope/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dispose_scope
description: Simple package making it easy to dispose (aka cancel, aka close) your objects.
version: 1.0.0
version: 2.0.0
repository: https://github.com/RobertOdrowaz/dispose-scope/tree/master/packages/dispose_scope
issue_tracker: https://github.com/RobertOdrowaz/dispose-scope/issues
homepage: https://github.com/RobertOdrowaz/dispose-scope
Expand All @@ -11,5 +11,5 @@ environment:
dev_dependencies:
build_runner: ^2.2.0
leancode_lint: ^1.2.1
mockito: ^5.0.8
mockito: ^5.3.0
test: ^1.17.12

0 comments on commit d8deb0d

Please sign in to comment.