x/dayjs@v1.11.2/CHANGELOG.md

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
GitHub Stars
39412
Go to latest

1.11.2 (2022-05-06)

Bug Fixes

  • add OpUnitType (week) to quarterOfYear startOf/endOf types (#1865) (400bc3e)
  • Fix type issue with ManipulateType (#1864) (d033dfc)
  • fix UTC plugin .valueOf not taking DST into account (#1448) (27d1c50)

1.11.1 (2022-04-15)

Bug Fixes

  • add Bengali (Bangladesh) [bn-bd] locale (#1806) (840ed76)
  • refactor replace deprecated String.prototype.substr() (#1836) (627fa39)
  • Update German [de] locale, adds the abbreviations for month including a . in the end, as in September -> Sept. (#1831) (4e2802c)
  • update Italian (Switzerland) [it-ch] locale relativeTime (#1829) (8e6d11d)
  • update Kurdish [ku] locale strings and formatted output contains non-standard kurdish characters (#1848) (a597d0b)
  • update locale bo [Tibetan]: corrected the orders in formats (#1823) (e790516)

1.11.0 (2022-03-14)

Bug Fixes

Features

  • Fallback to language only locale + support uppercase locales (#1524) (9138dc2)

1.10.8 (2022-02-28)

Bug Fixes

  • set locale pt, pt-br correct weekdays and months (#1697) (e019301)

1.10.7 (2021-09-10)

Bug Fixes

  • Add Spanish (Mexico) [es-mx] locale (#1614) (3393f2a)
  • Add Arabic (Iraq) [ar-iq] locale (#1627) (b5a1391)
  • add format object type to type file (#1572) (5a79cc6)
  • duration plugin when parsing duration from ISO string, set missing components to 0 instead of NaN (#1611) (252585b)
  • narrow type for add and subtract (#1576) (1686962)
  • update customParseFormat plugin strict x X parsing (#1571) (08adda5)
  • update Lithuanian [lt] locale spelling for single month (#1609) (255dc54)
  • Update Norwegian Bokmål [nb] local yearStart 4 (#1608) (7a8467c)
  • update plugin advancedFormat isValid validation (#1566) (755fc8b)
  • update Sinhalese [si] locale month name (#1475) (63de2a8)
  • update utcOffset plugin type file (#1604) (f68e4b1)

1.10.6 (2021-07-06)

Bug Fixes

1.10.5 (2021-05-26)

Bug Fixes

  • add meridiem in ar locales (#1375) (319f616)
  • Added Zulu support to customParseFormat (#1359) (1138a3f)
  • fix Bengali [bn] locale monthsShort error (a0e6c0c)
  • fix missing types for ArraySupport plugin (#1401) (b1abdc4)
  • fix Ukrainian [uk] locale (#1463) (0fdac93)
  • hotfix for Duration types (#1357) (855b7b3), closes #1354
  • timezone plugin DST error (#1352) (71bed15)
  • Update duration plugin change string to number (#1394) (e1546d1)
  • update Duration plugin to support no-argument (#1400) (8d9a5ae)
  • Update Finnish [fi] locale to set yearStart (#1378) (f3370bd)
  • update Russian [ru] locale meridiem and unit tests (#1403) (f10f39d)
  • update Russian [ru] locale yearStart config (#1372) (5052515)
  • update Slovenian [sl] locale to set correct ordinal (#1386) (cb4f746)
  • update Spanish [es] locale to change month names to lowercase (#1414) (9c20e77)
  • update Swedish [sv] locale to set correct yearStart (#1385) (66c5935)
  • update UTC plugin to support string argument like +HH:mm (#1395) (656127c)

1.10.4 (2021-01-22)

Bug Fixes

1.10.3 (2021-01-09)

Bug Fixes

  • fix customParseFormat plugin strict mode parse meridiem bug (#1321) (e49eeef)
  • fix weekYear plugin missing locale bug (#1319) (344bdc0), closes #1304
  • update advancedFormat plugin to add format options for iso week and weekyear (#1309) (2c54c64)
  • update devHelper to add dev warning setting locale before loading (c5cc893)
  • update German [de] locale yearStart (1858df8), closes #1264

1.10.2 (2021-01-05)

Bug Fixes

  • fix parse regex bug (#1307) (db2b6a5), closes #1305
  • remove module entry in package.json to revert 1.10.1 change (#1314) (824dcb8)
  • update devHelper add warning "passing Year as a Number will be parsed as a Unix timestamp" (#1315) (b0dda31)

1.10.1 (2021-01-03)

Bug Fixes

1.10.0 (2021-01-03)

Bug Fixes

Features

  • add ES6 Module Support, package.json module point to "esm/index.js" (#1298) (f63375d), closes #598 #313

1.9.8 (2020-12-27)

Bug Fixes

  • fix Ukrainian [uk] locale typo (1605cc0)
  • update Hebrew [he] locale for double units (#1287) (1c4b0da)
  • update zh locale meridiem "noon" (0e7ff3d)
  • update zh-cn locale definition of noon (#1278) (d5930b9)

1.9.7 (2020-12-05)

Bug Fixes

  • add duration.format to format a Duration (#1202) (9a859a1)
  • Add function handling for relativeTime.future and relativeTime.past (#1197) (ef1979c)
  • avoid install installed plugin (#1214) (a92eb6c)
  • avoid memory leak after installing a plugin too many times (b8d2e32)
  • fix diff bug when UTC plugin enabled (#1201) (9544ed2), closes #1200
  • fix startOf/endOf bug in timezone plugin (#1229) (eb5fbc4)
  • fix utc plugin diff edge case (#1187) (971b3d4)
  • update customParseFormat plugin to parse 2-digit offset (#1209) (b56936a), closes #1205
  • Update timezone plugin type definition (#1221) (34cfb92)

1.9.6 (2020-11-10)

Bug Fixes

1.9.5 (2020-11-05)

Bug Fixes

1.9.4 (2020-10-23)

Bug Fixes

1.9.3 (2020-10-13)

Bug Fixes

1.9.2 (2020-10-13)

Bug Fixes

  • add arraySupport plugin (#1129) (be505c2)
  • export type of duration plugin (#1094) (2c92e71)
  • Fix LocaleData plugin longDateFormat lowercase error (#1101) (7937ccd)
  • Fix objectSupport plugin bug in UTC (#1107) (fe90bb6), closes #1105
  • fix Serbian locale grammar (sr, sr-cyrl) (#1108) (cc87eff)
  • Fix typo for "monday" in arabic (#1067) (2e1e426)
  • support dayjs.add(Duration), dayjs.subtract(Duration) (#1099) (b1a0294)
  • update Breton [br] locale relativeTime config (#1103) (b038bfd)
  • update Catalan [ca] locale ordinal (73da380)
  • update German [de] locale relativeTime config (#1109) (f6e771b)
  • update localeData plugin to add longDateFormat to global localeData (#1106) (16937d1)
  • Update objectSupport plugin to return current date time while parsing empty object (f56783e)

1.9.1 (2020-09-28)

Bug Fixes

  • Fix objectSupport plugin to get the correct result (zero-based month) (#1089) (f95ac15)

1.9.0 (2020-09-28)

Bug Fixes

Features

1.8.36 (2020-09-17)

Bug Fixes

  • Add Amharic (am) locale (#1046) (cdc49a1)
  • Export Duration type in duration plugin (#1043) (0f20c3a)
  • Fix duration plugin parsing milliseconds bug (#1042) (fe2301b)
  • Timezone plugin set default timezone (#1033) (0c2050a)
  • Timezone plugin should have the same behavior in latest ICU version (#1032) (de31592)
  • Update Finnish (fi) locale (#963) (cf8b6a0)
  • Update Polish (pl) , Hungarian (hr) and Lithuanian (lt) localization (#1045) (638fd39)

1.8.35 (2020-09-02)

Bug Fixes

  • Fix BadMutable plugin bug in .diff (#1023) (40ab6d9)
  • fix LocaleData plugin to support instance.weekdays() API (#1019) (a09d259), closes #1017
  • Update Dutch (nl) locale to set correct yearStart (1533a2c)

1.8.34 (2020-08-20)

Bug Fixes

  • Fix Timezone plugin to preserve milliseconds while changing timezone (#1003) (5f446ed), closes #1002
  • support parsing unlimited decimals of millisecond (#1010) (d1bdd36), closes #544
  • update Duration plugin to support global locale (#1008) (1c49c83), closes #1007

1.8.33 (2020-08-10)

Bug Fixes

  • Add PluralGetSet plugin for plural getters/setters (#996) (f76e3ce)
  • Add typescript type defs in esm build (#985) (50e3b3c)
  • Fix isoWeek Plugin cal bug in UTC mode (#993) (f2e5f32)
  • Fix Timezone plugin parsing js date, Day.js object, timestamp bug && update type file (#994) (22f3d49), closes #992 #989
  • Fix Timezone plugin UTCOffset rounding bug (#987) (b07182b), closes #986
  • Fix UTC plugin bug while comparing an utc instance to a local one (#995) (747c0fb)
  • Update pt-br locale weekStart 0 (#984) (0f881c1)

1.8.32 (2020-08-04)

Bug Fixes

  • Add Experimental Timezone Plugin (#974) (e69caba)
  • fix parse date string error e.g. '2020/9/30' (#980) (231790d), closes #979
  • update monthDiff function to get more accurate results (19e8a7f)
  • Update UTC plugin to support keepLocalTime (#973) (9f488e5)

1.8.31 (2020-07-29)

Bug Fixes

  • Rollback LocalePresetType to string (#968) (b342bd3)
  • Update Regex to parse 'YYYY' correctly (#969) (70c1239)

1.8.30 (2020-07-22)

Bug Fixes

  • Add Haitian Creole (ht) and Spanish Puerto Rico (es-pr) locale configs (#958) (b2642e2)
  • Fix UTC plugin wrong hour bug while adding month or year (#957) (28ae070)
  • Update French (fr) locale to set correct yearStart (14ab808), closes #956

1.8.29 (2020-07-02)

Bug Fixes

  • Duration plugin supports parse ISO string with week (W) (#950) (f0fc12a)
  • LocaleData plugin supports locale order (#938) (62f429d), closes #936
  • Update type definition to support array format (#945) (81d4740), closes #944
  • Update type definition to support strict mode (#951) (8d54f3f)

1.8.28 (2020-05-28)

Bug Fixes

  • Fix CustomParseFormat plugin month index error (#918) (fa2ec7f), closes #915
  • Update Ukrainian (uk) locale monthFormat and monthStandalone (#899) (a08756e)

1.8.27 (2020-05-14)

Bug Fixes

1.8.26 (2020-04-30)

Bug Fixes

  • Fix Duration plugin .toISOString format bug (#889) (058d624), closes #888
  • Fix WeekOfYear plugin bug while using BadMutable plugin (#884) (2977438)
  • Update CustomParseFormat plugin strict mode (#882) (db642ac)
  • Update RelativeTime plugin default config (#883) (0606f42)

1.8.25 (2020-04-21)

Bug Fixes

1.8.24 (2020-04-10)

Bug Fixes

1.8.23 (2020-03-16)

Bug Fixes

  • Add Chinese (zh) locale (f9b8945)
  • Fix IsoWeek plugin typescript definition (#828) (30aab0c)
  • Update Arabic (ar) locale relative time (#836) (14044c6)
  • Update Slovak (sk) locale, Czech (cs) locale (#833) (f0d451f)
  • Update Thai (th) locale relativeTime (#826) (63b7c03), closes #816

1.8.22 (2020-03-08)

Bug Fixes

1.8.21 (2020-02-26)

Bug Fixes

  • Set + Get accept 'D' as the short version of 'date' (#795) (523c038)
  • Update DayOfYear plugin type (#799) (5809652)
  • Update fi (Finnish) locale relativeTime (#797) (4a470fb)

1.8.20 (2020-02-04)

Bug Fixes

  • Add Bislama Locale (bi) (#780) (9ac6ab4)
  • Fix weekOfYear plugin to support yearStart locale for better week number result (#769) (f00db36)
  • Update et (Estonian) locale relativeTime (#790) (d8e0f45)
  • Update LocaleData plugin to support dayjs.localeData().weekdays() API (287fed6), closes #779
  • Update LocaleData plugin to support dayjs.months dayjs.weekdays API (144c2ae), closes #779
  • Update pl locale fusional config (d372475)

1.8.19 (2020-01-06)

Bug Fixes

  • Add UpdateLocale plugin to update a locale's properties (#766) (82ce2ba)
  • Fix CustomParseFormat Plugin 'YYYY-MM' use first day of the month (ba709ec), closes #761
  • Fix CustomParseFormat Plugin to set correct locale (66ce23f)
  • Fix WeekOfYear Plugin wrong calender week number bug (79b86db), closes #760
  • Update RelativeTime plugin to support function to make additional processing (#767) (4bd9250)
  • Update ru, uk, cs locale to support relativeTime with plural (3f080f7)

1.8.18 (2019-12-18)

Bug Fixes

1.8.17 (2019-11-06)

Bug Fixes

1.8.16 (2019-08-27)

Bug Fixes

  • Fix relativeTime Plugin .FromNow() result error in UTC mode (a385d5c)
  • Handle locale in WeekOfYear plugin (#658) (0e45b0a)
  • LocaleData plugin returns all months and weekdays data when pas no argument (#645) (95e70b4)
  • Return null in toJSON if not valid (#633) (19affc8)
  • Update Danish (da) locale (#626) (ac2ec77)
  • Update Korean locale meridiem (#642) (b457146)
  • update Occitan locale Catalan locale (#630) (fef135e)
  • update pt-br locale (#628) (ccf596d)
  • Update weekdaysShort to some locale files (#643) (cc1f15f)

1.8.15 (2019-07-08)

Bug Fixes

  • Fix dayjs.locale() returns current global locale (#602) (790cd1a)
  • Fix incorrect Thai locale translation of July (#607) (43cbfd3)
  • Lowercase french locale months and weekdays (#615) (e5a257c)
  • Type - Export Ls object to query all available locales (#623) (f6bfae0)
  • Update nb (Norsk Bokmål) locale (#604) (907f5c9)
  • Update types of .diff API (#617) (f0f43d2)

1.8.14 (2019-05-07)

Bug Fixes

  • Fix .format API returns UTC offset when value is 0 bug (b254964)
  • Fix QuarterOfYear plugin bug (#591) (434f774)
  • Fix UTC plugin add day DST bug (#590) (86cd839)

1.8.13 (2019-04-26)

Bug Fixes

  • Add missing relativeTime and formats for some locales (#560) (96b917e)
  • Add weekday (locale aware day of the week) plugin (#569) (9007cc5), closes #559
  • Allow customizing "am" / "pm" strings with locale meridiem function (#580) (576e93e), closes #578
  • Fix .add day/week decimal rouding bug (800f6c9)
  • Fix .diff type definition error (#565) (c4921ae), closes #561
  • Fix CustomParseFormat plugin bug (#568) (1f5a9db), closes #555
  • Fix relativeTime plugin Math.round bug (40bea40)
  • skip square brackets in buddhistEra, advancedFormat plugins (#556) (9279718), closes #554
  • Update Indonesian locale(#574) (0aa7143)
  • Update locale month to support both array and function (#581) (b6599d3)
  • Update LocalizedFormat plugin lowercase formats logic (#557) (d409304)

1.8.12 (2019-04-02)

Bug Fixes

  • Add .get API (7318797)
  • Add 79 locales (#541) (f75a125)
  • Add Calendar plugin (d1b9cf9)
  • Add isoWeeksInYear plugin (2db8631)
  • Add Occitan (oc-lnc) locale file (#551) (c30b715)
  • Add plugin minMax to sopport .max .min (2870a23)
  • Fix set Month Year error in last day of the month (d058f4a)
  • Update ko locale weekdaysShort (#543) (317fd3e)
  • Update localizedFormat plugin to support lowercase localizable formats (l, ll, lll, llll) (#546) (f2b5ebf)

1.8.11 (2019-03-21)

Bug Fixes

  • Add .add('quarter') .startOf('quarter') through plugin quarterOfYear (dde39e9), closes #537 #531
  • Add locale support for Azerbaijani language (az) (#535) (eeb20fa)
  • Correct typescript definition add (22a249c), closes #531
  • Fix CustomParseFormat plugin formatting bug (#536) (8578546), closes #533
  • Update pt locale (#538) (1ac9e1e)

1.8.10 (2019-03-10)

Bug Fixes

  • locale: Add nepali (ne) locale (#524) (bdbec01)
  • Add WeekYear plugin (a892608)
  • API .locale() with no argument should return current locale name string (8d63d88)
  • CustomParseFormat correct parse HH:mm:ss with only one digit like 0:12:10 (600d547)
  • CustomParseFormat plugin parse Do format string (bf27fda), closes #522
  • Expand setters like .year(2000) .hour(12) (ac532a0)
  • Move toObject, toArray API to separate plugin from core (40a3431)

1.8.9 (2019-03-06)

Features

For plugin developers: Please note, we have changed the name of some method in Utils in order to reduce the file size. (#517) (detail)

Bug Fixes

1.8.8 (2019-02-25)

Bug Fixes

  • Update relativeTime plugin type definition (de56f2c)

1.8.7 (2019-02-24)

Bug Fixes

  • Add plugin type definitions (#418) (361d437)
  • Add Swahili locale (#508) (b9cee84)
  • Parse month string 'MMMM MMM (February, Feb)' in customParseFormat (#457) (f343206)
  • Update declaration file .diff .isBefore .isSame .isAfter (#496) (4523275)
  • Word orders corrections for locale 'fa' (#491) (56050c2)

1.8.6 (2019-02-14)

Bug Fixes

  • Add Bahasa Melayu (Malaysia) locale (#485) (cb208b0)
  • Copy & export built-in en locale to /locale folder as a separate file (a7e05e0)
  • Fix bug in customParseFormat plugin while month(MM) is '01' (9884ca5), closes #494
  • Fix startOf week bug while week start is not Sunday (5eaf77b)
  • Implemented isBetween inclusivity (#464) (af2f4f1)
  • Update Swedish and Finnish locales (#488) (f142082)
  • Fix commonJS require ES Module bug in webpack4 (23f9f3d), check #492

Get access to ESM code with import dayjs from 'dayjs/esm'

1.8.5 (2019-02-07)

Bug Fixes

  • Add en-gb locale (#478) (508c3a7)
  • module: transpile everything except ES6 modules in the 'module' entrypoint (#477) (#480) (#482) (767017d)
  • update customParseFormat plugin support hh:mm (54947cc), closes #484
  • Update module in package.json (5c5a7a0)

1.8.4 (2019-02-05)

  • Allow set start day of week in locale && Allow set week in weekOfYear plugin (1295591)

    Bug Fixes

  • update all locale files with correct week start (5b03412)
  • update es es-do locale adding weekStart && update weekStart test (66e42ec)
  • Revert default export (b00da1b)

1.8.3 (2019-02-04)

Bug Fixes

  • fix ios safari YYYY-MM-DD HH:mm parse BUG (e02ae82), closes #254

1.8.2 (2019-02-02)

Bug Fixes

  • Add missing czech language locale (#461) (7e04004)
  • Add utcOffset api method and fix calculating diff error in DST (#453) (ce2e30e)
  • Fix it locale error (#458) (f6d9a64)
  • Add DayOfYear plugin (#454)
  • Fix es locale monthsShort error

1.8.1 (2019-02-02)

  • Add LocalizedFormat plugin supplying format like LTS, LT, LLLL

  • update declaration File with default export (#278)

    From v1.8.1, in TypeScript Project, just import from dayjs from 'dayjs'

  • add ES2015 module support (#451)

Performance Improvements

  • format: reuse matches instead of created when replacing (#441) (10b79d8)

1.8.0 (2019-01-14)

Features

  • add CustomParseFormat plugin and QuarterOfYear plugin (#450) (8f6f63c)

1.7.8 (2018-12-13)

Feature

  • update isSame isBefore isAfter supports units (fd65464)

  • add greek lithuanian locales

1.7.7 (2018-09-26)

Bug Fixes

  • DST: fix daylight saving time DST bug && add test (#354) (6fca6d5)

1.7.6 (2018-09-25)

Bug Fixes

  • add dayjs.unix: add dayjs.unix to parse timestamp in seconds && locale update (5711c5e)

1.7.5 (2018-08-10)

Bug Fixes

  • add isBetween API & update (b5fc3d1)

1.7.4 (2018-07-11)

Bug Fixes

1.7.3 (2018-07-10)

Bug Fixes

  • locale-nl: set correct weekdays and months (6d089d7)

1.7.2 (2018-07-04)

Bug Fixes

  • DEPRECATED isLeapYear, use IsLeapYear plugin instead (e2e5116)

1.7.1 (2018-07-03)

Bug Fixes

  • fix week() error near the end of the year (fa03689)

1.7.0 (2018-07-02)

Features

  • Added method .week() to retrieve week of the year (e1c1b1c)
  • Updated Japanese locae

1.6.10 (2018-06-25)

Bug Fixes

  • Add relative locales to russian language (c7e9898), closes #256

1.6.9 (2018-06-14)

Bug Fixes

  • add isDayjs => boolean API (6227c8b)

1.6.8 (2018-06-14)

Bug Fixes

  • fix Advanced format bug in zh-cn (0c07874), closes #242

1.6.7 (2018-06-11)

Bug Fixes

1.6.6 (2018-06-06)

Bug Fixes

  • format API update and locale file update (5ca48f0), closes #228

1.6.5 (2018-05-31)

Bug Fixes

  • bugfix, utils update and locale file update (ebcb6d5), closes #214

1.6.4 (2018-05-25)

Bug Fixes

  • add RelativeTime plugin and locale file update (c1fbbca), closes #198

1.6.3 (2018-05-21)

Bug Fixes

  • Changing locales locally is immutable from this release (2cce729), closes #182
  • instance locale change should be immutable (84597c9)
  • Add more locales
  • english ordinal fix

1.6.2 (2018-05-18)

Bug Fixes

  • change-log update && test new npm release (aa49cba), closes #163

1.6.1 (2018-05-18)

Bug Fixes

  • Add German, Brazilian Portuguese locales
  • add() & parse() bug fix & add locale de, pt-br (bf1331e)

1.6.0 (2018-05-15)

Features