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

Commit 6fc9a88

Browse files
LaunchDarklyReleaseBoteli-darklyLaunchDarklyReleaseBotaengelbergantonmos
authored
prepare 6.3.0 release (#316)
## [6.3.0] - 2023-10-16 ### Deprecated: - Deprecated methods which take the `LDUser` type. These methods are removed in 7.0.0. Currently an `LDUser` can be converted to a `LDContext` using `LDContext.fromUser`. The ability to do this conversion may be removed in a future version. --------- Co-authored-by: Eli Bishop <[email protected]> Co-authored-by: LaunchDarklyReleaseBot <[email protected]> Co-authored-by: Alex Engelberg <[email protected]> Co-authored-by: Anton Mostovoy <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: Gavin Whelan <[email protected]> Co-authored-by: ssrm <[email protected]> Co-authored-by: Harpo Roeder <[email protected]> Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: Elliot <[email protected]> Co-authored-by: Robert J. Neal <[email protected]> Co-authored-by: Robert J. Neal <[email protected]> Co-authored-by: Sam Stokes <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: ember-stevens <[email protected]> Co-authored-by: Alex Engelberg <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: Todd Anderson <[email protected]> Co-authored-by: tanderson-ld <[email protected]> Co-authored-by: Matthew M. Keeler <[email protected]> Co-authored-by: ld-repository-standards[bot] <113625520+ld-repository-standards[bot]@users.noreply.github.com> Co-authored-by: Kane Parkinson <[email protected]> Co-authored-by: Ryan Lamb <[email protected]>
1 parent 3b96539 commit 6fc9a88

File tree

8 files changed

+372
-18
lines changed

8 files changed

+372
-18
lines changed

.circleci/config.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,23 @@ jobs:
120120
- checkout
121121
- run:
122122
name: uninstall previous openjdk
123-
command: choco uninstall openjdk
123+
command: choco uninstall openjdk -y
124124
- run:
125125
name: install OpenJDK
126126
command: |
127127
$ProgressPreference = "SilentlyContinue" # prevents console errors from CircleCI host
128-
choco install openjdk --version <<parameters.openjdk-version>> --allow-downgrade
129-
- run: java -version
128+
choco install openjdk --version <<parameters.openjdk-version>> --allow-downgrade -y
129+
- run:
130+
name: Check java version
131+
command: |
132+
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
133+
refreshenv
134+
java -version
130135
- run:
131136
name: build and test
132137
command: |
138+
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
139+
refreshenv
133140
cp gradle.properties.example gradle.properties
134141
.\gradlew.bat --no-daemon test # must use --no-daemon because CircleCI in Windows will hang if there's a daemon running
135142
- run:
58.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

contract-tests/gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contract-tests/gradlew.bat

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contract-tests/service/src/main/java/sdktest/TestService.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,14 @@ public BadRequestException(String message) {
6060
}
6161

6262
public static void main(String[] args) throws Exception {
63-
// ((ch.qos.logback.classic.Logger)LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME)).setLevel(
64-
// Level.valueOf(config.logLevel.toUpperCase()));
65-
6663
TestService service = new TestService();
6764

6865
SimpleRouter router = new SimpleRouter()
69-
.add("GET", "/", ctx -> service.writeJson(ctx, service.getStatus()))
66+
.add("GET", "/", ctx -> service.writeJson(diableKeepAlive(ctx), service.getStatus()))
7067
.add("DELETE", "/", ctx -> service.forceQuit())
71-
.add("POST", "/", ctx -> service.postCreateClient(ctx))
72-
.addRegex("POST", Pattern.compile("/clients/(.*)"), ctx -> service.postClientCommand(ctx))
73-
.addRegex("DELETE", Pattern.compile("/clients/(.*)"), ctx -> service.deleteClient(ctx));
68+
.add("POST", "/", ctx -> service.postCreateClient(diableKeepAlive(ctx)))
69+
.addRegex("POST", Pattern.compile("/clients/(.*)"), ctx -> service.postClientCommand(diableKeepAlive(ctx)))
70+
.addRegex("DELETE", Pattern.compile("/clients/(.*)"), ctx -> service.deleteClient(diableKeepAlive(ctx)));
7471

7572
HttpServer server = HttpServer.start(PORT, router);
7673
server.getRecorder().setEnabled(false); // don't accumulate a request log
@@ -83,6 +80,11 @@ public static void main(String[] args) throws Exception {
8380
}
8481
}
8582

83+
private static RequestContext diableKeepAlive(RequestContext ctx) {
84+
ctx.addHeader("Connection", "close");
85+
return ctx;
86+
}
87+
8688
private Status getStatus() {
8789
Status rep = new Status();
8890
rep.capabilities = CAPABILITIES;

src/main/java/com/launchdarkly/sdk/server/interfaces/FlagTracker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public interface FlagTracker {
9595
* @param listener an object that you provide which will be notified of changes
9696
* @return a {@link FlagChangeListener} that can be used to unregister the listener
9797
*/
98+
@Deprecated
9899
public default FlagChangeListener addFlagValueChangeListener(String flagKey, LDUser user, FlagValueChangeListener listener) {
99100
return addFlagValueChangeListener(flagKey, LDContext.fromUser(user), listener);
100101
}

0 commit comments

Comments
 (0)