Releases: launchdarkly/ruby-server-sdk
Releases · launchdarkly/ruby-server-sdk
6.0.0
[6.0.0] - 2021-01-26
Added:
- Added a
socket_factory
configuration option which can be used for socket creation by the HTTP client if provided. The value ofsocket_factory
must be an object providing anopen(uri, timeout)
method and returning a connected socket.
Changed:
- Switched to the
http
gem instead ofsocketry
(with a custom http client) for streaming, and instead ofNet::HTTP
for polling / events. - Dropped support for Ruby < version 2.5
- Dropped support for JRuby < version 9.2
- Changed the default polling domain from
app.launchdarkly.com
tosdk.launchdarkly.com
.
5.8.2
5.8.1
5.8.0
[5.8.0] - 2020-05-27
Added:
- In
LaunchDarkly::Integrations::Redis::new_feature_store
, if you pass in an externally createdpool
, you can now set the new optionpool_shutdown_on_close
tofalse
to indicate that the SDK should not shut down this pool if the SDK is shut down. The default behavior, as before, is that it will be shut down. (Thanks, jacobthemyth!)
5.7.4
5.7.3
[5.7.3] - 2020-04-27
Changed:
- Previously, installing the SDK in an environment that did not have
openssl
would cause a failure at build time. The SDK still requiresopenssl
at runtime, but this check has been removed because it caused therake
problem mentioned below, and becauseopenssl
is normally bundled in modern Ruby versions.
Fixed:
- The
LDClient
constructor will fail immediately with a descriptiveArgumentError
if you provide anil
SDK key in a configuration that requires an SDK key (that is, a configuration that will require communicating with LaunchDarkly services). Previously, it would still fail, but without a clear error message. You are still allowed to omit the SDK key in an offline configuration. (#154) - Removed a hidden dependency on
rake
which could cause your build to fail if you had a dependency on this SDK and you did not haverake
installed. (#155) - Previously a clause in a feature flag rule that used a string operator (such as "starts with") or a numeric operator (such as "greater than") could cause evaluation of the flag to completely fail and return a default value if the value on the right-hand side of the expression did not have the right data type-- for instance, "greater than" with a string value. The LaunchDarkly dashboard does not allow creation of such a rule, but it might be possible to do so via the REST API; the correct behavior of the SDK is to simply treat the expression as a non-match.
5.7.2
[5.7.2] - 2020-03-27
Fixed:
- Fixed a bug in the 5.7.0 and 5.7.1 releases that caused analytics events not to be sent unless diagnostic events were explicitly disabled. This also caused an error to be logged:
undefined method started?
.
5.7.1
[5.7.1] - 2020-03-18
Please use 5.7.2 instead of this release.
Fixed:
- The backoff delay logic for reconnecting after a stream failure was broken so that if a failure occurred after a stream had been active for at least 60 seconds, retries would use no delay, potentially causing a flood of requests and a spike in CPU usage. This bug was introduced in version 5.5.0 of the SDK.
5.7.0
[5.7.0] - 2020-03-10
Please use 5.7.2 instead of this release.
Added:
- The SDK now periodically sends diagnostic data to LaunchDarkly, describing the version and configuration of the SDK, the architecture and version of the runtime platform, and performance statistics. No credentials, hostnames, or other identifiable values are included. This behavior can be disabled with
Config.diagnostic_opt_out
or configured withConfig.diagnostic_recording_interval
. - New
Config
propertieswrapper_name
andwrapper_version
allow a library that uses the Ruby SDK to identify itself for usage data if desired.
Removed:
- Removed an unused dependency on
rake
.
5.6.2
[5.6.2] - 2020-01-15
Fixed:
- The SDK now specifies a uniquely identifiable request header when sending events to LaunchDarkly to ensure that events are only processed once, even if the SDK sends them two times due to a failed initial attempt.