# Changelog - Mux Video WordPress Plugin

All notable changes to this plugin will be documented in this file.

## [1.1.4] - 2025-12-26
### 🐛 Fixes
- Fixed domain validation in Video Security settings: valid domains were incorrectly rejected with "enter a valid domain" error.
- Separated domain format validation from duplicate checking to show appropriate error messages.
- Fixed regex pattern for domain validation to properly handle all alternatives (.local, .test domains).

---

## [1.1.3] - 2025-09-30
### 🟢 Security
- Full **CSRF protection** implemented across all 32 endpoints.  
- Removed unnecessary public `wp_ajax_nopriv` hooks for sensitive actions (5 endpoints secured).  
- SQL injection vulnerabilities fully resolved (`$wpdb->prepare()` + input sanitization).  
- XSS prevention applied consistently across inputs and outputs.  
- Capability checks improved for admin-only actions.  
- File upload validation enforced (MIME type, extension, size).  
- Error handling secured: no sensitive information logged in production.  

### ✨ Improvements
- Optimized performance of Gutenberg Mux block.  
- Enhanced JWT token generation logic to prevent expiration during editing.  
- Extended compatibility with WordPress 6.x.
- Custom video titles: users can add a custom title when uploading a new video.  
- Edit existing titles: modify or add new titles for videos already uploaded in the Asset List.  
- Database storage: all video title data is saved securely in the database.  
- Video search: added search functionality by title or ID in the Asset List.

### 🐛 Fixes
- Corrected asset refresh logic when performing AJAX searches.  
- Resolved `Invalid playback URL` issue after token expiration.  
- Minor editor style adjustments for better UX.  

### 🔧 Other
- Refactored internal functions for better maintainability.  
- Updated plugin documentation (README).  
- **Plugin title changed to "Mux Video Uploader".**

---

## [1.1.2] - 2025-05-15
### ✨ Features
- Initial release with Mux video integration for Gutenberg editor.  
- Support for multiple playback configurations and custom thumbnails.  

### 🐛 Fixes
- Initial minor bug fixes post-launch.  

---

## [1.1.1] - 2025-04-10
### 🐛 Fixes
- Resolved minor compatibility issues with WordPress 6.0+.  

---

## [1.1.0] - 2025-03-20
### ✨ Features
- Added support for JWT-signed playback URLs.  
- Implemented dynamic token regeneration for expired playback tokens.  

---

*For a full history of releases, refer to tags in the repository.*

