]>
git.ipfire.org Git - thirdparty/moment.git/log
Iskren Chernev [Thu, 10 Aug 2017 22:42:01 +0000 (01:42 +0300)]
Sync node build versions with 2.x branch
Iskren Chernev [Thu, 10 Aug 2017 22:30:20 +0000 (01:30 +0300)]
Export timezones, fix tests
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
Iskren Chernev [Wed, 9 Aug 2017 12:45:44 +0000 (15:45 +0300)]
Fix some transpilation issues
Iskren Chernev [Sat, 5 Aug 2017 19:20:47 +0000 (22:20 +0300)]
Remove console.log
Iskren Chernev [Mon, 10 Jul 2017 00:37:53 +0000 (03:37 +0300)]
WIP 3.x, builts, above 50% tests pass :)
Iskren Chernev [Sat, 17 Jun 2017 01:18:50 +0000 (04:18 +0300)]
WIP new zone API, zone constructors, no-touch after construction
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.
Lucas Sanders [Tue, 21 Mar 2017 04:58:47 +0000 (00:58 -0400)]
Add more mutability tests
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.
Lucas Sanders [Tue, 21 Mar 2017 04:49:53 +0000 (00:49 -0400)]
Add a test for Duration.abs() and make it immutable
Lucas Sanders [Tue, 21 Mar 2017 04:22:07 +0000 (00:22 -0400)]
Finish removing wrap() in favor of immutable internals
Lucas Sanders [Sun, 19 Mar 2017 04:12:50 +0000 (00:12 -0400)]
Immutable internal implementations of Moment#locale and Duration#locale
Lucas Sanders [Sun, 19 Mar 2017 03:58:05 +0000 (23:58 -0400)]
Immutable Locale#set
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).
Lucas Sanders [Sun, 30 Oct 2016 18:27:58 +0000 (14:27 -0400)]
Fix code style
Lucas Sanders [Sun, 30 Oct 2016 18:27:57 +0000 (14:27 -0400)]
Test fixes for immutable API
Lucas Sanders [Sun, 30 Oct 2016 18:27:57 +0000 (14:27 -0400)]
Construct immutable Durations
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).
Lucas Sanders [Sun, 30 Oct 2016 18:27:56 +0000 (14:27 -0400)]
Fix hooks.updateOffset to return an immutable Moment
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.
Lucas Sanders [Sun, 30 Oct 2016 18:27:55 +0000 (14:27 -0400)]
Never call `moment#clone` in our implementation
Lucas Sanders [Sun, 30 Oct 2016 18:27:55 +0000 (14:27 -0400)]
Fix startOf/endOf/utcOffset and getters/setters for 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.
Iskren Chernev [Tue, 21 Mar 2017 22:54:37 +0000 (00:54 +0200)]
Build 2.18.1
Iskren Chernev [Tue, 21 Mar 2017 22:52:47 +0000 (00:52 +0200)]
Bump version to 2.18.1
Iskren Chernev [Tue, 21 Mar 2017 22:52:20 +0000 (00:52 +0200)]
Update changelog for 2.18.1
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
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.
Iskren Chernev [Sat, 18 Mar 2017 21:09:29 +0000 (23:09 +0200)]
Build 2.18.0
Iskren Chernev [Sat, 18 Mar 2017 21:03:17 +0000 (23:03 +0200)]
Bump version to 2.18.0
Iskren Chernev [Sat, 18 Mar 2017 21:02:45 +0000 (23:02 +0200)]
Update changelog for 2.18.0
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 .
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 .
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
Kunal Marwaha [Sat, 18 Mar 2017 06:31:46 +0000 (02:31 -0400)]
Fix lint errors
Kunal Marwaha [Sat, 18 Mar 2017 06:21:31 +0000 (02:21 -0400)]
Filter out en from locales
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
Kunal Marwaha [Wed, 15 Mar 2017 23:19:38 +0000 (19:19 -0400)]
Use npm to run typescript tests
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
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.
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
Iskren Chernev [Sun, 12 Mar 2017 00:41:05 +0000 (02:41 +0200)]
Fixup new locales
François B [Mon, 6 Mar 2017 10:51:43 +0000 (11:51 +0100)]
Add fallback for lenient parsing
François B [Mon, 6 Mar 2017 01:37:53 +0000 (02:37 +0100)]
Add fallback for old name ordinalParse
François B [Fri, 3 Mar 2017 15:42:11 +0000 (16:42 +0100)]
Sync with develop branch
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.
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
Iskren Chernev [Sun, 12 Mar 2017 00:28:06 +0000 (02:28 +0200)]
Update de-ch header
Stefan Schüller [Thu, 9 Mar 2017 10:36:51 +0000 (11:36 +0100)]
Added de_CH (German Switzerland)
Stefan Schüller [Thu, 9 Mar 2017 10:31:02 +0000 (11:31 +0100)]
Added de_CH (German Switzerland)
Stefan Schüller [Thu, 9 Mar 2017 09:57:12 +0000 (10:57 +0100)]
Added de_CH (German Switzerland) Test
Stefan Schüller [Tue, 7 Mar 2017 08:02:08 +0000 (09:02 +0100)]
Added de_CH (German Switzerland) according to Weisungen der Bundeskanzlei
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
Lasha Dolidze [Thu, 2 Mar 2017 10:36:43 +0000 (14:36 +0400)]
change the tests to meet grammar issue in ka.js file.
Lasha Dolidze [Thu, 2 Mar 2017 08:37:18 +0000 (12:37 +0400)]
Update ka.js
Hello,
Small grammar error fix.
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 '
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.
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 ( ' )
Iskren Chernev [Sun, 12 Mar 2017 00:13:24 +0000 (02:13 +0200)]
Merge pull request #3708 from TracyGJG:develop
[feature] RFC2822 parsing
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:20:30 +0000 (22:20 +0000)]
Further correction
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:14:13 +0000 (22:14 +0000)]
Zulu conversion correction.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:09:06 +0000 (22:09 +0000)]
Testcases revised to track down issue.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 22:03:15 +0000 (22:03 +0000)]
Correction to military case insensitive time zone
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.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:30:06 +0000 (20:30 +0000)]
Changed parsingFlags().rfc2822 from a function call
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:19:20 +0000 (20:19 +0000)]
Checking rfc2822 parsingFlags
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:12:03 +0000 (20:12 +0000)]
Missing semi-colons added.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 20:09:39 +0000 (20:09 +0000)]
Positive and Negative RFC2822 testCases streamlined.
TGJG-XPS\TracyG [Mon, 6 Mar 2017 19:52:39 +0000 (19:52 +0000)]
rfc2822 ParsingFlags moved to the bottom of the parsing code.
TGJ Gilmore [Mon, 6 Mar 2017 12:55:50 +0000 (12:55 +0000)]
Update from-string.js
Issue with configFromString()
TGJ Gilmore [Mon, 6 Mar 2017 12:45:49 +0000 (12:45 +0000)]
Update from-string.js
Trailing white-space removed
TGJ Gilmore [Mon, 6 Mar 2017 12:42:17 +0000 (12:42 +0000)]
Update from-string.js
Semi-colons
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.
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.
TGJ Gilmore [Mon, 6 Mar 2017 12:15:50 +0000 (12:15 +0000)]
Update relative_time.js
Test case re-enabled.
TGJG-XPS\TracyG [Tue, 14 Feb 2017 18:03:33 +0000 (18:03 +0000)]
Revert "Further style correction."
This reverts commit
a9cdeeff05c301f34570d79453e3d4bc55fa0455 .
TGJG-XPS\TracyG [Tue, 14 Feb 2017 17:48:47 +0000 (17:48 +0000)]
Further style correction.
TGJG-XPS\TracyG [Tue, 14 Feb 2017 17:44:31 +0000 (17:44 +0000)]
Style correction.
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.
TGJG-XPS\TracyG [Mon, 13 Feb 2017 21:13:26 +0000 (21:13 +0000)]
Removed the breaking comments in the test case.
TGJG-XPS\TracyG [Mon, 13 Feb 2017 21:09:54 +0000 (21:09 +0000)]
Correction: Style of comment!
TGJG-XPS\TracyG [Mon, 13 Feb 2017 21:04:10 +0000 (21:04 +0000)]
Retest rfc2822
TGJG-XPS\TracyG [Mon, 13 Feb 2017 20:19:41 +0000 (20:19 +0000)]
Trial day-of-week validation using a vanilla Date object.
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:32:36 +0000 (13:32 +0000)]
Removed import of moment library.
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:25:46 +0000 (13:25 +0000)]
Revoked weekday check and test
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:22:28 +0000 (13:22 +0000)]
Style correction
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:15:12 +0000 (13:15 +0000)]
Further trial
TGJG-XPS\TracyG [Sat, 4 Feb 2017 13:08:49 +0000 (13:08 +0000)]
Trial validation of weekday
TGJG-XPS\TracyG [Sat, 4 Feb 2017 12:33:22 +0000 (12:33 +0000)]
Removed rfc2822 prefix from internal variables.
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.
TGJG-XPS\TracyG [Thu, 10 Nov 2016 16:33:19 +0000 (16:33 +0000)]
Revised RFC2822 regular expressions
TGJG-XPS\TracyG [Mon, 7 Nov 2016 19:16:18 +0000 (19:16 +0000)]
Near-candidate solution
TGJG-XPS\TracyG [Sun, 6 Nov 2016 21:35:10 +0000 (21:35 +0000)]
Timezone/offset processing added.
TGJG-XPS\TracyG [Fri, 4 Nov 2016 22:29:24 +0000 (22:29 +0000)]
Work in Progress - Do Not Merge
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
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.
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()
Danny Vernovsky [Tue, 7 Mar 2017 11:57:47 +0000 (13:57 +0200)]
Moment interface now extends Object to inherit toString() function
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