Skip to content

Commit

Permalink
v2.1.1 #56
Browse files Browse the repository at this point in the history
  • Loading branch information
jogboms authored Jun 4, 2022
2 parents 8b8874a + 86e251c commit 5c4c1e5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 56 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final DateTime fourHoursFromNow = DateTime.now() + Duration(hours: 4);
## 🎖 Installation
```yaml
dependencies:
time: "^2.1.0"
time: "^2.1.1"
```
### ⚡ Import
Expand Down
56 changes: 4 additions & 52 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit 5c4c1e5

Please sign in to comment.