Gumichan01 / gakusci

The knowledge aggregator
Other
1 stars 0 forks source link

Update dependency pw.mihou:Jaikan to v1.0.5 #2

Closed renovate[bot] closed 8 months ago

renovate[bot] commented 8 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pw.mihou:Jaikan v2.1.0 -> 1.0.5 age adoption passing confidence

Release Notes

ShindouMihou/Jaikan (pw.mihou:Jaikan) ### [`v1.0.5`](https://togithub.com/ShindouMihou/Jaikan/releases/tag/v1.0.5) #### 🌟 The Jaikan Version that supports v4 Jaikan now officially supports Jikan v4 which is still in its early beta but still provides a good amount of change, don't worry if you are afraid of breaking changes as there is only one breaking change for this release and that is the configuration for rate-limits, user-agent which is done to make it easier to use the same configuration for either. #### ❓ How to use Jikan v4? To use Jikan v4, all you have to do is change `Jaikan.` to `Jaikan4.` since the v4 support is located on `Jaikan4` with each having their own independent configuration that you can use. #### 🤔 Do I have to use another pre-defined endpoint? Not at all! Jaikan has made all the pre-defined endpoints compatible with either versions of Jikan through simply changing from `Endpoints.create(v3)` to `Endpoints.create(v3, v4)` which allows the endpoints to contain both the v3 and v4 endpoints (you can also do the same). #### 🔪 What about the models? The models doesn't change as well... well, that is unless Jikan themselves decides to bring changes to the models but as of right now, both models work normally with either endpoints and there shouldn't be any incompatibility with them. #### ☁️ Then what is the breaking change? The breaking change is only when you change the *User-Agent* or the *Rate-limit* of Jaikan as they are now moved to their own Configuration class. An example of configuring Jaikan is: ```java Jaikan4.setConfiguration(builder -> builder .setOkHTTPClient(new OkHttpClient.Builder().connectTimeout(Duration.ofSeconds(5)).build()) .setUserAgent("Jaikan 4 (by Mihou)") .setRatelimit(Duration.ofSeconds(2000)) .setRequestCache(caffeine -> caffeine.expireAfterWrite(Duration.ofHours(6))) .build()); ``` Now, you see how much more customization you can do with this new version? #### ⚡ Changelog - Removed `serializeNull` from GSON. - Added support for v4 (`Endpoints`, `Jaikan4`). - Added a brand new configuration system for Jaikan (`JaikanConfiguration`).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.



This PR has been generated by Mend Renovate. View repository job log here.

Gumichan01 commented 8 months ago

Bad PR. 2.1.0 is the latest version.

renovate[bot] commented 8 months ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (1.0.5). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.