- #1761: moments created without a language are no longer following the global language, in case it changes. Only newly created moments take the global language by default. In case you're affected by this, wait, comment on #1797 and wait for a proper reimplementation
- #1642: 45 days is no longer "a month" according to humanize, cutoffs for month, and year have changed. Hopefully your code does not depend on a particular answer from humanize (which it shouldn't anyway)
- #1784: if you use the human readable English datetime format in a weird way (like storing them in a database) that would break when the format changes you're at risk.
- #1785
moment.momentProperties
is now an array of properties instead of a hash. If you have a plugin that uses it to make sure cloned moments will retain the plugin-added properties you need to change your code.
- #1761
lang
is renamed tolocale
,langData
->localeData
. Also there is nowdefineLocale
that should be used when creating new locales - #1763
add(unit, value)
andsubtract(unit, value)
are now deprecated. Useadd(value, unit)
andsubtract(value, unit)
instead. - #1759 rename
duration.toIsoString
toduration.toISOString
. The js standard library and moment'stoISOString
follow that convention.
- #1716
moment.relativeTimeThreshold
now supports getting the existing threshold