Skip to content

Releases: configcat/java-sdk

v8.0.0

30 Dec 16:15
Compare
Choose a tag to compare

Added

  • ConfigCatClient.get() factory method that produces a single instance / SDK key.
  • setOffline() / setOnline() methods to indicate whether the SDK is allowed to make HTTP calls or not. In 'offline' mode the SDK works from the cache only.
  • getValueDetails() / getValueDetailsAsync() methods to retrieve evaluation details along with the feature flag / setting value.
  • getAllValueDetails() / getAllValueDetailsAsync() methods to retrieve the detailed values of all feature flags or settings.
  • onCleintReady() / onBeforeClientClose() / onConfigChanged(Map<String, Setting>) / onFlagEvaluated(EvaluationDetails) / onError(String) hooks. Subscription is possible on client initialization options and on the hooks property of ConfigCatClient.
  • setDefaultUser(user) / clearDefaultUser() methods to set / remove a default user object used when there's no user passed to getValue[Async]() / getValueDetails[Async]() / getAllValues[Async]() / getAllValueDetails[Async]() methods.

Changed

  • Client initialization options were moved to a Options object that can be passed with a Consumer to the new ConfigCatClient.get() factory method.
  • ConfigCatClient can be explicitly closed via client.close() and ConfigCatClient.closeAll() methods.
  • forceRefresh() method now returns with a result object to indicate whether the refresh succeeded or not.
  • autoPollRateInSeconds lower limit changed to 1 second.
  • The TTL of lazyLoad and interval of autoPoll is compared against a cached fetchTime, which allows the SDK not necessarily download a new config.json at each application restart.
  • Fetch logic handles 403 response status and update cached fetchTime in case of 304 403 and 404 response status.

Removed

  • ConfigCatClient(String sdkKey) public constructor.
  • asyncRefresh parameter of PollingModes.lazyLoad().
  • getVariationId(), getVariationIdAsync(), getAllVariationIds(), getAllVariationIdsAsync() removed in favour of getValueDetails(), getAllValueDetails()
  • configurationChangeListener parameter of PollingModes.autoPoll(). It was replaced by the onConfigChanged() hook.

v7.2.0

22 Sep 17:12
Compare
Choose a tag to compare
  • Disabled automatic okhttp retry.

v7.1.3

23 Jun 15:45
Compare
Choose a tag to compare
  • Bump okhttp version due to security report

v7.1.2

23 Jun 15:30
Compare
Choose a tag to compare
  • Bump okhttp version due to security report

v7.1.1

23 Jun 14:57
921dc39
Compare
Choose a tag to compare
  • Use a const version string for X-ConfigCat-UserAgent

v7.1.0

17 May 10:32
Compare
Choose a tag to compare
  • Fix local override classpath resource reading.

v7.0.6

06 Apr 10:35
ed861a2
Compare
Choose a tag to compare
  • Fix for #12: When the cache write is failed, further write attempts were skipped because the latest ETag was cached in memory.

v7.0.5

11 Feb 13:50
Compare
Choose a tag to compare
  • The contents of #11

v7.0.4

12 Jan 13:34
Compare
Choose a tag to compare
  • Remove murmur hash due to compatibility reasons

v7.0.3

11 Jan 09:29
Compare
Choose a tag to compare
  • Moved every dependency to consumer classpath.