]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
10 years agoUpdate deprecate.js 2489/head
Xaar37 [Thu, 16 Jul 2015 06:50:31 +0000 (08:50 +0200)] 
Update deprecate.js

10 years agoMerge pull request #2473 from mj1856:fix-2023.1
Iskren Chernev [Mon, 13 Jul 2015 00:47:21 +0000 (17:47 -0700)] 
Merge pull request #2473 from mj1856:fix-2023.1

Expect 0 assertions to fix #2382

10 years agoExpect 0 assertions to fix #2382
Matt Johnson [Sun, 12 Jul 2015 05:39:51 +0000 (22:39 -0700)] 
Expect 0 assertions to fix #2382

10 years agoMerge pull request #2467 from mj1856:fix-2337.6
Iskren Chernev [Mon, 13 Jul 2015 00:44:30 +0000 (17:44 -0700)] 
Merge pull request #2467 from mj1856:fix-2337.6

Fix test for fractional-hour offsets, fixes #2389

10 years agoFix test for fractional-hour offsets
Matt Johnson [Thu, 9 Jul 2015 18:14:05 +0000 (11:14 -0700)] 
Fix test for fractional-hour offsets

10 years agoMerge pull request #2460 from ichernev:support-partial-test
Iskren Chernev [Mon, 13 Jul 2015 00:42:10 +0000 (17:42 -0700)] 
Merge pull request #2460 from ichernev:support-partial-test

Support grunt test --only=moment/duration,locale/ru

10 years agoMake jscs happy
Iskren Chernev [Sun, 12 Jul 2015 22:07:08 +0000 (15:07 -0700)] 
Make jscs happy

10 years agoSupport grunt test --only=moment/duration,locale/ru
Iskren Chernev [Wed, 8 Jul 2015 13:24:15 +0000 (21:24 +0800)] 
Support grunt test --only=moment/duration,locale/ru

10 years agoMerge pull request #2459 from ichernev:fix-add-regex-token
Iskren Chernev [Mon, 13 Jul 2015 00:40:49 +0000 (17:40 -0700)] 
Merge pull request #2459 from ichernev:fix-add-regex-token

Fix function check to workaround old browsers, fixes #2325

10 years agoFix function check to workaround old browsers, fixes #2325
Iskren Chernev [Wed, 8 Jul 2015 11:20:53 +0000 (19:20 +0800)] 
Fix function check to workaround old browsers, fixes #2325

10 years agoMerge pull request #2456 from ichernev:fix-str-weekday-parse-check
Iskren Chernev [Mon, 13 Jul 2015 00:38:32 +0000 (17:38 -0700)] 
Merge pull request #2456 from ichernev:fix-str-weekday-parse-check

Mark moment as invalid if bad string weekday repr is parsed, fixes #2423

10 years agoMark moment as invalid if bad string weekday repr is parsed, fixes #2423
Iskren Chernev [Wed, 8 Jul 2015 10:07:52 +0000 (18:07 +0800)] 
Mark moment as invalid if bad string weekday repr is parsed, fixes #2423

10 years agoMerge pull request #2439 from raleksandar:develop
Iskren Chernev [Mon, 13 Jul 2015 00:34:57 +0000 (17:34 -0700)] 
Merge pull request #2439 from raleksandar:develop

Fix imports in locale files

10 years agoFix imports in locale files
Aleksandar Ružičić [Sat, 27 Jun 2015 14:58:46 +0000 (16:58 +0200)] 
Fix imports in locale files

10 years agoMerge pull request #2438 from cwohlman:fixInvalidMin
Iskren Chernev [Mon, 13 Jul 2015 00:32:58 +0000 (17:32 -0700)] 
Merge pull request #2438 from cwohlman:fixInvalidMin

Fix inconsistent moment.min and moment.max results

10 years agoAdd test to ensure invalid moments isSame returns false
Joshua Ohlman [Sat, 4 Jul 2015 13:08:46 +0000 (08:08 -0500)] 
Add test to ensure invalid moments isSame returns false

10 years agoRevert "valueOf should return NaN for any invalid moment"
Joshua Ohlman [Sat, 4 Jul 2015 13:05:03 +0000 (08:05 -0500)] 
Revert "valueOf should return NaN for any invalid moment"

This reverts commit c314f03a9b7153fcab55942878a9899ad74ce73e.

10 years agovalueOf should return NaN for any invalid moment
Joshua Ohlman [Mon, 29 Jun 2015 20:44:02 +0000 (15:44 -0500)] 
valueOf should return NaN for any invalid moment

this fixes an issue where isSame would return true for two invalid moments, which is inconsistent with NaN === NaN and also inconsistent with other cases where isSame would return false for two invalid moments. (some invalid moments are backed by a valid date)

Fixes #2354

10 years agoAdd tests and fix for inconsistent moment.min and moment.max behavior.
Joshua Ohlman [Fri, 26 Jun 2015 23:44:49 +0000 (18:44 -0500)] 
Add tests and fix for inconsistent moment.min and moment.max behavior.

Fixes #2362

10 years agoEnsure moment.isAfter and moment.isBefore match js math operations
Joshua Ohlman [Fri, 26 Jun 2015 23:36:52 +0000 (18:36 -0500)] 
Ensure moment.isAfter and moment.isBefore match js math operations

Add tests to isBefore and isAfter preparatory to fixing #2362, since moment.min and moment.max rely on isBefore and isAfter to calculate moment value

10 years agoMerge pull request #2434 from Leocrest:fix/hu
Iskren Chernev [Mon, 13 Jul 2015 00:30:40 +0000 (17:30 -0700)] 
Merge pull request #2434 from Leocrest:fix/hu

fix(hu):Improve long date time formats for hungarian.

10 years agofix(hu):Improve long date time formats for hungarian.
Brett Johnson [Mon, 22 Jun 2015 17:14:13 +0000 (11:14 -0600)] 
fix(hu):Improve long date time formats for hungarian.

10 years agoMerge pull request #2421 from aniruddha-adhikary:develop
Iskren Chernev [Mon, 13 Jul 2015 00:27:15 +0000 (17:27 -0700)] 
Merge pull request #2421 from aniruddha-adhikary:develop

fix bengali translation of morning

10 years agoRevert autogenerated file changes
Iskren Chernev [Mon, 13 Jul 2015 00:27:04 +0000 (17:27 -0700)] 
Revert autogenerated file changes

10 years agofix bengali translation of morning
Aniruddha Adhikary [Wed, 17 Jun 2015 03:35:31 +0000 (09:35 +0600)] 
fix bengali translation of morning

10 years agoMerge pull request #2414 from motain:ordinal-fr
Iskren Chernev [Mon, 13 Jul 2015 00:22:21 +0000 (17:22 -0700)] 
Merge pull request #2414 from motain:ordinal-fr

Locales fr & fr-ca: set an abbreviation for ordinal numbers >1

10 years agoRevert fr locale changes, suggested by https://github.com/moment/moment/pull/2414...
Iskren Chernev [Mon, 13 Jul 2015 00:21:44 +0000 (17:21 -0700)] 
Revert fr locale changes, suggested by https://github.com/moment/moment/pull/2414#issuecomment-118649162

10 years agoSet an abbreviation for ordinal numbers >1
Maxime VALY [Thu, 11 Jun 2015 09:14:28 +0000 (11:14 +0200)] 
Set an abbreviation for ordinal numbers >1

I went for the simpler "deuxième, troisième" form instead of "second,
troisième". All numbers after 1 share the same abbreviation.

My first idea was to go for "ème", but looking for a source to back my
PR I found that the "correct" way is "e", at least according to printing
rules: https://fr.wiktionary.org/wiki/2%C3%A8me

The French Academy doesn't seem to have any article concerning the
abbreviation, only the "second / deuxième" usage:
http://www.xn--acadmie-franaise-npb1a.fr/la-langue-francaise/questions-de-langue#29_strong-em-deuxime-second-em-strong

10 years agoMerge pull request #2404 from philjohnson789:develop
Iskren Chernev [Mon, 13 Jul 2015 00:14:29 +0000 (17:14 -0700)] 
Merge pull request #2404 from philjohnson789:develop

Fix Strict Date Parsing of ISO-8601 Dates Without Times

10 years agoChanging a unit test case that is incorrectly labelled as valid.
Phil Johnson [Thu, 4 Jun 2015 21:11:07 +0000 (17:11 -0400)] 
Changing a unit test case that is incorrectly labelled as valid.

10 years agoFixing ISO-8601 date parsing when no time component is present.
Phil Johnson [Thu, 4 Jun 2015 20:48:51 +0000 (16:48 -0400)] 
Fixing ISO-8601 date parsing when no time component is present.

10 years agoAdding unit tests to verify strict date parsing of ISO-8601 dates.
Phil Johnson [Thu, 4 Jun 2015 19:56:01 +0000 (15:56 -0400)] 
Adding unit tests to verify strict date parsing of ISO-8601 dates.

10 years agoMerge pull request #2368 from wyantb:clone-perf
Iskren Chernev [Mon, 13 Jul 2015 00:00:30 +0000 (17:00 -0700)] 
Merge pull request #2368 from wyantb:clone-perf

perf: use faster form of copying dates, across the board improvement

10 years agoperf: add duration benchmark, cleanup benchmarking output
Brian Wyant [Sun, 10 May 2015 02:06:10 +0000 (22:06 -0400)] 
perf: add duration benchmark, cleanup benchmarking output

10 years agoperf: use faster form of copying dates, across the board improvement
Brian Wyant [Sat, 9 May 2015 17:40:32 +0000 (13:40 -0400)] 
perf: use faster form of copying dates, across the board improvement

Reference: http://jsperf.com/date-copy-constructor/3

10 years agoMerge pull request #2477 from ichernev:add-ms-locale
Iskren Chernev [Sun, 12 Jul 2015 23:58:54 +0000 (16:58 -0700)] 
Merge pull request #2477 from ichernev:add-ms-locale

Add ms locale (copy ms-my)

10 years agoCopy ms-my to ms locale, redo #2347
Iskren Chernev [Sun, 12 Jul 2015 23:53:44 +0000 (16:53 -0700)] 
Copy ms-my to ms locale, redo #2347

10 years agoMerge pull request #2357 from NobodysNightmare:feature/iso_date_bubbling
Iskren Chernev [Sun, 12 Jul 2015 23:57:20 +0000 (16:57 -0700)] 
Merge pull request #2357 from NobodysNightmare:feature/iso_date_bubbling

Improve unit bubbling for ISO dates

10 years agoadd tests for ISO bubbling
Jan Sandbrink [Mon, 4 May 2015 13:00:24 +0000 (15:00 +0200)] 
add tests for ISO bubbling

10 years agoprevent bubbling of minor units for ISO dates
Jan Sandbrink [Mon, 4 May 2015 12:55:46 +0000 (14:55 +0200)] 
prevent bubbling of minor units for ISO dates

ISO 8601 makes a difference between e.g. 24 hours and 1 day:

* both are the same most of the time
* in case there is a clock change (e.g. DST) however, "P1D" means "next day, same time" and "PT24H" means: now in 24 hours (which can be off by one hour in either direction in case of DST)

days and months are also a complicated matter...

10 years agoRevert "Merge pull request #2347 from wajatimur:develop"
Iskren Chernev [Sun, 12 Jul 2015 23:50:56 +0000 (16:50 -0700)] 
Revert "Merge pull request #2347 from wajatimur:develop"

I'll redo this change myself.

This reverts commit 779eab554d6af2186496a8743729da3cf85196a3, reversing
changes made to 0137bc1049b01fcf8f7a2f91db2f5c1f65577e54.

10 years agoMerge pull request #2347 from wajatimur:develop
Iskren Chernev [Sun, 12 Jul 2015 23:43:51 +0000 (16:43 -0700)] 
Merge pull request #2347 from wajatimur:develop

Change Malay language code to comply IOS639-2

10 years agoChange locale files ms-my to ms in src/locale and test
Azri Jamil [Sun, 5 Jul 2015 06:10:09 +0000 (14:10 +0800)] 
Change locale files ms-my to ms in src/locale and test

10 years agoChange Malay language code to comply IOS639-2
Azri Jamil [Mon, 27 Apr 2015 02:33:11 +0000 (10:33 +0800)] 
Change Malay language code to comply IOS639-2

10 years agoMerge pull request #2336 from gregor-rayman:year_week_fix
Iskren Chernev [Sun, 12 Jul 2015 23:39:10 +0000 (16:39 -0700)] 
Merge pull request #2336 from gregor-rayman:year_week_fix

Fixes year/week parsing for non-standard dow/doy combinations

10 years agoFixes year/week parsing for non-standard dow/doy combinations
Gregor Rayman [Sat, 18 Apr 2015 13:01:01 +0000 (15:01 +0200)] 
Fixes year/week parsing for non-standard dow/doy combinations

10 years agoMerge pull request #2127 from Gobie:patch/cleanup
Iskren Chernev [Sun, 12 Jul 2015 23:37:27 +0000 (16:37 -0700)] 
Merge pull request #2127 from Gobie:patch/cleanup

Code cleanup and speedup

10 years agoClean the structure of conditons in parseWeekday
Michal Brašna [Wed, 13 May 2015 16:13:45 +0000 (18:13 +0200)] 
Clean the structure of conditons in parseWeekday

10 years agoUse existing absFloor function
Michal Brašna [Wed, 13 May 2015 16:00:41 +0000 (18:00 +0200)] 
Use existing absFloor function

10 years agoOptimize speed of zeroFill and add benchmarks
Michal Brašna [Wed, 13 May 2015 15:42:58 +0000 (17:42 +0200)] 
Optimize speed of zeroFill and add benchmarks

10 years agoClean up the code a bit
Michal Brašna [Wed, 13 May 2015 15:29:35 +0000 (17:29 +0200)] 
Clean up the code a bit

10 years agoMerge pull request #2371 from cvrebert/patch-1
Matt Johnson [Thu, 25 Jun 2015 04:41:41 +0000 (21:41 -0700)] 
Merge pull request #2371 from cvrebert/patch-1

bower.json: remove moot `version` field

10 years agobower.json: remove moot `version` field 2371/head
Chris Rebert [Wed, 13 May 2015 03:25:24 +0000 (20:25 -0700)] 
bower.json: remove moot `version` field

Per https://github.com/bower/bower.json-spec/commit/a325da3d79baab018c572d75dc1781b12322f6cd

10 years agoMerge pull request #2393 from pioneerlike/develop
Matt Johnson [Tue, 23 Jun 2015 00:53:55 +0000 (17:53 -0700)] 
Merge pull request #2393 from pioneerlike/develop

Fix building tasks for `moment-with-locales.js` and `moment-with-locales.custom.js`

10 years agoMerge pull request #2424 from joefreeman/develop
Matt Johnson [Tue, 23 Jun 2015 00:51:18 +0000 (17:51 -0700)] 
Merge pull request #2424 from joefreeman/develop

Allow custom formats to be passed to calendar function.

10 years agoMerge pull request #2377 from nasitra/develop
Matt Johnson [Fri, 19 Jun 2015 06:06:01 +0000 (23:06 -0700)] 
Merge pull request #2377 from nasitra/develop

Remove unreachable code

10 years agoMerge pull request #2419 from jisaacks/local-format-fix
Matt Johnson [Fri, 19 Jun 2015 05:58:28 +0000 (22:58 -0700)] 
Merge pull request #2419 from jisaacks/local-format-fix

Ensure all longDateFormats are fully expanded

10 years agoAllow custom formats to be passed to calendar function. 2424/head
Joe Freeman [Wed, 17 Jun 2015 11:19:11 +0000 (12:19 +0100)] 
Allow custom formats to be passed to calendar function.

10 years agoFix for style guide 2419/head
JD Isaacks [Mon, 15 Jun 2015 16:22:48 +0000 (12:22 -0400)] 
Fix for style guide

10 years agoAdd semicolon to make jshint happy
JD Isaacks [Mon, 15 Jun 2015 16:09:42 +0000 (12:09 -0400)] 
Add semicolon to make jshint happy

10 years agoEnsure all longDateFormats are fully expanded
JD Isaacks [Mon, 15 Jun 2015 15:25:47 +0000 (11:25 -0400)] 
Ensure all longDateFormats are fully expanded

fixes #2163

10 years agoMerge pull request #2288 from seferov/develop
Matt Johnson [Mon, 8 Jun 2015 22:03:24 +0000 (15:03 -0700)] 
Merge pull request #2288 from seferov/develop

fixed typos

