# 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).

## [0.2.1] - 2025-09-23

### Changed
- Automation improvements for build and deployment processes
- Enhanced CI/CD pipeline configuration
- Improved development workflow automation

### Technical
- Updated WordPress compatibility testing to version 6.8.2
- Code quality and deployment process optimizations

## [0.2] - 2025-09-03

### Removed
- Auto mode functionality (automatically migrated to Selective mode)
- Per-post metabox functionality for individual page control
- reCAPTCHA v3 badge hiding and disclosure features
- Site-wide form detection logic (replaced with page-level detection)
- Template hint functionality

### Changed
- Simplified plugin configuration to Global/Selective modes only
- Default mode changed to Selective for better performance
- Improved plugin description and documentation
- Enhanced whitelist setting descriptions with input examples
- Version notation unified to 0.2 across all files
- Internationalization improvements for whitelist descriptions

### Fixed
- Removed non-existent is_login() function references
- Code cleanup and optimization

### Technical
- Removed unused transient caching logic
- Performance optimizations for form detection
- Cleaner codebase with reduced complexity

## [0.01] - 2025-09-02

### Added
- Initial release of Selective reCAPTCHA Loader for CF7
- Global and Selective loading modes
- Smart form detection (shortcodes and Gutenberg blocks)
- Whitelist support for specific pages
- Template hint system
- Complete internationalization support (English/Japanese)
- Developer filter system for customization
- WordPress 6.0+ and PHP 7.4+ compatibility
- Contact Form 7 integration
- Performance optimization features

### Security
- Input sanitization and escaping
- WordPress nonces for form submissions
- WordPress coding standards compliance
- No external API calls or tracking

---

## Release Notes

### Critical Updates
- **v0.2**: Major simplification - Auto mode removed, plugin now offers only Global/Selective modes
- **v0.2.1**: Automation and deployment improvements

### Major Features
- **Smart Detection**: Automatic detection of Contact Form 7 forms in content
- **Performance Optimization**: Significant reduction in script loading on form-free pages
- **Whitelist System**: Flexible page targeting with ID, slug, and regex support
- **Developer API**: Comprehensive filter system and template functions

### Compatibility
- WordPress 6.0 - 6.8.2
- PHP 7.4+
- Contact Form 7 5.8+

### WordPress.org Submission
This plugin is being prepared for submission to the WordPress.org Plugin Directory.
Expected submission: Q4 2025