]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
7 years agoSync node build versions with 2.x branch 3.x
Iskren Chernev [Thu, 10 Aug 2017 22:42:01 +0000 (01:42 +0300)] 
Sync node build versions with 2.x branch

7 years agoExport timezones, fix tests
Iskren Chernev [Thu, 10 Aug 2017 22:30:20 +0000 (01:30 +0300)] 
Export timezones, fix tests

7 years agoRe-add moment.parseZone and add moment.zoned, 108 failed tests left
Iskren Chernev [Wed, 9 Aug 2017 23:49:36 +0000 (02:49 +0300)] 
Re-add moment.parseZone and add moment.zoned, 108 failed tests left

7 years agoFix some transpilation issues
Iskren Chernev [Wed, 9 Aug 2017 12:45:44 +0000 (15:45 +0300)] 
Fix some transpilation issues

7 years agoRemove console.log
Iskren Chernev [Sat, 5 Aug 2017 19:20:47 +0000 (22:20 +0300)] 
Remove console.log

7 years agoWIP 3.x, builts, above 50% tests pass :)
Iskren Chernev [Mon, 10 Jul 2017 00:37:53 +0000 (03:37 +0300)] 
WIP 3.x, builts, above 50% tests pass :)

7 years agoWIP new zone API, zone constructors, no-touch after construction
Iskren Chernev [Sat, 17 Jun 2017 01:18:50 +0000 (04:18 +0300)] 
WIP new zone API, zone constructors, no-touch after construction

7 years agoAddress some review comments immutability 3548/head
Iskren Chernev [Mon, 22 May 2017 11:20:26 +0000 (14:20 +0300)] 
Address some review comments

I added moment.isImmutable and fixed unnecessary cloning.

7 years agoAdd more mutability tests
Lucas Sanders [Tue, 21 Mar 2017 04:58:47 +0000 (00:58 -0400)] 
Add more mutability tests

7 years agoUpdate Ukrainian locale tests for immutability
Lucas Sanders [Tue, 21 Mar 2017 04:56:33 +0000 (00:56 -0400)] 
Update Ukrainian locale tests for immutability

Also ensure that we always test both the 11:00 hour and the
non-11:00 formatting variations, instead of simply testing
whichever hour it happens to be when we run the test.

7 years agoAdd a test for Duration.abs() and make it immutable
Lucas Sanders [Tue, 21 Mar 2017 04:49:53 +0000 (00:49 -0400)] 
Add a test for Duration.abs() and make it immutable

7 years agoFinish removing wrap() in favor of immutable internals
Lucas Sanders [Tue, 21 Mar 2017 04:22:07 +0000 (00:22 -0400)] 
Finish removing wrap() in favor of immutable internals

7 years agoImmutable internal implementations of Moment#locale and Duration#locale
Lucas Sanders [Sun, 19 Mar 2017 04:12:50 +0000 (00:12 -0400)] 
Immutable internal implementations of Moment#locale and Duration#locale

7 years agoImmutable Locale#set
Lucas Sanders [Sun, 19 Mar 2017 03:58:05 +0000 (23:58 -0400)] 
Immutable Locale#set

7 years agoFix Duration#isValid after #add or #subtract
Lucas Sanders [Sun, 19 Mar 2017 02:49:28 +0000 (22:49 -0400)] 
Fix Duration#isValid after #add or #subtract

Also make the Duration#add and Duration#subtract implementations
internally immutable (so we don't need to wrap them for the
prototype).

7 years agoFix code style
Lucas Sanders [Sun, 30 Oct 2016 18:27:58 +0000 (14:27 -0400)] 
Fix code style

7 years agoTest fixes for immutable API
Lucas Sanders [Sun, 30 Oct 2016 18:27:57 +0000 (14:27 -0400)] 
Test fixes for immutable API

7 years agoConstruct immutable Durations
Lucas Sanders [Sun, 30 Oct 2016 18:27:57 +0000 (14:27 -0400)] 
Construct immutable Durations

7 years agoRemove _bubble() from Duration prototype and make its API immutable
Lucas Sanders [Sun, 30 Oct 2016 18:27:56 +0000 (14:27 -0400)] 
Remove _bubble() from Duration prototype and make its API immutable

The bubble function now returns a new data object instead of
mutating the duration's existing data (which had always been empty
when we called _bubble anyway).

7 years agoFix hooks.updateOffset to return an immutable Moment
Lucas Sanders [Sun, 30 Oct 2016 18:27:56 +0000 (14:27 -0400)] 
Fix hooks.updateOffset to return an immutable Moment

