Releases: TheFes/relative-time-plus
Releases · TheFes/relative-time-plus
v2.2.0
v2.1.0
🌐 LANGUAGES
- Add Norwegian (bokmål) (nb) and Norwegegion (nynorsk) (nn). Thanks @bendikrb
- Add Czech. Thanks @supperka
What's Changed
- Add languages: norwegian bokmål (nb), norwegian nynorsk (nn) by @bendikrb in #43
- Indentation/formatting by @bendikrb in #44
- Add Czech language translation by @TheFes in #46
New Contributors
Full Changelog: v2.0.1...v2.1.0
v2.0.1
v2.0.0 🚨 CONTAINS BREAKING CHANGES 🚨
🚨 WARNING: THIS RELEASE CONTAINS BREAKING CHANGES 🚨
@Pipo31416 Suggested a round
paramter in #39. I thought this was a great suggestion, but decided to implement it differently, causing an almost complete rewrite of the macro. So that's why I named this release 2.0.0 :)
🚨 BREAKING CHANGES
- The parameters
month
,week
andmillisecond
are removed. They can be set by adding these time parts to thenot_use
parameter - The parameter
verbose
is removed. It was doing the exact opposite of the parameter name, and was already replaced by theabbr
parameter some time ago
🌟 IMPROVEMENTS
- a new parameter
round_mode
has been added. By default this is set to"floor"
meaning it will round the last shown time part down. Other options are"ceil"
(always round up) and"common"
which will round up if the remaining timedelta is 0.5 or more of the last shown time part. (eg 30 minutes or more if the last shown time part is hour). - you can use
"all"
for theshow_all
parameter to show all time parts. The time parts set in thenot_use
parameter will be leading, so egalways_show='all', not_show='day'
will show all time parts (even when they are0
) expect for the days.
🐛 BUG FIXES
- the time parts set in
always_show
would not always be shown
What's Changed
Full Changelog: v1.3.2...v1.4.0
v1.3.2
v1.3.1
✨ IMPROVEMENTS
- In case the
always_show
parameter is used, the number of items used in that parameter will be the minimum number of time parts shown.
🐛 BUG FIXES
- Fix calculation for days in specific cases
What's Changed
Full Changelog: v1.3.0...v1.3.1
v1.3.0
✨ IMPROVEMENTS
- Add
always_show
parameter, which can be used to show time periods when they are0
, so for example0 years, 0 months and 12 days
🐛 BUG FIXES
- Fix calculation for years and months in specific cases
What's Changed
Full Changelog: v1.2.0...v1.3.0
v1.2.0
✨ IMPROVEMENTS
- The parameter
not_use
has been added to replace themonth
,week
andmillisecond
parameters. If you use them in existing templates, it will still work, butnot_use
is more versatile, as you can exclude all time periods using it. Usingnot_use
you can provide the time periods you don't want to use in the output, by default only milliseconds are excluded. Possible values areyear
,month
,week
,day
,hour
,minute
,second
,millisecond
or the abbreviated versionsyr
,mth
,wk
,day
,hr
,min
,sec
,ms
. You can provide a list or a comma separated string, so'yr, month'
and['yr', 'month']
will both work. - I will probably remove the
month
,week
andmillisecond
in the future, so if you don't use the defaults, make sure to update tonot_use
What's Changed
Full Changelog: v1.1.1...v1.2.0