gdpr-cookie-consent
Version:
Lightweight, headless cookie consent library providing technical tools for implementing consent mechanisms. Data-attribute driven, no dependencies, framework-agnostic. Legal compliance is user's responsibility - consult legal professionals.
38 lines (32 loc) • 1.34 kB
Markdown
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.0] - 2024-08-03
### Added
- Initial release of GDPR Cookie Consent Library
- Headless, data-attribute-driven architecture
- Zero dependencies vanilla JavaScript implementation
- Comprehensive security features with XSS protection
- Cookie categories support (analytics, marketing, functional, custom)
- Script management with conditional loading/unloading
- Event system with onAccept, onDecline, and onSave callbacks
- Responsive and accessible design
- Framework-agnostic compatibility
- Production-ready error handling
- Debug mode for development environments
- CSP-friendly implementation
- Webflow integration support
- TypeScript definitions included
### Security
- Input validation and sanitization
- Script URL validation against malicious injections
- Secure cookie implementation with proper flags
- XSS protection throughout the library
- Safe DOM manipulation practices
### Documentation
- Comprehensive README with examples
- API reference documentation
- Integration guides for popular platforms
- Security best practices guide
- Troubleshooting documentation