Skip to content

Commit 5c4c1e5

Browse files
authored
v2.1.1 #56
2 parents 8b8874a + 86e251c commit 5c4c1e5

File tree

4 files changed

+19
-56
lines changed

4 files changed

+19
-56
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 2.1.1
2+
3+
- Introduce `firstDayOfWeek` extension to `DateTime`
4+
- Introduce `lastDayOfWeek` extension to `DateTime`
5+
- Introduce `firstDayOfMonth` extension to `DateTime`
6+
- Introduce `lastDayOfMonth` extension to `DateTime`
7+
- Introduce `firstDayOfYear` extension to `DateTime`
8+
- Introduce `lastDayOfYear` extension to `DateTime`
9+
- Introduce `clamp` extension to `DateTime`
10+
- Introduce `clamp` extension to `Duration`
11+
112
## 2.1.0
213

314
- Introduce `package:clock` dependency for more predictable testing

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final DateTime fourHoursFromNow = DateTime.now() + Duration(hours: 4);
1212
## 🎖 Installation
1313
```yaml
1414
dependencies:
15-
time: "^2.1.0"
15+
time: "^2.1.1"
1616
```
1717
1818
### ⚡ Import

analysis_options.yaml

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,12 @@
1-
# Defines a default set of lint rules enforced for
2-
# projects at Google. For details and rationale,
3-
# see https://github.com/dart-lang/pedantic#enabled-lints.
4-
include: package:pedantic/analysis_options.yaml
1+
include: package:lints/recommended.yaml
52

63
analyzer:
74
strong-mode:
5+
implicit-casts: false
86
implicit-dynamic: false
97
errors:
8+
missing_required_param: error
9+
missing_return: error
1010
unused_import: error
1111
unused_local_variable: error
1212
dead_code: error
13-
enable-experiment:
14-
- extension-methods
15-
16-
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
17-
linter:
18-
rules:
19-
- annotate_overrides
20-
- avoid_unused_constructor_parameters
21-
- await_only_futures
22-
- camel_case_types
23-
- cancel_subscriptions
24-
- directives_ordering
25-
- empty_catches
26-
- empty_statements
27-
- hash_and_equals
28-
- iterable_contains_unrelated_type
29-
- list_remove_unrelated_type
30-
- no_adjacent_strings_in_list
31-
- no_duplicate_case_values
32-
- non_constant_identifier_names
33-
- only_throw_errors
34-
- overridden_fields
35-
- prefer_collection_literals
36-
- prefer_conditional_assignment
37-
- prefer_contains
38-
- prefer_final_fields
39-
- prefer_final_locals
40-
- prefer_initializing_formals
41-
- prefer_interpolation_to_compose_strings
42-
- prefer_is_empty
43-
- prefer_is_not_empty
44-
- prefer_typing_uninitialized_variables
45-
- recursive_getters
46-
- slash_for_doc_comments
47-
- test_types_in_equals
48-
- throw_in_finally
49-
- type_init_formals
50-
- unawaited_futures
51-
- unnecessary_brace_in_string_interps
52-
- unnecessary_getters_setters
53-
- unnecessary_lambdas
54-
- unnecessary_new
55-
- unnecessary_null_aware_assignments
56-
- unnecessary_statements
57-
- unnecessary_this
58-
- unrelated_type_equality_checks
59-
- use_rethrow_when_possible
60-
- valid_regexps

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: time
22
description: Type-safe DateTime and Duration calculations, powered by extensions.
3-
version: 2.1.0
3+
version: 2.1.1
44
homepage: https://github.com/jogboms/time.dart
55

66
environment:
@@ -10,8 +10,8 @@ dependencies:
1010
clock: ^1.1.0
1111

1212
dev_dependencies:
13-
pedantic: ^1.11.0
14-
test: ^1.16.5
13+
lints: ^1.0.1
14+
test: ^1.21.1
1515
test_coverage:
1616
git:
1717
url: https://github.com/timsneath/test-coverage.git

0 commit comments

Comments
 (0)