From ca7bf1070d1bbd1d1f0190b8ea77e20709acdd47 Mon Sep 17 00:00:00 2001 From: evgeny Date: Wed, 21 Jan 2026 00:57:20 +0000 Subject: [PATCH 1/2] chore: bump version number --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- gradle.properties | 2 +- .../io/ably/lib/test/realtime/RealtimeHttpHeaderTest.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6ec46570e..dfd7b320f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -235,7 +235,7 @@ You may wish to make changes to Ably Java or Ably Android, and test it immediate - Open the directory printed from the output of that command. Inside that folder, get the `ably-android-x.y.z.aar`, and place it your Android project's `libs/` directory. Create this directory if it doesn't exist. - Add an `implementation` dependency on the `.aar`: ```groovy -implementation files('libs/ably-android-1.5.0.aar') +implementation files('libs/ably-android-1.6.0.aar') ``` - Add the `implementation` (not `testImplementation`) dependencies found in `dependencies.gradle` to your project. This is because the `.aar` does not contain dependencies. - Build/run your application. diff --git a/README.md b/README.md index 9d09ec488..7239ab096 100644 --- a/README.md +++ b/README.md @@ -51,14 +51,14 @@ The Java SDK is available as a [Maven dependency](https://mvnrepository.com/arti io.ably ably-java - 1.5.0 + 1.6.0 ``` ### Install for Gradle: ```gradle -implementation 'io.ably:ably-java:1.5.0' +implementation 'io.ably:ably-java:1.6.0' implementation 'org.slf4j:slf4j-simple:2.0.7' ``` @@ -113,7 +113,7 @@ Add the following dependency to your `build.gradle` file: ```groovy dependencies { - runtimeOnly("io.ably:liveobjects:1.5.0") + runtimeOnly("io.ably:liveobjects:1.6.0") } ``` diff --git a/gradle.properties b/gradle.properties index f2f0f422c..47b6fb5a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=io.ably -VERSION_NAME=1.5.0 +VERSION_NAME=1.6.0 POM_INCEPTION_YEAR=2015 POM_URL=https://github.com/ably/ably-java POM_SCM_URL=https://github.com/ably/ably-java/ diff --git a/lib/src/test/java/io/ably/lib/test/realtime/RealtimeHttpHeaderTest.java b/lib/src/test/java/io/ably/lib/test/realtime/RealtimeHttpHeaderTest.java index 402971b26..9a15e6e2c 100644 --- a/lib/src/test/java/io/ably/lib/test/realtime/RealtimeHttpHeaderTest.java +++ b/lib/src/test/java/io/ably/lib/test/realtime/RealtimeHttpHeaderTest.java @@ -88,7 +88,7 @@ public void realtime_websocket_param_test() { * Defaults.ABLY_AGENT_PARAM, as ultimately the request param has been derived from those values. */ assertEquals("Verify correct lib version", requestParameters.get("agent"), - Collections.singletonList("ably-java/1.5.0 jre/" + System.getProperty("java.version"))); + Collections.singletonList("ably-java/1.6.0 jre/" + System.getProperty("java.version"))); /* Spec RTN2a */ assertEquals("Verify correct format", requestParameters.get("format"), From a4b5aa1da03c91d582e6cb31edddaaa7f091815b Mon Sep 17 00:00:00 2001 From: evgeny Date: Wed, 21 Jan 2026 01:12:33 +0000 Subject: [PATCH 2/2] docs: update `CHANGELOG.md` --- CHANGELOG.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8312651d4..43c29aedf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,60 @@ # Change Log +## [1.6.0](https://github.com/ably/ably-java/tree/v1.6.0) + +[Full Changelog](https://github.com/ably/ably-java/compare/v1.5.0...v1.6.0) + +### What's Changed + +* Message Updates and Deletes updated, Appends API added in [#1182](https://github.com/ably/ably-java/pull/1182) +* Mutable Message API over Realtime added in [#1183](https://github.com/ably/ably-java/pull/1183) +* Updated publish API to include message serials in the response in [#1184](https://github.com/ably/ably-java/pull/1184) + +### Breaking changes + +This release includes several breaking changes to experimental Mutable Message features: + +#### REST API Changes + +* `updateMessage()` and `deleteMessage()` now return `UpdateDeleteResult` instead of `void`, containing the updated message version serial +* `updateMessageAsync()` and `deleteMessageAsync()` callback parameter changed from `CompletionListener` to `Callback` +* Added `appendMessage()` and `appendMessageAsync()` methods returning `UpdateDeleteResult` + +#### Realtime API Changes + +* `updateMessage()`, `deleteMessage()`, and `appendMessage()` are now asynchronous methods (void return) instead of synchronous (returning `UpdateDeleteResult`) +* All message mutation methods now accept an optional `Callback` parameter for async result handling +* Removed `*Async` suffix from method names - all Realtime methods are now async by default and throw `AblyException` +* `updateMessage()`, `deleteMessage()`, and `appendMessage()` now use WebSocket transport to send data rather than REST requests + +#### Migration Guide + +**REST API:** +```java +// Before (v1.5.0) +channel.updateMessageAsync(message, new Callback() { + public void onSuccess() { ... } +}}); + +// After (v1.6.0) +channel.updateMessageAsync(message, new Callback() { + public void onSuccess(UpdateDeleteResult result) { ... } +}); +``` + +**Realtime API:** +```java +// Before (v1.5.0) +channel.updateMessageAsync(message, new Callback() { + public void onSuccess() { ... } +}}); + +// After (v1.6.0) +channel.updateMessage(message, new Callback() { + public void onSuccess(UpdateDeleteResult result) { ... } +}); +``` + ## [1.5.0](https://github.com/ably/ably-java/tree/v1.5.0) [Full Changelog](https://github.com/ably/ably-java/compare/v1.4.2...v1.5.0)