]>
git.ipfire.org Git - thirdparty/moment.git/log
Iskren Chernev [Tue, 8 Nov 2016 05:08:49 +0000 (21:08 -0800)]
Fix parseZone, redo #3504
Iskren Chernev [Tue, 8 Nov 2016 05:04:46 +0000 (21:04 -0800)]
Use Function constructor in place of eval for rollup's satisfaction
Iskren Chernev [Mon, 7 Nov 2016 09:58:17 +0000 (01:58 -0800)]
Merge pull request #3571 from captbaritone:is-number
[misc] Introduce isNumber function
Jordan Eldredge [Sun, 6 Nov 2016 04:07:49 +0000 (21:07 -0700)]
Introduce isNumber function
In #3559 @ichernev stated that he would prefer using an `isNumber`
utility function over a naive type check.
This pull request actualizes that preference.
Our new `isNumber` function is slightly more robust than a simple type
check. For example, it will also correctly identify wrapped number
primitives.
https://javascriptweblog.wordpress.com/2010/09/27/the-secret-life-of-javascript-primitives/
Iskren Chernev [Mon, 7 Nov 2016 09:56:26 +0000 (01:56 -0800)]
Merge pull request #3570 from captbaritone:bool-check-develop
[misc] Avoid boolean type check
Jordan Eldredge [Sun, 6 Nov 2016 03:29:18 +0000 (20:29 -0700)]
Avoid boolean type check
In #3559 @ichernev stated that he would prefer two strict comparisons
(to `true` and `false`) over checking the type.
This pull request actualizes that preference.
Iskren Chernev [Mon, 7 Nov 2016 00:53:49 +0000 (16:53 -0800)]
Merge pull request #3366 from eximius313:patch-3
[locale] pl: Update weekday short strings
Iskren Chernev [Mon, 7 Nov 2016 00:52:54 +0000 (16:52 -0800)]
Change weekdays short in pl
Kamil [Fri, 12 Aug 2016 09:17:53 +0000 (11:17 +0200)]
Update tests
Iskren Chernev [Mon, 7 Nov 2016 00:38:27 +0000 (16:38 -0800)]
Merge pull request #3342 from catalpainternational:develop
[new locale] tet: Tetun Dili (East Timor) locale
Iskren Chernev [Mon, 7 Nov 2016 00:37:34 +0000 (16:37 -0800)]
Fix tdt -> tet in locale comment
Joshua Brooks [Mon, 15 Aug 2016 07:46:46 +0000 (16:46 +0900)]
Add locale and test for Tetum (tet) locale
Iskren Chernev [Sun, 6 Nov 2016 10:11:38 +0000 (02:11 -0800)]
Merge pull request #3231 from glenjamin:inspect
[misc] Add moment.inspect() for friendly console output
Glen Mailer [Sat, 11 Jun 2016 17:40:27 +0000 (18:40 +0100)]
Add moment.inspect() for friendly console output
This gets used automatically by node's util.inspect function
and a number of similar libraries. This also means that it
will be used by the NodeJS REPL
Iskren Chernev [Sun, 6 Nov 2016 10:09:34 +0000 (02:09 -0800)]
Merge pull request #3393 from noureddineme:develop
[new locale] ar-dz: Arabic (Algeria) locale
Noureddine LOUAHEDJ [Thu, 25 Aug 2016 07:34:27 +0000 (08:34 +0100)]
Adding locale for Algeria
Iskren Chernev [Sun, 6 Nov 2016 10:07:45 +0000 (02:07 -0800)]
Merge pull request #3416 from kevinzwhuang:migrate-nl-locales
[new locale] nl-be: Dutch (Belgium) locale
Kevin Huang [Wed, 14 Sep 2016 16:59:11 +0000 (09:59 -0700)]
Cleanup nl-nl in favor of nl
Kevin Huang [Mon, 5 Sep 2016 07:40:50 +0000 (00:40 -0700)]
Restore ancestor nl locale for nl-nl and nl-be
Kevin Huang [Fri, 2 Sep 2016 07:52:53 +0000 (00:52 -0700)]
Create nl-be (Belgium) locale & redefine nl (Netherlands) to nl-nl
Iskren Chernev [Sun, 6 Nov 2016 10:05:10 +0000 (02:05 -0800)]
Merge pull request #3429 from judikdavid:update-hu-locale
[locale] hu: Change week year start to ISO
David Judik [Mon, 12 Sep 2016 12:01:33 +0000 (14:01 +0200)]
Update hu.js locale
Change the first day of the year and related tests to
match the right Hungarian week of the year calculation.
Iskren Chernev [Sun, 6 Nov 2016 10:03:39 +0000 (02:03 -0800)]
Merge pull request #3448 from tomalec:patch-1
[misc] Add ISSUE_TEMPLATE.md and typing-tests to bower ignores
Tomek Wytrębowicz [Fri, 16 Sep 2016 17:02:01 +0000 (19:02 +0200)]
Add ISSUE_TEMPLATE.md and typing-tests to bower ignores
Iskren Chernev [Sun, 6 Nov 2016 10:01:22 +0000 (02:01 -0800)]
Merge pull request #3490 from ichernev:fix-ts
[misc] typescript: Fix all outstanding TypeScript issues
Iskren Chernev [Sun, 6 Nov 2016 09:59:14 +0000 (01:59 -0800)]
Remove TODO
Iskren Chernev [Sun, 6 Nov 2016 09:55:07 +0000 (01:55 -0800)]
Remove most commented code and add proper deprecation
Iskren Chernev [Sun, 6 Nov 2016 09:44:20 +0000 (01:44 -0800)]
Fix date shortcut
Iskren Chernev [Thu, 20 Oct 2016 06:39:40 +0000 (23:39 -0700)]
Finish locale refactor, todos and tests.
Iskren Chernev [Mon, 10 Oct 2016 09:02:35 +0000 (02:02 -0700)]
Second batch, finished moment and duration protos
Iskren Chernev [Sun, 9 Oct 2016 09:53:35 +0000 (02:53 -0700)]
First batch fixing #3419: approx until moment.fn.lang
Iskren Chernev [Sun, 6 Nov 2016 09:40:02 +0000 (01:40 -0800)]
Merge pull request #3498 from RIanDeLaCruz:develop
[locale] tl-ph: Update calendar strings
Ian De La Cruz [Thu, 13 Oct 2016 09:35:48 +0000 (17:35 +0800)]
Fix sameDay translation
Ian De La Cruz [Sat, 13 Aug 2016 14:49:19 +0000 (22:49 +0800)]
Update tl-ph test
Ian De La Cruz [Sat, 13 Aug 2016 14:43:20 +0000 (22:43 +0800)]
Update tl-ph.js
Iskren Chernev [Sun, 6 Nov 2016 09:37:49 +0000 (01:37 -0800)]
Merge pull request #3502 from markstos:fix-3500-iso-regex-problem
[bugfix] Fix #3500: ISO 8601 parsing should match the full string, not the beginning of the string.
Mark Stosberg [Wed, 19 Oct 2016 13:42:23 +0000 (09:42 -0400)]
Fix invalid ISO format dates in the test suite.
Fixing the strictness of ISO date parsing exposed this invalid ISO format dates
which included a time zone offset without including a time.
By appending a time of "00:00:00" to the date strings they became ISO-valid again
without changing the meaning of the test.
Mark Stosberg [Thu, 13 Oct 2016 21:04:54 +0000 (17:04 -0400)]
Fix #3500: ISO 8601 parsing should match the full string, not the beginning of the string.
Because of the nature of the how related tests are put together, the newly added test
*passes* even before the fix is applied.
This happens because the "non-ISO" tests are tested against the same ISO which is being fixed.
Because the broken regex is also used in the test, it allowed the non ISO date to be validated
before the fix.
Iskren Chernev [Sun, 6 Nov 2016 09:36:03 +0000 (01:36 -0800)]
Merge pull request #3515 from markstos:hotfix-issue-2300
[feature] Fix #2300: Default to current week.
Brian Schemp [Tue, 30 Aug 2016 04:09:52 +0000 (18:09 -1000)]
Fix #2300: Default to current week.
This update to Brian Schemp's patch calculates the current week once
instead of twice for a small performance boost.
Iskren Chernev [Sun, 6 Nov 2016 09:32:48 +0000 (01:32 -0800)]
Merge pull request #3523 from icambron:parseZone
[bugfix] parseZone should handle UTC
Isaac Cambron [Sun, 23 Oct 2016 05:09:15 +0000 (01:09 -0400)]
parseZone should handle UTC
Iskren Chernev [Sun, 6 Nov 2016 09:31:10 +0000 (01:31 -0800)]
Merge pull request #3530 from johncrisostomo:develop
[feature] Check whether input is date before checking if format is array
John Crisostomo [Sat, 29 Oct 2016 09:18:16 +0000 (17:18 +0800)]
fixes issue #3529
Iskren Chernev [Sun, 6 Nov 2016 09:29:11 +0000 (01:29 -0800)]
Merge pull request #3573 from ichernev:rm-babel
[build] Remove babel from rollup+babel combo to speed up build
Iskren Chernev [Sun, 6 Nov 2016 09:24:58 +0000 (01:24 -0800)]
Remove babel from rollup+babel combo to speed up build (and we're not using it anyway)
Iskren Chernev [Sun, 6 Nov 2016 09:13:55 +0000 (01:13 -0800)]
Merge pull request #3538 from meteor:fix-issue-3531
[pkg] Publish Meteor package from meteor directory to fix #3531
Ben Newman [Thu, 27 Oct 2016 18:48:54 +0000 (11:48 -0700)]
Publish Meteor package from meteor directory to fix #3531.
Iskren Chernev [Sun, 6 Nov 2016 09:00:10 +0000 (01:00 -0800)]
Merge pull request #3543 from ichernev:ar-sa-dow
[locale] ar-sa: Change start of week from Saturday to Sunday
Iskren Chernev [Sat, 29 Oct 2016 01:57:03 +0000 (18:57 -0700)]
[ar-sa] Change start of week from Saturday to Sunday
Iskren Chernev [Sun, 6 Nov 2016 08:55:30 +0000 (01:55 -0700)]
Merge pull request #3546 from ichernev:fix-locale-race
[bugfix] Implement lazy-loading of child locales with missing prents
Iskren Chernev [Sat, 29 Oct 2016 04:57:14 +0000 (21:57 -0700)]
Implement lazy-loading of child locales with missing prents
Iskren Chernev [Sun, 6 Nov 2016 08:48:52 +0000 (01:48 -0700)]
Merge pull request #3545 from ichernev:babel-redo
[build] Use rollup and babel instead of esperanto for transpiling
Iskren Chernev [Wed, 2 Nov 2016 05:32:49 +0000 (22:32 -0700)]
Use ES5 for transpile script, too much meta
Iskren Chernev [Tue, 1 Nov 2016 13:58:49 +0000 (13:58 +0000)]
Random thing failing around DST
Iskren Chernev [Tue, 1 Nov 2016 13:58:32 +0000 (13:58 +0000)]
jshint satisfaction
Iskren Chernev [Tue, 1 Nov 2016 12:54:55 +0000 (12:54 +0000)]
Add rollup and rollup-plugin-babel to package.json
Iskren Chernev [Sat, 29 Oct 2016 15:06:36 +0000 (16:06 +0100)]
Fix moment-with-locales and customization and add locale parent checks
Iskren Chernev [Sat, 29 Oct 2016 14:33:51 +0000 (15:33 +0100)]
Fix transpile-row and make linter happy
Iskren Chernev [Sat, 29 Oct 2016 07:10:36 +0000 (00:10 -0700)]
Apply custom header to generated files
Iskren Chernev [Sat, 29 Oct 2016 07:09:03 +0000 (00:09 -0700)]
Remove unused templates
Iskren Chernev [Sat, 29 Oct 2016 06:52:05 +0000 (23:52 -0700)]
Initial working version
Iskren Chernev [Sun, 6 Nov 2016 08:44:53 +0000 (01:44 -0700)]
Merge pull request #3567 from ichernev:drop-0.10-travis
[build] Drop 0.10 environment from .travis.yml
Iskren Chernev [Sat, 5 Nov 2016 04:36:13 +0000 (21:36 -0700)]
Drop 0.10 environment from .travis.yml
Iskren Chernev [Sun, 6 Nov 2016 08:44:13 +0000 (01:44 -0700)]
Fix buggy test around DST
Maggie Pint [Tue, 1 Nov 2016 03:10:40 +0000 (20:10 -0700)]
license typo
Maggie Pint [Tue, 1 Nov 2016 02:34:56 +0000 (19:34 -0700)]
update contributing and license for JS Foundation
Matt Johnson [Mon, 24 Oct 2016 17:35:00 +0000 (10:35 -0700)]
Update CHANGELOG.md
Iskren Chernev [Mon, 24 Oct 2016 06:42:14 +0000 (23:42 -0700)]
Build 2.15.2
Iskren Chernev [Mon, 24 Oct 2016 06:40:15 +0000 (23:40 -0700)]
Bump version to 2.15.2
Iskren Chernev [Mon, 24 Oct 2016 06:39:35 +0000 (23:39 -0700)]
Update changelog for 2.15.2
Iskren Chernev [Mon, 24 Oct 2016 06:33:58 +0000 (23:33 -0700)]
Merge pull request #3466 from tgfjt:fix/japanese-javanese
[misc] Fix typo of Javanese
tgfjt [Sun, 25 Sep 2016 11:23:09 +0000 (20:23 +0900)]
Fix typo of Javanese
Jawa language is Javanese not Japanese.
Iskren Chernev [Mon, 24 Oct 2016 06:32:21 +0000 (23:32 -0700)]
Merge pull request #3525 from ichernev:speedup-regex
[misc] Speedup month standalone/format regexes
Iskren Chernev [Mon, 24 Oct 2016 06:18:58 +0000 (23:18 -0700)]
Speedup lithuanian month standalone/format RegExp
Iskren Chernev [Mon, 24 Oct 2016 06:16:58 +0000 (23:16 -0700)]
Speedup default month format/standalone regex
Iskren Chernev [Wed, 21 Sep 2016 03:33:57 +0000 (20:33 -0700)]
Build 2.15.1
Iskren Chernev [Wed, 21 Sep 2016 03:32:29 +0000 (20:32 -0700)]
Bump version to 2.15.1
Iskren Chernev [Wed, 21 Sep 2016 03:31:32 +0000 (20:31 -0700)]
Update changelog for 2.15.1
Iskren Chernev [Wed, 21 Sep 2016 03:07:12 +0000 (20:07 -0700)]
Merge pull request #3438 from ichernev:fix-locale-autoload
[bugfix] Fix locale autoload, revert #3344
Iskren Chernev [Thu, 15 Sep 2016 07:05:32 +0000 (00:05 -0700)]
Revert "Merge pull request #3344 from yiminghe:module_require"
This reverts commit
bb6a30e3e9a1b2022b68794b30dd68ed561aa847 , reversing
changes made to
d4c5f8e8b503a590e6661a3ae5510b92f1c43631 .
Matt Johnson [Wed, 14 Sep 2016 16:55:33 +0000 (09:55 -0700)]
Merge pull request #3404 from anotheredward/patch-1
add license to bower.json
Iskren Chernev [Tue, 13 Sep 2016 05:06:21 +0000 (22:06 -0700)]
Update Moment.js.nuspec authors and put releaseNotes (not used for 2.15.0 unfortunately)
Iskren Chernev [Tue, 13 Sep 2016 04:56:47 +0000 (21:56 -0700)]
Add meteor/package.js to bump version script
Iskren Chernev [Tue, 13 Sep 2016 04:57:19 +0000 (21:57 -0700)]
Use fixed version in meteor/package.js
Iskren Chernev [Mon, 12 Sep 2016 08:47:46 +0000 (01:47 -0700)]
Build 2.15.0
Iskren Chernev [Mon, 12 Sep 2016 08:46:17 +0000 (01:46 -0700)]
Bump version to 2.15.0
Iskren Chernev [Mon, 12 Sep 2016 08:45:30 +0000 (01:45 -0700)]
Update changelog for 2.15.0
Iskren Chernev [Mon, 12 Sep 2016 07:08:41 +0000 (00:08 -0700)]
Merge pull request #3427 from ichernev:fix-ie8
[misc] ie8: Fix IE8
Iskren Chernev [Mon, 12 Sep 2016 06:52:47 +0000 (23:52 -0700)]
Detect Date().toISOString before using it in tests for IE8
Iskren Chernev [Mon, 12 Sep 2016 06:52:25 +0000 (23:52 -0700)]
Exclude ro locale from weekday parsing safety checks
Iskren Chernev [Mon, 12 Sep 2016 06:51:31 +0000 (23:51 -0700)]
Fix isObject in IE8
Iskren Chernev [Wed, 7 Sep 2016 08:40:19 +0000 (01:40 -0700)]
Merge pull request #3345 from webbiesdk:updateTo214
[misc] typescript: Add isoWeekdays(str), locales, defaultFormatUtc
Erik Krogh Kristensen [Tue, 2 Aug 2016 12:19:02 +0000 (14:19 +0200)]
Updated the declaration file.
Added locales, new since 2.12
Added a new overload of isoWeekday, which is possible since the input is passed through `parseIsoWeekday` since 2.14
Added defaultFormatUtc, new since 2.13.
Iskren Chernev [Wed, 7 Sep 2016 08:38:40 +0000 (01:38 -0700)]
Merge pull request #3323 from seansfkelley:union-types-for-typings
[misc] typescript: refactor constructor and ISO format hack
Sean Kelley [Sun, 24 Jul 2016 09:45:09 +0000 (11:45 +0200)]
Make moment's typings for parsing stricter and also allow them to accept union types.
This commit was adapted from
1ec036686e70ad0d837ed2443684d54bca13af01 in DefinitelyTyped.
See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8765 for context. The original
body of the commit message follows.
These changes do two things.
1. Replace very lax typings like `any[]` with stricter, more-correct versions. In particular,
the ISO_8601 constant, while /technically/ a void function, is actually an opaque sentinel
that a consumer should not know anything about it. The function type was replaced with a
sentinel type using the principle of "brands" that can be seen in the Typescript compiler:
https://github.com/Microsoft/TypeScript/blob/
413d9a639f933df7539070b236c1677de8302a93 /src/compiler/types.ts#L9
2. Replace the many overloads of the parsing methods with a smaller representative set that
uses union types instead. Aside from succinctness, this allows callers to provide a union
type as the argument, as long as it matches, which was not possible before (Typescript does
not explode the union type to see if overloads cover all the possibilities).
Iskren Chernev [Wed, 7 Sep 2016 08:32:52 +0000 (01:32 -0700)]
Merge pull request #3316 from gachou:develop
[misc] typescript: Add moment().creationData() declaration
Nils Knappmeier [Fri, 10 Jun 2016 12:33:12 +0000 (14:33 +0200)]
Add #creationData() to TypeScript interface in moment.d.ts
Iskren Chernev [Wed, 7 Sep 2016 08:29:42 +0000 (01:29 -0700)]
Merge pull request #3303 from poke:develop
[misc] typescript: Add 'date' to UnitOfTime
Patrick Westerhoff [Thu, 14 Jul 2016 14:26:49 +0000 (16:26 +0200)]
Add date to UnitOfTime
- `date` refers to the day of the month
- `day` refers to the day of the week