You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

435 lines
19 KiB

  1. Changelog
  2. =========
  3. ### 2.10.2
  4. * fixed moment-with-locales in browser env caused by esperanto change
  5. ### 2.10.1
  6. * regression: Add moment.duration.fn back
  7. ### 2.10.0
  8. Ported code to es6 modules.
  9. ### 2.9.0 [See full changelog](https://gist.github.com/ichernev/0c9a9b49951111a27ce7)
  10. languages:
  11. * [2104](https://github.com/moment/moment/issues/2104) Frisian (fy) language file with unit test
  12. * [2097](https://github.com/moment/moment/issues/2097) add ar-tn locale
  13. deprecations:
  14. * [2074](https://github.com/moment/moment/issues/2074) Implement `moment.fn.utcOffset`, deprecate `momen.fn.zone`
  15. features:
  16. * [2088](https://github.com/moment/moment/issues/2088) add moment.fn.isBetween
  17. * [2054](https://github.com/moment/moment/issues/2054) Call updateOffset when creating moment (needed for default timezone in
  18. moment-timezone)
  19. * [1893](https://github.com/moment/moment/issues/1893) Add moment.isDate method
  20. * [1825](https://github.com/moment/moment/issues/1825) Implement toJSON function on Duration
  21. * [1809](https://github.com/moment/moment/issues/1809) Allowing moment.set() to accept a hash of units
  22. * [2128](https://github.com/moment/moment/issues/2128) Add firstDayOfWeek, firstDayOfYear locale getters
  23. * [2131](https://github.com/moment/moment/issues/2131) Add quarter diff support
  24. Some bugfixes and language improvements -- [full changelog](https://gist.github.com/ichernev/0c9a9b49951111a27ce7)
  25. ### 2.8.4 [See full changelog](https://gist.github.com/ichernev/a4fcb0a46d74e4b9b996)
  26. Features:
  27. * [#2000](https://github.com/moment/moment/issues/2000) Add LTS localised format that includes seconds
  28. * [#1960](https://github.com/moment/moment/issues/1960) added formatToken 'x' for unix offset in milliseconds #1938
  29. * [#1965](https://github.com/moment/moment/issues/1965) Support 24:00:00.000 to mean next day, at midnight.
  30. * [#2002](https://github.com/moment/moment/issues/2002) Accept 'date' key when creating moment with object
  31. * [#2009](https://github.com/moment/moment/issues/2009) Use native toISOString when we can
  32. Some bugfixes and language improvements -- [full changelog](https://gist.github.com/ichernev/a4fcb0a46d74e4b9b996)
  33. ### 2.8.3
  34. Bugfixes:
  35. * [#1801](https://github.com/moment/moment/issues/1801) proper pluralization for Arabic
  36. * [#1833](https://github.com/moment/moment/issues/1833) improve spm integration
  37. * [#1871](https://github.com/moment/moment/issues/1871) fix zone bug caused by Firefox 24
  38. * [#1882](https://github.com/moment/moment/issues/1882) Use hh:mm in Czech
  39. * [#1883](https://github.com/moment/moment/issues/1883) Fix 2.8.0 regression in duration as conversions
  40. * [#1890](https://github.com/moment/moment/issues/1890) Faster travis builds
  41. * [#1892](https://github.com/moment/moment/issues/1892) Faster isBefore/After/Same
  42. * [#1848](https://github.com/moment/moment/issues/1848) Fix flaky month diffs
  43. * [#1895](https://github.com/moment/moment/issues/1895) Fix 2.8.0 regression in moment.utc with format array
  44. * [#1896](https://github.com/moment/moment/issues/1896) Support setting invalid instance locale (noop)
  45. * [#1897](https://github.com/moment/moment/issues/1897) Support moment([str]) in addition to moment([int])
  46. ### 2.8.2
  47. Minor bugfixes:
  48. * [#1874](https://github.com/moment/moment/issues/1874) use `Object.prototype.hasOwnProperty`
  49. instead of `obj.hasOwnProperty` (ie8 bug)
  50. * [#1873](https://github.com/moment/moment/issues/1873) add `duration#toString()`
  51. * [#1859](https://github.com/moment/moment/issues/1859) better month/weekday names in norwegian
  52. * [#1812](https://github.com/moment/moment/issues/1812) meridiem parsing for greek
  53. * [#1804](https://github.com/moment/moment/issues/1804) spanish del -> de
  54. * [#1800](https://github.com/moment/moment/issues/1800) korean LT improvement
  55. ### 2.8.1
  56. * bugfix [#1813](https://github.com/moment/moment/issues/1813): fix moment().lang([key]) incompatibility
  57. ### 2.8.0 [See changelog](https://gist.github.com/ichernev/ac3899324a5fa6c8c9b4)
  58. * incompatible changes
  59. * [#1761](https://github.com/moment/moment/issues/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](https://github.com/moment/moment/issues/1797) and wait for a proper reimplementation
  60. * [#1642](https://github.com/moment/moment/issues/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)
  61. * [#1784](https://github.com/moment/moment/issues/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.
  62. * deprecations (old behavior will be dropped in 3.0)
  63. * [#1761](https://github.com/moment/moment/issues/1761) `lang` is renamed to `locale`, `langData` -> `localeData`. Also there is now `defineLocale` that should be used when creating new locales
  64. * [#1763](https://github.com/moment/moment/issues/1763) `add(unit, value)` and `subtract(unit, value)` are now deprecated. Use `add(value, unit)` and `subtract(value, unit)` instead.
  65. * [#1759](https://github.com/moment/moment/issues/1759) rename `duration.toIsoString` to `duration.toISOString`. The js standard library and moment's `toISOString` follow that convention.
  66. * new locales
  67. * [#1789](https://github.com/moment/moment/issues/1789) Tibetan (bo)
  68. * [#1786](https://github.com/moment/moment/issues/1786) Africaans (af)
  69. * [#1778](https://github.com/moment/moment/issues/1778) Burmese (my)
  70. * [#1727](https://github.com/moment/moment/issues/1727) Belarusian (be)
  71. * bugfixes, locale bugfixes, performance improvements, features
  72. ### 2.7.0 [See changelog](https://gist.github.com/ichernev/b0a3d456d5a84c9901d7)
  73. * new languages
  74. * [#1678](https://github.com/moment/moment/issues/1678) Bengali (bn)
  75. * [#1628](https://github.com/moment/moment/issues/1628) Azerbaijani (az)
  76. * [#1633](https://github.com/moment/moment/issues/1633) Arabic, Saudi Arabia (ar-sa)
  77. * [#1648](https://github.com/moment/moment/issues/1648) Austrian German (de-at)
  78. * features
  79. * [#1663](https://github.com/moment/moment/issues/1663) configurable relative time thresholds
  80. * [#1554](https://github.com/moment/moment/issues/1554) support anchor time in moment.calendar
  81. * [#1693](https://github.com/moment/moment/issues/1693) support moment.ISO_8601 as parsing format
  82. * [#1637](https://github.com/moment/moment/issues/1637) add moment.min and moment.max and deprecate min/max instance methods
  83. * [#1704](https://github.com/moment/moment/issues/1704) support string value in add/subtract
  84. * [#1647](https://github.com/moment/moment/issues/1647) add spm support (package manager)
  85. * bugfixes
  86. ### 2.6.0 [See changelog](https://gist.github.com/ichernev/10544682)
  87. * languages
  88. * [#1529](https://github.com/moment/moment/issues/1529) Serbian-Cyrillic (sr-cyr)
  89. * [#1544](https://github.com/moment/moment/issues/1544), [#1546](https://github.com/moment/moment/issues/1546) Khmer Cambodia (km)
  90. * features
  91. * [#1419](https://github.com/moment/moment/issues/1419), [#1468](https://github.com/moment/moment/issues/1468), [#1467](https://github.com/moment/moment/issues/1467), [#1546](https://github.com/moment/moment/issues/1546) better handling of timezone-d moments around DST
  92. * [#1462](https://github.com/moment/moment/issues/1462) add weeksInYear and isoWeeksInYear
  93. * [#1475](https://github.com/moment/moment/issues/1475) support ordinal parsing
  94. * [#1499](https://github.com/moment/moment/issues/1499) composer support
  95. * [#1577](https://github.com/moment/moment/issues/1577), [#1604](https://github.com/moment/moment/issues/1604) put Date parsing in moment.createFromInputFallback so it can be properly deprecated and controlled in the future
  96. * [#1545](https://github.com/moment/moment/issues/1545) extract two-digit year parsing in moment.parseTwoDigitYear, so it can be overwritten
  97. * [#1590](https://github.com/moment/moment/issues/1590) (see [#1574](https://github.com/moment/moment/issues/1574)) set AMD global before module definition to better support non AMD module dependencies used in AMD environment
  98. * [#1589](https://github.com/moment/moment/issues/1589) remove global in Node.JS environment (was not working before, nobody complained, was scheduled for removal anyway)
  99. * [#1586](https://github.com/moment/moment/issues/1586) support quarter setting and parsing
  100. * 18 bugs fixed
  101. ### 2.5.1
  102. * languages
  103. * [#1392](https://github.com/moment/moment/issues/1392) Armenian (hy-am)
  104. * bugfixes
  105. * [#1429](https://github.com/moment/moment/issues/1429) fixes [#1423](https://github.com/moment/moment/issues/1423) weird chrome-32 bug with js object creation
  106. * [#1421](https://github.com/moment/moment/issues/1421) remove html entities from Welsh
  107. * [#1418](https://github.com/moment/moment/issues/1418) fixes [#1401](https://github.com/moment/moment/issues/1401) improved non-padded tokens in strict matching
  108. * [#1417](https://github.com/moment/moment/issues/1417) fixes [#1404](https://github.com/moment/moment/issues/1404) handle buggy moment object created by property cloning
  109. * [#1398](https://github.com/moment/moment/issues/1398) fixes [#1397](https://github.com/moment/moment/issues/1397) fix Arabic-like week number parsing
  110. * [#1396](https://github.com/moment/moment/issues/1396) add leftZeroFill(4) to GGGG and gggg formats
  111. * [#1373](https://github.com/moment/moment/issues/1373) use lowercase for months and days in Catalan
  112. * testing
  113. * [#1374](https://github.com/moment/moment/issues/1374) run tests on multiple browser/os combos via SauceLabs and Travis
  114. ### 2.5.0 [See changelog](https://gist.github.com/ichernev/8104451)
  115. * New languages
  116. * Luxemburish (lb) [1247](https://github.com/moment/moment/issues/1247)
  117. * Serbian (rs) [1319](https://github.com/moment/moment/issues/1319)
  118. * Tamil (ta) [1324](https://github.com/moment/moment/issues/1324)
  119. * Macedonian (mk) [1337](https://github.com/moment/moment/issues/1337)
  120. * Features
  121. * [1311](https://github.com/moment/moment/issues/1311) Add quarter getter and format token `Q`
  122. * [1303](https://github.com/moment/moment/issues/1303) strict parsing now respects number of digits per token (fix [1196](https://github.com/moment/moment/issues/1196))
  123. * 0d30bb7 add jspm support
  124. * [1347](https://github.com/moment/moment/issues/1347) improve zone parsing
  125. * [1362](https://github.com/moment/moment/issues/1362) support merideam parsing in Korean
  126. * 22 bugfixes
  127. ### 2.4.0
  128. * **Deprecate** globally exported moment, will be removed in next major
  129. * New languages
  130. * Farose (fo) [#1206](https://github.com/moment/moment/issues/1206)
  131. * Tagalog/Filipino (tl-ph) [#1197](https://github.com/moment/moment/issues/1197)
  132. * Welsh (cy) [#1215](https://github.com/moment/moment/issues/1215)
  133. * Bugfixes
  134. * properly handle Z at the end of iso RegExp [#1187](https://github.com/moment/moment/issues/1187)
  135. * chinese meridian time improvements [#1076](https://github.com/moment/moment/issues/1076)
  136. * fix language tests [#1177](https://github.com/moment/moment/issues/1177)
  137. * remove some failing tests (that should have never existed :))
  138. [#1185](https://github.com/moment/moment/issues/1185)
  139. [#1183](https://github.com/moment/moment/issues/1183)
  140. * handle russian noun cases in weird cases [#1195](https://github.com/moment/moment/issues/1195)
  141. ### 2.3.1
  142. Removed a trailing comma [1169] and fixed a bug with `months`, `weekdays` getters [#1171](https://github.com/moment/moment/issues/1171).
  143. ### 2.3.0 [See changelog](https://gist.github.com/ichernev/6864354)
  144. Changed isValid, added strict parsing.
  145. Week tokens parsing.
  146. ### 2.2.1
  147. Fixed bug in string prototype test.
  148. Updated authors and contributors.
  149. ### 2.2.0 [See changelog](https://gist.github.com/ichernev/00f837a9baf46a3565e4)
  150. Added bower support.
  151. Language files now use UMD.
  152. Creating moment defaults to current date/month/year.
  153. Added a bundle of moment and all language files.
  154. ### 2.1.0 [See changelog](https://gist.github.com/timrwood/b8c2d90d528eddb53ab5)
  155. Added better week support.
  156. Added ability to set offset with `moment#zone`.
  157. Added ability to set month or weekday from a string.
  158. Added `moment#min` and `moment#max`
  159. ### 2.0.0 [See changelog](https://gist.github.com/timrwood/e72f2eef320ed9e37c51)
  160. Added short form localized tokens.
  161. Added ability to define language a string should be parsed in.
  162. Added support for reversed add/subtract arguments.
  163. Added support for `endOf('week')` and `startOf('week')`.
  164. Fixed the logic for `moment#diff(Moment, 'months')` and `moment#diff(Moment, 'years')`
  165. `moment#diff` now floors instead of rounds.
  166. Normalized `moment#toString`.
  167. Added `isSame`, `isAfter`, and `isBefore` methods.
  168. Added better week support.
  169. Added `moment#toJSON`
  170. Bugfix: Fixed parsing of first century dates
  171. Bugfix: Parsing 10Sep2001 should work as expected
  172. Bugfix: Fixed wierdness with `moment.utc()` parsing.
  173. Changed language ordinal method to return the number + ordinal instead of just the ordinal.
  174. Changed two digit year parsing cutoff to match strptime.
  175. Removed `moment#sod` and `moment#eod` in favor of `moment#startOf` and `moment#endOf`.
  176. Removed `moment.humanizeDuration()` in favor of `moment.duration().humanize()`.
  177. Removed the lang data objects from the top level namespace.
  178. Duplicate `Date` passed to `moment()` instead of referencing it.
  179. ### 1.7.2 [See discussion](https://github.com/timrwood/moment/issues/456)
  180. Bugfixes
  181. ### 1.7.1 [See discussion](https://github.com/timrwood/moment/issues/384)
  182. Bugfixes
  183. ### 1.7.0 [See discussion](https://github.com/timrwood/moment/issues/288)
  184. Added `moment.fn.endOf()` and `moment.fn.startOf()`.
  185. Added validation via `moment.fn.isValid()`.
  186. Made formatting method 3x faster. http://jsperf.com/momentjs-cached-format-functions
  187. Add support for month/weekday callbacks in `moment.fn.format()`
  188. Added instance specific languages.
  189. Added two letter weekday abbreviations with the formatting token `dd`.
  190. Various language updates.
  191. Various bugfixes.
  192. ### 1.6.0 [See discussion](https://github.com/timrwood/moment/pull/268)
  193. Added Durations.
  194. Revamped parser to support parsing non-separated strings (YYYYMMDD vs YYYY-MM-DD).
  195. Added support for millisecond parsing and formatting tokens (S SS SSS)
  196. Added a getter for `moment.lang()`
  197. Various bugfixes.
  198. There are a few things deprecated in the 1.6.0 release.
  199. 1. The format tokens `z` and `zz` (timezone abbreviations like EST CST MST etc) will no longer be supported. Due to inconsistent browser support, we are unable to consistently produce this value. See [this issue](https://github.com/timrwood/moment/issues/162) for more background.
  200. 2. The method `moment.fn.native` is deprecated in favor of `moment.fn.toDate`. There continue to be issues with Google Closure Compiler throwing errors when using `native`, even in valid instances.
  201. 3. The way to customize am/pm strings is being changed. This would only affect you if you created a custom language file. For more information, see [this issue](https://github.com/timrwood/moment/pull/222).
  202. ### 1.5.0 [See milestone](https://github.com/timrwood/moment/issues?milestone=10&page=1&state=closed)
  203. Added UTC mode.
  204. Added automatic ISO8601 parsing.
  205. Various bugfixes.
  206. ### 1.4.0 [See milestone](https://github.com/timrwood/moment/issues?milestone=8&state=closed)
  207. Added `moment.fn.toDate` as a replacement for `moment.fn.native`.
  208. Added `moment.fn.sod` and `moment.fn.eod` to get the start and end of day.
  209. Various bugfixes.
  210. ### 1.3.0 [See milestone](https://github.com/timrwood/moment/issues?milestone=7&state=closed)
  211. Added support for parsing month names in the current language.
  212. Added escape blocks for parsing tokens.
  213. Added `moment.fn.calendar` to format strings like 'Today 2:30 PM', 'Tomorrow 1:25 AM', and 'Last Sunday 4:30 AM'.
  214. Added `moment.fn.day` as a setter.
  215. Various bugfixes
  216. ### 1.2.0 [See milestone](https://github.com/timrwood/moment/issues?milestone=4&state=closed)
  217. Added timezones to parser and formatter.
  218. Added `moment.fn.isDST`.
  219. Added `moment.fn.zone` to get the timezone offset in minutes.
  220. ### 1.1.2 [See milestone](https://github.com/timrwood/moment/issues?milestone=6&state=closed)
  221. Various bugfixes
  222. ### 1.1.1 [See milestone](https://github.com/timrwood/moment/issues?milestone=5&state=closed)
  223. Added time specific diffs (months, days, hours, etc)
  224. ### 1.1.0
  225. Added `moment.fn.format` localized masks. 'L LL LLL LLLL' [issue 29](https://github.com/timrwood/moment/pull/29)
  226. Fixed [issue 31](https://github.com/timrwood/moment/pull/31).
  227. ### 1.0.1
  228. Added `moment.version` to get the current version.
  229. Removed `window !== undefined` when checking if module exists to support browserify. [issue 25](https://github.com/timrwood/moment/pull/25)
  230. ### 1.0.0
  231. Added convenience methods for getting and setting date parts.
  232. Added better support for `moment.add()`.
  233. Added better lang support in NodeJS.
  234. Renamed library from underscore.date to Moment.js
  235. ### 0.6.1
  236. Added Portuguese, Italian, and French language support
  237. ### 0.6.0
  238. Added _date.lang() support.
  239. Added support for passing multiple formats to try to parse a date. _date("07-10-1986", ["MM-DD-YYYY", "YYYY-MM-DD"]);
  240. Made parse from string and single format 25% faster.
  241. ### 0.5.2
  242. Bugfix for [issue 8](https://github.com/timrwood/underscore.date/pull/8) and [issue 9](https://github.com/timrwood/underscore.date/pull/9).
  243. ### 0.5.1
  244. Bugfix for [issue 5](https://github.com/timrwood/underscore.date/pull/5).
  245. ### 0.5.0
  246. Dropped the redundant `_date.date()` in favor of `_date()`.
  247. Removed `_date.now()`, as it is a duplicate of `_date()` with no parameters.
  248. Removed `_date.isLeapYear(yearNumber)`. Use `_date([yearNumber]).isLeapYear()` instead.
  249. Exposed customization options through the `_date.relativeTime`, `_date.weekdays`, `_date.weekdaysShort`, `_date.months`, `_date.monthsShort`, and `_date.ordinal` variables instead of the `_date.customize()` function.
  250. ### 0.4.1
  251. Added date input formats for input strings.
  252. ### 0.4.0
  253. Added underscore.date to npm. Removed dependencies on underscore.
  254. ### 0.3.2
  255. Added `'z'` and `'zz'` to `_.date().format()`. Cleaned up some redundant code to trim off some bytes.
  256. ### 0.3.1
  257. Cleaned up the namespace. Moved all date manipulation and display functions to the _.date() object.
  258. ### 0.3.0
  259. Switched to the Underscore methodology of not mucking with the native objects' prototypes.
  260. Made chaining possible.
  261. ### 0.2.1
  262. Changed date names to be a more pseudo standardized 'dddd, MMMM Do YYYY, h:mm:ss a'.
  263. Added `Date.prototype` functions `add`, `subtract`, `isdst`, and `isleapyear`.
  264. ### 0.2.0
  265. Changed function names to be more concise.
  266. Changed date format from php date format to custom format.
  267. ### 0.1.0
  268. Initial release