Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Moment.js to from 2.0 -> 2.9 #14

Closed
wants to merge 2 commits into from

Conversation

kkirsche
Copy link
Member

Update vendor dependency Moment.js to from 2.0 -> 2.9

2.9.0 See full changelog

languages:

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

deprecations:

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

features:

  • 2088 add moment.fn.isBetween
  • 2054 Call updateOffset when creating moment (needed for default timezone in
    moment-timezone)
  • 1893 Add moment.isDate method
  • 1825 Implement toJSON function on Duration
  • 1809 Allowing moment.set() to accept a hash of units
  • 2128 Add firstDayOfWeek, firstDayOfYear locale getters
  • 2131 Add quarter diff support

Some bugfixes and language improvements -- full changelog

2.8.4 See full 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

Some bugfixes and language improvements -- full changelog

2.8.3

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
  • #1892 Faster isBefore/After/Same
  • #1848 Fix flaky month diffs
  • #1895 Fix 2.8.0 regression in moment.utc with format array
  • #1896 Support setting invalid instance locale (noop)
  • #1897 Support moment([str]) in addition to moment([int])

2.8.2

Minor bugfixes:

  • #1874 use Object.prototype.hasOwnProperty
    instead of obj.hasOwnProperty (ie8 bug)
  • #1873 add duration#toString()
  • #1859 better month/weekday names in norwegian
  • #1812 meridiem parsing for greek
  • #1804 spanish del -> de
  • #1800 korean LT improvement

2.8.1

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

2.8.0 See 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.
  • 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
  • bugfixes, locale bugfixes, performance improvements, features

2.7.0 See changelog

  • new languages
    • #1678 Bengali (bn)
    • #1628 Azerbaijani (az)
    • #1633 Arabic, Saudi Arabia (ar-sa)
    • #1648 Austrian German (de-at)
  • features
    • #1663 configurable relative time thresholds
    • #1554 support anchor time in moment.calendar
    • #1693 support moment.ISO_8601 as parsing format
    • #1637 add moment.min and moment.max and deprecate min/max instance methods
    • #1704 support string value in add/subtract
    • #1647 add spm support (package manager)
  • bugfixes

2.6.0 See changelog

  • languages
  • features
    • #1419, #1468, #1467, #1546 better handling of timezone-d moments around DST
    • #1462 add weeksInYear and isoWeeksInYear
    • #1475 support ordinal parsing
    • #1499 composer support
    • #1577, #1604 put Date parsing in moment.createFromInputFallback so it can be properly deprecated and controlled in the future
    • #1545 extract two-digit year parsing in moment.parseTwoDigitYear, so it can be overwritten
    • #1590 (see #1574) set AMD global before module definition to better support non AMD module dependencies used in AMD environment
    • #1589 remove global in Node.JS environment (was not working before, nobody complained, was scheduled for removal anyway)
    • #1586 support quarter setting and parsing
  • 18 bugs fixed

2.5.1

  • languages
  • bugfixes
    • #1429 fixes #1423 weird chrome-32 bug with js object creation
    • #1421 remove html entities from Welsh
    • #1418 fixes #1401 improved non-padded tokens in strict matching
    • #1417 fixes #1404 handle buggy moment object created by property cloning
    • #1398 fixes #1397 fix Arabic-like week number parsing
    • #1396 add leftZeroFill(4) to GGGG and gggg formats
    • #1373 use lowercase for months and days in Catalan
  • testing
    • #1374 run tests on multiple browser/os combos via SauceLabs and Travis

2.5.0 See changelog

  • New languages
  • Features
    • 1311 Add quarter getter and format token Q
    • 1303 strict parsing now respects number of digits per token (fix 1196)
    • 0d30bb7 add jspm support
    • 1347 improve zone parsing
    • 1362 support merideam parsing in Korean
  • 22 bugfixes

2.4.0

  • Deprecate globally exported moment, will be removed in next major
  • New languages
  • Bugfixes
    • properly handle Z at the end of iso RegExp #1187
    • chinese meridian time improvements #1076
    • fix language tests #1177
    • remove some failing tests (that should have never existed :))
      #1185
      #1183
    • handle russian noun cases in weird cases #1195

2.3.1

Removed a trailing comma [1169] and fixed a bug with months, weekdays getters #1171.

2.3.0 See changelog

Changed isValid, added strict parsing.
Week tokens parsing.

2.2.1

Fixed bug in string prototype test.
Updated authors and contributors.

2.2.0 See changelog

Added bower support.

Language files now use UMD.

Creating moment defaults to current date/month/year.

Added a bundle of moment and all language files.

2.1.0 See changelog

Added better week support.

Added ability to set offset with moment#zone.

Added ability to set month or weekday from a string.

Added moment#min and moment#max

Kevin Kirsche added 2 commits February 10, 2015 09:42
Update Moment.js to from 2.0 -> 2.9
`moment().add(period, number)` is now `moment().add(number , period)`
@kkirsche
Copy link
Member Author

Wanted to follow up and see if there were any issues with this or some of the other pull requests. Thanks for your time guys!

@karledurante
Copy link
Member

Sorry, Kevin. I've been traveling quite a bit (I'm in Reno, then going to Dallas), so I've not spent any time looking at this.

We'll take a look soon, thanks for putting effort into this.

Thanks,
Karle

On Feb 23, 2015, at 7:17 PM, Kevin Kirsche notifications@github.com wrote:

Wanted to follow up and see if there were any issues with this or some of the other pull requests. Thanks for your time guys!


Reply to this email directly or view it on GitHub.

@cmar
Copy link
Member

cmar commented Feb 25, 2015

manually merged

@cmar cmar closed this Feb 25, 2015
@kkirsche kkirsche deleted the updateMoment branch February 25, 2015 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants