]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
9 years agoUpdate typescript definitions with 2.14.0 changes 3275/head
Iskren Chernev [Mon, 4 Jul 2016 03:19:55 +0000 (20:19 -0700)] 
Update typescript definitions with 2.14.0 changes

9 years agoMerge pull request #3063 from ichernev:add-member-info
Iskren Chernev [Sat, 2 Jul 2016 18:19:30 +0000 (11:19 -0700)] 
Merge pull request #3063 from ichernev:add-member-info

Add info on becoming a team member

9 years agoAdd info on becoming a team member
Iskren Chernev [Thu, 24 Mar 2016 10:28:20 +0000 (03:28 -0700)] 
Add info on becoming a team member

9 years agoMerge pull request #3272 from ichernev:fix-af-march
Iskren Chernev [Sat, 2 Jul 2016 18:12:18 +0000 (11:12 -0700)] 
Merge pull request #3272 from ichernev:fix-af-march

Fix Afrikaans March abbr

9 years agoFix Afrikaans March abbr 3272/head
Iskren Chernev [Sat, 2 Jul 2016 18:11:04 +0000 (11:11 -0700)] 
Fix Afrikaans March abbr

9 years agoFix rest of locale comments
Iskren Chernev [Sun, 26 Jun 2016 08:20:05 +0000 (01:20 -0700)] 
Fix rest of locale comments

9 years agoChange locale comments
Iskren Chernev [Sun, 26 Jun 2016 08:16:35 +0000 (01:16 -0700)] 
Change locale comments

9 years agoMerge pull request #3235 from ichernev:fix-locales
Iskren Chernev [Mon, 20 Jun 2016 08:24:28 +0000 (01:24 -0700)] 
Merge pull request #3235 from ichernev:fix-locales

Use proper locale inheritance for the base locale

9 years agoCleanup day-of-week 3235/head
Iskren Chernev [Mon, 20 Jun 2016 08:23:21 +0000 (01:23 -0700)] 
Cleanup day-of-week

9 years agoReplace hacks with harder to spot ones
Iskren Chernev [Thu, 16 Jun 2016 06:34:09 +0000 (23:34 -0700)] 
Replace hacks with harder to spot ones

9 years agoUse proper locale inheritance for the base locale
Iskren Chernev [Sun, 12 Jun 2016 10:39:11 +0000 (03:39 -0700)] 
Use proper locale inheritance for the base locale

Previously english locale was defined mostly in Locale.prototype. Now it's
moved in locale config (similar to all other locales) that is merged the same
way locales are patched (updated).

Fixes #3137

9 years agoMerge pull request #3252 from jasperSpeicher:patch-1
Iskren Chernev [Mon, 20 Jun 2016 08:15:51 +0000 (01:15 -0700)] 
Merge pull request #3252 from jasperSpeicher:patch-1

Add weeks to Duration interface

9 years agoAdd weeks to Duration interface
Jasper Speicher [Sun, 19 Jun 2016 23:15:10 +0000 (16:15 -0700)] 
Add weeks to Duration interface

Weeks are part of the spec here: http://momentjs.com/docs/#/durations/weeks/

9 years agoMerge pull request #3244 from jvanoostveen:dts
Iskren Chernev [Mon, 20 Jun 2016 08:13:53 +0000 (01:13 -0700)] 
Merge pull request #3244 from jvanoostveen:dts

Updated moment.d.ts

9 years agoAdded updateLocale() in the moment namespace.
Joeri van Oostveen [Wed, 15 Jun 2016 10:11:52 +0000 (12:11 +0200)] 
Added updateLocale() in the moment namespace.

According to the documentation, the locale can also be updated on the global moment, ie. moment.updateLocale(...).

9 years agoFixed return type in d.ts file for isDuration.
Joeri van Oostveen [Wed, 15 Jun 2016 10:07:56 +0000 (12:07 +0200)] 
Fixed return type in d.ts file for isDuration.

9 years agoMerge pull request #3082 from dasa:amd-moment
Iskren Chernev [Mon, 20 Jun 2016 08:12:46 +0000 (01:12 -0700)] 
Merge pull request #3082 from dasa:amd-moment

