juliuste / comboios

Comboios de Portugal (CP, Portugese Railways) API client.
ISC License
44 stars 9 forks source link

Update moment-duration-format to the latest version 🚀 #2

Closed greenkeeper[bot] closed 6 years ago

greenkeeper[bot] commented 6 years ago

Version 2.0.0 of moment-duration-format was just published.

Dependency moment-duration-format
Current Version 1.3.0
Type dependency

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.0

This 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 intuitive trim, useSignificantDigits, stopTrim, minValue, and maxValue, and trunc.

  • 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:

greenkeeper[bot] commented 6 years ago

Version 2.0.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • b486f47 Fix errors for trimming across the months/days token boundary.
  • a989202 Update version to 2.0.1.
  • 019c3db Changed default userLocale to be moment's locale.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.1.0 just got published.

Update to this version instead 🚀

Commits

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