Skip to content

Releases: jamesmills/laravel-notification-rate-limit

3.1.1

04 Oct 14:18
Compare
Choose a tag to compare

What's Changed

  • Fixed: When sending a rate-limited or non-rate-limited notification, the channel manager will now respect the $channels parameter when using sendNow() or notifyNow(). Thanks to @felipehertzer for the PR.

3.1.0

25 Sep 15:05
Compare
Choose a tag to compare
  • Fixed: If an exception occurs within the rate limiter implementation, it will be logged and reported but we try to continue sending the notification itself (irrespective of any rate limit that might have applied). This avoids the possibility of silently causing notifications to not be dispatched at all.
  • New: Added config option unique_notification_strategy to allow choosing the mechanism to use when determining whether a notification is unique (in case serialize() is not appropriate).

3.0.0

25 May 21:20
Compare
Choose a tag to compare

What's Changed

  • Expanded the NotificationRateLimitReached event to directly expose additional information about the notification being discarded (including the related Notifiable object, the cache key, the time remaining until the limiter will be available again, and the reason for the discard)
  • Added the ability for a notification to trigger a discard/bypass for reasons other than the rate limiter being hit (see issue #37)

2.2.0

18 Mar 21:11
2a1f15f
Compare
Choose a tag to compare
  • Added support for Laravel 11 (PHP 8.2/8.3)
  • Removed support for PHP 8.0/8.1 and Laravel 9.x

2.1.0

26 Aug 21:35
Compare
Choose a tag to compare
  • Fixed Issue #14: Rate limiting will now be checked when notifications are actually being dispatched from the queue, rather than when they are queued up (allowing rate limiting to work against notifications having an associated delay)
  • Updated README.md to caution regarding the rate limiting keys for applications that may include multiple types of Notifiable entities

2.0.0

15 May 14:32
Compare
Choose a tag to compare
  • Add support for Laravel 9.x/10.x
  • Remove support for PHP 7.x/Laravel 7.x/8.x
  • Fixed Issue #17: Anonymous notifications can now be rate-limited
  • Fixed: The rate limiter now works with multi-recipient notifications sent via the Notification::send() facade
  • New: You can now define a rateLimitNotifiableKey() method on a Notifiable object to override the value that will be used to identify that object as unique (by default, the primary key or id field)

1.0.1

07 Jan 15:22
1caa76f
Compare
Choose a tag to compare
Merge pull request #11 from TAGHREEDAA/fix-notification-sent-before-s…