Releases: josbeir/cakephp-mercure
Releases Β· josbeir/cakephp-mercure
0.1.8
This release improves Mercure Discovery spec and enhances component features
- Add full Mercure Discovery specification support with rel="self" and optional link attributes (last-event-id, content-type, key-set)
- Add SubscriptionUrlBuilder utility for building subscription URLs with topics
- Enhance MercureComponent::discover() with discoverWithTopics config option and optional parameters
0.1.7
0.1.6
0.1.5
New Features
- Add
MercureHelper::addTopic()andaddTopics()methods for dynamic topic management - Add
defaultTopicsconfiguration option for MercureHelper
Breaking Changes
- Remove
MercureHelper::getHubUrl()- useurl()instead - Remove
MercureComponent::getHubUrl()andgetPublicUrl()useConfigurationHelperinstead - Remove
Publisher::getHubUrl()andgetPublicUrl()useConfigurationHelperinstead - Remove
Authorization::getHubUrl()andgetPublicUrl()useConfigurationHelperinstead
Improvements
- Clean up configuration file with better defaults
- Use proper
CookieSameSiteconstants - Improve documentation and examples
0.1.4
- Refactored: Move service interfaces to dedicated
Servicefolder - Added:
SimpleUpdatebuilder for raw string publishing - Improved: Introduced builder pattern in Update classes (fluent API, static factory retained)
- Fixed: Various code style and static analysis issues
Full Changelog: 0.1.3...0.1.4
0.1.3
β¨ New Features
- CORS preflight detection for discovery headers
- Automatic JWT expiry management
- Cookie lifetime fallback to
session.cookie_lifetime
π Security
- Default
sameSitechanged to'strict'(was'lax') - JWT tokens now always expire
βοΈ Configuration
- New
lifetimeoption for cookies (in seconds)
π Bug Fixes
- Fixed component dependency injection with config options
Full Changelog: 0.1.2...0.1.3
0.1.1
β¨ New Features
- MercureComponent - Controller component for centralized authorization, discovery, and publishing with dependency injection support
- JsonUpdate - Specialized update class that automatically encodes data to JSON
- ViewUpdate - Specialized update class that renders CakePHP views/elements and publishes the HTML
- Mercure Discovery - Support for automatic hub discovery via Link headers and middleware
π§ Changes
- Minimum CakePHP version - Now requires CakePHP 5.2.9+ for component dependency injection support
- Cookie implementation - Refactored for better maintainability
Full Changelog: 0.1.0...0.1.2