New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@date/holidays

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date/holidays - npm Package Versions

0.4.2

Diff

Changelog

Source

0.4.2 - 2019/07/28

  1. fix main in package.json
elidoran
published 0.4.1 •

Changelog

Source

0.4.1 - 2019/07/28

  1. fix files list in package.json
elidoran
published 0.4.0 •

Changelog

Source

0.4.0 - 2019/07/28

  1. total rewrite with breaking API changes
  2. switch tests from CS to JS
  3. add 2019 to LICENSE
  4. drop node 6, add node 12
  5. start using nyc for test coverage
  6. change Travis CI to do all testing in node 12 using nave to run in node 8 and 10
  7. also, it now runs tests in linux, macos, and windows via Travis CI
  8. also, it only reports coverage results to coveralls from one vm
  9. add load() and loadMany() to load a holiday with default info from a published npm package; now each holiday can be published individually so we can use only the holidays we want. and, we can override the info used with a holiday.
  10. holidays instances no longer keep a cache. each individual holiday can be configured to cache their results and purge() will clear those completely.
  11. instead of running all generators for a full year and storing them, test functions are stored by day and run based on the Date provided.
  12. multiple ways to specify the date(s) a holiday can be on.
  13. allows info for the main date for a holiday, its observed day (if it has one), and info for the main date when that year has an observed day.
  14. info can be a function which will be run each time getHoliday() and isHoliday() is run.
  15. add linting via eslint
elidoran
published 0.3.2 •

Changelog

Source

0.3.2 - 2018/07/20

  1. fixed custom additional year by generating all holidays for the custom year (instead of just creating an empty object for the year, because that prevented generating for that year)
elidoran
published 0.3.1 •

Changelog

Source

0.3.1 - 2018/07/20

  1. add dep @flatten/array and use it to flatten the array of holidays from generators
  2. allow holiday info to specify the year in case the observed holiday is in a different year (like New Year's ending up in previous year)
  3. add new test for custom year ability
  4. clear cached holidays when a new generator is added
elidoran
published 0.3.0 •

Changelog

Source

0.3.0 - 2018/07/19

  1. switch to JavaScript (from CoffeeScript, for lib/index.js, tests are still CS)
  2. add 2018 to LICENSE
  3. remove gemnasium badge (GitLab bought them...)
  4. update deps
  5. update mocha args for newer version
  6. drop node 0.10, add node 6-10 (evens)
  7. min engine is now node 6
  8. added testing with multiple node versions (6-10, evens)
  9. added code coverage
  10. added more tests for full code coverage
  11. split purge() into multiple functions and added purgeYearRange(), with updated tests for full coverage
  12. added compact() function to clear up cache
  13. changed package.json's nave versions to only major number so it'll use newest one without me updating package.json over and over again for new minor versions
  14. added documentation to README for new purge and compact functions.
date
published 0.2.0 •

Changelog

Source

0.2.0 - 2016/06/30

  1. fixed export to be a builder function as described in the README
date
published 0.1.0 •

Changelog

Source

0.1.0 - 2016/06/30

  1. initial working version with tests
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc