Skip to content

Commit

Permalink
Un-deprecate Optional to fix Flutter things (#717)
Browse files Browse the repository at this point in the history
Release v3.2.1
  • Loading branch information
kevmoo committed Dec 20, 2022
1 parent 63296a0 commit 90b92be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 3.2.1

* Un-deprecate `Optional`. Causing breaks.

#### 3.2.0

* Deprecate `Optional`. With the introduction of non-null by default in Dart
Expand Down
3 changes: 2 additions & 1 deletion lib/src/core/optional.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import 'dart:collection';
/// should avoid adding more uses of this type. Existing users should migrate
/// away from the `Optional` type to types marked nullable: `T?`. This type
/// will be removed in Quiver 4.0.0.
@Deprecated('Migrate to a non-nullable type. Will be removed in 4.0.0')
// TODO(kevmoo): re-deprecate this once usage is removed from Flutter plugins
//@Deprecated('Migrate to a non-nullable type. Will be removed in 4.0.0')
class Optional<T> extends IterableBase<T> {
/// Constructs an empty Optional.
const Optional.absent() : _value = null;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: >-
Quiver is a set of utility libraries for Dart that makes using many Dart
libraries easier and more convenient, or adds additional functionality.
repository: https://github.com/google/quiver-dart
version: 3.2.0
version: 3.2.1

# When updating SDK lower bound, also update .github/workflows/dart.yml to test
# against the new lower bound.
Expand Down

0 comments on commit 90b92be

Please sign in to comment.