Skip to content

Releases: TheFes/relative-time-plus

v2.2.0

10 Apr 20:27
26d417c
Compare
Choose a tag to compare

🌐 LANGUAGES

What's Changed

  • Add Finnish language translation by @TheFes in #48

Full Changelog: v2.1.0...v2.2.0

v2.1.0

04 Apr 08:13
Compare
Choose a tag to compare

🌐 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

26 Mar 13:28
b039515
Compare
Choose a tag to compare

🐛 BUG FIXES

  • Fix bug in error response

What's Changed

Full Changelog: v2.0.0...v2.0.1

v2.0.0 🚨 CONTAINS BREAKING CHANGES 🚨

22 Mar 21:20
4856369
Compare
Choose a tag to compare

🚨 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 and millisecond are removed. They can be set by adding these time parts to the not_use parameter
  • The parameter verbose is removed. It was doing the exact opposite of the parameter name, and was already replaced by the abbr 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 the show_all parameter to show all time parts. The time parts set in the not_use parameter will be leading, so eg always_show='all', not_show='day' will show all time parts (even when they are 0) 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

26 Jan 09:56
c8a11e4
Compare
Choose a tag to compare

NEW LANGUAGE 🌐

  • 🇸🇪 Swedish was added by @tde01065, Thanks for that!

What's Changed

New Contributors

Full Changelog: v1.3.1...v1.3.2

v1.3.1

28 Nov 12:50
bbafd59
Compare
Choose a tag to compare

✨ 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

23 Nov 09:22
e103d77
Compare
Choose a tag to compare

✨ IMPROVEMENTS

  • Add always_show parameter, which can be used to show time periods when they are 0, so for example 0 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

21 Nov 15:51
2ea8240
Compare
Choose a tag to compare

✨ IMPROVEMENTS

  • The parameter not_use has been added to replace the month, week and millisecond parameters. If you use them in existing templates, it will still work, but not_use is more versatile, as you can exclude all time periods using it. Using not_use you can provide the time periods you don't want to use in the output, by default only milliseconds are excluded. Possible values are year, month, week, day, hour, minute, second, millisecond or the abbreviated versions yr, 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 and millisecond in the future, so if you don't use the defaults, make sure to update to not_use

What's Changed

Full Changelog: v1.1.1...v1.2.0

v1.1.1

21 Nov 07:57
70d7457
Compare
Choose a tag to compare

🐛 BUG FIXES

  • Fix milliseconds outputted where millisecond=false

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

03 Nov 12:21
48c6c01
Compare
Choose a tag to compare

🌟 NEW FEATURES

  • Added option to include milliseconds. By default this is set to false

⁉ OTHER

  • 🧹 Some further code improvements and cleanup

What's Changed

  • Add parameter to include milliseconds by @TheFes in #25

Full Changelog: v1.0.0...v1.1.0