Skip to content

Release v1.0.0-beta.22

Pre-release
Pre-release
Compare
Choose a tag to compare
@ac4ch ac4ch released this 16 Jan 08:32
23c450a

[v1.0.0-beta.22] - 2025-01-16

Changed

  • Refactored WebhookSubscriber interface:
    • AdminSubscribeWebhook now accepts a *commands.CreateWebhookSubscription instead of individual parameters (webhookURL, tokenHeader, tokenValue).
    • AdminUnsubscribeWebhook now accepts a *commands.CancelWebhookSubscription instead of a single webhookURL.

Updated

  • Webhook methods:
    • Subscribe: Now constructs a commands.CreateWebhookSubscription command and passes it to the AdminSubscribeWebhook method.
    • Unsubscribe: Now constructs a commands.CancelWebhookSubscription command and passes it to the AdminUnsubscribeWebhook method.

Notes

  • These changes improve the maintainability of webhook subscription logic by centralizing command data structures in the commands package.