7 years agoFix tests to avoid moment#clone() unless explicitly testing #clone()
Lucas Sanders [Sun, 30 Oct 2016 18:27:56 +0000 (14:27 -0400)] 
Fix tests to avoid moment#clone() unless explicitly testing #clone()

moment#clone() is now a deprecated no-op, because immutability.

7 years agoNever call `moment#clone` in our implementation
Lucas Sanders [Sun, 30 Oct 2016 18:27:55 +0000 (14:27 -0400)] 
Never call `moment#clone` in our implementation

7 years agoFix startOf/endOf/utcOffset and getters/setters for immutable API
Lucas Sanders [Sun, 30 Oct 2016 18:27:55 +0000 (14:27 -0400)] 
Fix startOf/endOf/utcOffset and getters/setters for immutable API

7 years agoImplement Moment, Duration, and Locale prototypes with immutable API
Lucas Sanders [Sun, 30 Oct 2016 18:27:54 +0000 (14:27 -0400)] 
Implement Moment, Duration, and Locale prototypes with immutable API

This is done by wrapping all mutation methods with a function that clones
a new object before the mutation algorithm.

7 years agoBuild 2.18.1 2.18.1
Iskren Chernev [Tue, 21 Mar 2017 22:54:37 +0000 (00:54 +0200)] 
Build 2.18.1

7 years agoBump version to 2.18.1
Iskren Chernev [Tue, 21 Mar 2017 22:52:47 +0000 (00:52 +0200)] 
Bump version to 2.18.1

7 years agoUpdate changelog for 2.18.1
Iskren Chernev [Tue, 21 Mar 2017 22:52:20 +0000 (00:52 +0200)] 
Update changelog for 2.18.1

7 years agoMerge pull request #3853 from shmendo:develop
Iskren Chernev [Tue, 21 Mar 2017 22:46:19 +0000 (00:46 +0200)] 
Merge pull request #3853 from shmendo:develop

[misc] Fix invalid whitespace character causing inability to parse moment.js

7 years agoFixed issue with a whitespace character which caused an error in the browser during... 3853/head
Benjamin Walters [Tue, 21 Mar 2017 02:47:56 +0000 (19:47 -0700)] 
Fixed issue with a whitespace character which caused an error in the browser during parsing in Chrome.

7 years agoBuild 2.18.0 2.18.0
Iskren Chernev [Sat, 18 Mar 2017 21:09:29 +0000 (23:09 +0200)] 
Build 2.18.0

7 years agoBump version to 2.18.0
Iskren Chernev [Sat, 18 Mar 2017 21:03:17 +0000 (23:03 +0200)] 
Bump version to 2.18.0

7 years agoUpdate changelog for 2.18.0
Iskren Chernev [Sat, 18 Mar 2017 21:02:45 +0000 (23:02 +0200)] 
Update changelog for 2.18.0

7 years agoRevert "Merge pull request #3666 from josephjaniga:calendar-overload-formats"
Iskren Chernev [Sat, 18 Mar 2017 20:25:41 +0000 (22:25 +0200)] 
Revert "Merge pull request #3666 from josephjaniga:calendar-overload-formats"

This reverts commit a2df2a309ae75d5a2d5ee44666261d8c8a92f804, reversing
changes made to a52400ec443c942a71584f3bdafddd2847423862.

7 years agoRevert "Merge pull request #3786 from netguru:develop"
Iskren Chernev [Sat, 18 Mar 2017 20:24:47 +0000 (22:24 +0200)] 
Revert "Merge pull request #3786 from netguru:develop"

This reverts commit b1862fd5041e7bbdaf6f62b159e0944ab21e3dc0, reversing
changes made to a3ab61646cf3c4e5a41a75d0843b26755ca4498a.

7 years agoMerge pull request #3847 from moment:fix/3631
Iskren Chernev [Sat, 18 Mar 2017 19:35:43 +0000 (21:35 +0200)] 
Merge pull request #3847 from moment:fix/3631

[misc] Fix custom locale bundler, fixes #3631

7 years agoFix lint errors
Kunal Marwaha [Sat, 18 Mar 2017 06:31:46 +0000 (02:31 -0400)] 
Fix lint errors

7 years agoFilter out en from locales
Kunal Marwaha [Sat, 18 Mar 2017 06:21:31 +0000 (02:21 -0400)] 
Filter out en from locales

7 years agoMerge pull request #3840 from marwahaha:fix/windows-dev
Iskren Chernev [Sat, 18 Mar 2017 19:33:07 +0000 (21:33 +0200)] 
Merge pull request #3840 from marwahaha:fix/windows-dev

