CHANGELOG.md 50.1 KB

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