Skip to content

Releases: launchdarkly/haskell-server-sdk

v4.3.0

24 Oct 14:32
34a9eb8
Compare
Choose a tag to compare

4.3.0 (2024-10-24)

Features

  • Add support for client-side prerequisite events (#89) (a3bf10a)

v4.2.0

05 Sep 18:16
6e99346
Compare
Choose a tag to compare

4.2.0 (2024-08-23)

Features

  • Add option to omit anonymous users from index and identify events (#87) (85e512a)

v4.1.0

18 Mar 19:42
4da77ef
Compare
Choose a tag to compare

4.1.0 (2024-03-18)

Features

  • Inline contexts for all evaluation events (#67) (654df01)
  • Redact anonymous attributes within feature events (#68) (65a3f3d)

v4.0.4

07 Mar 20:53
dcf5e4b
Compare
Choose a tag to compare

4.0.4 (2024-03-05)

Bug Fixes

  • Downgrade verbose data source log messages to debug (#76) (4de2b04)

v4.0.3

07 Feb 21:51
276aa67
Compare
Choose a tag to compare

4.0.3 (2024-02-07)

Bug Fixes

  • Bump aeson bounds to accept aeson-2.2.1.0 (#74) (faee60e)

v4.0.2

01 Feb 21:24
ce2ea06
Compare
Choose a tag to compare

4.0.2 (2024-02-01)

Bug Fixes

  • deps: Drop explicit dependency on vector (#69) (3bb826d)

4.0.1

26 Oct 17:03
Compare
Choose a tag to compare

[4.0.1] - 2023-10-26

Removed:

  • Eliminated unnecessary and noisy log message

4.0.0

21 Feb 22:45
Compare
Choose a tag to compare

[4.0.0] - 2023-02-21

The latest version of this SDK supports LaunchDarkly's new custom contexts feature. Contexts are an evolution of a previously-existing concept, "users." Contexts let you create targeting rules for feature flags based on a variety of different information, including attributes pertaining to users, organizations, devices, and more. You can even combine contexts to create "multi-contexts."

This feature is only available to members of LaunchDarkly's Early Access Program (EAP). If you're in the EAP, you can use contexts by updating your SDK to the latest version and, if applicable, updating your Relay Proxy. Outdated SDK versions do not support contexts, and will cause unpredictable flag evaluation behavior.

If you are not in the EAP, only use single contexts of kind "user", or continue to use the user type if available. If you try to create contexts, the context will be sent to LaunchDarkly, but any data not related to the user object will be ignored.

For detailed information about this version, please refer to the list below. For information on how to upgrade from the previous version, please read the migration guide.

Added:

  • The type Context from the LaunchDarkly.Server.Context module defines the new context model.
  • All SDK methods that took a hash representing the user now accept an LDContext.
  • Added support for Secure Mode.

Changed (breaking changes from 3.x):

  • The secondary attribute which existed in the user hash is no longer a supported feature. If you set an attribute with that name in Context, it will simply be a custom attribute like any other.
  • Analytics event data now uses a new JSON schema due to differences between the context model and the old user model.

Changed (requirements/dependencies/build):

  • The minimum supported Stackage resolver is LTS 16.31.

Changed (behavioral changes):

  • The default polling URL has changed from https://app.launchdarkly.com to https://sdk.launchdarkly.com.
  • Several optimizations within the flag evaluation logic have improved the performance of evaluations. For instance, target lists are now stored internally as sets for faster matching.

Removed:

  • Removed the User type and all associated functions from the LaunchDarkly.Server.User module.
  • Removed support for the secondary meta-attribute in the user hash.
  • The alias method no longer exists because alias events are not needed in the new context model.
  • The configSetInlineUsersInEvents configuration option no longer exists because it is not relevant in the new context model.
  • Removed all types and options that were deprecated as of the most recent 3.x release.
  • The old Redis store integration has been removed from this repository and published to its own separate package. You can learn more by reviewing the Haskell redis docs or reviewing the published package on Hackage.

Deprecated:

The following methods in TestData have been deprecated and replaced with new context-aware options.

  • variationForAllUsers was replaced with variationForAll
  • valueForAllUsers was replaced with valueForAll
  • variationForUser was replaced with variationForKey
  • ifMatch was replaced with ifMatchContext
  • ifNotMatch was replaced with ifNotMatchContext
  • andMatch was replaced with andMatchContext
  • andNotMatch was replaced with andNotMatchContext

The config method configSetUserKeyLRUCapacity has been deprecated and replaced with configSetContextKeyLRUCapacity.

3.1.1

17 Feb 21:13
Compare
Choose a tag to compare

[3.1.1] - 2023-02-17

Fixed:

  • The polling thread will be shutdown if the LaunchDarkly polling API returns an unrecoverable response code.
  • Updated dependency versions in the Redis store package to mirror the SDK requirements.

3.1.0

27 Jan 20:12
Compare
Choose a tag to compare

[3.1.0] - 2023-01-27

Added:

  • New ApplicationInfo type, for configuration of application metadata that may be used in LaunchDarkly analytics or other product features. This does not affect feature flag evaluations.