v3.0.0
Akinator no longer works with Unirest, so I've opted to use Java's HttpClient instead. This also introduces breaking changes to the API, though migration should be straightforward unless a custom UnirestInstance is needed.
Breaking changes
UnirestUtilshas been removed entirely.AkiwrapperBuilder#getUnirestInstancehas been removed and replaced with (incompatible)AkiwrapperBuilder#getHttpClient.AkiwrapperBuilder#setUnirestInstancehas been removed and replaced with (incompatible)AkiwrapperBuilder#setHttpClient.Akiwrapper#getUnirestInstancehas been removed and replaced with (incompatible)Akiwrapper#getHttpClient.- Deprecated methods and fields have been removed:
Question#isExhausted,AkiwrapperBuilder.DEFAULT_GUESS_TYPE,AkiwrapperBuilder#setGuessType,AkiwrapperBuilder#getGuessType,Question#getQuestion, andAkinatorException#getDebugInformation.
Additions
- Publicly writable
Route.defaultHeadershas been added, since it is otherwise not possible to change the default headers. Akiwrapper.Language.VIETNAMESEhas been added.
Fixes
- The
AkinatorException: Got HTTP 403error has been fixed. I'm not sure if this was a regional problem or not since it was emitted by CloudFlare and did not affect GitHub Actions workers, but Unirest's inability to communicate via HTTP/2 seems to be the cause. - Documentation no longer links to deprecated fields and methods.
LanguageEnumBuilderhas been fixed and no longer produces an empty result.