- ...
- perf: Add
#__NO_SIDE_EFFECTS__compiler notation to all exported functions
2024-02-26
- fix: Add missing index/root
pkg.exportsfield
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
isHolidayandisSpecialDay - feat: Add
keyprop to the day info objects to aid translations - feat: Add method
getAllDaysKeyedto return all days keyed bykey - feat: Export string types
HolidayKey,SpecialDayKeyandDayKey - 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
workdaysFromDateoffsets (for "n-th workday before {Date}") - feat: Add third
includeHalfDaysboolean parameter toworkdaysFromDatemethod - feat: Arrays of days are now sorted in correct date order
- feat: Shorten the description (name) of
jun17to "Þjóðhátíðardagurinn"
Bugfixes:
- fix: Correctly handle rímspilliár (affect days
bonda,konuandvetur1) - fix: Set summer and winter solstice date timestamp to midnight
- fix: Always return new
Dateobject fromworkdaysFromDate - fix: Correctly cross year boundries in
workdaysFromDate - fix: Handle
0value 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.