]>
git.ipfire.org Git - thirdparty/moment.git/log
Iskren Chernev [Sun, 6 Mar 2016 09:40:32 +0000 (01:40 -0800)]
Add src without src/test to npm package
Iskren Chernev [Sun, 6 Mar 2016 09:22:10 +0000 (01:22 -0800)]
Merge pull request #2829 from XueWei:develop
Add day marker character for Japanese.(update)
XueWei [Wed, 23 Dec 2015 07:20:06 +0000 (23:20 -0800)]
Add day marker character for Japanese.Update test again.
XueWei [Tue, 22 Dec 2015 20:34:26 +0000 (12:34 -0800)]
Add day marker character for Japanese.Update test.
XueWei [Tue, 22 Dec 2015 15:27:29 +0000 (07:27 -0800)]
Add day marker character for Japanese.
XueWei [Tue, 22 Dec 2015 00:31:09 +0000 (16:31 -0800)]
Add day marker character for Japanese.
Iskren Chernev [Sun, 6 Mar 2016 09:11:19 +0000 (01:11 -0800)]
Merge pull request #2804 from marlonmleite:develop
Correction of the week names in pt-BR
Marlon Maxwel [Thu, 10 Dec 2015 01:55:15 +0000 (23:55 -0200)]
Correction of tests for the new names of the days of the week.
Marlon Maxwel [Wed, 9 Dec 2015 19:41:59 +0000 (17:41 -0200)]
Correction of the week names
In Brazil the right names in week that consists in "feira" is "DAYOFWEEK-feira", "Feira" is incorrect.
Iskren Chernev [Sun, 6 Mar 2016 09:10:08 +0000 (01:10 -0800)]
Merge pull request #2826 from danielgindi:patch-1
Improved Hebrew locale
Daniel Cohen Gindi [Wed, 30 Dec 2015 07:20:05 +0000 (09:20 +0200)]
Updated tests for am/pm in `he` locale
Daniel Cohen Gindi [Mon, 21 Dec 2015 05:39:37 +0000 (07:39 +0200)]
Localized am/pm in `he` locale
Iskren Chernev [Sun, 6 Mar 2016 09:09:07 +0000 (01:09 -0800)]
Merge pull request #2852 from zhantongz:develop
Canadian English longDateFormat
Zhan Tong Zhang [Sun, 3 Jan 2016 15:23:23 +0000 (08:23 -0700)]
Update en-ca.js
Zhan Tong Zhang [Sun, 3 Jan 2016 15:22:48 +0000 (08:22 -0700)]
Update en-ca.js
Iskren Chernev [Sun, 6 Mar 2016 09:08:07 +0000 (01:08 -0800)]
Merge pull request #2911 from jonoskar:update-locale-is
Update to icelandic locale
Jón Óskar Erlendsson [Wed, 20 Jan 2016 14:09:08 +0000 (14:09 +0000)]
Updated the icelandic locale specifier 'L' to use dot instead of forward slash.
Iskren Chernev [Sun, 6 Mar 2016 09:07:11 +0000 (01:07 -0800)]
Merge pull request #2917 from harpreetkhalsagtbit:localePunjabiIndiaFormatConversion
Locale Punjabi(Gurmukhi) India format conversion
harpreetkhalsagtbit [Fri, 22 Jan 2016 08:43:42 +0000 (14:13 +0530)]
Add:Tests for Punjabi(Gurmukhi) India Locale Conversion
harpreetkhalsagtbit [Fri, 22 Jan 2016 08:43:26 +0000 (14:13 +0530)]
Add:Punjabi(Gurmukhi) India Locale Conversion
Iskren Chernev [Sun, 6 Mar 2016 09:04:41 +0000 (01:04 -0800)]
Merge pull request #2897 from andrewkolesnikov:develop
parse string arguments for month() correctly, closes #2884
Iskren Chernev [Sun, 6 Mar 2016 09:04:26 +0000 (01:04 -0800)]
Convert to int before days-in-month check
Andrew Kolesnikov [Thu, 14 Jan 2016 09:12:13 +0000 (16:12 +0700)]
parse string arguments for month() correctly, closes #2884
Iskren Chernev [Sun, 6 Mar 2016 08:55:06 +0000 (00:55 -0800)]
Merge pull request #2818 from JohnAnthony:parse-duration-day-and-week
Parse ISO-8061 duration containing both day and week values
John Anthony [Wed, 16 Dec 2015 00:25:48 +0000 (00:25 +0000)]
Fix parsing of ISO-8061 duration with both day and week values
Iskren Chernev [Sun, 6 Mar 2016 08:53:01 +0000 (00:53 -0800)]
Merge pull request #2887 from wraithgar:invalid_null_date
Fix toJSON casting of invalid moment
Michael Garvin [Tue, 12 Jan 2016 00:37:32 +0000 (16:37 -0800)]
update comment explanation to be correct
Michael Garvin [Mon, 11 Jan 2016 23:50:35 +0000 (15:50 -0800)]
Fix toJSON casting of invalid moment (#2886)
Invalid moments were casting as 'null' (the string)
Now they are properly casting as null (the literal)
Iskren Chernev [Sun, 6 Mar 2016 08:51:56 +0000 (00:51 -0800)]
Merge pull request #2932 from jisaacks:list-locales
List loaded locales
JD Isaacks [Wed, 3 Feb 2016 20:26:22 +0000 (15:26 -0500)]
Add smarter test for moment.locales
JD Isaacks [Sun, 31 Jan 2016 21:34:25 +0000 (16:34 -0500)]
List loaded locales
Iskren Chernev [Sun, 6 Mar 2016 08:47:29 +0000 (00:47 -0800)]
Merge pull request #2946 from crteal:fix-min-max-deprecation-warnings
Fix usage suggestions for min and max
Colin Teal [Wed, 3 Feb 2016 21:27:46 +0000 (13:27 -0800)]
Fix usage suggestions for min and max
Iskren Chernev [Sun, 6 Mar 2016 08:46:22 +0000 (00:46 -0800)]
Merge pull request #2958 from marijaselakovic:develop
optimization of isArray and unit tests
marija [Tue, 9 Feb 2016 17:08:13 +0000 (18:08 +0100)]
optimization of isArray and unit tests
removed paddings
Iskren Chernev [Sun, 6 Mar 2016 08:44:39 +0000 (00:44 -0800)]
Merge pull request #2970 from maggiepint:decimalAddSubtract
change add subtract to handle decimal values by rounding
Iskren Chernev [Sun, 6 Mar 2016 08:44:34 +0000 (00:44 -0800)]
Fix test comments
maggie@tempworks.com [Wed, 17 Feb 2016 23:58:39 +0000 (17:58 -0600)]
change add subtract to handle decimal values by abs rounding
Iskren Chernev [Sun, 6 Mar 2016 08:39:25 +0000 (00:39 -0800)]
Merge pull request #2972 from nono:develop
Use npmignore when publising npm packages
Bruno Michel [Thu, 18 Feb 2016 09:33:23 +0000 (10:33 +0100)]
Use npmignore when publising npm packages
Iskren Chernev [Sun, 6 Mar 2016 08:37:34 +0000 (00:37 -0800)]
Merge pull request #2989 from Oire:fix-vi-ampm
Vietnamese: added meridiem
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 25 Feb 2016 23:51:01 +0000 (01:51 +0200)]
Vietnamese: added meridiem, fixes #1747
Iskren Chernev [Sun, 6 Mar 2016 08:35:45 +0000 (00:35 -0800)]
Merge pull request #2774 from ichernev:locale-inheritance
Implement locale inheritance and locale updating
Iskren Chernev [Fri, 27 Nov 2015 05:54:49 +0000 (07:54 +0200)]
Implement locale inheritance and locale updating
Iskren Chernev [Sun, 6 Mar 2016 08:31:46 +0000 (00:31 -0800)]
Merge pull request #2850 from ichernev:common-locale-tests
Common locale tests
Iskren Chernev [Sun, 3 Jan 2016 15:04:29 +0000 (17:04 +0200)]
Add common locale tests, to avoid copy-paste between locale tests
Iskren Chernev [Sun, 3 Jan 2016 15:03:24 +0000 (17:03 +0200)]
Fix meridiem parsing for bn,bo,dv,ml,si,tzl
Iskren Chernev [Sun, 3 Jan 2016 14:28:48 +0000 (16:28 +0200)]
Remove 'meridiem invariant' test from all locales
Iskren Chernev [Sun, 3 Jan 2016 13:57:56 +0000 (15:57 +0200)]
Remove extra newlines in tests
Iskren Chernev [Sun, 3 Jan 2016 13:52:20 +0000 (15:52 +0200)]
Remove 'weeks year starting *' tests from all locales
Iskren Chernev [Sun, 3 Jan 2016 12:58:53 +0000 (14:58 +0200)]
Remove 'strict oridnal parsign' from all locales
Iskren Chernev [Sun, 3 Jan 2016 12:56:42 +0000 (14:56 +0200)]
Remove 'lenient ordinal parsing of numbers'
Iskren Chernev [Sun, 3 Jan 2016 12:54:02 +0000 (14:54 +0200)]
Remove 'lenient ordinal parsing' from all locales
Iskren Chernev [Sun, 3 Jan 2016 12:16:02 +0000 (14:16 +0200)]
Use helpers/each instead of reimplementing it in moment/format
Andre Polykanine A.K.A. Menelion Elensúlë [Sun, 21 Feb 2016 21:59:17 +0000 (23:59 +0200)]
Merge pull request #2907 from socketpair/rufix
Russian locale fixes: punctuation and capital letters
Коренберг Марк (imac) [Tue, 19 Jan 2016 19:09:42 +0000 (00:09 +0500)]
Russian locale: make first characters of names uncapitalized
Closes issue #2882
Reverts
80fa7c5621797591e81b49c48621f53e858737a5 (issue #2569)
Iskren Chernev [Wed, 3 Feb 2016 22:43:05 +0000 (14:43 -0800)]
Build 2.11.2
Iskren Chernev [Wed, 3 Feb 2016 22:41:54 +0000 (14:41 -0800)]
Bump version to 2.11.2
Iskren Chernev [Wed, 3 Feb 2016 22:41:13 +0000 (14:41 -0800)]
Update changelog for 2.11.2
Iskren Chernev [Wed, 3 Feb 2016 22:38:11 +0000 (14:38 -0800)]
Merge pull request #2939 from rvagg:regex-dos-no-more
use full-string match to speed up aspnet regex match
Rod Vagg [Tue, 2 Feb 2016 07:01:31 +0000 (18:01 +1100)]
use full-string match to speed up C# duration match
Fixes: https://github.com/moment/moment/issues/2936
Matt Johnson [Sat, 16 Jan 2016 00:44:56 +0000 (16:44 -0800)]
Merge pull request #2778 from nickmerwin/patch-1
Coveralls badge should use develop branch
Iskren Chernev [Sat, 9 Jan 2016 13:13:07 +0000 (15:13 +0200)]
Build 2.11.1
Iskren Chernev [Sat, 9 Jan 2016 13:11:33 +0000 (15:11 +0200)]
Bump version to 2.11.1
Iskren Chernev [Sat, 9 Jan 2016 13:10:52 +0000 (15:10 +0200)]
Update changelog 2.11.1
Iskren Chernev [Sat, 9 Jan 2016 12:54:38 +0000 (14:54 +0200)]
Fix IE8 test bug
Iskren Chernev [Sat, 9 Jan 2016 12:41:26 +0000 (14:41 +0200)]
Merge pull request #2869 from ichernev:per-locale-month-regex
Fix months parsing for stranger locales
Iskren Chernev [Sat, 9 Jan 2016 11:05:19 +0000 (13:05 +0200)]
regex-escape months for exactMonthsParse (incomplete)
Iskren Chernev [Sat, 9 Jan 2016 10:09:53 +0000 (12:09 +0200)]
Sort month names by reverse length when constructing month parse regex
Iskren Chernev [Wed, 6 Jan 2016 23:44:36 +0000 (01:44 +0200)]
Fix months parsing for stranger locales
Iskren Chernev [Sat, 9 Jan 2016 09:51:06 +0000 (11:51 +0200)]
Merge pull request #2830 from TheAlphaNerd:add-grunt-cli
dep: add grunt-cli
Myles Borins [Tue, 22 Dec 2015 22:43:48 +0000 (14:43 -0800)]
dep: add grunt-cli
currently the project relies on grunt-cli to run unit tests.
There are no instructions in the readme to inform developers of this dependency.
This PR adds grunt-cli to the dev-dependencies for a more seamless development
process. This PR will also make moment compatible with [CITGM](https://github.com/nodejs/citgm)
the node.js smoketesting utility. This will allow moment's unit test suite to
be ran against every release of Node.js, giving us an opportunity to give you a heads
up if anything breaks before a release.
Iskren Chernev [Sat, 9 Jan 2016 09:49:40 +0000 (11:49 +0200)]
Merge pull request #2864 from SimenB:patch-1
Include changelog in npm release
Simen Bekkhus [Tue, 5 Jan 2016 12:23:47 +0000 (13:23 +0100)]
Include changelog in npm release
Iskren Chernev [Sat, 9 Jan 2016 09:46:31 +0000 (11:46 +0200)]
Update copyright to 2016
Iskren Chernev [Sat, 9 Jan 2016 09:42:27 +0000 (11:42 +0200)]
Merge pull request #2858 from nowells:global-date
Fix Date mocking regression introduced in 2.11.0
Nowell Strite [Mon, 4 Jan 2016 14:47:23 +0000 (09:47 -0500)]
Fix Date mocking regression introduced in 2.11.0
The commit https://github.com/moment/moment/commit/
f54a32f4c62c12a710335211a73cb002a7249646 and the follow on refactoring https://github.com/moment/moment/commit/
b1d686ed481e2211cb81a1c60eca850fcea93f21 broke the ability for Date mocking libraries ([MockDate](https://www.npmjs.com/package/mockdate), SinonJS, etc.) to mock out the Date object. I believe we should restore this functionality.
```js
const moment = require('moment'),
mockdate = require('mockdate'),
frozenTime = moment();
mockdate.set(frozenTime);
console.log('Frozen time: ', frozenTime.toISOString());
setTimeout(function() {
console.log('Moment time: ', moment().toISOString());
}, 1000);
```
Running the code above will yield the following in `moment@2.10.6` and `moment@2.11.0` respectively.
```bash
$ node index.js
Frozen time: 2016-01-04T14:21:55.335Z
Moment time: 2016-01-04T14:21:55.335Z
$ node index.js
Frozen time: 2016-01-04T14:21:55.335Z
Moment time: 2016-01-04T14:21:56.355Z
```
- Fixes #2857
- Fixes #2855
Iskren Chernev [Sat, 9 Jan 2016 09:38:04 +0000 (11:38 +0200)]
Merge pull request #2865 from ichernev:fix-undefined-checks
Use typeof checks for undefined for global variables
Iskren Chernev [Wed, 6 Jan 2016 22:27:58 +0000 (00:27 +0200)]
Fix lint issues
Iskren Chernev [Tue, 5 Jan 2016 19:15:46 +0000 (21:15 +0200)]
Use typeof checks for undefined for global variables
Iskren Chernev [Sat, 9 Jan 2016 09:36:35 +0000 (11:36 +0200)]
Merge pull request #2868 from ichernev:fix-y-token
Add format and parse token Y, so it actually works
Iskren Chernev [Sat, 9 Jan 2016 09:31:26 +0000 (11:31 +0200)]
Apply PR comments
Iskren Chernev [Wed, 6 Jan 2016 22:24:28 +0000 (00:24 +0200)]
Add format and parse token Y, so it actually works
Iskren Chernev [Sat, 9 Jan 2016 09:33:32 +0000 (11:33 +0200)]
Merge pull request #2881 from ichernev:revert-sept
Revert "Merge pull request #2746 from mbad0la:develop" Sep->Sept
Iskren Chernev [Sat, 9 Jan 2016 09:07:51 +0000 (11:07 +0200)]
Revert "Merge pull request #2746 from mbad0la:develop"
This reverts commit
9ea2d6b1a86d59b36bce792771cffc3f85b382b0 , reversing
changes made to
f52a86863dd1fc638501b5f4b4fbe371f8fa725d .
Iskren Chernev [Sat, 9 Jan 2016 09:05:30 +0000 (11:05 +0200)]
Add commented console log that helps with debugging
Iskren Chernev [Sat, 2 Jan 2016 23:30:23 +0000 (01:30 +0200)]
Rebuild 2.11.0
Iskren Chernev [Sat, 2 Jan 2016 23:28:47 +0000 (01:28 +0200)]
Fix broken week-year test
Iskren Chernev [Thu, 31 Dec 2015 13:13:35 +0000 (15:13 +0200)]
Build 2.11.0
Iskren Chernev [Thu, 31 Dec 2015 12:48:17 +0000 (14:48 +0200)]
Bump version to 2.11.0
Iskren Chernev [Thu, 31 Dec 2015 12:46:54 +0000 (14:46 +0200)]
Update changelog for 2.11.0
Iskren Chernev [Thu, 31 Dec 2015 13:04:56 +0000 (15:04 +0200)]
Fix issues in ca, tlh and tzl locale
Iskren Chernev [Thu, 31 Dec 2015 12:59:00 +0000 (14:59 +0200)]
Check all locales for bad expanded tokens
Iskren Chernev [Thu, 31 Dec 2015 11:41:48 +0000 (13:41 +0200)]
Merge pull request #2842 from ichernev:fix-ie8
Fix broken tests in IE8
Iskren Chernev [Thu, 31 Dec 2015 09:59:51 +0000 (11:59 +0200)]
Do not depend on Date to parse an ISO string for IE8 compat
Iskren Chernev [Thu, 31 Dec 2015 09:59:33 +0000 (11:59 +0200)]
Do not use Object.keys and [].forEach for IE8 compat
Iskren Chernev [Thu, 31 Dec 2015 09:58:43 +0000 (11:58 +0200)]
Do not use String.trim for IE8 compat
Iskren Chernev [Thu, 31 Dec 2015 09:58:22 +0000 (11:58 +0200)]
Do not use substr(-1) for IE8 compat
Iskren Chernev [Thu, 31 Dec 2015 09:57:52 +0000 (11:57 +0200)]
Fix ISO matching for IE8
Iskren Chernev [Tue, 29 Dec 2015 18:41:13 +0000 (20:41 +0200)]
Fix saucelabs config for Edge and IE