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.6.0 changelog

languages

features

moment 2.7.0 changelog

new languages

  • #1678 Bengali (bn)
  • #1628 Azerbaijani (az)
  • #1633 Arabic, Saudi Arabia (ar-sa)
  • #1648 Austrian German (de-at)

features

@ichernev
ichernev / moment-2.8.0.md
Last active August 29, 2015 14:04
moment 2.8.0 changelong

moment 2.8.0 changelog

incompatible changes

  • #1761: moments created without a language are no longer following the global language, in case it changes. Only newly created moments take the global language by default. In case you're affected by this, wait, comment on #1797 and wait for a proper reimplementation
  • #1642: 45 days is no longer "a month" according to humanize, cutoffs for month, and year have changed. Hopefully your code does not depend on a particular answer from humanize (which it shouldn't anyway)
  • #1784: if you use the human readable English datetime format in a weird way (like storing them in a database) that would break when the format changes you're at risk.
  • #1785 moment.momentProperties is now an array of properties instead of a hash. If you hav
@ichernev
ichernev / moment-2.8.3.md
Created September 5, 2014 07:42
Moment 2.8.3 changelog

moment 2.8.3 changelog

bugfixes

  • #1801 proper pluralization for Arabic
  • #1833 improve spm integration
  • #1871 fix zone bug caused by Firefox 24
  • #1882 Use hh:mm in Czech
  • #1883 Fix 2.8.0 regression in duration as conversions
  • #1890 Faster travis builds
@ichernev
ichernev / moment-2.8.4.md
Created November 17, 2014 18:08
moment-2.8.4.md changelog

moment 2.8.4 changelog

Features

  • #2000 Add LTS localised format that includes seconds
  • #1960 added formatToken 'x' for unix offset in milliseconds #1938
  • #1965 Support 24:00:00.000 to mean next day, at midnight.
  • #2002 Accept 'date' key when creating moment with object
  • #2009 Use native toISOString when we can
@ichernev
ichernev / moment-2.9.0.md
Last active August 29, 2015 14:12
Moment 2.9.0 changelog

moment 2.9.0 changelog

new languages

  • 2104 Frisian (fy) language file with unit test
  • 2097 add ar-tn locale

deprecations

  • 2074 Implement moment.fn.utcOffset, deprecate momen.fn.zone

new features

@ichernev
ichernev / test_converter.js
Created February 12, 2015 04:36
Helper script using recast.js to convert moment files to es6
var recast = require('recast');
var fs = require('fs');
var types = recast.types;
var n = types.namedTypes;
var b = recast.types.builders;
var locale = 'en';
function doIt(locale) {
console.log("processing", locale);

moment 2.10.3 changelog

New locales

Features

  • 2120 / 81167a6 Add moment.fn.to and moment.fn.toNow (similar to moment.fn.from and moment.fn.fromNow)
  • 2079 / b0413fc from/fromNow return Invalid date for invalid dates

moment 2.10.5 changelog

Core:

  • #2357 Improve unit bubbling for ISO dates
  • #2404 Fix Strict Date Parsing of ISO-8601 Dates Without Times
  • #2438 Fix inconsistent moment.min and moment.max results
  • #2456 Mark moment as invalid if bad string weekday repr is parsed, fixes #2423
  • #2459 Fix function check to workaround old browsers, fixes #2325
  • #2506 Add moment.fn.toObject (redo #2123)
  • #2494 Fix two digit year parsing with YYYY format
@ichernev
ichernev / node_redirect_test.sh
Created November 11, 2011 13:22
Simple test to check if node stdout redirection works
#!/bin/bash
cat > test.js <<EOF!
var i;
for (i = 1; i <= 10; i++) {
console.log("for in loop " + i);
}
process.exit(0);