Use relative AMD moment dependency

9 years agoUse relative amd moment dependency
Dasa Paddock [Thu, 31 Mar 2016 19:42:11 +0000 (12:42 -0700)] 
Use relative amd moment dependency

9 years agoMerge pull request #3241 from middagj:compute-regex-escape-fix
Iskren Chernev [Wed, 15 Jun 2016 09:23:57 +0000 (02:23 -0700)] 
Merge pull request #3241 from middagj:compute-regex-escape-fix

Escape all 24 mixed pieces, not only first 12 in computeMonthsParse

9 years agoMinor refactor
Iskren Chernev [Wed, 15 Jun 2016 09:23:47 +0000 (02:23 -0700)] 
Minor refactor

9 years agoEscape all 24 mixed pieces, not only first 12
Jacob Middag [Wed, 15 Jun 2016 07:59:45 +0000 (09:59 +0200)] 
Escape all 24 mixed pieces, not only first 12

9 years agoMerge pull request #3234 from ichernev:fix-mwl-comment
Iskren Chernev [Wed, 15 Jun 2016 09:20:23 +0000 (02:20 -0700)] 
Merge pull request #3234 from ichernev:fix-mwl-comment

Add comment on top of moment-with-locales.js

9 years agoAdd comment on top of moment-with-locales.js
Iskren Chernev [Sun, 12 Jun 2016 08:53:53 +0000 (01:53 -0700)] 
Add comment on top of moment-with-locales.js

Fixes #3159

9 years agoMerge pull request #3233 from ichernev:mont-is-format-lt
Iskren Chernev [Wed, 15 Jun 2016 09:18:29 +0000 (02:18 -0700)] 
Merge pull request #3233 from ichernev:mont-is-format-lt

Introduce month.isFormat for format/standalone discovery

9 years agoUpdate isFormat to handle Do MMMM as well as MMMM Do
Iskren Chernev [Wed, 15 Jun 2016 09:13:36 +0000 (02:13 -0700)] 
Update isFormat to handle Do MMMM as well as MMMM Do

9 years agoIntroduce month.isFormat for format/standalone discovery
Iskren Chernev [Sun, 12 Jun 2016 08:18:35 +0000 (01:18 -0700)] 
Introduce month.isFormat for format/standalone discovery

Fixes #3195

9 years agoMerge pull request #3236 from Moeriki:develop
Iskren Chernev [Wed, 15 Jun 2016 03:40:56 +0000 (20:40 -0700)] 
Merge pull request #3236 from Moeriki:develop

add() defaults string specifier to milliseconds

9 years agoadd() defaults string specifier to milliseconds
Dieter Luypaert [Mon, 13 Jun 2016 07:51:48 +0000 (09:51 +0200)] 
add() defaults string specifier to milliseconds

9 years agoMerge pull request #3238 from ichernev:fix-empty-obj
Iskren Chernev [Wed, 15 Jun 2016 03:40:15 +0000 (20:40 -0700)] 
Merge pull request #3238 from ichernev:fix-empty-obj

Handle empty object and empty array for creation as now

9 years agoMake jscs happy
Iskren Chernev [Tue, 14 Jun 2016 10:13:57 +0000 (03:13 -0700)] 
Make jscs happy

9 years agoHandle empty object and empty array for creation as now
Iskren Chernev [Tue, 14 Jun 2016 08:48:01 +0000 (01:48 -0700)] 
Handle empty object and empty array for creation as now

Redo #3111, fix #3085

9 years agoMerge pull request #3232 from ichernev:neg-0-diff
Iskren Chernev [Tue, 14 Jun 2016 10:11:10 +0000 (03:11 -0700)] 
Merge pull request #3232 from ichernev:neg-0-diff

Fix negative 0 in certain diff cases

9 years agoFix negative 0 in certain diff cases
Iskren Chernev [Sun, 12 Jun 2016 04:52:03 +0000 (21:52 -0700)] 
Fix negative 0 in certain diff cases

Fixes #3227

