From 23b9c020ac826e4e0458415e9b436a21703c270c Mon Sep 17 00:00:00 2001 From: Jeremiah Ogbomo Date: Sat, 4 Jun 2022 08:29:26 +0200 Subject: [PATCH 1/2] Update dependencies --- analysis_options.yaml | 56 ++++--------------------------------------- pubspec.yaml | 4 ++-- 2 files changed, 6 insertions(+), 54 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index efbe759..e168473 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,60 +1,12 @@ -# Defines a default set of lint rules enforced for -# projects at Google. For details and rationale, -# see https://github.com/dart-lang/pedantic#enabled-lints. -include: package:pedantic/analysis_options.yaml +include: package:lints/recommended.yaml analyzer: strong-mode: + implicit-casts: false implicit-dynamic: false errors: + missing_required_param: error + missing_return: error unused_import: error unused_local_variable: error dead_code: error - enable-experiment: - - extension-methods - -# Lint rules and documentation, see http://dart-lang.github.io/linter/lints -linter: - rules: - - annotate_overrides - - avoid_unused_constructor_parameters - - await_only_futures - - camel_case_types - - cancel_subscriptions - - directives_ordering - - empty_catches - - empty_statements - - hash_and_equals - - iterable_contains_unrelated_type - - list_remove_unrelated_type - - no_adjacent_strings_in_list - - no_duplicate_case_values - - non_constant_identifier_names - - only_throw_errors - - overridden_fields - - prefer_collection_literals - - prefer_conditional_assignment - - prefer_contains - - prefer_final_fields - - prefer_final_locals - - prefer_initializing_formals - - prefer_interpolation_to_compose_strings - - prefer_is_empty - - prefer_is_not_empty - - prefer_typing_uninitialized_variables - - recursive_getters - - slash_for_doc_comments - - test_types_in_equals - - throw_in_finally - - type_init_formals - - unawaited_futures - - unnecessary_brace_in_string_interps - - unnecessary_getters_setters - - unnecessary_lambdas - - unnecessary_new - - unnecessary_null_aware_assignments - - unnecessary_statements - - unnecessary_this - - unrelated_type_equality_checks - - use_rethrow_when_possible - - valid_regexps \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 7e4bd17..f6e08e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,8 +10,8 @@ dependencies: clock: ^1.1.0 dev_dependencies: - pedantic: ^1.11.0 - test: ^1.16.5 + lints: ^1.0.1 + test: ^1.21.1 test_coverage: git: url: https://github.com/timsneath/test-coverage.git From 86e251c7824071e36e332c90b123df44ac86ab15 Mon Sep 17 00:00:00 2001 From: Jeremiah Ogbomo Date: Sat, 4 Jun 2022 08:34:47 +0200 Subject: [PATCH 2/2] v2.1.1 --- CHANGELOG.md | 11 +++++++++++ README.md | 2 +- pubspec.yaml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3417d6..8ee442a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## 2.1.1 + +- Introduce `firstDayOfWeek` extension to `DateTime` +- Introduce `lastDayOfWeek` extension to `DateTime` +- Introduce `firstDayOfMonth` extension to `DateTime` +- Introduce `lastDayOfMonth` extension to `DateTime` +- Introduce `firstDayOfYear` extension to `DateTime` +- Introduce `lastDayOfYear` extension to `DateTime` +- Introduce `clamp` extension to `DateTime` +- Introduce `clamp` extension to `Duration` + ## 2.1.0 - Introduce `package:clock` dependency for more predictable testing diff --git a/README.md b/README.md index 7090360..8a9856e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ final DateTime fourHoursFromNow = DateTime.now() + Duration(hours: 4); ## 🎖 Installation ```yaml dependencies: - time: "^2.1.0" + time: "^2.1.1" ``` ### ⚡ Import diff --git a/pubspec.yaml b/pubspec.yaml index f6e08e6..2fab5d9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: time description: Type-safe DateTime and Duration calculations, powered by extensions. -version: 2.1.0 +version: 2.1.1 homepage: https://github.com/jogboms/time.dart environment: