Skip to content

Releases: piuccio/react-intl-formatted-duration

v4.0.0

11 Apr 09:05
Compare
Choose a tag to compare

Breaking changes

  • This package now needs Intl.NumberFormat which however is a direct dependency of react-intl so in most cases you won't need to change anything.

New features

  • Add unitDisplay to configure long, short and narrow formats (#25) e731f33

v3.1.0...v4.0.0

v3.1.0

13 Mar 04:39
Compare
Choose a tag to compare
  • Update build dependencies (#18) 5f378ba
  • move intl-unofficial-duration-unit-format out of dev deps (#17) 7be7753

Documentation updates

v3.0.0...v3.1.0

v3.0.0

31 Oct 12:20
Compare
Choose a tag to compare

Breaking changes

  • This package adds a peer dependency on intl-messageformat which however is a direct dependency of react-intl so in most cases you won't need to change anything.

  • Move the core logic out to a separate package intl-unofficial-duration-unit-format, the public API did not change but the internal code is completely different, hence the major version update.

Changes

  • Fix rounding of seconds (#14)
  • Flow types

v2.0.2

08 Jun 07:22
Compare
Choose a tag to compare

Changes

  • Actually fix the prop validation in 2.0.1

v2.0.1

08 Jun 07:02
Compare
Choose a tag to compare

Changes

  • Allow valueComponent and textComponent to be strings

v2.0.0

10 Feb 02:43
Compare
Choose a tag to compare

Changes

  • Add support for all plural format
  • Update all dependencies including react v16, react-intl 2.4

It's a breaking change since the message format is now different

secondsSingular and secondsPlural have been replaced by secondsUnit which looks like {value, plural, one {second} other {seconds}}

Please update your translation files.

There is no API change, so you can use the component just like before

1.1.0

14 Jul 08:19
Compare
Choose a tag to compare

Changes

  • New: Format durations with hours and days through custom format messages
  • New: Optional seconds

1.0.0

14 Jul 08:18
Compare
Choose a tag to compare

First release

  • format duration as {minutes} {seconds} or as timers 01:30