9 years agoMerge pull request #3230 from maggiepint:dateWithDateFormat
Iskren Chernev [Tue, 14 Jun 2016 10:08:43 +0000 (03:08 -0700)] 
Merge pull request #3230 from maggiepint:dateWithDateFormat

fix passing date with format string to ignore format string

9 years agofix passing date with format string to ignore format string
Maggie Pint [Sat, 11 Jun 2016 14:47:43 +0000 (09:47 -0500)] 
fix passing date with format string to ignore format string

9 years agoMerge pull request #3213 from david-driscoll:patch-2
Iskren Chernev [Tue, 14 Jun 2016 10:05:42 +0000 (03:05 -0700)] 
Merge pull request #3213 from david-driscoll:patch-2

Added `type UnitOfTime`

9 years agoUpdate moment.d.ts
David Driscoll [Mon, 6 Jun 2016 19:24:43 +0000 (15:24 -0400)] 
Update moment.d.ts

9 years agoMerge pull request #3192 from nickmessing:develop
Iskren Chernev [Tue, 14 Jun 2016 09:56:44 +0000 (02:56 -0700)] 
Merge pull request #3192 from nickmessing:develop

Adding support for rollup import.

9 years agoAdding support for rollup import.
Nick Messing [Sun, 22 May 2016 11:05:38 +0000 (14:05 +0300)] 
Adding support for rollup import.

9 years agoMerge pull request #3191 from jonathathan:develop
Iskren Chernev [Tue, 14 Jun 2016 09:49:13 +0000 (02:49 -0700)] 
Merge pull request #3191 from jonathathan:develop

toDate returns a copy of the internal date object

9 years agotoDate: remove ternary, add unit test
Jonathan Gray [Sat, 21 May 2016 20:06:10 +0000 (13:06 -0700)] 
toDate: remove ternary, add unit test

9 years agotoDate returns a copy of the internal date object
Jonathan Gray [Thu, 19 May 2016 18:38:16 +0000 (11:38 -0700)] 
toDate returns a copy of the internal date object

9 years agoMerge pull request #3183 from sokolovstas:master
Iskren Chernev [Tue, 14 Jun 2016 09:48:15 +0000 (02:48 -0700)] 
Merge pull request #3183 from sokolovstas:master

Added missing functions to moment.d.ts

9 years agoAdded missing functions to moment.d.ts
Sokolov Stanislav [Fri, 13 May 2016 14:18:39 +0000 (19:18 +0500)] 
Added missing functions to moment.d.ts

Added missing isSameOrAfter and isSameOrBefore functions to typings

9 years agoMerge pull request #3177 from nvdh:bugfix-2704
Iskren Chernev [Tue, 14 Jun 2016 09:46:48 +0000 (02:46 -0700)] 
Merge pull request #3177 from nvdh:bugfix-2704

Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)

9 years agoStyle changes in parseIsoWeekday
Iskren Chernev [Tue, 14 Jun 2016 09:28:45 +0000 (02:28 -0700)] 
Style changes in parseIsoWeekday

9 years agoFixes #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)
Nick Vanderhoven [Wed, 11 May 2016 05:41:16 +0000 (07:41 +0200)] 
Fixes #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)

9 years agoMerge pull request #3175 from maggiepint:calendarExtend
Iskren Chernev [Tue, 14 Jun 2016 09:23:52 +0000 (02:23 -0700)] 
Merge pull request #3175 from maggiepint:calendarExtend

make moment calendar extensible with ad-hoc options

9 years agomake moment calendar extensible with ad-hoc options
Maggie Pint [Wed, 11 May 2016 04:16:03 +0000 (23:16 -0500)] 
make moment calendar extensible with ad-hoc options

9 years agoMerge pull request #3160 from maggiepint:deprecateDSTShifted
Iskren Chernev [Tue, 14 Jun 2016 09:22:18 +0000 (02:22 -0700)] 
Merge pull request #3160 from maggiepint:deprecateDSTShifted

deprecate isDSTShifted

9 years agodeprecate isDSTShifted
Maggie Pint [Sat, 30 Apr 2016 04:08:39 +0000 (05:08 +0100)] 
deprecate isDSTShifted

