From 710e7fd55c151a41ec06664e78ab363d985bc46b Mon Sep 17 00:00:00 2001 From: Lukas Renggli Date: Sat, 2 Dec 2023 17:16:23 +0100 Subject: [PATCH] Ready for 4.1.0 --- CHANGELOG.md | 11 +++++++++++ README.md | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e37097..112a153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,22 @@ # Changelog ## 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: - Add support for all [Unicode General Categories](https://www.unicode.org/reports/tr44/#General_Category_Values) and [Unicode Properties](https://www.unicode.org/reports/tr44/#Properties). - Add support for _Character Class Subtraction_ to `CharMatcher.pattern`. - For consistency `CharMatcher.whitespace()` is only matching ASCII whitespaces, to get the Unicode variant use `UnicodeCharMatcher.whiteSpace()`. - Add `CharMatcher.punctuation()` for ASCII punctuation characters. +- Various improvements to graph library: + - Add support for unmodifiable graphs. + - Add support to compute the max-flow. + - Rename `GraphBuilder` with `GraphFactory`. + - Replace `Graph.getEdges` with `Graph.getEdge`, add `Graph.putEdge`. +- Make object printer syntax to look like tuples, no need to have these weird curly braces anymore. +- Add `double.nextUp`, `double.nextDown`, `double.nextTowards(double)`, and `double.ulp`. +- Add growable flag to `SortedList` constructors. +- Add Farey sequence to `Fraction`. +- Improve documentation across many parts of the library. ## 4.0.0 * Dart 3.0 requirement. diff --git a/README.md b/README.md index 74c3df3..e789cc7 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,13 @@ More Dart — Literally A collection of extensively tested extensions that make Dart a better place: | Library | Description | -|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------| +|--------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------| | [async](https://pub.dev/documentation/more/latest/async/async-library.html) | Extensions to `Stream`. | | [cache](https://pub.dev/documentation/more/latest/cache/cache-library.html) | Caching strategies and their expiry policy. | -| [char_matcher](https://pub.dev/documentation/more/latest/char_matcher/char_matcher-library.html) | Character classes, their composition, and operations on strings. | +| [char_matcher](https://pub.dev/documentation/more/latest/char_matcher/char_matcher-library.html) | Character classes, their composition, and operations on strings. | | [collection](https://pub.dev/documentation/more/latest/collection/collection-library.html) | Extensions to `Iterable` and new collection types. | | [comparator](https://pub.dev/documentation/more/latest/comparator/comparator-library.html) | Common comparators, and extensions to perform advanced operations. | +| [diff](https://pub.dev/documentation/more/latest/comparator/diff-library.html) | Tools for comparing lists. | | [feature](https://pub.dev/documentation/more/latest/feature/feature-library.html) | Information about the runtime environment. | | [functional](https://pub.dev/documentation/more/latest/functional/functional-library.html) | Types and features known from functional programming. | | [graph](https://pub.dev/documentation/more/latest/graph/graph-library.html) | Graph-theory objects and algorithms. | @@ -56,6 +57,7 @@ import 'package:more/cache.dart'; import 'package:more/char_matcher.dart'; import 'package:more/collection.dart'; import 'package:more/comparator.dart'; +import 'package:more/diff.dart'; import 'package:more/feature.dart'; import 'package:more/functional.dart'; import 'package:more/graph.dart';