Skip to content

Releases: markozajc/Akiwrapper

v1.5.2

07 Jul 21:00
b9831b7

Choose a tag to compare

Breaking changes

  • The namespace has been moved from com.markozajc.akiwrapper to com.github.markozajc.akiwrapper to unify it with the group and artifact IDs,
  • Akiwrapper#answerCurrentQuestion has been deprecated and renamed to Akiwrapper#answer,
  • Akiwrapper#getCurrentQuestion has been deprecated and renamed to Akiwrapper#getQuestion,
  • Question#getGain has been deprecated and renamed to Question#getInfogain.

Additions

  • It is now possible to make Akiwrapper use a custom Unirest instance through AkiwrapperBuilder#setUnirestInstance. By default, UnirestUtils.getInstance is used, and it is now pointer multiple times in the javadocs that the singleton/custom provided instance need to be closed after they're no longer needed in order to prevent memory leakage.

Other changes

  • spotbugs-annotations and jsr305 are now optional dependencies - they will not be inherited when you depend on Maven, as they're not needed during runtime and making dependents inherit them by default makes little sense,
  • The example project has been cleaned up, and its pom.xml has been updated to allow it to compile properly.

Internal changes

  • AkiwrapperMetadata and MutableAkiwrapperMetadata have been removed since it makes no sense to keep them around with changes to how AkiwrapperImpl is constructed. Their methods and constants have been moved into AkiwrapperBuilder,
  • Internal methods that make HTTP requests now take UnirestInstance as a parameter, as it is no longer a static constant,
  • Route#getRequest has been deprecated and renamed to Route#createRequest,
  • Route#getParametersQuantity has been deprecated and renamed to Route#getParameterCount,
  • JSONUtils now uses primitive Optional types rather than boxed ones.

v1.5.1.2

22 Apr 15:02
bbaf2ac

Choose a tag to compare

  • Updated dependencies.

v1.5.1.1

02 Apr 10:54
e0249a9

Choose a tag to compare

  • Updated dependencies.

v1.5.1

10 Feb 11:20
7902fd8

Choose a tag to compare

  • Fixed a small typo that could cause a confusing exception message

v1.5

02 Aug 18:15
7618f7e

Choose a tag to compare

  • Fixed the API connection issue
  • Rewritten a lot of the project under the hood
  • Added new unit tests
  • Rewritten most of the documentation
  • Replaced Java's built-in HTTP utility with Unirest
  • Switched to Java 11

v1.4.3.1

01 Aug 11:48

Choose a tag to compare

  • Fixed a bug in the profanity-filtered route builder

v1.4.3

01 Aug 10:16

Choose a tag to compare

  • Fixed issues with Russian servers
  • Annotated members with @Nonnull and @Nullable
  • Added Language.MALAY (although it seems to share questions with the English servers and is probably going to dedicated a database of questions of its own by the Akinator team)
  • Refreshed server mappings
  • Drop Bintray JCenter out of the release chain - Akiwrapper is now deployed directly to Sonatype
  • Minor internal code cleanup

v1.4.2

08 Jul 17:30

Choose a tag to compare

  • Fix issues with Akiwrapper#undoAnswer()
  • Update servers.json

v1.4.1

22 Apr 14:17

Choose a tag to compare

  • Fixed the KO - BAD AUTH being thrown when answering questions.

v1.4

12 Feb 14:37

Choose a tag to compare

Version 1.4 is out!

  • This version introduces a better and more way of handling Akinatror's server formation changes. It's currently kinda experimental, but it works and will provide a way faster way of dealing with "KO - SERVER DOWN"s.
  • This version is now also being linted with SonarLint! (along with the good old SpotBugs, of course).
  • Some other small tweaks and fixes
  • One method deprecation