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..de5e172 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. @@ -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 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