Skip to content

Commit 16ed8f7

Browse files
AikoBBAigerim Beishenbekova
andauthored
Release/azure communication common/1.1.1 (Azure#27542)
* Reset changes to the patch version. * Updating the SDK dependencies for azure-communication-common * Added param validation in constructors Co-authored-by: Aigerim Beishenbekova <aigerimb@Aigerims-MacBook-Pro-2.local>
1 parent a36ea51 commit 16ed8f7

File tree

11 files changed

+32
-13
lines changed

11 files changed

+32
-13
lines changed

eng/bomgenerator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>com.fasterxml.jackson.dataformat</groupId>
4444
<artifactId>jackson-dataformat-xml</artifactId>
45-
<version>2.12.4</version> <!-- {x-version-update;com.fasterxml.jackson.dataformat:jackson-dataformat-xml;external_dependency} -->
45+
<version>2.13.1</version> <!-- {x-version-update;com.fasterxml.jackson.dataformat:jackson-dataformat-xml;external_dependency} -->
4646
</dependency>
4747
</dependencies>
4848
<build>

eng/jacoco-test-coverage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<dependency>
6969
<groupId>com.azure</groupId>
7070
<artifactId>azure-communication-common</artifactId>
71-
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
71+
<version>1.1.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
7272
</dependency>
7373
<dependency>
7474
<groupId>com.azure</groupId>

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ com.azure:azure-aot-graalvm-support;1.0.0-beta.1;1.0.0-beta.1
5656
com.azure:azure-aot-graalvm-support-netty;1.0.0-beta.1;1.0.0-beta.1
5757
com.azure:azure-communication-chat;1.1.4;1.2.0-beta.1
5858
com.azure:azure-communication-callingserver;1.0.0-beta.4;1.0.0-beta.5
59-
com.azure:azure-communication-common;1.1.0;1.2.0-beta.1
59+
com.azure:azure-communication-common;1.1.0;1.1.1
6060
com.azure:azure-communication-common-perf;1.0.0-beta.1;1.0.0-beta.1
6161
com.azure:azure-communication-sms;1.0.8;1.1.0-beta.1
6262
com.azure:azure-communication-identity;1.1.6;1.2.0-beta.2

sdk/communication/azure-communication-common-perf/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<dependency>
2929
<groupId>com.azure</groupId>
3030
<artifactId>azure-communication-common</artifactId>
31-
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
31+
<version>1.1.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
3232
</dependency>
3333
<dependency>
3434
<groupId>com.azure</groupId>

sdk/communication/azure-communication-common/CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# Release History
22

3-
## 1.2.0-beta.1 (Unreleased)
3+
## 1.1.1 (2022-03-09)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Bug Fixes
86

9-
### Bugs Fixed
7+
- Added validation for `tokenRefresher` in `CommunicationTokenRefreshOptions` constructors
108

119
### Other Changes
1210

11+
#### Dependency Updates
12+
13+
- Upgraded `azure-core` from `1.25.0` to version `1.26.0`.
14+
- Upgraded `azure-core-http-netty` from `1.11.7` to version `1.11.8`.
15+
1316
## 1.1.0 (2022-02-23)
1417

1518
### Features Added

sdk/communication/azure-communication-common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Azure Communication Common contains data structures commonly used for communicat
44
It is intended to provide cross-cutting concerns, e.g. authentication.
55

66
## Getting started
7+
78
### Prerequisites
89

910
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
1011
- [Java Development Kit (JDK)](https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable) version 8 or above.
1112
- [Apache Maven](https://maven.apache.org/download.cgi).
1213
- A deployed Communication Services resource.
1314

14-
### Include the package
1515
#### Include the BOM file
1616

1717
Please include the azure-sdk-bom to your project to take dependency on the General Availability (GA) version of the library. In the following snippet, replace the {bom_version_to_target} placeholder with the version number.

sdk/communication/azure-communication-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<groupId>com.azure</groupId>
1414
<artifactId>azure-communication-common</artifactId>
1515
<packaging>jar</packaging>
16-
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
16+
<version>1.1.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
1717

1818
<name>Microsoft Azure common library for communication service client</name>
1919
<description>

sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationTokenRefreshOptions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import reactor.core.publisher.Mono;
66

7+
import java.util.Objects;
78
import java.util.function.Supplier;
89

910
/**
@@ -47,6 +48,7 @@ public CommunicationTokenRefreshOptions(Supplier<Mono<String>> tokenRefresher, b
4748
*/
4849
@Deprecated
4950
public CommunicationTokenRefreshOptions(Supplier<Mono<String>> tokenRefresher, boolean refreshProactively, String initialToken) {
51+
Objects.requireNonNull(tokenRefresher, "'tokenRefresher' cannot be null.");
5052
this.asyncTokenRefresher = tokenRefresher;
5153
this.tokenRefresher = null;
5254
this.refreshProactively = refreshProactively;
@@ -63,6 +65,7 @@ public CommunicationTokenRefreshOptions(Supplier<Mono<String>> tokenRefresher, b
6365
* must be set in the future).
6466
*/
6567
public CommunicationTokenRefreshOptions(Supplier<String> tokenRefresher) {
68+
Objects.requireNonNull(tokenRefresher, "'tokenRefresher' cannot be null.");
6669
this.tokenRefresher = tokenRefresher;
6770
this.asyncTokenRefresher = null;
6871
this.refreshProactively = false;

sdk/communication/azure-communication-common/src/test/java/com/azure/communication/common/CommunicationTokenCredentialTests.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ public void constructWithExpiredTokenWithoutRefresher()
5656
tokenCredential.close();
5757
}
5858

59+
@Test
60+
public void constructCommunicationTokenRefreshOptionsWithoutRefresherShouldThrowException() {
61+
assertThrows(Exception.class, () -> {
62+
new CommunicationTokenRefreshOptions(null);
63+
}, "'tokenRefresher' cannot be null.");
64+
assertThrows(Exception.class, () -> {
65+
new CommunicationTokenRefreshOptions(null, false);
66+
}, "'tokenRefresher' cannot be null.");
67+
assertThrows(Exception.class, () -> {
68+
new CommunicationTokenRefreshOptions(null, true, "token");
69+
}, "'tokenRefresher' cannot be null.");
70+
}
71+
5972
class MockImmediateRefresher implements Supplier<String> {
6073
private int numCalls = 0;
6174
private String refreshedToken;

sdk/mobilenetwork/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<plugin>
2424
<groupId>org.jacoco</groupId>
2525
<artifactId>jacoco-maven-plugin</artifactId>
26-
<version>0.8.5</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
26+
<version>0.8.7</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
2727
<executions>
2828
<execution>
2929
<id>report-aggregate</id>

0 commit comments

Comments
 (0)