Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 7, 2025

Bumps com.github.mizosoft.methanol:methanol from 1.7.0 to 1.8.3.

Release notes

Sourced from com.github.mizosoft.methanol:methanol's releases.

v1.8.3

  • Fixed #121, where the response body was retained throughout the entire read timeout, resulting in a "timed" memory leak. This happened as the previously used JVM-wide scheduler retained references to timeout tasks (which retained references to the response body through a reference chain starting from TimeoutBodySubscriber). Methanol now uses a library-wide scheduler (unless overridden by Methanol.Builder::readTimeout) that loses references to timeout tasks when invalidated.

  • Fixed #125, where exception causes where swallowed in sync calls.

v1.8.2

Version 1.8.2

Fix regression caused by #118.

v1.8.1

Version 1.8.1

Fixed #117, where decompressing the response could potentially hang.

v1.8.0

Ok, here we go. That took a while.

There's been a number of unreleased features brewing in the last two and a half years (!). Guess I could say I've been cooking some Meth—anol, and now it's ready to serve. What's—my—name? Please don't say Heisenbug.

Anyhow, here's what's new:

  • Added a Redis storage backend for the HTTP cache, which supports Standalone & Cluster setups.
  • Added the ability to chain caches with different storage backends, expectedly in the order of decreasing locality. This will work well with the Redis cache. Consider the case where you have multiple instances of your service all sharing a Redis setup, you can have a chain of (JVM memory -> Redis) or even (JVM memory -> disk -> Redis) caches, so each node can have a local cache to consult first, and the shared Redis cache after.
  • The object mapping mechanism has been reworked to stay away from ServiceLoader & static state. We now have an AdapterCodec that is registered per-client.
    var mapper = new JsonMapper();
    var adapterCodec =
        AdapterCodec.newBuilder()
            .encoder(JacksonAdapterFactory.createJsonEncoder(mapper))
            .decoder(JacksonAdapterFactory.createJsonDecoder(mapper))
            .build();
    var client =
        Methanol.newBuilder()
            .adapterCodec(adapterCodec)
            .build();
    record Person(String name) {}
    HttpResponse<Person> response = client.send(
    MutableRequest.GET(".../echo", new Person("Jack Reacher"), MediaType.APPLICATION_JSON),
    Person.class);

  • Added hip Kotlin extensions. These were enjoyable to work on. Check them out!.
  • Added adapters for Moshi. This is mainly intended for Kotlin.
  • Added hints API for adapters. This allows carrying arbitrary parameters to customize encoders & decoders. Currently, supported adapters expose no customization. If you think there's a useful, generalizable customization that can be passed to any of the supported adapters, feel free to create an issue.

... (truncated)

Changelog

Sourced from com.github.mizosoft.methanol:methanol's changelog.

Version 1.8.3

  • Fixed #121, where the response body was retained throughout the entire read timeout, resulting in a "timed" memory leak. This happened as the previously used JVM-wide scheduler retained references to timeout tasks (which retained references to the response body through a reference chain starting from TimeoutBodySubscriber). Methanol now uses a library-wide scheduler that loses references to timeout tasks when invalidated.

  • Fixed #125, where exception causes where swallowed in sync calls.

Version 1.8.2

Fix regression caused by #118.

Version 1.8.1

Fixed #117, where decompressing the response could potentially hang.

Version 1.8.0

Ok, here we go. That took a while.

There's been a number of unreleased features brewing in the last two and a half years (!). Guess I could say I've been cooking some Meth—anol, and now it's ready to serve. What's—my—name? Please don't say Heisenbug.

Anyhow, here's what's new:

  • Added a Redis storage backend for the HTTP cache, which supports Standalone & Cluster setups.
  • Added the ability to chain caches with different storage backends, expectedly in the order of decreasing locality. This will work well with the Redis cache. Consider the case where you have multiple instances of your service all sharing a Redis setup, you can have a chain of (JVM memory -> Redis) or even (JVM memory -> disk -> Redis) caches, so each node can have a local cache to consult first, and the shared Redis cache after.
  • The object mapping mechanism has been reworked to stay away from ServiceLoader & static state. We now have an AdapterCodec that is registered per-client.
    var mapper = new JsonMapper();
    var adapterCodec =
        AdapterCodec.newBuilder()
            .encoder(JacksonAdapterFactory.createJsonEncoder(mapper))
            .decoder(JacksonAdapterFactory.createJsonDecoder(mapper))
            .build();
    var client =
        Methanol.newBuilder()
            .adapterCodec(adapterCodec)
            .build();
    record Person(String name) {}
    HttpResponse<Person> response = client.send(
    MutableRequest.GET(".../echo", new Person("Jack Reacher"), MediaType.APPLICATION_JSON),
    Person.class);

... (truncated)

Commits
  • 63c6f0e Release 1.8.3
  • bf53658 Use daemon threads for shared executors. (#128)
  • 568aa58 Use a corePoolSize of 1 for the scheduler (#127)
  • 8f23eb6 fix: rethrow initial ExecutionException when throwable clone fail (#126)
  • e328ada Use a library-wide ScheduledExecutorService instead of CompletableFuture::del...
  • 94f063b Link to 1.8.2 in root README
  • 085626a Release 1.8.2
  • e410aaa Call Queue::add instead of Queue::offer (#120)
  • e51bc16 Don't miss updating prefetch policy (#119)
  • 5ac19ce Typo
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [com.github.mizosoft.methanol:methanol](https://github.com/mizosoft/methanol) from 1.7.0 to 1.8.3.
- [Release notes](https://github.com/mizosoft/methanol/releases)
- [Changelog](https://github.com/mizosoft/methanol/blob/master/CHANGELOG.md)
- [Commits](mizosoft/methanol@v1.7.0...v1.8.3)

---
updated-dependencies:
- dependency-name: com.github.mizosoft.methanol:methanol
  dependency-version: 1.8.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from rymsha July 7, 2025 07:36
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Jul 7, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 7, 2025

The reviewers field in the dependabot.yml file will be removed soon. Please use the code owners file to specify reviewers for Dependabot PRs. For more information, see this blog post.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 13, 2025

Superseded by #199.

@dependabot dependabot bot closed this Oct 13, 2025
@dependabot dependabot bot deleted the dependabot/gradle/com.github.mizosoft.methanol-methanol-1.8.3 branch October 13, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants