Skip to content

v3.0.0

Choose a tag to compare

@markozajc markozajc released this 13 Apr 02:15
· 8 commits to master since this release
70d4191

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

  • UnirestUtils has been removed entirely.
  • AkiwrapperBuilder#getUnirestInstance has been removed and replaced with (incompatible) AkiwrapperBuilder#getHttpClient.
  • AkiwrapperBuilder#setUnirestInstance has been removed and replaced with (incompatible) AkiwrapperBuilder#setHttpClient.
  • Akiwrapper#getUnirestInstance has 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, and AkinatorException#getDebugInformation.

Additions

  • Publicly writable Route.defaultHeaders has been added, since it is otherwise not possible to change the default headers.
  • Akiwrapper.Language.VIETNAMESE has been added.

Fixes

  • The AkinatorException: Got HTTP 403 error 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.
  • LanguageEnumBuilder has been fixed and no longer produces an empty result.