Closed greenkeeper[bot] closed 6 years ago
Update to this version instead 🚀
The new version differs by 24 commits.
c3946ed
Add documentation for trimming and moment.duration.format
.
2a6af96
Update version to 2.1.0.
8fb0aaa
Add documentation for moment.duration.format
.
dc537a5
Added moment.duration.format
tests for remaining options.
0618abf
Allow useSignificantDigits
to be used with trim
.
5d12b38
Documentation and tests update.
77ad151
Fix useSignificantDigits
when leading tokens are trimmed.
3c57c30
Fix minValue for negative durations.
884d491
Fix minValue option.
4117726
Update maxValue
and minValue
documentation.
faf8119
Allow minValue and maxValue to function with trim
.
527355a
Update operation of largest
option.
40b219d
Handle negative values correctly when using stopTrim
.
387936c
Fixed bubbling of rounded values.
88bd161
Added failing tests for rounded value bubbling (#84).
There are 24 commits in total.
See the full diff
Update to this version instead 🚀
The new version differs by 17 commits.
c0ed2d8
Version 2.2.0.
cf65006
Update readme with fallback format function options.
d2d1eea
Merge branch 'polyfill'
26ea7a5
Merge branch 'master' of https://github.com/jsmreese/moment-duration-format
688997c
Change API from forceFormatFallback
to useToLocaleString
.
7bea3cf
Added string-based rounding.
02710fc
Missing semicolon.
b124240
Fix rounding errors in fallback format function.
fe2782c
Merge branch 'polyfill'
f250714
Add failing tests for floating point errors.
c8b61a9
Implement fallback format function.
da3dbe7
Update toLocaleString
fallback note.
1e55dce
Update toLocaleString
fallback note.
dd026ad
Fixing the Browserstack logo.
359d13b
Add version 2 note and browserstack link
There are 17 commits in total.
See the full diff
Update to this version instead 🚀
The new version differs by 5 commits.
0e924c6
Version 2.2.1.
9e6c6df
Set maximumSignificantDigits only when number > 0 to avoid format errors on HTC Browser.
6f3a82c
Add feature test for toLocaleString
rounding.
24ed04f
Add roadmap.
363fcbe
Clarify fallback number format function options.
See the full diff
Version 2.0.0 of moment-duration-format was just published.
The version 2.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of moment-duration-format.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
Version 2.0.0This release is a complete revamp of the moment duration format plugin, incorporating and implementing almost all of the feedback from the past three years that version 1 has been in the wild.
Among the issues resolved with this release:
Localization support. Numerical output is formatted via
toLocaleString
, and unit labels are formatted via custom extensions to moment's locale object. This allows a range of localization features, including label style and pluralization, decimal separator and digit grouping, and significant digits output.Proper UMD packaging, with support for alternate moment instances such as moment-timezone.
Updated format options, including
largest
, expanded and more intuitivetrim
,useSignificantDigits
,stopTrim
,minValue
, andmaxValue
, andtrunc
.Bug fixes around negative durations, rounding, default output ambiguity, and more, plus a boat load of tests.
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: