Releases: piuccio/react-intl-formatted-duration
Releases · piuccio/react-intl-formatted-duration
v4.0.0
v3.1.0
v3.0.0
Breaking changes
-
This package adds a peer dependency on
intl-messageformat
which however is a direct dependency ofreact-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
v2.0.1
v2.0.0
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