# 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.1.0] - 2025-08-10 ### Added - ๐ŸŽฏ **TypeScript support** - Complete migration from JavaScript to TypeScript - ๐Ÿ“ฆ **Modern build system** - Replaced Babel with tsup for ultra-fast builds using esbuild - ๐Ÿงช **Comprehensive test suite** - Added Vitest with React Testing Library - ๐Ÿ“ **Type definitions** - Full TypeScript type exports for better developer experience - โšก **Multiple output formats** - CommonJS, ES Modules, and TypeScript declarations - ๐Ÿ”ง **Modern tooling** - Updated to latest dependencies and build tools ### Changed - Migrated from JavaScript to TypeScript with full backward compatibility - Updated build output directory from `build/` to `dist/` - Replaced `prop-types` dependency with TypeScript types - Updated package exports to support both CommonJS and ES Modules - Improved script cleanup logic in analytics hooks - Modernized development scripts and workflows ### Removed - Removed Babel configuration and dependencies in favor of tsup - Removed `prop-types` dependency (replaced with TypeScript types) - Removed custom `copy-files.js` script in favor of modern build system - Removed old build and publish scripts ### Fixed - Improved error handling for script injection and cleanup - Better memory management for analytics scripts ## [1.0.1] - 2023-XX-XX ### Fixed - Minor bug fixes and improvements ## [1.0.0] - 2023-XX-XX ### Added - Initial release of analytics-switch component - Support for Umami analytics integration - Support for Matomo analytics integration - Conditional rendering based on provider configuration - React hooks for script injection and cleanup