![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.
@chiiya/haven
Advanced tools
GDPR-ready cookie consent manager with type definitions and zero dependencies
GDPR-ready cookie consent manager with zero dependencies.
Haven is a simple-to-use cookie consent manager enabling GDPR and ePrivacy compliance with just a few lines of code. Haven comes with the following features included out of the box:
Feature | |
---|---|
📣 | Cookie notification for opt-in and opt-out strategies. |
🔧 | Cookie preferences enabling users to revoke or change their consent at any time. |
📥 | Automatic injection of services (google-analytics, google-tag-manager, facebook-pixel or any custom solution) at runtime, after the user has given their consent. |
🗑️ | Removal of all tracking cookies after a user has revoked their consent. |
📙 | Translations for multiple languages with easy customization. |
🤖 | Written in TS, and as such compatible with ES5, ES6+ and TS projects out of the box. |
npm i @chiiya/haven -S
To use Haven in your project, either load the library via a script
tag in your
HTML, or import it as a module in your Javascript.
<script src="https://unpkg.com/@chiiya/haven"></script>
<script>
Haven.create({
services: [
{
name: 'google-analytics',
options: {
id: 'UA-XXXXXXXX-1',
},
purposes: ['analytics'],
inject: true,
}
]
});
</script>
var { Haven } = require('haven');
Haven.create({
services: [
{
name: 'google-analytics',
options: {
id: 'UA-XXXXXXXX-1',
},
purposes: ['analytics'],
inject: true,
}
]
});
import Haven from '@chiiya@haven';
Haven.create({
services: [
{
name: 'google-analytics',
options: {
id: 'UA-XXXXXXXX-1',
},
purposes: ['analytics'],
inject: true,
}
]
});
With that, users will get a cookie notification asking for their consent. Google Analytics will only be loaded once this consent has been given. Users may revoke their consent at any time by using the settings injected into your privacy policy page. Upon consent revoke, all tracking cookies set by Google Analytics will be removed.
For further information and configuration details, check out the documentation.
FAQs
GDPR-ready cookie consent manager with type definitions and zero dependencies
The npm package @chiiya/haven receives a total of 0 weekly downloads. As such, @chiiya/haven popularity was classified as not popular.
We found that @chiiya/haven 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.