Skip to content

v2.0

Latest

Choose a tag to compare

@derklaro derklaro released this 18 Oct 08:10
· 10 commits to v2 since this release
6a3589d

✨ Improvements

This release brings some smaller breaking changes and new features which allows better interaction with the spiget api:

  • Removed all request creators from SpigetClient. Requests are now created by using <Request>.create(SpigetClient) to reduce the amount of classes when shadowing the client into a jar file (#11).
  • Removed the XXXSpigetClient(JsonMapper) constructors and replaced them with XXXSpigetClient(SpigetClientConfig). The config now allows to customize the client even further by changing the user-agent, connect- or request timeout (the config might get expanded in the future, these are the core options which were hardcoded previously and are now better accessible).
  • When sending a request, the direct usages of Field#get got replaced with method handles. This should improve the performance a bit.
  • A new json mapper based on jackson was added for those who use jackson over gson in their projects.

Take a look at the examples in the readme to see the changes in action.

⚡Dependencies

Maven:

<dependencies>
  <dependency>
    <groupId>dev.derklaro.spiget</groupId>
    <artifactId>{component}</artifactId>
    <version>2.0.0</version>
  </dependency>
</dependencies>

Gradle:

implementation group: 'dev.derklaro.spiget', name: '{component}', version: '2.0.0'

For a list of all components take a look at the readme.

🔗 Links