Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

prepare 5.4.0 release #233

Merged
merged 951 commits into from
Apr 22, 2021
Merged

prepare 5.4.0 release #233

merged 951 commits into from
Apr 22, 2021

Conversation

LaunchDarklyCI
Copy link
Contributor

[5.4.0] - 2021-04-22

Added:

  • Added the alias method to LDClient. This can be used to associate two user objects for analytics purposes with an alias event.
  • In com.launchdarkly.sdk.json.LDGson, added convenience methods valueToJsonElement and valueMapToJsonElementMap for applications that use Gson types.
  • In com.launchdarkly.sdk.LDValue, added convenience method arrayOf().

Changed:

  • In com.launchdarkly.sdk.json, the implementations of LDGson.typeAdapters and LDJackson.module have been changed for better efficiency in deserialization. Instead of creating an intermediate string representation and re-parsing that, they now have a more direct way for the internal deserialization logic to interact with the streaming parser in the application's Gson or Jackson instance.

Fixed:

  • Gson.toJsonTree now works with LaunchDarkly types, as long as you have configured it as described in com.launchdarkly.sdk.json.LDGson. Previously, Gson was able to convert these types to and from JSON string data, but toJsonTree did not work due to a known issue with the JsonWriter.jsonValue method; the SDK code no longer uses that method.
  • LDValue.parse() now returns LDValue.ofNull() instead of an actual null reference if the JSON string is null.
  • Similarly, when deserializing an EvaluationDetail<LDValue> from JSON, if the value property is null, it will now translate this into LDValue.ofNull() rather than an actual null reference.

eli-darkly and others added 30 commits May 8, 2020 16:05
# Conflicts:
#	src/main/java/com/launchdarkly/client/Components.java
#	src/main/java/com/launchdarkly/client/EventsConfiguration.java
#	src/main/java/com/launchdarkly/sdk/server/DefaultEventProcessor.java
#	src/main/java/com/launchdarkly/sdk/server/EventFactory.java
#	src/main/java/com/launchdarkly/sdk/server/integrations/EventProcessorBuilder.java
#	src/test/java/com/launchdarkly/client/TestUtil.java
#	src/test/java/com/launchdarkly/sdk/server/DefaultEventProcessorTest.java
# Conflicts:
#	src/test/java/com/launchdarkly/sdk/server/LDClientEndToEndTest.java
…add new ErrorKind for this; improve comments and tests
# Conflicts:
#	src/main/java/com/launchdarkly/sdk/server/DefaultEventProcessor.java
decouple event HTTP logic from event processing
# Conflicts:
#	src/main/java/com/launchdarkly/sdk/server/DefaultEventSender.java
#	src/test/java/com/launchdarkly/sdk/server/DefaultEventSenderTest.java
…e-url

make events URI construction reliable regardless of whether base URI ends in a slash
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
LaunchDarklyCI and others added 26 commits October 1, 2020 00:49
…stupdate

[ch90672] socket factory make test less ambiguous
…275)

* increment versions when loading file data, so FlagTracker will work

* update doc comment about flag change events with file data
* add alias events and function
* update tests for new functionality
* update javadoc strings
@eli-darkly eli-darkly requested a review from bwoskow-ld April 22, 2021 23:19
@LaunchDarklyCI LaunchDarklyCI merged commit 6ad64db into master Apr 22, 2021
@LaunchDarklyCI LaunchDarklyCI deleted the release-5.4.0 branch April 22, 2021 23:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants