Skip to content

Commit 1789aa6

Browse files
author
Georgi Neykov
committed
Update CHANGELOG.md and README.md
1 parent 3f33dc6 commit 1789aa6

File tree

3 files changed

+36
-14
lines changed

3 files changed

+36
-14
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
Changelog
22
==========
33

4+
Version 2.5.0 (28.07.2020)
5+
--------------------------
6+
7+
## Client
8+
9+
- Deprecate `ResponseBody.writeTo()`, `ResponseBody.valuesBytes()`,
10+
`ResponseBody.valuesByteArray()`.
11+
12+
The one-shot stream of data being held by a `ResponseBody`
13+
needs to be decoded by a `ProtocolReader` before use. `ResponseBody.reader()`
14+
returns such an instance which is already configured
15+
and ready for reading making these methods redundant.
16+
Also the aforementioned methods bring some behavior ambiguity in cases where
17+
the stream may be partially consumed through the exposed `ProtocolReader`.
18+
19+
**The methods will now throw an `IllegalStateException` if
20+
called when the response has been partially read via a `ProtocolReader`.**
21+
22+
**The methods will be removed in the next major release of the library.**
23+
24+
- Fix potential connection leaks in `Call.enqueue()`
25+
and `Call.enqueueAndWait()` implementations.
26+
- Review connection closing/recycling in the `MultiCall` implementation
27+
- Add more assertions regarding connection recycling/closure in `Call`,
28+
`MultiCall` unit tests.
29+
430
Version 2.4.1 (20.03.2020)
531
--------------------------
632

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ api.copy(...)
5959
<dependency>
6060
<groupId>com.pcloud.pcloud-networking-java</groupId>
6161
<artifactId>composer</artifactId>
62-
<version>2.4.1</version>
62+
<version>2.5.0</version>
6363
<type>pom</type>
6464
</dependency>
6565
```
6666

6767
```groovy
68-
compile 'com.pcloud.pcloud-networking-java:composer:2.4.1'
68+
compile 'com.pcloud.pcloud-networking-java:composer:2.5.0'
6969
```
7070

7171
### Client
@@ -87,13 +87,13 @@ The `binapi-client` module contains a network client for composing and executing
8787
<dependency>
8888
<groupId>com.pcloud.pcloud-networking-java</groupId>
8989
<artifactId>binapi-client</artifactId>
90-
<version>2.4.1</version>
90+
<version>2.5.0</version>
9191
<type>pom</type>
9292
</dependency>
9393
```
9494

9595
```groovy
96-
compile 'com.pcloud.pcloud-networking-java:binapi-client:2.4.1'
96+
compile 'com.pcloud.pcloud-networking-java:binapi-client:2.5.0'
9797
```
9898

9999
--------------------------------------------------------------------------------
@@ -115,13 +115,13 @@ The `serialization` module contains a library for serializing Java objects to bi
115115
<dependency>
116116
<groupId>com.pcloud.pcloud-networking-java</groupId>
117117
<artifactId>serialization</artifactId>
118-
<version>2.4.1</version>
118+
<version>2.5.0</version>
119119
<type>pom</type>
120120
</dependency>
121121
```
122122

123123
```groovy
124-
compile 'com.pcloud.pcloud-networking-java:serialization:2.4.1'
124+
compile 'com.pcloud.pcloud-networking-java:serialization:2.5.0'
125125
```
126126
--------------------------------------------------------------------------------
127127
### Protocol
@@ -142,16 +142,15 @@ The `protocol` module contains the core logic for writing/reading data in the fo
142142
<dependency>
143143
<groupId>com.pcloud.pcloud-networking-java</groupId>
144144
<artifactId>protocol</artifactId>
145-
<version>2.4.1</version>
145+
<version>2.5.0</version>
146146
<type>pom</type>
147147
</dependency>
148148
```
149149

150150
```groovy
151-
compile 'com.pcloud.pcloud-networking-java:protocol:2.4.1'
151+
compile 'com.pcloud.pcloud-networking-java:protocol:2.5.0'
152152
```
153153

154-
155154
## License
156155
Copyright (c) 2020 pCloud AG
157156

@@ -168,8 +167,5 @@ compile 'com.pcloud.pcloud-networking-java:protocol:2.4.1'
168167
limitations under the License.
169168

170169

171-
172-
173-
174170
[site]: https://www.pcloud.com/
175171
[docs]: https://docs.pcloud.com/

publishing.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
ext {
1818
isCi = System.getenv().containsKey('CI')
1919

20-
versionName = "2.4.1"
21-
versionCode = 22
20+
versionName = "2.5.0"
21+
versionCode = 23
2222
libraryName = "pcloud-networking-java"
2323
groupId = "com.pcloud.pcloud-networking-java"
2424
description = "A Network Stack for pCloud's API written in Java"

0 commit comments

Comments
 (0)