Skip to content

Commit 74d267f

Browse files
authored
Merge pull request #1227 from ably/release/1.8.0
Release/1.8.0
2 parents b03edbf + 9e66979 commit 74d267f

5 files changed

Lines changed: 30 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Change Log
22

3+
## [1.8.0](https://github.com/ably/ably-java/tree/v1.8.0)
4+
5+
[Full Changelog](https://github.com/ably/ably-java/compare/v1.7.2...v1.8.0)
6+
7+
### What's Changed
8+
9+
- Introduce the new path-based LiveObjects API [#1214](https://github.com/ably/ably-java/pull/1214). LiveObjects data is now accessed through `channel.object`, which returns a `RealtimeObject` exposing `PathObject`s — stable references to locations within the channel object that resolve to values dynamically at runtime, instead of explicit `LiveMap`/`LiveCounter` instances. See the [PathObject documentation](https://ably.com/docs/liveobjects/concepts/path-object) for details. This feature was delivered through the following PRs:
10+
- Implement the path-based LiveObjects public API interfaces [#1213](https://github.com/ably/ably-java/pull/1213)
11+
- Add the path-based `RealtimeObject` and the `channel.object` accessor [#1216](https://github.com/ably/ably-java/pull/1216)
12+
- Add basic implementation for the `PathObject` and `Instance` interfaces [#1217](https://github.com/ably/ably-java/pull/1217)
13+
- Rename the `object` package to `liveobjects` (`io.ably.lib.liveobjects`) [#1220](https://github.com/ably/ably-java/pull/1220)
14+
- Update the LiveObjects `uts-to-kotlin` skill to generate tests for the new API [#1221](https://github.com/ably/ably-java/pull/1221)
15+
- Implement core `LiveObjects` functionality on the new path-based API (Kotlin) [#1223](https://github.com/ably/ably-java/pull/1223)
16+
- Implement the remaining path-based API — parent references, event bubbling and related behaviour [#1224](https://github.com/ably/ably-java/pull/1224)
17+
- Migrate the LiveObjects example app to the path-based API [#1225](https://github.com/ably/ably-java/pull/1225)
18+
19+
### Breaking changes
20+
21+
This release replaces the previous experimental instance-based LiveObjects API with the new path-based API:
22+
23+
- The `channel.getObjects()` accessor (returning `RealtimeObjects`) has been replaced by the `channel.object` field (returning `RealtimeObject`)
24+
- The `io.ably.lib.objects` package has been renamed to `io.ably.lib.liveobjects`
25+
- Instead of obtaining and operating on explicit `LiveMap`/`LiveCounter` instances, data is accessed and mutated through `PathObject` references
26+
327
## [1.7.2](https://github.com/ably/ably-java/tree/v1.7.2)
428

529
[Full Changelog](https://github.com/ably/ably-java/compare/v1.7.1...v1.7.2)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ You may wish to make changes to Ably Java or Ably Android, and test it immediate
235235
- 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.
236236
- Add an `implementation` dependency on the `.aar`:
237237
```groovy
238-
implementation files('libs/ably-android-1.7.2.aar')
238+
implementation files('libs/ably-android-1.8.0.aar')
239239
```
240240
- Add the `implementation` (not `testImplementation`) dependencies found in `dependencies.gradle` to your project. This is because the `.aar` does not contain dependencies.
241241
- Build/run your application.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ The Java SDK is available as a [Maven dependency](https://mvnrepository.com/arti
5151
<dependency>
5252
<groupId>io.ably</groupId>
5353
<artifactId>ably-java</artifactId>
54-
<version>1.7.2</version>
54+
<version>1.8.0</version>
5555
</dependency>
5656
```
5757

5858
### Install for Gradle:
5959

6060
```gradle
61-
implementation 'io.ably:ably-java:1.7.2'
61+
implementation 'io.ably:ably-java:1.8.0'
6262
implementation 'org.slf4j:slf4j-simple:2.0.7'
6363
```
6464

@@ -113,7 +113,7 @@ Add the following dependency to your `build.gradle` file:
113113

114114
```groovy
115115
dependencies {
116-
runtimeOnly("io.ably:liveobjects:1.7.2")
116+
runtimeOnly("io.ably:liveobjects:1.8.0")
117117
}
118118
```
119119

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=io.ably
2-
VERSION_NAME=1.7.2
2+
VERSION_NAME=1.8.0
33
POM_INCEPTION_YEAR=2015
44
POM_URL=https://github.com/ably/ably-java
55
POM_SCM_URL=https://github.com/ably/ably-java/

lib/src/test/java/io/ably/lib/test/realtime/RealtimeHttpHeaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void realtime_websocket_param_test() {
8888
* Defaults.ABLY_AGENT_PARAM, as ultimately the request param has been derived from those values.
8989
*/
9090
assertEquals("Verify correct lib version", requestParameters.get("agent"),
91-
Collections.singletonList("ably-java/1.7.2 jre/" + System.getProperty("java.version")));
91+
Collections.singletonList("ably-java/1.8.0 jre/" + System.getProperty("java.version")));
9292

9393
/* Spec RTN2a */
9494
assertEquals("Verify correct format", requestParameters.get("format"),

0 commit comments

Comments
 (0)