[misc] Use npm to run typescript tests, fixes #3826

7 years agoUse npm to run typescript tests
Kunal Marwaha [Wed, 15 Mar 2017 23:19:38 +0000 (19:19 -0400)] 
Use npm to run typescript tests

7 years agoMerge pull request #3828 from moment/meteor-readme-simplification
Isaac Cambron [Fri, 17 Mar 2017 16:14:40 +0000 (12:14 -0400)] 
Merge pull request #3828 from moment/meteor-readme-simplification

Simplify Meteor Readme

7 years agoSimplify Meteor Readme meteor-readme-simplification 3828/head
Isaac Cambron [Mon, 13 Mar 2017 07:01:21 +0000 (03:01 -0400)] 
Simplify Meteor Readme

The Meteor readme needn't be an ad for Meteor.

7 years agoMerge pull request #3793 from fbonzon:ordinal-parse
Iskren Chernev [Sun, 12 Mar 2017 00:41:53 +0000 (02:41 +0200)] 
Merge pull request #3793 from fbonzon:ordinal-parse

[misc] Change ordinalParse to dayOfMonthOrdinalParse in locales

7 years agoFixup new locales
Iskren Chernev [Sun, 12 Mar 2017 00:41:05 +0000 (02:41 +0200)] 
Fixup new locales

7 years agoAdd fallback for lenient parsing
François B [Mon, 6 Mar 2017 10:51:43 +0000 (11:51 +0100)] 
Add fallback for lenient parsing

7 years agoAdd fallback for old name ordinalParse
François B [Mon, 6 Mar 2017 01:37:53 +0000 (02:37 +0100)] 
Add fallback for old name ordinalParse

7 years agoSync with develop branch
François B [Fri, 3 Mar 2017 15:42:11 +0000 (16:42 +0100)] 
Sync with develop branch

7 years agoRename ordinalParse → dayOfMonthOrdinalParse
François B [Mon, 27 Feb 2017 08:07:21 +0000 (09:07 +0100)] 
Rename ordinalParse → dayOfMonthOrdinalParse

"ordinalParse" was poorly named, because, contrary to "ordinal" short
which is responsible to display ordinal for many units, the former
cares only about day of month parsing.

7 years agoMerge pull request #3819 from sschueller:develop
Iskren Chernev [Sun, 12 Mar 2017 00:29:03 +0000 (02:29 +0200)] 
Merge pull request #3819 from sschueller:develop

[new locale] de_ch: German (Switzerland) locale

7 years agoUpdate de-ch header
Iskren Chernev [Sun, 12 Mar 2017 00:28:06 +0000 (02:28 +0200)] 
Update de-ch header

7 years agoAdded de_CH (German Switzerland)
Stefan Schüller [Thu, 9 Mar 2017 10:36:51 +0000 (11:36 +0100)] 
Added de_CH (German Switzerland)

7 years agoAdded de_CH (German Switzerland)
Stefan Schüller [Thu, 9 Mar 2017 10:31:02 +0000 (11:31 +0100)] 
Added de_CH (German Switzerland)

7 years agoAdded de_CH (German Switzerland) Test
Stefan Schüller [Thu, 9 Mar 2017 09:57:12 +0000 (10:57 +0100)] 
Added de_CH (German Switzerland) Test

7 years agoAdded de_CH (German Switzerland) according to Weisungen der Bundeskanzlei
Stefan Schüller [Tue, 7 Mar 2017 08:02:08 +0000 (09:02 +0100)] 
Added de_CH (German Switzerland) according to Weisungen der Bundeskanzlei

7 years agoMerge pull request #3800 from lashad:patch-2
Iskren Chernev [Sun, 12 Mar 2017 00:21:19 +0000 (02:21 +0200)] 
Merge pull request #3800 from lashad:patch-2

[locale] ka: Improved past relative time

7 years agochange the tests to meet grammar issue in ka.js file.
Lasha Dolidze [Thu, 2 Mar 2017 10:36:43 +0000 (14:36 +0400)] 
change the tests to meet grammar issue in ka.js file.

7 years agoUpdate ka.js
Lasha Dolidze [Thu, 2 Mar 2017 08:37:18 +0000 (12:37 +0400)] 
Update ka.js

Hello,

Small grammar error fix.

7 years agoMerge pull request #3790 from fbonzon:fr-ordinal
Iskren Chernev [Sun, 12 Mar 2017 00:17:53 +0000 (02:17 +0200)] 
Merge pull request #3790 from fbonzon:fr-ordinal

