feriados_pt 0.2.3
feriados_pt: ^0.2.3 copied to clipboard
Portuguese public holidays for Dart and Flutter — national, municipal and regional. Includes correct handling of the 2013–2015 suppression period.
0.2.3 #
- Removed named library directive to follow Dart 3 conventions.
0.2.2 #
- Fixed pubspec.yaml description length (was exceeding pub.dev's 180-character limit).
- Updated dependencies:
http ^1.6.0,xml ^7.0.1,lints ^6.1.0,test ^1.31.1.
0.2.1 #
- Fixed missing files from the initial 0.2.0 publish.
0.2.0 #
- Added
getHolidaysByMunicipality(year, municipio)— fetches municipal holidays from the SAPO API for a specific municipality. - Added
getMunicipalHolidays(year)— fetches all municipal holidays across Portugal. - Added
getRegionalHolidays(year)— fetches regional holidays for Açores and Madeira. - Added
Municipioenum with all ~300 Portuguese municipalities, each withidandnomefields. - Added
Municipio.find(nome)— case-insensitive, accent-tolerant lookup by name. - Added
HolidayScopeenum (national,regional,municipal) toHoliday. - Added optional
descriptionfield toHoliday. - New dependencies:
http,xml.
0.1.0 #
- Initial release.
getHolidays(year)— returns all mandatory Portuguese national holidays sorted by date.isHoliday(date)— checks whether a date is a public holiday.holidayAt(date)— returns theHolidayfor a date, ornull.- Correct handling of the 2013–2015 suppression period (Lei 23/2012 / Lei 8/2016).
- Easter calculated with the Meeus/Jones/Butcher algorithm.