diff --git a/CHANGELOG.md b/CHANGELOG.md index 790fac5bf..2502482d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # Change Log All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/). -The format is based on [Keep a Changelog](http://keepachangelog.com/) -and this project adheres to [Semantic Versioning](http://semver.org/). +# [8.9.1] - 2024-07-09 +- Fixed parsing issue in `ConversationsClient#listEvents` +- `body` method in `CustomEvent.Builder` is now accessible +- Bumped JWT library version to 1.1.3 # [8.9.0] - 2024-06-20 - Added `User-to-User` header in Voice Connect SIP endpoint diff --git a/pom.xml b/pom.xml index 27cf46365..2ccdd081e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.vonage server-sdk - 8.9.0 + 8.9.1 jar Vonage Java Server SDK @@ -46,7 +46,7 @@ 21 UTF-8 https://oss.sonatype.org - 2.17.1 + 2.17.2 @@ -54,7 +54,7 @@ com.vonage jwt - 1.1.1 + 1.1.3 com.fasterxml.jackson.core diff --git a/src/main/java/com/vonage/client/HttpWrapper.java b/src/main/java/com/vonage/client/HttpWrapper.java index 5455f7414..f2244d886 100644 --- a/src/main/java/com/vonage/client/HttpWrapper.java +++ b/src/main/java/com/vonage/client/HttpWrapper.java @@ -34,7 +34,7 @@ public class HttpWrapper { private static final String CLIENT_NAME = "vonage-java-sdk", - CLIENT_VERSION = "8.9.0", + CLIENT_VERSION = "8.9.1", JAVA_VERSION = System.getProperty("java.version"), USER_AGENT = String.format("%s/%s java/%s", CLIENT_NAME, CLIENT_VERSION, JAVA_VERSION); diff --git a/src/main/java/com/vonage/client/conversations/GenericEvent.java b/src/main/java/com/vonage/client/conversations/GenericEvent.java index 8a62c3a21..e3695f4bb 100644 --- a/src/main/java/com/vonage/client/conversations/GenericEvent.java +++ b/src/main/java/com/vonage/client/conversations/GenericEvent.java @@ -36,7 +36,7 @@ class GenericEvent extends EventWithBody> { } @SuppressWarnings("unchecked") - static abstract class Builder> extends EventWithBody.Builder> { diff --git a/src/main/java/com/vonage/client/conversations/ListEventsResponse.java b/src/main/java/com/vonage/client/conversations/ListEventsResponse.java index ec06d1a3c..54121d1bb 100644 --- a/src/main/java/com/vonage/client/conversations/ListEventsResponse.java +++ b/src/main/java/com/vonage/client/conversations/ListEventsResponse.java @@ -15,7 +15,9 @@ */ package com.vonage.client.conversations; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import com.vonage.client.JsonableBaseObject; import com.vonage.client.common.HalPageResponse; import java.util.List; @@ -23,18 +25,22 @@ * HAL response for {@link ConversationsClient#listEvents(String, ListEventsRequest)}. */ public final class ListEventsResponse extends HalPageResponse { - @JsonProperty("_embedded") private List events; + @JsonProperty("_embedded") private Embedded _embedded; ListEventsResponse() { } + static final class Embedded extends JsonableBaseObject { + @JsonProperty("events") private List events; + } + /** * Gets the events contained in the {@code _embedded} response. * * @return The events for this page. */ - @JsonProperty("_embedded") + @JsonIgnore public List getEvents() { - return events; + return _embedded != null ? _embedded.events : null; } } diff --git a/src/test/java/com/vonage/client/conversations/ConversationsClientTest.java b/src/test/java/com/vonage/client/conversations/ConversationsClientTest.java index 12fb47ae9..508459cad 100644 --- a/src/test/java/com/vonage/client/conversations/ConversationsClientTest.java +++ b/src/test/java/com/vonage/client/conversations/ConversationsClientTest.java @@ -114,8 +114,8 @@ public class ConversationsClientTest extends AbstractClientTest