iranian_holidays 1.0.0
iranian_holidays: ^1.0.0 copied to clipboard
Iranian holidays for jalali_date dates: calculated offline, including the lunar Hijri holidays, or from an online holiday source you choose.
1.0.0 #
Changed #
- First stable release. The public API (the offline and online holiday sources,
Holiday, and the fallback source) is now covered by semantic versioning: breaking changes will wait for 2.0.0. No code changes since 0.5.2.
0.5.1 #
Changed #
- README: the introduction says up front that holidays are calculated offline on the device or fetched from an online source, and the offline description says the Hijri dates come from the official calendars up to Jalali 1405.
0.5.0 #
Added #
isWorkingDay,addWorkingDays, andworkingDaysBetweenonOfflineHolidaySource: working days around official holidays and a weekend you choose, Friday by default.
Fixed #
- Hijri holidays up to Jalali 1405 follow Iran's official record, through
jalali_date1.3.0. Some holidays in past years move by a day, for example 21 Ramadan in 1381, 1386, and 1390, and Ashura in 1383.
0.4.0 #
Breaking #
OfficialHoliday.irannames the holidays in religiously neutral wording instead of the official text, soOfflineHolidaySourcedescriptions change. Honorifics are dropped, "رحلت" is "درگذشت", Shia Imams are named by their place among the Shia Imams, and the state holidays describe the event:عاشورای حسینیis nowعاشورا,پیروزی انقلاب اسلامیis nowسالروز انقلاب ۱۳۵۷. Pass your ownholidayslist to keep the official text. Online sources are unchanged.
0.3.0 #
Breaking #
- The package is renamed from
jalali_holidaystoiranian_holidays. Depend oniranian_holidaysand importpackage:iranian_holidays/iranian_holidays.dart; the API is otherwise the same. HijriDatecomes fromjalali_date1.2.0 and is re-exported unchanged in name: the constructor is no longerconstand throwsArgumentErrorfor a day that does not exist on Iran's official calendar. UseHijriDate(1448, 1, 10)instead ofconst HijriDate(1448, 1, 10).
Changed #
- The Hijri calendar moved to
jalali_dateasHijriDateandIranianHijri; holiday dates are unchanged. - Requires
jalali_date^1.2.0.
0.2.0 #
OfflineHolidaySource: Iran's 26 official holidays and Fridays, calculated on the device with no network. Hijri holidays come from a predicted crescent sighting in Iran (Meeus positions, Yallop criterion), corrected to the published calendar from 1387 to 1406.hijriMonthStartstakes announced month starts,holidaysa changed holiday list.OfficialHolidayandOfficialHoliday.iran, the list of official holidays.HijriDateandOfflineHolidaySource.hijriDatefor the Iranian Hijri date of a day.FallbackHolidaySource: an online source first, another source when it fails.- README lists the offline holidays of 1405 and 1406.
0.1.0 #
HolidaySourceinterface,HolidayDay, andHolidayEvent.HolidayApiIrSourcefor the free holidayapi.ir service.CalendarificSourceandGoogleCalendarSourcefor services that need your own API key, withbaseUrifor a proxy.CachedHolidaySourceto avoid repeated requests.