Skip to content

Instantly share code, notes, and snippets.

@ichernev
Created July 4, 2016 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichernev/812e79ac36a7829a22598fe964bfc18a to your computer and use it in GitHub Desktop.
Save ichernev/812e79ac36a7829a22598fe964bfc18a to your computer and use it in GitHub Desktop.

moment 2.14.0 changelog

New Features

  • #3233 Introduce month.isFormat for format/standalone discovery
  • #2848 Allow user to get/set the rounding method used when calculating relative time
  • #3112 optimize configFromStringAndFormat
  • #3147 Call calendar format function with moment context
  • #3160 deprecate isDSTShifted
  • #3175 make moment calendar extensible with ad-hoc options
  • #3191 toDate returns a copy of the internal date object
  • #3192 Adding support for rollup import.
  • #3238 Handle empty object and empty array for creation as now
  • #3082 Use relative AMD moment dependency

Bugfixes

  • #3241 Escape all 24 mixed pieces, not only first 12 in computeMonthsParse
  • #3008 Object setter orders sets based on size of unit
  • #3177 Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)
  • #3230 fix passing date with format string to ignore format string
  • #3232 Fix negative 0 in certain diff cases
  • #3235 Use proper locale inheritance for the base locale, fixes #3137

Misc improvements

  • #3234 Add comment on top of moment-with-locales.js
  • #3218 Fix jscs 3.0 errors
  • #3115 Link changes
  • #3122 [TS] Improve diff argument name
  • #3129 [TS] isDate, isMoment, isDuration as guard methods
  • #3135 [TS] Add missing definitions for updateLocale and defineLocale
  • #3183 [TS] Add missing definitions
  • #3244 [TS] Add missing definitions for updateLocale on global object
  • #3213 [TS] Added type UnitOfTime
  • #3252 [TS] Add weeks to Duration interface
  • #3236 add() defaults string specifier to milliseconds
  • #3063 Add info on becoming a team member
  • #3275 Update typescript definitions with 2.14.0 changes

New Locales

  • #3157 Add Dominican Republic Spanish (es-do)

Locale Improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment