moment 2.8.0 changelog
- #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.
moment.momentPropertiesis 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.
deprecations (old behavior will be dropped in 3.0)
langis renamed to
localeData. Also there is now
defineLocalethat should be used when creating new locales
subtract(unit, value)are now deprecated. Use
- #1759 rename
duration.toISOString. The js standard library and moment's
toISOStringfollow that convention.
moment.relativeTimeThresholdnow supports getting the existing threshold