9 years agoMerge pull request #3157 from Pephers:develop
Iskren Chernev [Tue, 14 Jun 2016 09:16:40 +0000 (02:16 -0700)] 
Merge pull request #3157 from Pephers:develop

Add Dominican Republic Spanish (es-do)

9 years agoAdd Dominican Republic Spanish (es-do)
Chiel Robben [Thu, 28 Apr 2016 19:07:04 +0000 (21:07 +0200)] 
Add Dominican Republic Spanish (es-do)

9 years agoMerge pull request #3155 from Knagis:develop
Iskren Chernev [Tue, 14 Jun 2016 09:13:29 +0000 (02:13 -0700)] 
Merge pull request #3155 from Knagis:develop

Fixed Latvian locale - 'After 211 years'

9 years agoMake jscs happy
Iskren Chernev [Tue, 14 Jun 2016 09:13:21 +0000 (02:13 -0700)] 
Make jscs happy

9 years agoAdded tests for LV locale
Kārlis Gaņģis [Tue, 7 Jun 2016 09:07:51 +0000 (12:07 +0300)] 
Added tests for LV locale

9 years agoFixed Latvian locale - 'After 211 years'
Kārlis Gaņģis [Thu, 28 Apr 2016 13:05:06 +0000 (16:05 +0300)] 
Fixed Latvian locale - 'After 211 years'

9 years agoMerge pull request #3152 from aijo:thai-month-fixed
Iskren Chernev [Tue, 14 Jun 2016 09:09:28 +0000 (02:09 -0700)] 
Merge pull request #3152 from aijo:thai-month-fixed

Fixed short thai months

9 years agoRevert changes to locale/*
Iskren Chernev [Tue, 14 Jun 2016 09:09:17 +0000 (02:09 -0700)] 
Revert changes to locale/*

9 years agoFixed short thai months with unit-test
Chanintorn Asavavichairoj [Tue, 31 May 2016 03:36:26 +0000 (10:36 +0700)] 
Fixed short thai months with unit-test

9 years agoFixed short thai months
Chanintorn Asavavichairoj [Thu, 28 Apr 2016 09:07:15 +0000 (16:07 +0700)] 
Fixed short thai months

9 years agoMerge pull request #3147 from generalov:patch-1
Iskren Chernev [Tue, 14 Jun 2016 09:07:31 +0000 (02:07 -0700)] 
Merge pull request #3147 from generalov:patch-1

Call calendar format function with moment context

9 years agoCall calendar format function with moment context
generalov [Tue, 26 Apr 2016 14:46:42 +0000 (19:46 +0500)] 
Call calendar format function with moment context

What: the code:
```
moment().days(-1000).calendar(null, {
   sameElse: function() {
       return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
   }
});
```
Where: on http://momentjs.com/docs/#/displaying/calendar-time/ in the Chrome console.
What I got: It raises `Uncaught TypeError: this.hours is not a function`

I expected use callback like in the example on http://momentjs.com/docs/#/customization/calendar/ .

This PR makes the compatible call with https://github.com/moment/moment/blob/develop/src/lib/locale/calendar.js#L14

9 years agoMerge pull request #3135 from tomvlk:develop
Iskren Chernev [Tue, 14 Jun 2016 09:06:44 +0000 (02:06 -0700)] 
Merge pull request #3135 from tomvlk:develop

Adding updateLocale and defineLocale to typescript definition.

9 years agoFixing argument type for updateLocale in definition file.
Tom Valk [Wed, 8 Jun 2016 09:54:24 +0000 (11:54 +0200)] 
Fixing argument type for updateLocale in definition file.

9 years agoAdding updateLocale and defineLocale to typescript definition.
Tom Valk [Fri, 22 Apr 2016 14:33:14 +0000 (16:33 +0200)] 
Adding updateLocale and defineLocale to typescript definition.

9 years agoDrop non-LTS node versions from travis
Iskren Chernev [Tue, 14 Jun 2016 09:05:25 +0000 (02:05 -0700)] 
Drop non-LTS node versions from travis

9 years agoMerge pull request #3129 from david-driscoll:david-driscoll-patch-1
Iskren Chernev [Tue, 14 Jun 2016 09:03:19 +0000 (02:03 -0700)] 
Merge pull request #3129 from david-driscoll:david-driscoll-patch-1

isDate, isMoment, isDuration as guard methods

9 years agoisDate, isMoment, isDuration as guard methods
David Driscoll [Mon, 18 Apr 2016 20:54:37 +0000 (16:54 -0400)] 
isDate, isMoment, isDuration as guard methods

9 years agoMerge pull request #3127 from socketpair:rmofix
Iskren Chernev [Tue, 14 Jun 2016 09:02:31 +0000 (02:02 -0700)] 
Merge pull request #3127 from socketpair:rmofix

Fix russian locale regexps

9 years agoFix russian locale regexps
Коренберг Марк (imac) [Mon, 18 Apr 2016 19:59:27 +0000 (00:59 +0500)] 
Fix russian locale regexps

9 years agoMerge pull request #3122 from blakeembrey:update-ts-def
Iskren Chernev [Tue, 14 Jun 2016 09:01:52 +0000 (02:01 -0700)] 
Merge pull request #3122 from blakeembrey:update-ts-def

Improve `diff` argument name (TS definition)

9 years agoImprove `diff` argument name
Blake Embrey [Mon, 18 Apr 2016 18:10:08 +0000 (11:10 -0700)] 
Improve `diff` argument name

From discussion in https://github.com/moment/moment/pull/2916/files/f2e45889e5d7522d7a5e8ffd607b783be320cb3c#r60102231

9 years agoMerge pull request #3119 from hehachris:chris/zh-tw-improvement
Iskren Chernev [Tue, 14 Jun 2016 09:00:37 +0000 (02:00 -0700)] 
Merge pull request #3119 from hehachris:chris/zh-tw-improvement

Chris/zh tw improvement

9 years agoUpdate test cases
Chris Lam [Mon, 18 Apr 2016 06:46:47 +0000 (14:46 +0800)] 
Update test cases

9 years agoUpdate zh-tw translations
Chris Lam [Mon, 18 Apr 2016 06:46:33 +0000 (14:46 +0800)] 
Update zh-tw translations

9 years agoMerge pull request #3115 from maggiepint:linkChanges
Iskren Chernev [Tue, 14 Jun 2016 08:56:24 +0000 (01:56 -0700)] 
Merge pull request #3115 from maggiepint:linkChanges

Link changes

9 years agoupdate links to direct to guides section
maggie@tempworks.com [Sun, 17 Apr 2016 19:53:36 +0000 (14:53 -0500)] 
update links to direct to guides section

9 years agoMerge pull request #3112 from marijaselakovic:develop
Iskren Chernev [Tue, 14 Jun 2016 08:51:36 +0000 (01:51 -0700)] 
Merge pull request #3112 from marijaselakovic:develop

optimize configFromStringAndFormat

9 years agooptimize configFromStringAndFormat
marija [Fri, 15 Apr 2016 15:34:40 +0000 (17:34 +0200)] 
optimize configFromStringAndFormat

9 years agoMerge pull request #3008 from maggiepint:objectSetter
Iskren Chernev [Tue, 14 Jun 2016 08:26:13 +0000 (01:26 -0700)] 
Merge pull request #3008 from maggiepint:objectSetter

Object setter orders sets based on size of unit

9 years agoobject set ordering
Maggie Pint [Sun, 24 Apr 2016 19:48:08 +0000 (14:48 -0500)] 
object set ordering

9 years agoMerge pull request #3237 from ichernev:fix-cs
Iskren Chernev [Tue, 14 Jun 2016 08:25:08 +0000 (01:25 -0700)] 
Merge pull request #3237 from ichernev:fix-cs

Redo #2997, fix #2016

9 years agoRedo #2997, fix #2016 3237/head
Iskren Chernev [Tue, 14 Jun 2016 08:24:07 +0000 (01:24 -0700)] 
Redo #2997, fix #2016

9 years agoMerge pull request #2848 from numeraltwo:develop
Iskren Chernev [Tue, 14 Jun 2016 08:20:20 +0000 (01:20 -0700)] 
Merge pull request #2848 from numeraltwo:develop

Allow user to get/set the rounding method used when calculating relative time

9 years agoAllow user to get/set the rounding method used when calculating relative time
Ramsay Stirling II [Mon, 24 Aug 2015 00:03:05 +0000 (20:03 -0400)] 
Allow user to get/set the rounding method used when calculating relative time

9 years agoMerge pull request #3218 from monoblaine:jscs-editing
Iskren Chernev [Sun, 12 Jun 2016 04:32:16 +0000 (21:32 -0700)] 
Merge pull request #3218 from monoblaine:jscs-editing

Fix jscs 3.0 errors

9 years agoFix code style errors reported by jscs 3218/head
Serhan Apaydın [Tue, 7 Jun 2016 19:47:58 +0000 (22:47 +0300)] 
Fix code style errors reported by jscs

9 years agoFix jscs 3.0 error: 'The `esnext` option is enabled by default.'
Serhan Apaydın [Tue, 7 Jun 2016 19:45:56 +0000 (22:45 +0300)] 
Fix jscs 3.0 error: 'The `esnext` option is enabled by default.'

9 years agoInclude moment.d.ts file in packages (npm)
Iskren Chernev [Mon, 18 Apr 2016 07:41:13 +0000 (00:41 -0700)] 
Include moment.d.ts file in packages (npm)

9 years agoBuild 2.13.0 2.13.0
Iskren Chernev [Mon, 18 Apr 2016 07:27:05 +0000 (00:27 -0700)] 
Build 2.13.0

9 years agoBump version to 2.13.0
Iskren Chernev [Mon, 18 Apr 2016 07:24:39 +0000 (00:24 -0700)] 
Bump version to 2.13.0

9 years agoUpdate changelog for 2.13.0
Iskren Chernev [Mon, 18 Apr 2016 07:23:45 +0000 (00:23 -0700)] 
Update changelog for 2.13.0

9 years agoFix indexOf and Object.keys for IE8
Iskren Chernev [Mon, 18 Apr 2016 06:39:23 +0000 (23:39 -0700)] 
Fix indexOf and Object.keys for IE8

9 years agoMerge pull request #2916 from gdi2290:typings-support
Iskren Chernev [Mon, 18 Apr 2016 02:39:19 +0000 (19:39 -0700)] 
Merge pull request #2916 from gdi2290:typings-support

feat: moment.d.ts TypeScript definition

9 years agoUpdate typescript definitions for 2.13.0
Iskren Chernev [Mon, 18 Apr 2016 02:38:58 +0000 (19:38 -0700)] 
Update typescript definitions for 2.13.0

9 years agofeat: moment.d.ts
gdi2290 [Fri, 22 Jan 2016 07:20:31 +0000 (23:20 -0800)] 
feat: moment.d.ts

support for typescript type definition

9 years agoMerge pull request #2901 from JunhoKim01:patch-1
Iskren Chernev [Sat, 16 Apr 2016 08:16:38 +0000 (01:16 -0700)] 
Merge pull request #2901 from JunhoKim01:patch-1

Update ko.js

9 years agoUpdate ko.js
Junho Kim [Sun, 17 Jan 2016 10:53:33 +0000 (19:53 +0900)] 
Update ko.js

relativeTime 일부 맞춤법 수정  // Correct relativeTime strings based on Korean gramma checker (http://speller.cs.pusan.ac.kr/PnuSpellerISAPI_201504/)

1. 몇초 --> 몇 초
2. 한시간 --> 한 시간
3. 한달 --> 한 달
4. 일년 --> 일 년

Update ko.js #2

Update ko.js #3

remove the changes locale/ko.ks

9 years agoMerge pull request #3015 from gaplo917:develop
Iskren Chernev [Sat, 16 Apr 2016 08:13:15 +0000 (01:13 -0700)] 
Merge pull request #3015 from gaplo917:develop

Resolve issue #3014 inconsistent relativeTime locale in zh-tw