Skip to content

Instantly share code, notes, and snippets.

View ichernev's full-sized avatar

Iskren Ivov Chernev ichernev

  • Palo Alto, California, USA
View GitHub Profile

Moment 2.30.0

Bugfixes

  • #6128 [feature] Graceful handling of undefined locale name
  • #5554 [bugfix] Handle invalid mutations
  • #6193 [bugfix] weekyear setter handle dow
  • #5592 [bugfix] Stricter single digit date parsing
  • #5827 [bugfix] ts: toISOString function also return null
  • #5607 [bugfix] unify duration.valueOf and asMilliseconds
@ichernev
ichernev / moment-2.29.3.md
Created April 17, 2022 18:17
Moment 2.29.3 Changelog

moment 2.29.3 changelog

Bugfixes

  • #5995 [bugfix] Remove const usage

Other

  • #5990 misc: fix advisory link
# moment 2.29.2 changelog
This is security update, adressing
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
Locales with names containing forward slash `/` and backward slash `\\` are no
longer loaded from filesystem (they can still be used in locales which are
defined on the spot).
This might break your code, if you happen to package your own locales in

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

@ichernev
ichernev / moment-2.19.2.md
Created November 11, 2017 20:09
moment 2.19.2 changelog

moment 2.19.2 changelog

Bugfixes

  • #4255 [bugfix] Fix year setter for random days in a leap year, fixes #4238
  • #4242 [bugfix] updateLocale now tries to load parent, fixes #3626
@ichernev
ichernev / moment-2.19.0.md
Created October 10, 2017 09:17
moment 2.19.0 changelog

moment 2.19.0 changelog

NOTE: There are some changes in this release with questionable stability across the packaging/environment spectrum. Update with care.

Critical

React native 0.49+ crashes with dynamic requires. This is a workaround.

  • #4213 [critical] Rename dynamic require to avoid React Native crash
#!/bin/bash -x
set -e
set -o pipefail
REPO="moment/moment"
function json_escape(){
echo -n "$1" | python -c 'import json,sys; print json.dumps(sys.stdin.read())'
}
@ichernev
ichernev / moment-zones.md
Last active May 24, 2017 19:53
Moment zone/offset/mutation handling

Timezone/Offset handling in moment

Intro

Datetime handling is relatively straight forward for UTC, but can get messy around DST (Daylight Savings Time), when the local clock shifts forwards or backwards one hour. During DST it's possible that a particular local time is invalid (in the middle of a forward shift) or ambiguous (in the middle of a backwards shift).

@ichernev
ichernev / moment-2.18.0.md
Created March 18, 2017 20:46
moment 2.18.0 changelog

moment 2.18.0 changelog

Features

  • #3708 [feature] RFC2822 parsing
  • #3611 [feature] Durations gain validity
  • #3738 [feature] Enable relative time for multiple seconds, request #2558
  • #3766 [feature] Add support for k and kk format parsing

Bugfixes

@ichernev
ichernev / moment-2.17.1.md
Created December 4, 2016 05:35
moment 2.17.1 changelog

moment 2.17.1 changelog

  • Released Dec 3, 2016

  • #3638 [misc] TS: Make typescript definitions work with 1.x

  • #3628 [misc] Adds "sign CLA" link to CONTRIBUTING.md

  • #3640 [misc] Fix locale issues