10 years agoMerge pull request #2380 from pgilad/patch-1
Matt Johnson [Wed, 3 Jun 2015 19:28:52 +0000 (12:28 -0700)] 
Merge pull request #2380 from pgilad/patch-1

update license attribute

10 years agoFixes for generateMomentWithLocales 2393/head
Dennis [Thu, 28 May 2015 21:48:01 +0000 (14:48 -0700)] 
Fixes for generateMomentWithLocales

10 years agoupdate license attribute 2380/head
Gilad Peleg [Tue, 19 May 2015 11:01:28 +0000 (14:01 +0300)] 
update license attribute

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/

10 years agoRemove unreachable code 2377/head
nasitra [Sat, 16 May 2015 00:57:26 +0000 (09:57 +0900)] 
Remove unreachable code

10 years agoBuild 2.10.3 2.10.3
Iskren Chernev [Wed, 13 May 2015 07:42:12 +0000 (00:42 -0700)] 
Build 2.10.3

10 years agoBump version to 2.10.3
Iskren Chernev [Wed, 13 May 2015 07:40:43 +0000 (00:40 -0700)] 
Bump version to 2.10.3

10 years agoUpdate changelog for 2.10.3
Iskren Chernev [Wed, 13 May 2015 07:40:07 +0000 (00:40 -0700)] 
Update changelog for 2.10.3

10 years agoAdd tests for moment#toNow and fixed prototype
Iskren Chernev [Wed, 13 May 2015 07:27:00 +0000 (00:27 -0700)] 
Add tests for moment#toNow and fixed prototype

