Skip to content

Instantly share code, notes, and snippets.

Avatar

Kunal Marwaha marwahaha

View GitHub Profile
View moment-2.28.0.md

moment 2.28.0 changelog

Bugfixes

  • #5580 [bugfix] Fix bug where .format() modifies original moment instance

Locale improvements

  • #5676 [locale] Update dow for Konkani locales
  • #5675 [locale] az: fix a word
View moment-2.27.0.md

moment 2.27.0 changelog

Bugfixes

  • #5566 [bugfix] update moment.d.ts for calendar

New locales

  • #5522 [new locale] tk: Add Turkmen
View moment-2.26.0.md

moment 2.26.0 changelog

Bugfixes

  • #5548 [bugfix] isoWeeksInISOWeekYear in moment.d.ts
  • #5526 [bugfix] Add 'w' to supported time units
  • #5525 [bugfix] Update the type definition of the humanize() API, fix compilation error

Locale improvements

View moment-2.24.0.md

moment 2.24.0 changelog

Bugfixes

  • #4445 [bugfix] (TypeScript) allow update of a single relativeTime handler
  • #4338 [bugfix] Fix startOf/endOf DST issues while boosting performance
  • #4849 [bugfix] locale/en-ie.js date format
  • #4887 [bugfix] Make Duration#as work with quarters
  • #4912 [bugfix] pipeline breaks with rollup v0.68
View moment-2.23.0.md

moment 2.23.0 changelog

Bugfixes

  • #4417 [bugfix] isBetween should return false for invalid dates
  • #4700 [bugfix] Fix #4698: Use ISO WeekYear for HTML5_FMT.WEEK

Features

  • #4563 [feature] Fix #4518: Add support to add/subtract ISO weeks
View unspiral.js
function unspiral(i, j) {
/**
* j
* ^
* |
* 12 13 14 15 16
* 11 2 3 4 17
* 10 1 0 5 18 --> i
* 9 8 7 6 19
* 24 23 22 21 20
View moment-2.22.2.md

moment 2.22.2 changelog

Bugfixes

  • #4564 [bugfix] Avoid using trim()
  • #4453 [bugfix] Treat periods as periods, not regex-anything period, for weekday parsing in strict mode.

Locale improvements

  • #4583 [locale] Fix #4568: Insert punjabi for "next"
View moment-2.22.1.md

moment 2.22.1 changelog

Bugfixes

  • #4495 [bugfix] Added HTML5_FMT to moment.d.ts

Locale improvements

  • #3989 [locale] pt: Fix capital letters in weekdays
  • #4478 [locale] ug-cn: put abbr in lowercase
View moment-2.22.0.md

moment 2.22.0 changelog

New locales

  • #4423 [new locale] Added Mongolian locale mn

Locale improvements

  • #4430 [locale] zh-tw: add spaces
  • #4458 [locale] Georgian - fixed incorrectly used word
View moment-2.21.0.md

moment 2.21.0 changelog

Bugfixes

  • #4391 [bugfix] Fix #4390: use offset properly in toISOString
  • #4361 [bugfix] remove ordinal for Turkish locale as they use `cardin…
  • #4360 [bugfix] Correct min/max TypeScript signatures
  • #4310 [bugfix] Fix #3883 lazy load parentLocale in defineLocale, fallback to global if missing

New locales

You can’t perform that action at this time.