NOTE: There are some changes in this release with questionable stability across the packaging/environment spectrum. Update with care.
React native 0.49+ crashes with dynamic requires. This is a workaround.
- #4213 [critical] Rename dynamic require to avoid React Native crash
- #4214 [fixup] Move require rename inside try/catch, fixes #4213
- #3735 [feature] Ignore NaN values in setters
- #4106 [fixup] Drop isNumeric utility fn, fixes #3735
- #4080 [feature] Implement a clone method for durations, fixes #4078
- #4215 [misc] TS: Add duration.clone(), for #4080
- #4003 [pkg] bower: Remove tests from package
- #3904 [pkg] jsnext:main -> module in package.json
- #4060 [pkg] Account for new rollup interface
- #3875 [bugfix] Calculate daysInMonth without Date(), fixes #3358
- #3877 [bugfix] Remove RTL scraping from preparse, fixes #3487
- #4007 [bugfix] Support '+' for duration components when parsing
- #4077 [bugfix] Handle RFC2822 parsing in non-en locales, fixes #3985
- #4108 [fixup] Fix RFC2822 rewrite, fixes #4077
- #4079 [bugfix] Use indexOf utility for IE8 compatibility, fixes #4072
- #4042 [bugfix] Make auto locale loading for node not mess webpack, fixes #4031, #2979, #3872
- #4146 [bugfix] Floating-point errors in ISO duration format, fixes #4145
- #4063 [bugfix] Add duration fields in month, day, time order, fixes #3997
- #4062 [bugfix] duration toString with mixed signs, fixes #3960
- #4131 [bugfix] Fix day-of-week validation, fixes #4112
- #4199 [bugfix] Fix year setter on leap years, fixes #4024
- #4004 [new locale] gu-IN: Gujarati (Indian) locale
- #4105 [fixup] Rename gu-IN locale to gu, fixes #4004
- #4001 [new locale] bm: Bambara language
- #3850 [new locale] es-us: Spanish (United States) locale
- #3961 [locale] nl,nl-be: Lowercase weekdays
- #3945 [locale] da: Use dot inplace of dash in long date format
- #3868 [locale] gr: Fix crash in localeData().months
- #3724 [locale] ru: Change first week of year to ISO
- #3829 [locale] de, de-at, de-ch: Improve month abbreviations, fixes #3803, #3838
- #3894 [locale] es: Update month parsing to be dot lenient, fixes #3629
- #3915 [locale] pt,pt-br: Lowercase month names
- #3933 [locale] ca: Adapt to Unicode CLDR data
- #3947 [locale] pt-br: Add "ss" relative time
- #4017 [locale] tr: Improve calendar text for next/prev week
- #4058 [locale] pl: Improve calendar for next week
- #3930 [locale] es-do: Update month parsing to be dot lenient, fixes #3629
- #3839 [locale] ko: Update ordinal format
- #3848 [misc] Add coveralls testing to travis build
- #3902 [misc] perf: Use Object.keys for empty object check
- #3924 [misc] Add FOSSA license report and scan status
- #4034 [misc] TS: Add specs & tests for moment.RFC_2822
- #3854 [misc] Refactor moment().diff() for readability
- #4088 [misc] Fix typo in comment
- #4093 [misc] Whitespace changes
If you use webpack and you've got this code:
Be sure to add:
If not you'll get: