Skip to content

v0.0.7

Choose a tag to compare

@m0nk3y2k4 m0nk3y2k4 released this 16 Aug 19:15
· 261 commits to master since this release

0.0.7 - 2020-08-16

Added

  • Added execution to maven-javadoc-plugin with the goal to generate a *javadoc.jar file at the end of the build process.
  • Added maven-source-plugin 3.2.1 in order to generate a *sources.jar file at the end of the build process.
  • Introduced new @FunctionalInterface Procedure that allows the invocation of void methods that may throw an exception.
  • Included the getSeriesHeaderInformation route also into the TheTVDBApi.Extended layout.
  • Mapping for the /search/series routes JSONs data.poster property.
  • Added sjf4j NOP logger binding maven dependency.
  • The amount of actual key/value pairs held by a QueryParameters object can now be retrieved via the new size() method.
  • Added a bunch of JUnit5 tests. Note: tests will be executed against a build-in netty server and thus do not require an active Internet connection.
  • Added maven dependencies for org.mock-server:* 5.11.1 and org.assertj:assertj-core 3.16.1 for JUnit testing.
  • New class HttpHeaders holding constants of commonly used HTTP header names.
  • Included surefire plugin in version 3.0.0-M5.
  • Added option to dynamically define the remote endpoint to which the api-connector will send its requests to. Can be used for proxying requests. See new Proxy class.

Changed

  • The connector now throws an APIPreconditionException when trying to invoke any /user route with APIKey-only authentication.
  • JSON deserialization of series header requests now returns a corresponding APIResponse object.
  • HeadRequest.getResponse() now returns the mapped header values in a nested "data" JSON node.
  • Consider two QueryParameters objects to be equal when they have the same key/value pair. Invoking toString() will now return an overview of the actual key/value pairs.
  • Reduced the visibility of some internal public constructors and String constants.
  • Updated several maven plugins and dependencies to latest version:
    • org.apache.maven.plugins:maven-compiler-plugin: 3.8.0 -> 3.8.1
    • org.apache.maven.plugins:maven-javadoc-plugin: 3.1.0 -> 3.2.0
    • com.fasterxml.jackson.core:jackson-databind: 2.9.5 -> 2.11.2
    • org.immutables:value: 2.8.2 -> 2.8.8
    • org.slf4j:slf4j-api: 1.7.25 -> 1.7.30
  • Replaced JUnit4 with JUnit5 maven dependency.
  • Switched to Mockito v.3.
  • Enhanced some JavaDoc documentation. Fixed several typos.

Fixed

  • Fixed a typo in theAPIResponse String representation.
  • Fixed a typo in Series.getArisTime() method name.
  • Parameters.validatePathParam() now properly validates the actual parameter value instead of the (only descriptive) parameter name.
  • Fixed issue with "Accept" HTTP headers being overwritten in API requests.