Skip to content

Commit 253faec

Browse files
committed
Merge remote-tracking branch 'origin' into ta/SDK-1817/commonizing-fdv2-source-types-server
2 parents 4b214e1 + 0144e2b commit 253faec

7 files changed

Lines changed: 41 additions & 5 deletions

File tree

.release-please-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"lib/java-server-sdk-otel": "0.2.0",
33
"lib/java-server-sdk-redis-store": "3.1.0",
4-
"lib/shared/common": "2.3.0",
5-
"lib/shared/internal": "1.8.0",
4+
"lib/shared/common": "2.4.0",
5+
"lib/shared/internal": "1.9.0",
66
"lib/shared/test-helpers": "2.1.0",
77
"lib/sdk/server": "7.12.0"
88
}

lib/shared/common/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+
## [2.4.0](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-sdk-common-2.3.0...launchdarkly-java-sdk-common-2.4.0) (2026-02-26)
6+
7+
8+
### Features
9+
10+
* commonizes several FDv2 related types ([ef1e204](https://github.com/launchdarkly/java-core/commit/ef1e204b056ee6ad2a7c12e850dbb04a769a6104))
11+
512
## [2.3.0](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-sdk-common-2.2.1...launchdarkly-java-sdk-common-2.3.0) (2026-02-03)
613

714

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#x-release-please-start-version
2-
version=2.3.0
2+
version=2.4.0
33
#x-release-please-end

lib/shared/common/src/main/java/com/launchdarkly/sdk/fdv2/Selector.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.launchdarkly.sdk.fdv2;
22

3+
import java.util.Objects;
4+
35
/**
46
* Identifies a specific version of data in the LaunchDarkly backend, used to request incremental
57
* updates from a known point.
@@ -75,4 +77,24 @@ public static Selector make(int version, String state) {
7577
* value when constructing a {@link ChangeSet}.
7678
*/
7779
public static final Selector EMPTY = empty();
80+
81+
@Override
82+
public boolean equals(Object o) {
83+
if (this == o) return true;
84+
if (!(o instanceof Selector)) return false;
85+
Selector other = (Selector) o;
86+
return isEmpty == other.isEmpty
87+
&& version == other.version
88+
&& Objects.equals(state, other.state);
89+
}
90+
91+
@Override
92+
public int hashCode() {
93+
return Objects.hash(isEmpty, version, state);
94+
}
95+
96+
@Override
97+
public String toString() {
98+
return isEmpty ? "Selector(empty)" : "Selector(" + version + "," + state + ")";
99+
}
78100
}

lib/shared/common/src/main/java/com/launchdarkly/sdk/fdv2/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Types for the FDv2 (Flag Delivery v2) data source protocol.
2+
* Types for the FDv2 (Flag Delivery v2).
33
* <p>
44
* This package contains the public types used by SDK data source implementations that support
55
* the FDv2 data sources.

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.9.0](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-sdk-internal-1.8.0...launchdarkly-java-sdk-internal-1.9.0) (2026-02-26)
6+
7+
8+
### Features
9+
10+
* commonizes several FDv2 related types ([a14beb9](https://github.com/launchdarkly/java-core/commit/a14beb987e3c9f049c6f81c9771bddce7ba7591d))
11+
512
## [1.8.0](https://github.com/launchdarkly/java-core/compare/launchdarkly-java-sdk-internal-1.7.0...launchdarkly-java-sdk-internal-1.8.0) (2026-02-12)
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.8.0
2+
version=1.9.0
33
#x-release-please-end
44

55
# Used only in Android CI test build:

0 commit comments

Comments
 (0)