From 96ccb3677eeeccf7e502bcd0f26ed79ce5601c9e Mon Sep 17 00:00:00 2001 From: Jun Luo <4catcode@gmail.com> Date: Wed, 22 Apr 2026 09:06:40 +0800 Subject: [PATCH] pre-release: 3.0.0-beta0 --- CHANGELOG.md | 18 +++++++++++++----- android_test/app/build.gradle.kts | 2 +- build.gradle.kts | 2 +- examples/build.gradle.kts | 2 +- pom.xml | 2 +- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f34fb6ba..0a4719969 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,21 @@ # Changelog ## Pending -- fix: use OkHttp's public SSE factory for Horizon streams and force SSE requests to bypass caches. -- feat: sort `ScMap` entries by key in `Scv.toMap` following Soroban runtime ordering rules, as the network requires ScMap keys to be in ascending order. `Scv.toMap` now accepts `Map`; the previous `toMap(LinkedHashMap)` overload is deprecated. ([#766](https://github.com/lightsail-network/java-stellar-sdk/pull/766)) -- feat: add SEP-0051 support. ([#776](https://github.com/lightsail-network/java-stellar-sdk/pull/776)) + +## 3.0.0-beta0 + +### Update +- fix: use OkHttp's public SSE factory for Horizon streams and force SSE requests to bypass caches. ([#791](https://github.com/lightsail-network/java-stellar-sdk/pull/791)) +- feat: sort `ScMap` entries by key in `Scv.toMap` following Soroban runtime ordering rules, as the network requires `ScMap` keys to be in ascending order. `Scv.toMap` now accepts `Map`; the previous `toMap(LinkedHashMap)` overload is deprecated. ([#766](https://github.com/lightsail-network/java-stellar-sdk/pull/766)) +- feat: add SEP-0051 support. ([#774](https://github.com/lightsail-network/java-stellar-sdk/pull/774)) - feat: add `closeTime`, `headerXdr`, and `metadataXdr` to `GetLatestLedgerResponse`. ([#768](https://github.com/lightsail-network/java-stellar-sdk/pull/768)) -- chore: bump [stellar-xdr](https://github.com/stellar/stellar-xdr) to v25.0. ([#769](https://github.com/lightsail-network/java-stellar-sdk/pull/769)) +- chore: update various dependencies to the latest compatible versions. ([#786](https://github.com/lightsail-network/java-stellar-sdk/pull/786), [#790](https://github.com/lightsail-network/java-stellar-sdk/pull/790)) +- docs: add more detailed API and XDR generator documentation. ([#783](https://github.com/lightsail-network/java-stellar-sdk/pull/783), [#784](https://github.com/lightsail-network/java-stellar-sdk/pull/784)) +- chore: building the project from source now requires JDK 21 and Gradle 9.4.1. Published SDK artifacts still target Java 8 bytecode. ([#788](https://github.com/lightsail-network/java-stellar-sdk/pull/788), [#789](https://github.com/lightsail-network/java-stellar-sdk/pull/789)) +- chore: bump generated XDR definitions to `stellar-xdr` v26.0, including the v25.0 changes introduced earlier in this release cycle. ([#769](https://github.com/lightsail-network/java-stellar-sdk/pull/769), [#781](https://github.com/lightsail-network/java-stellar-sdk/pull/781)) + +### Breaking changes - refactor!: remove deprecated `StrKey` helpers `encodeEd25519PublicKey(AccountID)`, `encodeMuxedAccount(MuxedAccount)`, `decodeMuxedAccount(String)`, `encodeToXDRAccountId(String)`, and `encodeToXDRMuxedAccount(String)`; use `StrKey.encodeEd25519PublicKey(byte[])`, `org.stellar.sdk.MuxedAccount`, and `KeyPair#getXdrAccountId()` instead. ([#779](https://github.com/lightsail-network/java-stellar-sdk/pull/779)) -- chore: bump [stellar-xdr](https://github.com/stellar/stellar-xdr) to v26.0. ## 2.2.3 diff --git a/android_test/app/build.gradle.kts b/android_test/app/build.gradle.kts index 31eabc63c..d65e7a484 100644 --- a/android_test/app/build.gradle.kts +++ b/android_test/app/build.gradle.kts @@ -68,7 +68,7 @@ dependencies { implementation("androidx.compose.material3:material3") // Since we are adding local jar(libs/stellar-sdk.jar) as dependency, // gradle cannot automatically download the required third-party dependencies. - implementation(files("libs/stellar-sdk-2.2.3.jar")) + implementation(files("libs/stellar-sdk-3.0.0-beta0.jar")) implementation("com.squareup.okhttp3:okhttp:4.11.0") implementation("com.squareup.okhttp3:okhttp-sse:4.11.0") implementation("com.moandjiezana.toml:toml4j:0.7.2") diff --git a/build.gradle.kts b/build.gradle.kts index cf05c4851..989522dd6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { } group = "network.lightsail" -version = "2.2.3" +version = "3.0.0-beta0" java { toolchain { diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 3966f8dab..d873c1a72 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -22,7 +22,7 @@ spotless { dependencies { // Use https://central.sonatype.com/artifact/network.lightsail/stellar-sdk in prod. - implementation("network.lightsail:stellar-sdk:2.2.3") + implementation("network.lightsail:stellar-sdk:3.0.0-beta0") testImplementation(platform("org.junit:junit-bom:5.10.0")) testImplementation("org.junit.jupiter:junit-jupiter") } diff --git a/pom.xml b/pom.xml index aa54d1e3c..227746d6c 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ network.lightsail stellar-sdk - 2.2.3 + 3.0.0-beta0 jar stellar-sdk