From 153efae6732de54b213175295e0e5b9512c17d7d Mon Sep 17 00:00:00 2001 From: Erik Ernst Date: Thu, 27 Feb 2025 13:42:32 +0100 Subject: [PATCH 1/3] Introduces changes as in https://dart-review.googlesource.com/c/core/+/401680 --- pkgs/fixnum/CHANGELOG.md | 6 ++++++ pkgs/fixnum/lib/src/intx.dart | 2 +- pkgs/fixnum/pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/fixnum/CHANGELOG.md b/pkgs/fixnum/CHANGELOG.md index f3e5c0191..85e16f59a 100644 --- a/pkgs/fixnum/CHANGELOG.md +++ b/pkgs/fixnum/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.2.0 + +* Change `IntX` such that it implements `Comparable`. This makes it + possible for `IntX` (and in turn `Int64` and `Int32`) be used with methods + like `sortedBy` in the platform libraries. + ## 1.1.1 * Require Dart `^3.1.0` diff --git a/pkgs/fixnum/lib/src/intx.dart b/pkgs/fixnum/lib/src/intx.dart index d51a58350..a42d42b91 100644 --- a/pkgs/fixnum/lib/src/intx.dart +++ b/pkgs/fixnum/lib/src/intx.dart @@ -6,7 +6,7 @@ import 'int32.dart'; import 'int64.dart'; /// A fixed-precision integer. -abstract class IntX implements Comparable { +abstract class IntX implements Comparable { /// Addition operator. IntX operator +(Object other); diff --git a/pkgs/fixnum/pubspec.yaml b/pkgs/fixnum/pubspec.yaml index 123a4b752..08b8b80b2 100644 --- a/pkgs/fixnum/pubspec.yaml +++ b/pkgs/fixnum/pubspec.yaml @@ -1,5 +1,5 @@ name: fixnum -version: 1.1.1 +version: 1.2.0 description: >- Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. From fcb0c1c013461890cde26e495dcab926c502974b Mon Sep 17 00:00:00 2001 From: Erik Ernst Date: Fri, 28 Feb 2025 14:37:32 +0100 Subject: [PATCH 2/3] Update pkgs/fixnum/CHANGELOG.md Change the new version to -wip. Co-authored-by: Devon Carew --- pkgs/fixnum/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/fixnum/CHANGELOG.md b/pkgs/fixnum/CHANGELOG.md index 85e16f59a..5bec83a6a 100644 --- a/pkgs/fixnum/CHANGELOG.md +++ b/pkgs/fixnum/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.2.0 +## 1.2.0-wip * Change `IntX` such that it implements `Comparable`. This makes it possible for `IntX` (and in turn `Int64` and `Int32`) be used with methods From d2060be507a0d3ffc3c1805271a2994bbc306388 Mon Sep 17 00:00:00 2001 From: Erik Ernst Date: Fri, 28 Feb 2025 14:37:58 +0100 Subject: [PATCH 3/3] Update pkgs/fixnum/pubspec.yaml Change the new version to -wip Co-authored-by: Devon Carew --- pkgs/fixnum/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/fixnum/pubspec.yaml b/pkgs/fixnum/pubspec.yaml index 08b8b80b2..fb9c54638 100644 --- a/pkgs/fixnum/pubspec.yaml +++ b/pkgs/fixnum/pubspec.yaml @@ -1,5 +1,5 @@ name: fixnum -version: 1.2.0 +version: 1.2.0-wip description: >- Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes.