![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@jbouduin/holidays-http
Advanced tools
This is a wrapper around `@jbouduin/holidays-lib`, using http calls (Axios) to fetch the configuration files.
This is a wrapper around @jbouduin/holidays-lib
, using http calls (Axios) to fetch the configuration files.
Using the default language (en):
// instantiate the wrapper
const holidays = new HolidaysHttp('https://jbouduin.github.io/holiday-site/', 'assets/holidays');
// retrieve the supported languages
const supportedLanguages = await holidays.getSupportedLanguages();
// retrieve retrieve the hierarchies
const hierarchies = await holidays.getHierarchyTree();
// retrieve the holidays in 2022 for a munich in bavaria in germany
const holidaysForMunich = await holidays.getHolidays('de/by/mu', 2022, false);
// retrieve the holidays in 2022 for bavaria in germany, including all local holidays
const holidaysForBavaria = await holidays.getHolidays('de/by', 2022, true);
// retrieve the holidays in 2022 for germany, leaving out all regional and local holidays
const holidaysForGermany = await holidays.getHolidays('de', 2022, false);
In order to retrieve the data in another language (e.g. German), use the language parameter when instantiating Holidays:
const holidays = new Holidays('https://jbouduin.github.io/holiday-site/', 'assets/holidays', 'de');
A sample implementation can be found here
The implementation of the file provider expects a directory structure like this below the assetsroot on the host.
│ configurations.json
│ languages.json
├───configurations
│ ae.json
│ ...
│ za.json
└───translations
hierarchy.de.json
hierarchy.en.json
hierarchy.fr.json
hierarchy.json
hierarchy.nl.json
hierarchy.pt.json
holiday.de.json
holiday.en.json
holiday.fr.json
holiday.json
holiday.nl.json
holiday.pt.json
holiday.sv.json
FAQs
This is a wrapper around `@jbouduin/holidays-lib`, using http calls (Axios) to fetch the configuration files.
The npm package @jbouduin/holidays-http receives a total of 6 weekly downloads. As such, @jbouduin/holidays-http popularity was classified as not popular.
We found that @jbouduin/holidays-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.