[locale] fr-*: Better ordinal parsing and ` in place of '

7 years agoAlign code formatting of fr-ch, fr-ca and fr locales
François B [Mon, 6 Mar 2017 11:22:55 +0000 (12:22 +0100)] 
Align code formatting of fr-ch, fr-ca and fr locales

Now a diff between any 2 files of fr-ch, fr-ca and fr locales shows
actual differences in time formatting rules, not differences in how the
code is written.

7 years agoHonor grammatical gender for ordinals in French locale
François B [Mon, 6 Mar 2017 11:17:23 +0000 (12:17 +0100)] 
Honor grammatical gender for ordinals in French locale

Other change: French uses curly quote ( ’ ) not straight quote ( ' )

7 years agoMerge pull request #3708 from TracyGJG:develop
Iskren Chernev [Sun, 12 Mar 2017 00:13:24 +0000 (02:13 +0200)] 
Merge pull request #3708 from TracyGJG:develop

[feature] RFC2822 parsing

7 years agoFurther correction
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:20:30 +0000 (22:20 +0000)] 
Further correction

7 years agoZulu conversion correction.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:14:13 +0000 (22:14 +0000)] 
Zulu conversion correction.

7 years agoTestcases revised to track down issue.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:09:06 +0000 (22:09 +0000)] 
Testcases revised to track down issue.

7 years agoCorrection to military case insensitive time zone
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:03:15 +0000 (22:03 +0000)] 
Correction to military case insensitive time zone

7 years agoEnhanced positive test cases to include a variety of time zone/offsets.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 21:47:06 +0000 (21:47 +0000)] 
Enhanced positive test cases to include a variety of time zone/offsets.
Made the military time zone case insensitive in line with specification.

7 years agoChanged parsingFlags().rfc2822 from a function call
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:30:06 +0000 (20:30 +0000)] 
Changed parsingFlags().rfc2822 from a function call

7 years agoChecking rfc2822 parsingFlags
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:19:20 +0000 (20:19 +0000)] 
Checking rfc2822 parsingFlags

7 years agoMissing semi-colons added.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:12:03 +0000 (20:12 +0000)] 
Missing semi-colons added.

7 years agoPositive and Negative RFC2822 testCases streamlined.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:09:39 +0000 (20:09 +0000)] 
Positive and Negative RFC2822 testCases streamlined.

7 years agorfc2822 ParsingFlags moved to the bottom of the parsing code.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 19:52:39 +0000 (19:52 +0000)] 
rfc2822 ParsingFlags moved to the bottom of the parsing code.

7 years agoUpdate from-string.js
TGJ Gilmore [Mon, 6 Mar 2017 12:55:50 +0000 (12:55 +0000)] 
Update from-string.js

Issue with configFromString()

7 years agoUpdate from-string.js
TGJ Gilmore [Mon, 6 Mar 2017 12:45:49 +0000 (12:45 +0000)] 
Update from-string.js

Trailing white-space removed

7 years agoUpdate from-string.js
TGJ Gilmore [Mon, 6 Mar 2017 12:42:17 +0000 (12:42 +0000)] 
Update from-string.js

Semi-colons

7 years agoUpdate from-string.js
TGJ Gilmore [Mon, 6 Mar 2017 12:39:14 +0000 (12:39 +0000)] 
Update from-string.js

configFromString() made linear, Military variable made lowercase and RegExp comment replaced with tools.ietf reference.

7 years agoUpdate parsing-flags.js
TGJ Gilmore [Mon, 6 Mar 2017 12:17:21 +0000 (12:17 +0000)] 
Update parsing-flags.js

Spacing of the rfc2822 parse flag syntax aligned.

7 years agoUpdate relative_time.js
TGJ Gilmore [Mon, 6 Mar 2017 12:15:50 +0000 (12:15 +0000)] 
Update relative_time.js

Test case re-enabled.

7 years agoRevert "Further style correction."
TGJG-XPS\TracyG [Tue, 14 Feb 2017 18:03:33 +0000 (18:03 +0000)] 
Revert "Further style correction."

This reverts commit a9cdeeff05c301f34570d79453e3d4bc55fa0455.

7 years agoFurther style correction.
TGJG-XPS\TracyG [Tue, 14 Feb 2017 17:48:47 +0000 (17:48 +0000)] 
Further style correction.

7 years agoStyle correction.
TGJG-XPS\TracyG [Tue, 14 Feb 2017 17:44:31 +0000 (17:44 +0000)] 
Style correction.

7 years agoParsing flag weekdayMismatch added and applied to the RFC parse validation.
TGJG-XPS\TracyG [Tue, 14 Feb 2017 17:38:53 +0000 (17:38 +0000)] 
Parsing flag weekdayMismatch added and applied to the RFC parse validation.

7 years agoRemoved the breaking comments in the test case.
TGJG-XPS\TracyG [Mon, 13 Feb 2017 21:13:26 +0000 (21:13 +0000)] 
Removed the breaking comments in the test case.

7 years agoCorrection: Style of comment!
TGJG-XPS\TracyG [Mon, 13 Feb 2017 21:09:54 +0000 (21:09 +0000)] 
Correction: Style of comment!

7 years agoRetest rfc2822
TGJG-XPS\TracyG [Mon, 13 Feb 2017 21:04:10 +0000 (21:04 +0000)] 
Retest rfc2822

7 years agoTrial day-of-week validation using a vanilla Date object.
TGJG-XPS\TracyG [Mon, 13 Feb 2017 20:19:41 +0000 (20:19 +0000)] 
Trial day-of-week validation using a vanilla Date object.

7 years agoRemoved import of moment library.
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:32:36 +0000 (13:32 +0000)] 
Removed import of moment library.

7 years agoRevoked weekday check and test
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:25:46 +0000 (13:25 +0000)] 
Revoked weekday check and test

7 years agoStyle correction
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:22:28 +0000 (13:22 +0000)] 
Style correction

7 years agoFurther trial
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:15:12 +0000 (13:15 +0000)] 
Further trial

7 years agoTrial validation of weekday
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:08:49 +0000 (13:08 +0000)] 
Trial validation of weekday

7 years agoRemoved rfc2822 prefix from internal variables.
TGJG-XPS\TracyG [Sat, 4 Feb 2017 12:33:22 +0000 (12:33 +0000)] 
Removed rfc2822 prefix from internal variables.

7 years agoTest case 'RFC2822 datetime with CFWSs' revised to replace the template literal with...
TGJG-XPS\TracyG [Sun, 8 Jan 2017 08:10:57 +0000 (08:10 +0000)] 
Test case 'RFC2822 datetime with CFWSs' revised to replace the template literal with a complex string.

7 years agoRevised RFC2822 regular expressions
TGJG-XPS\TracyG [Thu, 10 Nov 2016 16:33:19 +0000 (16:33 +0000)] 
Revised RFC2822 regular expressions

7 years agoNear-candidate solution
TGJG-XPS\TracyG [Mon, 7 Nov 2016 19:16:18 +0000 (19:16 +0000)] 
Near-candidate solution

7 years agoTimezone/offset processing added.
TGJG-XPS\TracyG [Sun, 6 Nov 2016 21:35:10 +0000 (21:35 +0000)] 
Timezone/offset processing added.

7 years agoWork in Progress - Do Not Merge
TGJG-XPS\TracyG [Fri, 4 Nov 2016 22:29:24 +0000 (22:29 +0000)] 
Work in Progress - Do Not Merge

7 years agoMerge pull request #3671 from marcoil:locale_ca_add_de
Iskren Chernev [Sun, 12 Mar 2017 00:09:19 +0000 (02:09 +0200)] 
Merge pull request #3671 from marcoil:locale_ca_add_de

[locale] ca: Improved months and datetime formats

7 years agoImproved Catalan localization
Marc Ordinas i Llopis [Wed, 21 Dec 2016 13:54:22 +0000 (14:54 +0100)] 
Improved Catalan localization

* Changed months abbreviations to the recommended ones
  (https://www.upf.edu/leupf/12ap1/111_3.htm).
* Added articles and "de/d'" to long-form dates.
* Added commas to short-form dates.

7 years agoMerge pull request #3814 from dimkinv:develop
Iskren Chernev [Sat, 11 Mar 2017 23:56:05 +0000 (01:56 +0200)] 
Merge pull request #3814 from dimkinv:develop

[misc] typescript: Moment interface now extends Object to inherit toString()

7 years agoMoment interface now extends Object to inherit toString() function
Danny Vernovsky [Tue, 7 Mar 2017 11:57:47 +0000 (13:57 +0200)] 
Moment interface now extends Object to inherit toString() function

7 years agoMerge pull request #3812 from webbiesdk:ts-fixes
Iskren Chernev [Sat, 11 Mar 2017 23:43:20 +0000 (01:43 +0200)] 
Merge pull request #3812 from webbiesdk:ts-fixes

[misc] typescript: Minor fixes