Socket
Socket
Sign inDemoInstall

fridagar

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

4.2.2

Diff

Changelog

Source

4.2.2

2024-02-26

  • fix: Add missing index/root pkg.exports field
maranomynet
published 4.2.1 •

Changelog

Source

4.2.1

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
maranomynet
published 4.2.0 •

Changelog

Source

4.2.0

2024-01-15

  • feat: Add "Dagur íslenskrar tungu" (non-holiday, but still a "fánadagur")
maranomynet
published 4.1.0 •

Changelog

Source

4.1.0

2024-01-13

  • feat: Add "Þrettándinn" (non-holiday)
maranomynet
published 4.0.0 •

Changelog

Source

4.0.0

2024-01-13

New Features:

  • feat: Add convenience methods isHoliday and isSpecialDay
  • feat: Add key prop to the day info objects to aid translations
  • feat: Add method getAllDaysKeyed to return all days keyed by key
  • feat: Export string types HolidayKey, SpecialDayKey and DayKey
  • 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 to workdaysFromDate 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 and vetur1)
  • fix: Set summer and winter solstice date timestamp to midnight
  • fix: Always return new Date object from workdaysFromDate
  • 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.
gauiis
published 3.2.0 •

Changelog

Source

3.2.0

2021-07-14

  • Add TypeScript type definitions
gaui
published 3.1.1 •

Changelog

Source

3.1.1

2018-05-11

  • Fix documentation
gaui
published 3.1.0 •

Changelog

Source

3.1.0

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
gaui
published 3.0.0 •

Changelog

Source

3.0.0

2016-06-18

  • Calculate holidays instead of scraping them.
  • Removed promises (breaking changes).
gaui
published 2.0.0 •

Changelog

Source

2.0.0

2016-03-28

  • Use promises instead of callbacks.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc