Skip to content

Commit

Permalink
chore: update dependency com.konghq:unirest-java-core to v4.4.0 (#1333)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.konghq:unirest-java-core](https://togithub.com/Kong/unirest-java)
| `4.2.9` -> `4.4.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.konghq:unirest-java-core/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.konghq:unirest-java-core/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.konghq:unirest-java-core/4.2.9/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.konghq:unirest-java-core/4.2.9/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>Kong/unirest-java (com.konghq:unirest-java-core)</summary>

###
[`v4.4.0`](https://togithub.com/Kong/unirest-java/blob/HEAD/CHANGELOG.md#440)

- Issue [#&#8203;526](https://togithub.com/Kong/unirest-java/issues/526)
split connection timeout from request timeout. The request no longer has
a connection timeout setting, and instead has a request timeout setting
as a replacement. Previously these two settings had been conflated. The
overall config also has a default request timeout that will be applied
to all requests if the request setting is not set. The default setting
is null which indicates a infinite timeout.

###
[`v4.3.2`](https://togithub.com/Kong/unirest-java/blob/HEAD/CHANGELOG.md#432)

- Issue [#&#8203;523](https://togithub.com/Kong/unirest-java/issues/523)
when paging create a new copy of the request for each page rather than
reusing the original
- Issue [#&#8203;524](https://togithub.com/Kong/unirest-java/issues/524)
support the Partitioned flag on cookies for CHIPs (Cookies Having
Independent Partitioned State)
-   Make Path public. Because its handy

###
[`v4.3.1`](https://togithub.com/Kong/unirest-java/blob/HEAD/CHANGELOG.md#431)

- Added convenience methods for using ContentType with accepts and
contentType methods

###
[`v4.3.0`](https://togithub.com/Kong/unirest-java/blob/HEAD/CHANGELOG.md#430)

The modules have been repackaged and put into new maven coordinates in
order to avoid conflicts with the 3.x line of unirest.
The mock module has had its maven artifact ID changed only.

| Old Maven Artifact ID | New Maven Artifact ID | Old Class Package |
New Class Package |

|----|-------------------------|----------------------|------------------------------|
|unirest-object-mappers-gson | unirest-modules-gson | kong.unirest.gson
| kong.unirest.modules.gson |
|unirest-objectmapper-jackson | unirest-modules-jackson |
kong.unirest.jackson | kong.unirest.modules.jackson |
|unirest-mocks | unirest-modules-mocks | kong.unirest.core |
kong.unirest.core |

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6:00am" in timezone
Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/CloudNetService/CloudNet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuMzQwLjEwIiwidGFyZ2V0QnJhbmNoIjoibmlnaHRseSJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 0utplay <[email protected]>
  • Loading branch information
renovate[bot] and 0utplay authored May 16, 2024
1 parent 11c3e41 commit 1630126
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jjwt = "0.11.5"
slf4j = "2.0.12"
aerogel = "2.1.0"
awsSdk = "2.25.3"
unirest = "4.2.9"
unirest = "4.4.0"
caffeine = "3.1.8"
reflexion = "1.8.0"
geantyref = "1.3.15"
Expand Down Expand Up @@ -121,7 +121,7 @@ testContainersJunit = { group = "org.testcontainers", name = "junit-jupiter", ve

# unirest
unirest = { group = "com.konghq", name = "unirest-java-core", version.ref = "unirest" }
unirestGson = { group = "com.konghq", name = "unirest-object-mappers-gson", version.ref = "unirest" }
unirestGson = { group = "com.konghq", name = "unirest-modules-gson", version.ref = "unirest" }

# docker-java
dockerJavaApi = { group = "com.github.docker-java", name = "docker-java-core", version.ref = "dockerJava" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
case "urlprofile", "up" -> {
sender.sendMessage("§7Trying to get texture data based on the given texture url...");
Unirest.post("https://api.mineskin.org/generate/url")
.connectTimeout(10000)
.requestTimeout(10000)
.contentType("application/json")
.header("User-Agent", "CloudNet-NPCs")
.body(Document.newJsonDocument().append("url", args[2]).toString())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public record PasteServer(
return Unirest.request(this.requestMethod, String.format("%s%s", this.baseUrl(), this.apiDataEndpoint))
.body(content)
.headers(this.headers)
.connectTimeout(10_000)
.requestTimeout(10_000)
.contentType("text/plain")
.charset(StandardCharsets.UTF_8)
.accept("application/json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public ConsoleProgressWrappers(@NonNull Console console) {
public void wrapDownload(@NonNull String url, @NonNull CheckedConsumer<InputStream> streamHandler) {
Unirest
.get(url)
.connectTimeout(5000)
.requestTimeout(5000)
.thenConsume(rawResponse -> {
if (rawResponse.getStatus() == 200) {
var stream = rawResponse.getContent();
Expand Down

0 comments on commit 1630126

Please sign in to comment.