Skip to content

Commit

Permalink
Make DateTime extension private to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
devj3ns committed Apr 2, 2021
1 parent a30ee0f commit ef6a481
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.2

* Make DateTime extension private to avoid conflicts

## 1.1.1

* Fix daylight-saving issue
Expand Down
2 changes: 1 addition & 1 deletion lib/isoweek.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Week extends Equatable {
String toString() => '${year}W${weekNumber.toString().padLeft(2, '0')}';
}

extension DateTimeUtils on DateTime {
extension _DateTimeUtils on DateTime {
/// Alternative to add(days: x) because of daylight-saving issues.
DateTime addDays(int days) => copyWith(day: day + days);

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: isoweek
description: A lightweight Dart package which provides the class Week (based on the ISO 8601 format).
version: 1.1.1
version: 1.1.2
homepage: https://jensbecker.dev
repository: https://github.com/devj3ns/isoweek
issue_tracker: https://github.com/devj3ns/isoweek/issues
Expand Down

0 comments on commit ef6a481

Please sign in to comment.