Skip to content

Commit bdf0587

Browse files
authored
Merge branch 'main' into rlamb/log-cached-data-warning-once
2 parents 23a4106 + 39dfe5d commit bdf0587

11 files changed

Lines changed: 43 additions & 15 deletions

File tree

‎.release-please-manifest.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"lib/java-server-sdk-otel": "0.2.0",
44
"lib/java-server-sdk-redis-store": "3.2.0",
55
"lib/shared/common": "2.5.0",
6-
"lib/shared/internal": "1.11.1",
6+
"lib/shared/internal": "1.12.0",
77
"lib/shared/test-helpers": "2.1.0",
8-
"lib/sdk/server": "7.16.0"
8+
"lib/sdk/server": "7.17.0"
99
}

‎lib/sdk/server/CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to the LaunchDarkly Java SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [7.17.0](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-server-sdk-7.16.0...launchdarkly-java-server-sdk-7.17.0) (2026-09-10)
6+
7+
8+
### Features
9+
10+
* Add environment ID support for hooks ([#202](https://github.com/launchdarkly/java-core/issues/202)) ([41df008](https://github.com/launchdarkly/java-core/commit/41df0088deb32c5c1e2c3d81ce60e774ed0e495d))
11+
* deprecate FDv2 payload filter builder methods ([#209](https://github.com/launchdarkly/java-core/issues/209)) ([ffc5a4c](https://github.com/launchdarkly/java-core/commit/ffc5a4c6b69ed31ec5ca5f938bc76030f2979a32))
12+
513
## [7.16.0](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-server-sdk-7.15.0...launchdarkly-java-server-sdk-7.16.0) (2026-09-01)
614

715

‎lib/sdk/server/gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#x-release-please-start-version
2-
version=7.16.0
2+
version=7.17.0
33
#x-release-please-end
44

55
# See https://github.com/gradle/gradle/issues/11308 regarding the following property

‎lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/Version.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ private Version() {}
55

66
// This constant is updated automatically by our Gradle script during a release, if the project version has changed
77
// x-release-please-start-version
8-
static final String SDK_VERSION = "7.16.0";
8+
static final String SDK_VERSION = "7.17.0";
99
// x-release-please-end
1010
}

‎lib/shared/internal/CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to the project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [1.12.0](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-sdk-internal-1.11.1...launchdarkly-java-sdk-internal-1.12.0) (2026-09-15)
6+
7+
8+
### Features
9+
10+
* **events:** make event serialization usable from another package ([#214](https://github.com/launchdarkly/java-core/issues/214)) ([185dfbb](https://github.com/launchdarkly/java-core/commit/185dfbb776f0d607076baaddeb0ffa6fe4530fff))
11+
512
## [1.11.1](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-sdk-internal-1.11.0...launchdarkly-java-sdk-internal-1.11.1) (2026-08-28)
613

714

‎lib/shared/internal/gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#x-release-please-start-version
2-
version=1.11.1
2+
version=1.12.0
33
#x-release-please-end
44

55
# Used only in Android CI test build:

‎lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/events/AggregatedEventSummarizer.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
* Note that the methods of this class are deliberately not thread-safe, because they should
1717
* always be called from EventProcessor's single message-processing thread.
1818
*/
19-
final class AggregatedEventSummarizer implements EventSummarizerInterface {
19+
public final class AggregatedEventSummarizer implements EventSummarizerInterface {
2020
private final EventSummarizer summarizer;
2121

22-
AggregatedEventSummarizer() {
22+
public AggregatedEventSummarizer() {
2323
this.summarizer = new EventSummarizer();
2424
}
2525

‎lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/events/EventOutputFormatter.java‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,28 @@
2525
* handling of context data and private attribute redaction is implemented in EventContextFormatter
2626
* and tested in more detail in EventContextFormatterTest.
2727
*/
28-
final class EventOutputFormatter {
28+
public final class EventOutputFormatter {
2929
private final EventContextFormatter contextFormatter;
3030
private final boolean redactAnonymousAllEvents;
3131

32-
EventOutputFormatter(EventsConfiguration config) {
32+
public EventOutputFormatter(EventsConfiguration config) {
3333
this.contextFormatter = new EventContextFormatter(
3434
config.allAttributesPrivate,
3535
config.privateAttributes.toArray(new AttributeRef[config.privateAttributes.size()]));
3636
this.redactAnonymousAllEvents = config.redactAnonymousAllEvents;
3737
}
3838

39-
int writeOutputEvents(Event[] events, List<EventSummarizer.EventSummary> summaries, Writer writer) throws IOException {
39+
/**
40+
* Writes events and summaries as the JSON array that makes up a request body.
41+
*
42+
* @param events the individual events to write
43+
* @param summaries the summaries to write; empty ones are skipped
44+
* @param writer where to write the JSON
45+
* @return how many output events were written, counting each summary as one
46+
* @throws IOException if the writer failed
47+
*/
48+
public int writeOutputEvents(Event[] events, List<EventSummarizer.EventSummary> summaries, Writer writer)
49+
throws IOException {
4050
int count = 0;
4151
JsonWriter jsonWriter = new JsonWriter(writer);
4252
jsonWriter.beginArray();

‎lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/events/EventSummarizer.java‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* methods of this class are deliberately not thread-safe, because they should always
1515
* be called from EventProcessor's single message-processing thread.
1616
*/
17-
final class EventSummarizer {
17+
public final class EventSummarizer {
1818
private EventSummary eventsState;
1919
private final LDContext context; // nullable - only set for per-context summarization
2020

@@ -85,7 +85,10 @@ void clear() {
8585
eventsState = new EventSummary(context);
8686
}
8787

88-
static final class EventSummary {
88+
/**
89+
* A snapshot of the evaluations counted since the last reset.
90+
*/
91+
public static final class EventSummary {
8992
final Map<String, FlagInfo> counters;
9093
long startDate;
9194
long endDate;

‎lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/events/EventSummarizerInterface.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Note that implementations are deliberately not thread-safe, as they should always
1414
* be called from EventProcessor's single message-processing thread.
1515
*/
16-
interface EventSummarizerInterface {
16+
public interface EventSummarizerInterface {
1717
/**
1818
* Adds information about an evaluation to the summary.
1919
*

0 commit comments

Comments
 (0)