Major Changes
This release introduces optimistic UI updates and achieves massive bundle size reduction while adding a new headless package for maximum flexibility.
π§ Fixes & Improvements
@c15t/react@1.1.2
Improved UX responsiveness for banner and dialog interactions:
- UI now updates immediately on user interaction (e.g., closing modals, accepting/rejecting consent), with consent saved in the background
- This ensures a smoother experience, especially on slower connections or when network requests are delayed
Improved event handling for ConsentButton:
- Rewritten logic to separate UI updates from consent persistence
- Custom onClick handlers now receive the full MouseEvent, enabling better control and integration
Cleaner store logic:
- Refactored setShowPopup and saveConsents methods to better separate UI vs network logic
- More consistent behavior around locale changes and popup visibility
c15t@1.0.5
βοΈ Under the Hood:
- Improved consent flow by decoupling UI updates from async network calls β UI now responds instantly, with API sync happening in the background
- Fixed an edge case where popup visibility or dialog state could behave inconsistently due to dependency timing
- Minor cleanup and better error handling in consent persistence logic
π Performance Revolution
Bundle Size Optimization
- MASSIVE: Reduced package size from 84.2 kB β 34.6 kB (gzip) β a 58.9% reduction
- Removed framer-motion dependency for lighter bundle
- Replaced Tailwind variants with native transitions and utility classes
- Zero compromise on UX while achieving faster load times
π§ New Headless Package
@c15t/react/headless
- NEW: Introduced
@c15t/react/headlessfor teams who need full UI control - Ultra-lightweight: Only 12.5 kB (gzip) footprint
- Perfect for custom implementations and design systems
- Complete access to consent logic without built-in UI components
β¨ What's Changed
- feat: Optimistic UI updates by @BurnedChris in