Skip to content

5.0.0-beta.5

Pre-release
Pre-release

Choose a tag to compare

@eli-darkly eli-darkly released this 11 Aug 00:29
· 53 commits to v5 since this release
6657cd0

[5.0.0-beta.5] - 2020-08-10

A version was skipped because the 5.0.0-beta.4 tag had been applied to the wrong commit.

Added:

  • LDClient.WithEventsDisabled() is a decorator that allows you to temporarily turn off analytics events even if events are enabled in your configuration.
  • The object returned by AllFlagsState() can now be constructed (such as for testing purposes) with flagstate.NewAllFlagsBuilder().
  • In interfaces, LDClientInterface, LDClientEvaluations, and LDClientEvents are new interfaces describing the existing methods of LDClient. These may be useful for creating mocks in testing.

Changed:

  • Types related to LDClient.AllFlagsState() are now in the interfaces/flagstate package, and their names have changed as follows: FeatureFlagsState is now flagstate.AllFlags; ClientSideOnly is now flagstate.OptionClientSideOnly(); DetailsOnlyForTrackedFlags is now flagstate.OptionDetailsOnlyForTrackedFlags()`.