From c453f350a409a13dc01d8f04e71e3145978e1782 Mon Sep 17 00:00:00 2001 From: Lukas Renggli Date: Fri, 29 Dec 2023 09:25:31 +0100 Subject: [PATCH] Ready for 4.2.0 --- CHANGELOG.md | 16 ++++++++++++++++ pubspec.yaml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 112a153..974ca45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 4.2.0 +- Improved `Iterable.index` to more common argument names, and support `step`. +- Add `also` scope operator, which significantly improves the possibility to write one-liners. +- Numerous improvements to the Graph library: + - Various performance critical fixes, better use of priority queues. + - Easy export to [GraphViz](https://graphviz.org/) with `Graph.toDot()`. + - Add support for filtered vertex views with `Graph.where({Predicate vertexPrediate})`. + - Add support to copy graphs with `Graph.copy({bool empty})`. + - Improve `toString` of `Graph`, `Edge` and `Path` classes. + - Add the Stoer-Wagner min-cut algorithm. +- Numerous smaller improvements: + - Add support for patterns in `String.removeSuffix`; and add `String.partition` and `String.lastPartition`. + - Add support to compute `Iterable.minMax` in one pass, and `Iterable.gcd` and `Iterable.lcm`. +- Removed `Heap`: `PriorityQueue` from the Dart standard library provides the same functionality. +- Made the `SortedList` implement `PriorityQueue`. + ## 4.1.0 - Add a port of Python's difflib. - `CharMatcher` now works on all unicode code-points, correctly and efficiently matching unicode characters beyond UTF-16 bytes: diff --git a/pubspec.yaml b/pubspec.yaml index 2885f64..5e76783 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: more -version: 4.1.0 +version: 4.2.0 homepage: https://github.com/renggli/dart-more description: More Dart — Literally. Collecting, iterating, caching, mathematics, @@ -24,4 +24,4 @@ dev_dependencies: build_web_compilers: ^4.0.0 fake_async: ^1.3.0 lints: ^3.0.0 - test: ^1.24.0 \ No newline at end of file + test: ^1.25.0 \ No newline at end of file