Skip to content

Instantly share code, notes, and snippets.

Iskren Ivov Chernev ichernev

View GitHub Profile
@ichernev
ichernev / moment-2.19.2.md
Created Nov 11, 2017
moment 2.19.2 changelog
View moment-2.19.2.md

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 Oct 10, 2017
moment 2.19.0 changelog
View moment-2.19.0.md

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
View make_gist
#!/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
Moment zone/offset/mutation handling
View moment-zones.md

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 Mar 18, 2017
moment 2.18.0 changelog
View moment-2.18.0.md

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 Dec 4, 2016
moment 2.17.1 changelog
View moment-2.17.1.md

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

@ichernev
ichernev / moment-2.17.0.md
Last active Nov 22, 2016
moment 2.17.0 changelog
View moment-2.17.0.md
  • released Nov 22, 2016

  • #3435 [new locale] yo: Yoruba (Nigeria) locale

  • #3595 [bugfix] Fix accidental reference to global "value" variable

  • #3506 [bugfix] Fix invalid moments returning valid dates to method calls

  • #3563 [locale] ca: Change future relative time

  • #3504 [tests] Fixes #3463, parseZone not handling Z correctly (tests only)

  • #3591 [misc] typescript: update typescript to 2.0.8, add strictNullChecks=true

  • #3597 [misc] Fixed capitalization in nuget spec

@ichernev
ichernev / moment-2.16.0.md
Created Nov 10, 2016
moment 2.16.0 changelog
View moment-2.16.0.md

moment 2.16.0 changelog

  • Released Nov 9, 2016

Features

  • #3530 [feature] Check whether input is date before checking if format is array
  • #3515 [feature] Fix #2300: Default to current week.

Bugfixes

  • #3546 [bugfix] Implement lazy-loading of child locales with missing prents
@ichernev
ichernev / make_gist.bash
Created Oct 19, 2016
Helper script that pushes a markdown file as a gist after linkifying issues
View make_gist.bash
#!/bin/bash
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-2.15.0.md
Created Sep 12, 2016
moment 2.15.0 changelog
View moment-2.15.0.md

moment 2.15.0 changelog

  • Released Sept 12, 2016

New Locales

  • #3255 [new locale] mi: Maori language
  • #3267 [new locale] ar-ly: Arabic (Libya) locale
  • #3333 [new locale] zh-hk: Chinese (Hong Kong) locale

Bugfixes

You can’t perform that action at this time.