diff --git a/flint/pubspec.yaml b/flint/pubspec.yaml index 64a43d76..7df78216 100644 --- a/flint/pubspec.yaml +++ b/flint/pubspec.yaml @@ -3,6 +3,7 @@ description: Analyzer lints used internally in Forus Labs' Dart & Flutter projec version: 2.9.0 homepage: https://github.com/forus-labs/cauldron repository: https://github.com/forus-labs/cauldron +topics: [lints] environment: sdk: '>=3.2.0 <4.0.0' diff --git a/sugar/lib/src/collection/aggregate/group_iterables.dart b/sugar/lib/src/collection/aggregate/group_iterables.dart index 35ccf1d8..43f32402 100644 --- a/sugar/lib/src/collection/aggregate/group_iterables.dart +++ b/sugar/lib/src/collection/aggregate/group_iterables.dart @@ -36,11 +36,7 @@ extension GroupableIterable on Iterable { /// /// print(aggregate); // {'a': [('a', 1), ('a', 2)], 'b': [('b', 3)]} /// ``` -class Group { - - final Iterable _iterable; - - Group._(this._iterable); +extension type const Group._(Iterable _iterable) { /// Groups the iterable's elements by keys returned by [by] before being folded using [as]. /// diff --git a/sugar/lib/src/collection/aggregate/split_iterables.dart b/sugar/lib/src/collection/aggregate/split_iterables.dart index 55c30b50..b59fa62e 100644 --- a/sugar/lib/src/collection/aggregate/split_iterables.dart +++ b/sugar/lib/src/collection/aggregate/split_iterables.dart @@ -24,11 +24,7 @@ extension SplittableIterable on Iterable { /// ```dart /// [1, 2, 3, 4].split.by(size: 2); // [ [1, 2], [3, 4], [5] ] /// ``` -class Split { - - final Iterable _iterable; - - Split._(this._iterable); +extension type Split._(Iterable _iterable) { /// Splits this iterable into lists of the given [size]. /// diff --git a/sugar/lib/src/core/system/web_system.dart b/sugar/lib/src/core/system/web_system.dart index 502f4ac6..acf11f52 100644 --- a/sugar/lib/src/core/system/web_system.dart +++ b/sugar/lib/src/core/system/web_system.dart @@ -1,6 +1,5 @@ -import 'dart:html'; - import 'package:meta/meta.dart'; +import 'package:web/web.dart'; // ignore_for_file: public_member_api_docs diff --git a/sugar/pubspec.yaml b/sugar/pubspec.yaml index f4244790..e0a13828 100644 --- a/sugar/pubspec.yaml +++ b/sugar/pubspec.yaml @@ -1,5 +1,6 @@ name: sugar description: Forus Labs' standard library extension. Utilities for date-times, timezones, collections, monads & more. +topics: [datetime, timezone, utilities] version: 4.0.0 homepage: https://github.com/forus-labs/cauldron @@ -8,12 +9,13 @@ issue_tracker: https://github.com/forus-labs/cauldron/issues documentation: https://pub.dev/documentation/sugar/latest/ environment: - sdk: '>=3.2.0 <4.0.0' + sdk: '>=3.3.0 <4.0.0' dependencies: ffi: ^2.0.1 js: ^0.7.0 meta: ^1.11.0 + web: ^0.5.0 dev_dependencies: coverage: ^1.6.3 @@ -21,7 +23,7 @@ dev_dependencies: http: ^1.0.0 import_sorter: ^4.6.0 path: ^1.8.3 - test: ^1.17.9 + test: ^1.25.0 timezone: ^0.9.1 import_sorter: