Update Moment.js from 2.7.0 to 2.8.1
authorpaladox <thomasmulhall410@yahoo.com>
Mon, 4 Aug 2014 11:13:21 +0000 (11:13 +0000)
committerJdlrobson <jrobson@wikimedia.org>
Fri, 15 Aug 2014 17:05:51 +0000 (17:05 +0000)
commit96307e411c3b6ead354b6d96ff84200a627d9ed6
tree36db2c92034b5e4382d4395f61323c07a668452d
parentb061c276b59325e2cdb2004ef306cb3553fa69c0
Update Moment.js from 2.7.0 to 2.8.1

Project site

* http://momentjs.com/ and https://github.com/moment/moment/

File source

* https://github.com/moment/moment/blob/2.8.1/moment.js

README

* https://github.com/moment/moment/blob/2.8.1/readme.md

Changelog

1.8.0 changelog

* https://gist.github.com/ichernev/ac3899324a5fa6c8c9b4

1.8.1 changelog

* https://github.com/moment/moment/blob/2.8.1/CHANGELOG.md

difference between 2.7.0 and 2.8.1

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 have a plugin that uses it to make sure cloned moments will retain the plugin-added properties you need to change your code.

deprecations (old behavior will be dropped in 3.0)

* #1761  lang  is renamed to  locale ,  langData  ->  localeData . Also there is now defineLocale  that should be used when creating new locales
* #1763  add(unit, value)  and  subtract(unit, value)  are now deprecated. Use  add(value, unit)  and  subtract(value, unit)  instead.
* #1759 rename  duration.toIsoString  to  duration.toISOString . The js standard library and moment's  toISOString  follow that convention.

new locales

* #1789 Tibetan (bo)
* #1786 Africaans (af)
* #1778 Burmese (my)
* #1727 Belarusian (be)

bugfixes

* #1738 local to zone conversion with keepLocalTime=true
* #1642 more accurate humanize

performance

* #1808 speedup cloning 49x
* #1708 speedup creation with Date object

features

*#1716  moment.relativeTimeThreshold  now supports getting the existing threshold

locale bugfix

* #1784 add comma between day-of-month and year in us-en
* #1710 fix lithuanian month name

2.8.1

* bugfix #1813: fix moment().lang([key]) incompatibility

Change-Id: Iaffaaa18e08773f8f36e83e918e61a2259f1e2e3
81 files changed:
RELEASE-NOTES-1.24
resources/Resources.php
resources/lib/moment/lang/af.js [new file with mode: 0644]
resources/lib/moment/lang/ar-ma.js
resources/lib/moment/lang/ar-sa.js
resources/lib/moment/lang/ar.js
resources/lib/moment/lang/az.js
resources/lib/moment/lang/be.js [new file with mode: 0644]
resources/lib/moment/lang/bg.js
resources/lib/moment/lang/bn.js
resources/lib/moment/lang/bo.js [new file with mode: 0644]
resources/lib/moment/lang/br.js
resources/lib/moment/lang/bs.js
resources/lib/moment/lang/ca.js
resources/lib/moment/lang/cs.js
resources/lib/moment/lang/cv.js
resources/lib/moment/lang/cy.js
resources/lib/moment/lang/da.js
resources/lib/moment/lang/de-at.js
resources/lib/moment/lang/de.js
resources/lib/moment/lang/el.js
resources/lib/moment/lang/en-au.js
resources/lib/moment/lang/en-ca.js
resources/lib/moment/lang/en-gb.js
resources/lib/moment/lang/eo.js
resources/lib/moment/lang/es.js
resources/lib/moment/lang/et.js
resources/lib/moment/lang/eu.js
resources/lib/moment/lang/fa.js
resources/lib/moment/lang/fi.js
resources/lib/moment/lang/fo.js
resources/lib/moment/lang/fr-ca.js
resources/lib/moment/lang/fr.js
resources/lib/moment/lang/gl.js
resources/lib/moment/lang/he.js
resources/lib/moment/lang/hi.js
resources/lib/moment/lang/hr.js
resources/lib/moment/lang/hu.js
resources/lib/moment/lang/hy-am.js
resources/lib/moment/lang/id.js
resources/lib/moment/lang/is.js
resources/lib/moment/lang/it.js
resources/lib/moment/lang/ja.js
resources/lib/moment/lang/ka.js
resources/lib/moment/lang/km.js
resources/lib/moment/lang/ko.js
resources/lib/moment/lang/lb.js
resources/lib/moment/lang/lt.js
resources/lib/moment/lang/lv.js
resources/lib/moment/lang/mk.js
resources/lib/moment/lang/ml.js
resources/lib/moment/lang/mr.js
resources/lib/moment/lang/ms-my.js
resources/lib/moment/lang/my.js [new file with mode: 0644]
resources/lib/moment/lang/nb.js
resources/lib/moment/lang/ne.js
resources/lib/moment/lang/nl.js
resources/lib/moment/lang/nn.js
resources/lib/moment/lang/pl.js
resources/lib/moment/lang/pt-br.js
resources/lib/moment/lang/pt.js
resources/lib/moment/lang/ro.js
resources/lib/moment/lang/ru.js
resources/lib/moment/lang/sk.js
resources/lib/moment/lang/sl.js
resources/lib/moment/lang/sq.js
resources/lib/moment/lang/sr-cyrl.js
resources/lib/moment/lang/sr.js
resources/lib/moment/lang/sv.js
resources/lib/moment/lang/ta.js
resources/lib/moment/lang/th.js
resources/lib/moment/lang/tl-ph.js
resources/lib/moment/lang/tr.js
resources/lib/moment/lang/tzm-latn.js
resources/lib/moment/lang/tzm.js
resources/lib/moment/lang/uk.js
resources/lib/moment/lang/uz.js
resources/lib/moment/lang/vi.js
resources/lib/moment/lang/zh-cn.js
resources/lib/moment/lang/zh-tw.js
resources/lib/moment/moment.js