Because nothing is ever perfect.
This version fixes two issues in version 2.0.0:
-
#81 JavaScript error when using the plugin with Node.js because
window
is undefined. TheuserLocale
option now defaults to the locale set in moment.js, retrieved viamoment.locale()
. -
#82 Trim errors for durations greater than one month and templates that included tokens of lesser magnitude. Duration arithmetic is handled differently in moment.js for months and years than it is for days and lesser types. The plugin now handles that transition correctly.