Releases: dart-lang/collection
Releases · dart-lang/collection
package:collection v1.19.0
- Adds
shuffled
toIterableExtension
. - Shuffle
IterableExtension.sample
results. - Fix
mergeSort
when the runtime iterable generic is a subtype of the static
generic. CanonicalizedMap
: added constructorfromEntries
.- Mark "mixin" classes as
mixin
. extension IterableIterableExtension<T> on Iterable<Iterable<T>>
- Add
flattenedToList
as a performance improvement overflattened.
- Add
flattenedToSet
as new behavior for flattening to unique elements.
- Add
- Deprecate
transitiveClosure
. Consider usingpackage:graphs
. - Deprecate
whereNotNull()
fromIterableNullableExtension
. UsenonNulls
instead - this is an equivalent extension available in Dart core since
version 3.0. - Require Dart
^3.4.0
package:collection v1.18.0
CanonicalizedMap
:- Added
copy
: copies an instance without recalculating the canonical values of the keys. - Added
toMap
: creates aMap<K,V>
(with the original key values). - Added
toMapOfCanonicalKeys
: creates aMap<C,V>
(with the canonicalized keys).
- Added
- Fixes bugs in
ListSlice.slice
andListExtensions.slice
. - Update to
package:lints
2.0.1.
v1.17.2
- Accept Dart SDK versions above 3.0.
v1.17.1
- Require Dart 2.18
- Improve docs for
splitAfter
andsplitBefore
.
1.14.10: Remove uses of `retype` (#95)
- Remove uses of
retype
. - Fix various bugs, mainly in tests.
1.14.9
- Fixed bugs where
QueueList
,MapKeySet
, andMapValueSet
did not adhere to
the contract laid out byList.cast
,Set.cast
andMap.cast
respectively.
The returned instances of these methods now correctly forward to the existing
instance instead of always creating a new copy.
1.14.7
- Only the Dart 2 dev SDK (
>=2.0.0-dev.22.0
) is now supported. - Added support for all Dart 2 SDK methods that threw
UnimplementedError
.
1.14.0
1.14.0
- Add
CombinedListView
, a view of several lists concatenated together. - Add
CombinedIterableView
, a view of several iterables concatenated together. - Add
CombinedMapView
, a view of several maps concatenated together.