From 18e881a88ca9c88bcbd8f1b49ec65f8d6cb322b6 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Tue, 20 Dec 2022 11:12:54 -0800 Subject: [PATCH] Un-deprecate Optional to fix Flutter things Release v3.2.1 --- CHANGELOG.md | 4 ++++ lib/src/core/optional.dart | 3 ++- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00448bdb..3f42e39f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/core/optional.dart b/lib/src/core/optional.dart index 1204f87c..a3a555e1 100644 --- a/lib/src/core/optional.dart +++ b/lib/src/core/optional.dart @@ -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 extends IterableBase { /// Constructs an empty Optional. const Optional.absent() : _value = null; diff --git a/pubspec.yaml b/pubspec.yaml index 6759137a..9e57bc59 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.