diff --git a/CHANGELOG.md b/CHANGELOG.md index 1495bb5..f4516e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.1.0 + +- Breaking Change: renamed `later` to `fromNow` to align with other ecosystems +- Introduced support for other variants of `num` i.e `double` + ## 1.0.0 - Named extensions to allow discoverability diff --git a/README.md b/README.md index 622f34f..ea578b3 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ final DateTime fourHoursFromNow = DateTime.now() + Duration(hours: 4); ## 🎖 Installation ```yaml dependencies: - time: "^1.0.0" + time: "^1.1.0" ``` ### ⚡ Import @@ -24,6 +24,7 @@ import 'package:time/time.dart'; ```dart final Duration tenMinutes = 10.minutes; +final Duration oneHourThirtyMinutes = 1.5.hours; final DateTime afterTenMinutes = DateTime.now() + 10.minutes; final Duration tenMinutesAndSome = 10.minutes + 15.seconds; final int tenMinutesInSeconds = 10.minutes.inSeconds; diff --git a/pubspec.yaml b/pubspec.yaml index a00e09e..a8c5562 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: time description: Type-safe DateTime and Duration calculations, powered by extensions. -version: 1.0.0 +version: 1.1.0 homepage: https://github.com/jogboms/time.dart author: Jogboms