10 years agoAdd moment.fn.to and moment.fn.toNow with tests (redo #2120)
Iskren Chernev [Mon, 4 May 2015 16:35:12 +0000 (09:35 -0700)] 
Add moment.fn.to and moment.fn.toNow with tests (redo #2120)

10 years agoFix broken tests
Iskren Chernev [Mon, 4 May 2015 16:23:41 +0000 (09:23 -0700)] 
Fix broken tests

10 years agoFix from/fromNow on invalid moments (fixes #2079)
Iskren Chernev [Mon, 4 May 2015 07:52:02 +0000 (00:52 -0700)] 
Fix from/fromNow on invalid moments (fixes #2079)

10 years agoAdd locale Sinhalese (si) (redo #2119)
Iskren Chernev [Mon, 4 May 2015 07:44:01 +0000 (00:44 -0700)] 
Add locale Sinhalese (si) (redo #2119)

10 years agoMerge pull request #2126 from Gobie:patch/editorconfig
Iskren Chernev [Mon, 4 May 2015 07:24:11 +0000 (00:24 -0700)] 
Merge pull request #2126 from Gobie:patch/editorconfig

Add .editorconfig

10 years agoAdd .editorconfig for project
Michal Brašna [Sun, 28 Dec 2014 12:20:30 +0000 (13:20 +0100)] 
Add .editorconfig for project

10 years agoAdd Montenegrin locale (me.js) (redo #2136)
Iskren Chernev [Mon, 4 May 2015 07:23:12 +0000 (00:23 -0700)] 
Add Montenegrin locale (me.js) (redo #2136)

10 years agoUse Cyrillic letters for Chuvash diacritics (redo #2139)
Iskren Chernev [Mon, 4 May 2015 07:13:14 +0000 (00:13 -0700)] 
Use Cyrillic letters for Chuvash diacritics (redo #2139)

10 years agoJavanese locale (redo #2159)
Iskren Chernev [Mon, 4 May 2015 07:05:02 +0000 (00:05 -0700)] 
Javanese locale (redo #2159)

10 years agoChanged Swedish locale (redo #2156)
Iskren Chernev [Mon, 4 May 2015 05:24:40 +0000 (22:24 -0700)] 
Changed Swedish locale (redo #2156)

10 years agogenerate stack trace when logging deprecation messages (redo #2175)
Iskren Chernev [Mon, 4 May 2015 05:16:56 +0000 (22:16 -0700)] 
generate stack trace when logging deprecation messages (redo #2175)

10 years agoMerge pull request #2176 from chulkilee:more-ignore
Iskren Chernev [Mon, 4 May 2015 05:13:35 +0000 (22:13 -0700)] 
Merge pull request #2176 from chulkilee:more-ignore

ignore files in packages

10 years agoignore files in packages
Chulki Lee [Fri, 23 Jan 2015 19:42:55 +0000 (11:42 -0800)] 
ignore files in packages

10 years agoMerge pull request #2181 from tomhorvat:patch-1
Iskren Chernev [Mon, 4 May 2015 05:10:31 +0000 (22:10 -0700)] 
Merge pull request #2181 from tomhorvat:patch-1

Locale hr: Month name fix

10 years agoUpdate hr.js and tests
tomhorvat [Sat, 24 Jan 2015 23:37:03 +0000 (00:37 +0100)] 
Update hr.js and tests

10 years agoMerge pull request #2204 from zenozeng:patch-for-pull-2051
Iskren Chernev [Mon, 4 May 2015 05:04:31 +0000 (22:04 -0700)] 
Merge pull request #2204 from zenozeng:patch-for-pull-2051

Patch for pull 2051

10 years agoadd a space (from AprilOrange's pull#2051) and add tests
Zeno Zeng [Tue, 28 Apr 2015 07:30:59 +0000 (15:30 +0800)] 
add a space (from AprilOrange's pull#2051) and add tests

10 years agoMerge pull request #2211 from elvinyung:develop
Iskren Chernev [Mon, 4 May 2015 05:02:49 +0000 (22:02 -0700)] 
Merge pull request #2211 from elvinyung:develop

Fix 0 hour checking in strict parsing.

10 years agoAdd unit tests for 0 hour bigHour checking.
Elvin Yung [Fri, 17 Apr 2015 16:09:23 +0000 (12:09 -0400)] 
Add unit tests for 0 hour bigHour checking.

10 years agoFix bigHour checking for hour 0.
Elvin Yung [Fri, 17 Apr 2015 16:07:53 +0000 (12:07 -0400)] 
Fix bigHour checking for hour 0.

10 years agoPatch to regular expression that was causing a lint warning (redo #2220)
Iskren Chernev [Mon, 4 May 2015 04:56:02 +0000 (21:56 -0700)] 
Patch to regular expression that was causing a lint warning (redo #2220)

10 years agoFix Slovenian locale (redo #2226)
Iskren Chernev [Mon, 4 May 2015 04:54:26 +0000 (21:54 -0700)] 
Fix Slovenian locale (redo #2226)

10 years agoFixed Monday's abbr in Burmese (redo #2239)
Iskren Chernev [Mon, 4 May 2015 04:36:08 +0000 (21:36 -0700)] 
Fixed Monday's abbr in Burmese (redo #2239)

10 years ago[locale/ar] Fix text direction of D/M/Y formats (redo #2268)
Iskren Chernev [Mon, 4 May 2015 04:28:25 +0000 (21:28 -0700)] 
[locale/ar] Fix text direction of D/M/Y formats (redo #2268)

10 years agoMerge pull request #2278 from szwacz:develop
Iskren Chernev [Mon, 4 May 2015 04:21:11 +0000 (21:21 -0700)] 
Merge pull request #2278 from szwacz:develop

Fix PL locale months parsing

10 years agoFix PL locale months parsing
Jakub Szwacz [Sat, 18 Apr 2015 05:48:05 +0000 (07:48 +0200)] 
Fix PL locale months parsing

10 years agoSimplify expression in duration#as (#2286)
Iskren Chernev [Mon, 4 May 2015 04:19:31 +0000 (21:19 -0700)] 
Simplify expression in duration#as (#2286)

10 years agoMerge pull request #2303 from brianwyantora:develop
Iskren Chernev [Mon, 4 May 2015 04:14:12 +0000 (21:14 -0700)] 
Merge pull request #2303 from brianwyantora:develop

Performance: improve parsing of moments from valid Date objects

10 years ago perf: avoid calling new Date(+date) twice, Moment ctor will clone it properly
Brian Wyant [Wed, 22 Apr 2015 14:54:02 +0000 (10:54 -0400)] 
 perf: avoid calling new Date(+date) twice, Moment ctor will clone it properly

10 years agoperf: checking == null faster than hasOwnProperty
Brian Wyant [Wed, 22 Apr 2015 14:30:55 +0000 (10:30 -0400)] 
perf: checking == null faster than hasOwnProperty

http://jsperf.com/hasownproperty-vs-in-vs-other/4