- ...
2024-02-26
- fix: Add missing index/root
pkg.exports
field
2024-02-15
- fix: Returned incorrect dates when called from a time zone west of UTC
- fix: Rímspilliár were not resolved for the period 2100–2199
2024-01-15
- feat: Add "Dagur íslenskrar tungu" (non-holiday, but still a "fánadagur")
2024-01-13
- feat: Add "Þrettándinn" (non-holiday)
2024-01-13
New Features:
- feat: Add convenience methods
isHoliday
andisSpecialDay
- feat: Add
key
prop to the day info objects to aid translations - feat: Add method
getAllDaysKeyed
to return all days keyed bykey
- feat: Export string types
HolidayKey
,SpecialDayKey
andDayKey
- feat: Add "Sjómannadagurinn" (non-holiday)
- feat: Add "Fyrsti vetrardagur" (non-holiday)
Changes:
- BREAKING feat: Set all dates to UTC instead of local time. (You may need to update your code to handle this change, possibly by manually applying the local timezone offset to the returned dates.)
- feat: Handle negative
workdaysFromDate
offsets (for "n-th workday before {Date}") - feat: Add third
includeHalfDays
boolean parameter toworkdaysFromDate
method - feat: Arrays of days are now sorted in correct date order
- feat: Shorten the description (name) of
jun17
to "Þjóðhátíðardagurinn"
Bugfixes:
- fix: Correctly handle rímspilliár (affect days
bonda
,konu
andvetur1
) - fix: Set summer and winter solstice date timestamp to midnight
- fix: Always return new
Date
object fromworkdaysFromDate
- fix: Correctly cross year boundries in
workdaysFromDate
- fix: Handle
0
value year and month arguments correctly
Other Improvements:
- perf: Speed-up of all operations by a factor between 2 and 40 (especially for multiple quickly repeated lookups)
- docs: Add a proper README with code examples for all methods and types.
- docs: Improve inline JSDoc comments
- docs/build: Add unit tests for correctness and stability of the library
- build: Add pkg.exports field exposing both ESM and CommonJS versions.
2021-07-14
- Add TypeScript type definitions
2018-05-11
- Fix documentation
2018-04-28
- Add "Hrekkjavaka"
- Demote "Þorláksmessa" to notable day status
- Add flagging of "half-day" holidays
- Use current day/year as default for all methods
- Improve performance
- Minor bugfixes
2016-06-18
- Calculate holidays instead of scraping them.
- Removed promises (breaking changes).
2016-03-28
- Use promises instead of callbacks.
2016-03-27
- Initial release.