Skip to content

Instantly share code, notes, and snippets.

@ichernev
Created May 1, 2020 00:56
Show Gist options
  • Save ichernev/6148e64df2427e455b10ce6a18de1a65 to your computer and use it in GitHub Desktop.
Save ichernev/6148e64df2427e455b10ce6a18de1a65 to your computer and use it in GitHub Desktop.

moment 2.25.0 changelog

new locales

  • #4957 [new locale] oc-lnc: Occitan
  • #5356 [new locale] zh-mo: Chinese (Macau)
  • #5271 d9913b26[new locale] en-in: English (India)
  • #5076 849f5c01[new locale] gom-deva: Add Konkani Devanagari
  • a585cb65[new locale] fil: Filipino, copied from tl-ph

locale updates

  • #4560 [locale] es: Add translation for invalidDate, fixes #2940
  • #4958 [locale] mk: Improve relativeTime
  • #4990 [locale] mr: Improve meridiem
  • #4874 [locale] vi: Improve calendar.lastWeek
  • #5025 [locale] en-sg: Rename locale en-SG to en-sg
  • #5127 [locale] ga: Improve calendar, relativeTime
  • #4975 [locale] br: Switch to 24-hour format, fixes #4974
  • #5055 [locale] bn: Improve translation as per Bangla Academy
  • #5399 [locale] en-il: Add relativeTime.ss
  • #5329 [locale] ja: Handle week edge case, fixes #5327
  • b3dc6c2d[locale] tet: Fix seconds translation
  • #5203 [locale] bg: Fix shortMonths, fixes #4995
  • #5152 [locale] hr: Fix month declension in Croation LL, LLL, LLLL formats
  • #5158 [locale] pt,pt-br: Uncapitalization of month names, fixes #5109
  • #5160 [locale] zh-hk: Update meridiem hour range
  • #5165 [locale] nb,nn: Use correct abbreviations for months and weekdays
  • #5069 [locale] gom-latn: Multiple improvements across the board
  • #5013 [locale] fa: Fix typo in relativeTime.ss, fixes #5005
  • #5006 [locale] bg: Improve calendar.lastWeek
  • #4991 [locale] ja: Revert long month names introduced in #4590
  • #5387 [locale] ro: Improve Feb translation
  • #5279 [locale] ka: Standalone/format/longformat improvements
  • #5411 8dac92cb[locale] ga: Improve month/weekday
  • #5445 [locale] sv: Improve ordinals
  • #5457 [locale] eo: Multiple corrections
  • #5427 [locale] ar-ma: Fix a typo in monday
  • #5310 01e59f21 [locale] bg: Improve relativeTime.dd
  • #5133 ed6fd040 [locale] sl: Improve date format
  • #4873 4c292075 [locale] hr: Improvements in relative time
  • #4368 [locale] bo: Improvements
  • #4589 647dbd2e [locale] ka: Improvements for relativeTime
  • #4695 c5225f81 [locale] zh: align relativeTime.future to CLDR 33
  • #4824 144e3949 [locale] pt-br: Lowercase weekdays
  • #4825 b162aeed [locale] it: Improve relative time
  • #5471 [locale] ja: Add new 'Reiwa' Era

bugfixes

  • #5174 [bugfix] Fix isFunction when Function is undefined, fixes #5173
  • #5008 [bugfix] ts: Add isoWeek option for duration constructor, fixes #5007
  • #5098 [bugfix] Uniform handling of day/date when 0 is used, fixes #5097
  • #5080 [bugfix] Invalid parse against array still picks best format, fixes #4435
  • #5237 [bugfix] Handle unusual historic timezone offsets, fixes #5236
  • #4966 [bugfix] updateLocale with null applies immediately, fixes #4962
  • #4953 [bugfix] Ignore enumerable Object.prototype extensions, fixes #4802
  • #4906 [bugfix] Fix circular dependency issue, fixes #4756
  • #5029 d0903253 [bugfix] Make node.js util inspect happy, fixes #4639
  • #5064 0683b955 [bugfix] Fix longDateFormat interpolation inside square brakets
  • #5261 15f1628b [bugfix] Fix year setter edge case, fixes #5245
  • #5269 a207d788 [bugfix] Use __dirname for locale import if available, fixes #5252 #5214
  • #4883 1f88f6dd [bugfix] Cloning/wrapping preserve invalid durations
  • #3846 [bugfix] Force four digits in Y token
  • #5459 [bugfix] Properly fallback to base locales in array getter, fixes #4780
  • #4561 ccd55f9b [bugfix] Avoid memory leak in updateLocale, fixes #4476
  • #5470 [bugfix] Set name when updating non-existent locale
  • #4717 813eb328 [bugfix] More predictable month diffs at end-of-month
  • #5473 [bugfix] Fix the escape problem of analytic regex, fixes #4631

new features

  • #3666 [feature] Calendar function handles formats only arg, fixes #3658
  • #4470 [feature] add support for [YYYY] as ISO8601 format
  • #5458 [feature] Support ISO 8601 YYYYMM format, fixes #3918
  • #5461 [feature] Support relative weeks in relative time units
  • #4296 757d4ff8 [feature] Accept custom relative thresholds in duration.humanize
  • #4433 94edb2e8 [feature] Add support for creating duration from numeric strings
  • #4599 4b615b9d [feature] Add support for eras in en and jp
  • #4611 022dc038 [feature] Support for strict string parsing, fixes #2469
  • #4746 86fa3519 [feature] Add weeksInWeekYear to return the weeks in a given week year (fixes #3942)
  • #5475 [feature] Add isoWeeksInISOWeekYear

other

  • #5151 a607155e c2aa0b05 [misc] ts: Add support for typeVersions and ts3.1+

  • #5452 [misc] add FAQ.md

  • #4961 [misc] release process fixes

  • #4634 [misc] ts: Fix type of WeekSpec

  • #5277 [misc] Remove stray second arg from parseFloat

  • a19f4f28[misc] Do not run tests twice in travis

  • 0149170c[misc] Update node versions in travis.yml

  • 30983f69[misc] Update some deps

  • #5260 [misc] Remove unused imports

  • #5204 [misc] Update moment URL to https in package.json

  • #4963 [misc] Add general benchmarks: get, set, compare, related #2659

  • #4809 ba58de94 [misc] ts: Export unitOfTime namespace

  • #5331 fc8885cf [misc] Cache loadLocale misses

  • #5462 dca02eda [misc] Switch to eslint + prettier

  • a34058d7[tests] Export QUnit.only

  • #5400 [tests] Fix minor typo

  • #4976 [tests] Fix various text typos

  • #5393 790bb779 [tests] Tests for #5245, #5261

  • #4832 e0d031f1 [tests] Add strict parsing month name tests for all locales

  • #5340 0d0eabd9 [pkg] Add module entry point, keeping jsnext:main

  • #5294 01e9feb8 [pkg] Add source maps for minified artefacts

  • afa66633[pkg] Remove spacejam dependency

  • ebea0cb7[pkg] Preserve important comments when transpiling

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