]>
git.ipfire.org Git - thirdparty/moment.git/log
Iskren Chernev [Sat, 23 Dec 2023 12:53:53 +0000 (14:53 +0200)]
bugfix: weekyear setter handle dow
Fixes #3944
Iskren Chernev [Sat, 23 Dec 2023 10:56:29 +0000 (12:56 +0200)]
Merge pull request #5554 from Alanscut:issue_5075
[bugfix] Fix issue #5075, Delete destructive judgment
Alanscut [Wed, 20 May 2020 07:54:30 +0000 (15:54 +0800)]
run prettier-fmt
Alanscut [Wed, 20 May 2020 07:46:01 +0000 (15:46 +0800)]
fix eslint error
Alanscut [Wed, 20 May 2020 07:13:48 +0000 (15:13 +0800)]
fix issue #5075 Remove destructive judgment
Iskren Chernev [Sat, 23 Dec 2023 10:29:52 +0000 (12:29 +0200)]
Merge pull request #5190 from majdal:develop
[new locale] ar-ps: Arabic (Palestine)
Iskren Chernev [Sat, 23 Dec 2023 10:29:14 +0000 (12:29 +0200)]
Fix formatting
Kunal Marwaha [Wed, 17 Jun 2020 09:57:49 +0000 (02:57 -0700)]
Fix tests
Majd Al-shihabi [Fri, 22 May 2020 09:44:49 +0000 (12:44 +0300)]
ran prettier-fmt on the new ar-ps locale files
Majd Al-shihabi [Thu, 21 May 2020 20:41:50 +0000 (23:41 +0300)]
New Arabic locale, with Syriac month names used in Palestine/Levant
Majd Al-shihabi [Wed, 7 Aug 2019 08:33:36 +0000 (11:33 +0300)]
Added a Palestinian locale, using Syriac month names.
Majd Al-shihabi [Thu, 21 May 2020 20:41:50 +0000 (23:41 +0300)]
New Arabic locale, with Syriac month names used in Palestine/Levant
Majd Al-shihabi [Wed, 7 Aug 2019 08:33:36 +0000 (11:33 +0300)]
Added a Palestinian locale, using Syriac month names.
Iskren Chernev [Sat, 16 Dec 2023 22:22:59 +0000 (00:22 +0200)]
Merge pull request #6055 from qzoke:develop
[misc] Refactoring & Cleanup - aliases and priorities in src/lib/units/
Iskren Chernev [Sat, 16 Dec 2023 22:22:08 +0000 (00:22 +0200)]
run prettier
Nirpendra Patel [Wed, 22 Feb 2023 12:07:01 +0000 (17:37 +0530)]
Removed Comments.
Nirpendra Patel [Thu, 6 Oct 2022 09:46:44 +0000 (15:16 +0530)]
Refactoring & Cleanup
My mission with this refactoring was to make it more readable and procedural. Not only it reduces 32 function calls, It's all in one place. All aliases in aliases.js file and all priorities in priorities.js file
1. All the functions which were responsible for creating aliases from following files(comments are file names) have been moved to src/lib/units/aliases.js
// src/lib/units/day-of-month.js
addUnitAlias('date', 'D');
// src/lib/units/day-of-week.js
addUnitAlias('day', 'd');
addUnitAlias('weekday', 'e');
addUnitAlias('isoWeekday', 'E');
// src/lib/units/day-of-year.js
addUnitAlias('dayOfYear', 'DDD');
// src/lib/units/hour.js
addUnitAlias('hour', 'h');
// src/lib/units/millisecond.js
addUnitAlias('millisecond', 'ms');
// src/lib/units/minute.js
addUnitAlias('minute', 'm');
// src/lib/units/month.js
addUnitAlias('month', 'M');
// src/lib/units/quarter.js
addUnitAlias('quarter', 'Q');
// src/lib/units/second.js
addUnitAlias('second', 's');
// src/lib/units/week-year.js
addUnitAlias('weekYear', 'gg');
addUnitAlias('isoWeekYear', 'GG');
// src/lib/units/week.js
addUnitAlias('week', 'w');
addUnitAlias('isoWeek', 'W');
// src/lib/units/year.js
addUnitAlias('year', 'y');
2. Ran all the functions and final result has been saved as "aliases" object in src/lib/units/aliases.js.
3. Commented out all the aliases creation functions in src/lib/units/aliases.js as we have final and known Object as a variable.
4. All the functions which were responsible for creating priorities from following files(comments are file names) have been moved to src/lib/units/priorities.js
// src/lib/units/day-of-month.js
addUnitPriority('date', 9);
// src/lib/units/day-of-week.js
addUnitPriority('day', 11);
addUnitPriority('weekday', 11);
addUnitPriority('isoWeekday', 11);
// src/lib/units/day-of-year.js
addUnitPriority('dayOfYear', 4);
// src/lib/units/hour.js
addUnitPriority('hour', 13);
// src/lib/units/millisecond.js
addUnitPriority('millisecond', 16);
// src/lib/units/minute.js
addUnitPriority('minute', 14);
// src/lib/units/month.js
addUnitPriority('month', 8);
// src/lib/units/quarter.js
addUnitPriority('quarter', 7);
// src/lib/units/second.js
addUnitPriority('second', 15);
// src/lib/units/week-year.js
addUnitPriority('weekYear', 1);
addUnitPriority('isoWeekYear', 1);
// src/lib/units/week.js
addUnitPriority('week', 5);
addUnitPriority('isoWeek', 5);
// src/lib/units/year.js
addUnitPriority('year', 1);
5. Ran all the functions and final result has been saved as "priorities" object in src/lib/units/priorities.js.
6. Commented out all the priorities creation functions in src/lib/units/aliases.js as we have final and known Object as a variable.
Iskren Chernev [Sat, 16 Dec 2023 22:08:21 +0000 (00:08 +0200)]
Merge pull request #6067 from ChALkeR:chalker/maart-regex
[locale] nl, nl-be: Fix erroneous regex anchoring
Сковорода Никита Андреевич [Mon, 14 Nov 2022 05:00:12 +0000 (08:00 +0300)]
fix: erroneous regex anchoring in nl locale
Iskren Chernev [Sat, 16 Dec 2023 22:01:35 +0000 (00:01 +0200)]
Merge pull request #6086 from anandfresh:contributing
[misc] Update contributing doc
Anandha Krishnan S [Tue, 10 Jan 2023 19:00:10 +0000 (00:30 +0530)]
update contributing.md
Iskren Chernev [Sat, 16 Dec 2023 21:42:27 +0000 (23:42 +0200)]
Merge pull request #6128 from tobslob:fix/undefined-locale-name
[feature] Graceful handling of undefined locale name
Oluwatobiloba A. Adeneye [Sun, 7 May 2023 21:16:19 +0000 (22:16 +0100)]
fix(bug): add condition to prevent name is undefined in isLocaleNameSane function and ensure it returns a boolean
Iskren Chernev [Sat, 16 Dec 2023 20:59:56 +0000 (22:59 +0200)]
Merge pull request #6191 from heiglandreas:fixCzeckMonths
[locale] cs: Fix month-names with numerals
Iskren Chernev [Sat, 16 Dec 2023 20:59:16 +0000 (22:59 +0200)]
Fix formatting
Andreas Heigl [Fri, 15 Dec 2023 10:52:03 +0000 (11:52 +0100)]
Render Month-names correctly with numerals
According to local knowledge the month-names need to be rendered using
the format-version when a numeral is added to them. Either before or
after the monthname.
This is now handled by adding the appropriate isFormat regex.
Iskren Chernev [Sat, 16 Dec 2023 20:55:25 +0000 (22:55 +0200)]
[misc] Reformat according to latest prettier
Iskren Chernev [Sat, 16 Dec 2023 20:54:26 +0000 (22:54 +0200)]
[misc] Update prettier config
For some reason it wanted to put traling commas everywhere (including
functions) and that spooks eslint.
Iskren Chernev [Sat, 16 Dec 2023 20:53:48 +0000 (22:53 +0200)]
[misc] Update packages
I had to put some restraint on @types/node, otherwise it wasn't ts3
compatible.
Iskren Chernev [Wed, 6 Jul 2022 16:00:01 +0000 (19:00 +0300)]
Build 2.24.4
Iskren Chernev [Wed, 6 Jul 2022 15:58:30 +0000 (18:58 +0300)]
Bump version to 2.24.4
Iskren Chernev [Wed, 6 Jul 2022 15:57:55 +0000 (18:57 +0300)]
Update changelog for 2.29.4
Khang Vo (doublevkay) [Wed, 6 Jul 2022 15:28:25 +0000 (22:28 +0700)]
[bugfix] Fix redos in preprocessRFC2822 regex (#6015)
* fix ReDoS in preprocessRFC2822 regex
Fixes: [#2936](https://github.com/moment/moment/issues/6012)
Disallow nested rfc2822 comments to prevent quadratic regex execution time (i.e each open bracket is considered at most twice).
Iskren Chernev [Wed, 6 Jul 2022 15:53:59 +0000 (18:53 +0300)]
Merge branch 'master' into develop
Iskren Chernev [Wed, 6 Jul 2022 15:53:48 +0000 (18:53 +0300)]
Revert "[bugfix] Fix redos in preprocessRFC2822 regex (#6015)"
This reverts commit
7aebb1617fc9bced87ab6bc4c317644019b23ce7 .
Khang Vo (doublevkay) [Wed, 6 Jul 2022 15:28:25 +0000 (22:28 +0700)]
[bugfix] Fix redos in preprocessRFC2822 regex (#6015)
* fix ReDoS in preprocessRFC2822 regex
Fixes: [#2936](https://github.com/moment/moment/issues/6012)
Disallow nested rfc2822 comments to prevent quadratic regex execution time (i.e each open bracket is considered at most twice).
Iskren Chernev [Sun, 17 Apr 2022 18:25:24 +0000 (21:25 +0300)]
Build 2.29.3
Iskren Chernev [Sun, 17 Apr 2022 18:22:17 +0000 (21:22 +0300)]
Fixup release complaints
Iskren Chernev [Sun, 17 Apr 2022 18:20:50 +0000 (21:20 +0300)]
Bump version to 2.29.3
Iskren Chernev [Sun, 17 Apr 2022 18:20:10 +0000 (21:20 +0300)]
Update changes for 2.29.3
Lorenzo Cesana [Sun, 17 Apr 2022 18:03:06 +0000 (20:03 +0200)]
[bugfix] Remove const usage (#5995)
Jericho [Sun, 17 Apr 2022 18:02:31 +0000 (12:02 -0600)]
misc: fix advisory link (#5990)
Iskren Chernev [Sun, 3 Apr 2022 13:12:09 +0000 (16:12 +0300)]
Build 2.29.2
Iskren Chernev [Sun, 3 Apr 2022 13:10:39 +0000 (16:10 +0300)]
Bump version to 2.29.2
Iskren Chernev [Sun, 3 Apr 2022 13:10:00 +0000 (16:10 +0300)]
Update changelog for 2.29.2
Iskren Chernev [Sun, 27 Mar 2022 11:46:47 +0000 (14:46 +0300)]
[bugfix] Avoid loading path-looking locales from fs
Iskren Chernev [Sun, 27 Mar 2022 12:20:56 +0000 (15:20 +0300)]
[misc] Fix indentation (according to prettier)
Iskren Chernev [Sun, 27 Mar 2022 12:16:24 +0000 (15:16 +0300)]
[test] Avoid hours around DST
Tobias Nießen [Sun, 21 Feb 2021 05:16:52 +0000 (06:16 +0100)]
[locale] ar-ly: fix locale name (#5828)
Kunal Marwaha [Sun, 21 Feb 2021 05:09:37 +0000 (21:09 -0800)]
[misc] fix builds (#5836)
* Update dependencies
* Rerun prettier
Michael Peirce [Thu, 29 Oct 2020 19:55:51 +0000 (12:55 -0700)]
[misc] Specify length of toArray return type (#5766)
Diego Bousfield [Tue, 27 Oct 2020 06:35:29 +0000 (03:35 -0300)]
[locale] tr: update translation of Monday and Saturday (#5756)
Kunal Marwaha [Mon, 26 Oct 2020 20:03:50 +0000 (13:03 -0700)]
[misc] fix lint issues (#5762)
Pulkit Aggarwal [Sat, 24 Oct 2020 02:26:50 +0000 (07:56 +0530)]
[misc] optimize for loops (#5744)
Kartik Gupta [Fri, 23 Oct 2020 19:20:29 +0000 (00:50 +0530)]
[bugfix] add standalone and format to "cs" locale (#5749)
Dušan Simić [Thu, 8 Oct 2020 17:59:43 +0000 (19:59 +0200)]
[locale] Fix Serbian locale (sr, sr-cyrl) (#5742)
Kunal Marwaha [Tue, 6 Oct 2020 11:12:53 +0000 (04:12 -0700)]
Build 2.29.1
Kunal Marwaha [Tue, 6 Oct 2020 11:12:02 +0000 (04:12 -0700)]
Bump version to 2.29.1
Kunal Marwaha [Tue, 6 Oct 2020 11:11:42 +0000 (04:11 -0700)]
Update changelog for 2.29.1
Priya Bihani [Mon, 5 Oct 2020 10:39:40 +0000 (16:09 +0530)]
[bugfix] add format and standalone in hi locale (#5728)
Alex Ghiculescu [Wed, 30 Sep 2020 19:01:14 +0000 (14:01 -0500)]
[misc] Update dep message to reflect project status (#5737)
Kunal Marwaha [Tue, 22 Sep 2020 08:26:21 +0000 (01:26 -0700)]
Build 2.29.0
Kunal Marwaha [Tue, 22 Sep 2020 08:22:58 +0000 (01:22 -0700)]
Bump version to 2.29.0
Kunal Marwaha [Tue, 22 Sep 2020 08:22:36 +0000 (01:22 -0700)]
Update changelog for 2.29.0
Jakub Guc [Tue, 22 Sep 2020 08:09:23 +0000 (10:09 +0200)]
[locale] add relativeTime week translation for many languages (#5724)
Jakub Szwacz [Mon, 21 Sep 2020 08:09:34 +0000 (10:09 +0200)]
[bugfix] fix moment.months() for PL locale (#5601)
Moni [Sun, 20 Sep 2020 10:53:16 +0000 (06:53 -0400)]
[misc] update bug report template (#5611)
Kafil [Sat, 19 Sep 2020 10:34:40 +0000 (11:34 +0100)]
[locale] (ar-ma) adjust dow, doy to match fr (#5609)
abeaton [Fri, 18 Sep 2020 10:42:58 +0000 (06:42 -0400)]
[tests] add tests for isLeapYear and daysInMonth (#5614)
Orif Jr [Wed, 16 Sep 2020 21:46:35 +0000 (23:46 +0200)]
[locale] tg-TJ: Improve months and date formats (#5666)
Stefan Crnjaković [Tue, 15 Sep 2020 21:53:31 +0000 (23:53 +0200)]
[locale] sr-cyrl: Improve L* formats (#4742)
PatrickMackridge [Tue, 15 Sep 2020 21:25:53 +0000 (22:25 +0100)]
[misc] add 'ww' key to RelativeTimeSpec Interface (#5717)
Kunal Marwaha [Tue, 15 Sep 2020 20:08:55 +0000 (13:08 -0700)]
[misc] check monthsParse configs on lint (#5716)
Matt Johnson-Pint [Tue, 15 Sep 2020 19:02:24 +0000 (12:02 -0700)]
Update README.md (#5719)
JC Franco [Tue, 15 Sep 2020 04:46:27 +0000 (21:46 -0700)]
[new locale] es-mx: add Spanish (Mexico) (#5696)
Peter Viszt [Tue, 15 Sep 2020 02:56:02 +0000 (04:56 +0200)]
[locale] hu: add dot after short months (#4925)
Juarez Nasato [Tue, 15 Sep 2020 02:54:53 +0000 (23:54 -0300)]
[locale] (pt-br) add invalid date translation (#5661)
fisker Cheung [Tue, 15 Sep 2020 02:54:20 +0000 (10:54 +0800)]
[misc] Bump `Prettier` to v2.1 (#5715)
Georgii Dolzhykov [Tue, 15 Sep 2020 02:32:03 +0000 (05:32 +0300)]
[bugfix] More complete type definitions for strict formatless parsing #4611 (#5574)
* Reflect changes from #4611 in ts3.1-typings
* Add types for `moment.utc(..., true)`
Alan Wang [Tue, 15 Sep 2020 02:24:29 +0000 (10:24 +0800)]
[bugfix] expose deprecation handler in typings (#5637)
Jakka Prihatna [Tue, 15 Sep 2020 02:23:02 +0000 (09:23 +0700)]
[bugfix] allow calendar with falsy input (#5647)
Asraf Hossain [Tue, 15 Sep 2020 02:11:44 +0000 (08:11 +0600)]
[new locale] bn-bd: Bengali (Bangladesh) (#5673)
Kunal Marwaha [Sun, 13 Sep 2020 11:23:48 +0000 (04:23 -0700)]
Build 2.28.0
Kunal Marwaha [Sun, 13 Sep 2020 11:22:41 +0000 (04:22 -0700)]
Bump version to 2.28.0
Kunal Marwaha [Sun, 13 Sep 2020 11:22:16 +0000 (04:22 -0700)]
Update changelog for 2.28.0
camgraff [Sun, 13 Sep 2020 10:56:40 +0000 (05:56 -0500)]
[bugfix] Fix bug where .format() modifies original moment instance (#5580)
* Made era functions clone moment instance before calling startOf()
* Add regression tests
* Run prettier-fmt
Kunal Marwaha [Sun, 13 Sep 2020 10:48:18 +0000 (03:48 -0700)]
[pkg] fix builds (#5712)
WikiDiscoverer [Sun, 13 Sep 2020 10:15:19 +0000 (15:45 +0530)]
[locale] Update dow for Konkani locales (#5676)
Amiraslan Bakhshili [Sun, 13 Sep 2020 10:09:25 +0000 (13:09 +0300)]
[locale] az: fix a word (#5675)
CJDennis [Wed, 22 Jul 2020 08:43:56 +0000 (18:43 +1000)]
[misc] Update comment in ug-cn.js (#5634)
Make the comments consistent with the other locale files
Cristóbal Díaz Álvarez [Wed, 8 Jul 2020 22:05:57 +0000 (18:05 -0400)]
[locale] es: fix accent mark (#5641)
@julionc
All tests passed
Kunal Marwaha [Wed, 24 Jun 2020 01:48:37 +0000 (18:48 -0700)]
[locale] tk: fix country code (#5606)
Kunal Marwaha [Thu, 18 Jun 2020 21:54:03 +0000 (14:54 -0700)]
Build 2.27.0
Kunal Marwaha [Thu, 18 Jun 2020 21:53:08 +0000 (14:53 -0700)]
Bump version to 2.27.0
Kunal Marwaha [Thu, 18 Jun 2020 21:52:50 +0000 (14:52 -0700)]
Update changelog for 2.27.0
Kunal Marwaha [Thu, 18 Jun 2020 21:37:19 +0000 (14:37 -0700)]
[pkg] Get browser tests working again
Kunal Marwaha [Thu, 18 Jun 2020 02:27:28 +0000 (19:27 -0700)]
[pkg] update package-lock (#5604)
Andrew Scott [Thu, 18 Jun 2020 02:09:00 +0000 (19:09 -0700)]
[locale] it: Improve future relative time (#4617)
Santtu [Wed, 17 Jun 2020 16:09:51 +0000 (19:09 +0300)]
[locale] fi: fix ss not returning the number of seconds (#5595)
Kartik Mistry [Wed, 17 Jun 2020 08:02:47 +0000 (13:32 +0530)]
[locale] gu: Improve past relativeTime (#4697)