From 7f3ffc06be71f824e4ec6814edda1c0435313403 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Fri, 7 Jun 2024 15:59:13 -0700 Subject: [PATCH 1/2] Require Dart 3.4, test wasm on 3.4, prepare release --- .github/workflows/ci.yml | 4 ++-- CHANGELOG.md | 2 +- lib/src/canonicalized_map.dart | 2 +- pubspec.yaml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e21d2e9..1db83b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: matrix: # Add macos-latest and/or windows-latest if relevant for this package. os: [ubuntu-latest] - sdk: [3.1.0, dev] + sdk: [3.4, dev] steps: - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30 @@ -63,4 +63,4 @@ jobs: if: always() && steps.install.outcome == 'success' - name: Run Chrome tests - wasm run: dart test --platform chrome --compiler dart2wasm - if: always() && steps.install.outcome == 'success' && matrix.sdk == 'dev' + if: always() && steps.install.outcome == 'success' diff --git a/CHANGELOG.md b/CHANGELOG.md index d4b8cf7..056b7fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.19.0-wip +## 1.19.0 - Adds `shuffled` to `IterableExtension`. - Shuffle `IterableExtension.sample` results. diff --git a/lib/src/canonicalized_map.dart b/lib/src/canonicalized_map.dart index 4103843..3dc6e37 100644 --- a/lib/src/canonicalized_map.dart +++ b/lib/src/canonicalized_map.dart @@ -187,7 +187,7 @@ class CanonicalizedMap implements Map { String toString() => MapBase.mapToString(this); bool _isValidKey(Object? key) => - (key is K) && (_isValidKeyFn == null || _isValidKeyFn!(key)); + (key is K) && (_isValidKeyFn == null || _isValidKeyFn(key)); /// Creates a `Map` (with the original key values). /// See [toMapOfCanonicalKeys]. diff --git a/pubspec.yaml b/pubspec.yaml index 7a92e22..faca734 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: collection -version: 1.19.0-wip +version: 1.19.0 description: >- Collections and utilities functions and classes related to collections. repository: https://github.com/dart-lang/collection @@ -9,7 +9,7 @@ topics: - collections environment: - sdk: ^3.1.0 + sdk: ^3.4.0 dev_dependencies: dart_flutter_team_lints: ^3.0.0 From 27eabeca6e41e3df4282ab6aea49c4505ffa6df3 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Tue, 11 Jun 2024 10:29:01 -0700 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 056b7fa..de5e172 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ - Deprecate `whereNotNull()` from `IterableNullableExtension`. Use `nonNulls` instead - this is an equivalent extension available in Dart core since version 3.0. -- Require Dart `^3.1.0` +- Require Dart `^3.4.0` ## 1.18.0