analytics-switch/CHANGELOG.md
Tudor Stanciu 14f1b11263 Merged PR 106: chore: upgrade package version to 1.1.0 and refactor codebase to TypeScript
chore: upgrade package version to 1.1.0 and refactor codebase to TypeScript

- Updated package version in package.json from 1.0.1 to 1.1.0.
- Changed main entry point to use built files in dist directory.
- Removed Babel configuration and build scripts in favor of tsup.
- Deleted copy-files script as it is no longer needed.
- Refactored AnalyticsSwitch component from JavaScript to TypeScript.
- Added unit tests for AnalyticsSwitch component.
- Created new TypeScript files for UmamiAnalytics and MatomoAnalytics components.
- Implemented custom hooks for loading Umami and Matomo scripts.
- Added TypeScript types for analytics components and props.
- Set up TypeScript configuration and build process with tsup.
- Configured Vitest for testing with setup files and coverage reporting.
2025-08-10 18:02:52 +00:00

55 lines
1.8 KiB
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.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