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 #229

Closed
wants to merge 945 commits into from
Closed

prepare 5.4.0 release #229

wants to merge 945 commits into from

Conversation

LaunchDarklyCI
Copy link
Contributor

[5.4.0] - 2021-04-08

This release makes improvements to the helper methods for using Gson and Jackson for JSON conversion. There are no other changes.

Added:

  • In com.launchdarkly.sdk.json.LDGson: valueToJsonElement and LDGson.valueMapToJsonElementMap, convenience methods for applications that use Gson types.

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.
  • 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 14:55
# Conflicts:
#	src/test/java/com/launchdarkly/sdk/server/LDClientListenersTest.java
#	src/test/java/com/launchdarkly/sdk/server/StreamProcessorTest.java
# 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
hroederld and others added 26 commits September 28, 2020 16:13
# Conflicts:
#	CHANGELOG.md
#	build.gradle
#	gradle.properties
#	src/main/java/com/launchdarkly/client/value/LDValue.java
#	src/main/java/com/launchdarkly/sdk/server/interfaces/LDClientInterface.java
#	src/test/java/com/launchdarkly/client/LDUserTest.java
#	src/test/java/com/launchdarkly/client/value/LDValueTest.java
…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
Copy link
Contributor

Mistake, please ignore.

@eli-darkly eli-darkly closed this Apr 8, 2021
@eli-darkly eli-darkly deleted the release-5.4.0 branch April 8, 2021 17:01
@LaunchDarklyCI LaunchDarklyCI restored the release-5.4.0 branch April 8, 2021 17:01
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