Skip to content

Releases: josbeir/cakephp-mercure

0.1.8

03 Nov 18:50

Choose a tag to compare

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

20 Oct 19:20

Choose a tag to compare

This release drops authorization and discovery support from the helper as this is better handled by the Component or Facade.

0.1.6

20 Oct 13:20

Choose a tag to compare

Features

  • Subscribe Builder Pattern: Added builder pattern for subscribe functionality in component
  • Topic Management: Added topic management capabilities to components (addTopic(), addTopics() methods)

0.1.5

20 Oct 12:25

Choose a tag to compare

New Features

  • Add MercureHelper::addTopic() and addTopics() methods for dynamic topic management
  • Add defaultTopics configuration option for MercureHelper

Breaking Changes

  • Remove MercureHelper::getHubUrl() - use url() instead
  • Remove MercureComponent::getHubUrl() and getPublicUrl() use ConfigurationHelper instead
  • Remove Publisher::getHubUrl() and getPublicUrl() use ConfigurationHelper instead
  • Remove Authorization::getHubUrl() and getPublicUrl() use ConfigurationHelper instead

Improvements

  • Clean up configuration file with better defaults
  • Use proper CookieSameSite constants
  • Improve documentation and examples

0.1.4

19 Oct 19:34

Choose a tag to compare

  • Refactored: Move service interfaces to dedicated Service folder
  • Added: SimpleUpdate builder 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

19 Oct 14:37

Choose a tag to compare

✨ New Features

  • CORS preflight detection for discovery headers
  • Automatic JWT expiry management
  • Cookie lifetime fallback to session.cookie_lifetime

πŸ”’ Security

  • Default sameSite changed to 'strict' (was 'lax')
  • JWT tokens now always expire

βš™οΈ Configuration

  • New lifetime option for cookies (in seconds)

πŸ› Bug Fixes

  • Fixed component dependency injection with config options

Full Changelog: 0.1.2...0.1.3

0.1.1

19 Oct 12:49

Choose a tag to compare

✨ 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

0.1.0

18 Oct 21:06

Choose a tag to compare

Initial release.