Skip to content

1.0.0

Choose a tag to compare

@LaunchDarklyReleaseBot LaunchDarklyReleaseBot released this 06 Dec 19:44
· 69 commits to main since this release

[1.0.0] - 2022-12-06

This release of the evaluation engine corresponds to the upcoming v1.0.0 release of the LaunchDarkly server-side Rust SDK (launchdarkly-server-sdk), and is not compatible with earlier SDK versions.

Added:

  • Added the types Context, Kind, ContextBuilder, MultiContextBuilder, Reference, and supporting types. Context defines the new context-based evaluation model. Context replace User, which was removed.
  • Added: urlencoding @ 2.1.0
  • Added: maplit @ 1.0.1
  • Added: itertools @ 0.10.3
  • Added: serde_with @ 2.1.0

Changed:

  • The MSRV is now 1.60.0
  • Updated: chrono from 0.4.15 to 0.4.23; only enable the "std" feature
  • Updated: semver from 0.10.0 to 1.0.14
  • evaluate now takes a Context instead of a User
  • User keys could previously be empty strings. With contexts, the key cannot be empty.
  • The "secondary" meta-attribute which affected percentage rollouts has been removed. If you set an attribute with that name in a context, it will be a custom attribute like any other.
  • For backwards-compatibility, it is possible to enable "secondary" evaluation logic within the evaluation engine by enabling the secondary_key_bucketing flag. This will only affect contexts that were created via deserialization, since it is not possible to set "secondary" via a builder method.

Removed:

  • User, UserBuilder, UserAttributes. See Context, ContextBuilder and MultiContextBuilder instead.