Releases: bolshakov/stoplight
Releases · bolshakov/stoplight
v1.0.0
v0.5.2
v0.5.1
v0.5.0
- Data stores and notifiers can be configured on a per-stoplight basis. This
allows stoplights to use stoplights internally. - Stoplights use stoplights internally to wrap calls to data stores and
notifiers. This means they gracefully handle either going down. - Data stores only store failures and states. Also failures are stored in a ring
buffer. This drastically reduces the amount of data stored. - Stoplights will use the fallback (if it's given) when they fail while they're
green. This means they won't re-raise exceptions if you provide a fallback. - Stoplights pass the error to their notifiers when transitioning from green to
red.
v0.4.1
v0.4.0
- Made stoplights handle failing notifiers by logging the failure to standard
error. - Made stoplights automatically fall back to a fresh in-memory data store if the
primary store is unavailable. - Generalized
Stoplight::Notifier::StandardErrorinto
Stoplight::Notifier::IO. - Changed notification format from a string to a lambda. It accepts the same
parameters that the format string accepted. - Updated
Stoplight::Notifier::Base#notifyto accept three parameters (the
light, the before color, and the after color) instead of just one parameter
(the message). - Prevented setting non-positive thresholds.
- Removed
Stoplight::Mixin.
v0.3.1
v0.3.0
- Allowed formatting notifications.
- Added automatic recovery from red lights.
- Added
Stoplight::DataStore#clear_stalefor clearing stale lights. - Removed forwarded methods on
Stoplightmodule. - Moved some methods from
Stoplight::DataStore::Baseto
Stoplight::DataStore. - Renamed
Stoplight::DataStore::Base#purgeto#clear_stale. - Renamed
Stoplight::DataStore::Base#deleteto#clear. - Prefixed data store getters with
get_. - Added
Stoplight::DataStore::Base#sync. - Changed
Stoplight::DataStore::Base#get_failuresto return actual failures
(Stoplight::Failure) instead of strings.
v0.2.1
v0.2.0
- Switched
Stoplight.data_storeandStoplight.notifiersover to using
simple accessors. - Modified
Stoplight::DataStore::Redisto accept an instance ofRedis. - Refactored
Stoplight::DataStore::Redisto use fewer keys. - Created
Stoplight::Notifierand subclasses. - Sent notifications when moving from green to red.
- Renamed
Stoplight::Light::DEFAULT_THRESHOLDto
Stoplight::DEFAULT_THRESHOLD. - Renamed
Stoplight::Error::NoFallbacktoStoplight::Error::RedLight. - Created
Stoplight::Mixin#stoplightfor easily creating and running simple
stoplights.