Skip to content

2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jul 10:06
· 22 commits to dev/v2 since this release

Treasury v2.0.0 Changelog

Contributors

Thank you very much to each and every contributor who volunteered their free time to get this update out to you all.

  • montlikadani

  • yannicklamprecht

  • MrNemo64

  • A248

  • and, of course, the maintainers: lokka30, MrIvanPlays, and Jikoo

General Changes

  • Added Sponge platform compatibility
  • Added Minestom platform compatibility
  • Improved documentation

API Changes

  • Removed the whole Subscription concurrency system and moved to Java's own CompletableFuture system.
  • Removed Responses and replaced them with just Exceptions. For performance concerns we also have a TreasuryException which can be used to avoid needless stack traces.
  • Treasury no longer cares about negative balances.
  • Treasury's design has changed slghtly to no longer recommend pointless preconditions prior to the intended action being requested. For a specific example, Treasury's canAfford method has been removed since it is best to just attempt a withdrawal and check if it has failed.
  • Switched a handful of String-based identifier systems with NamespacedKeys to reduce inter-plugin name collisions.
  • Full-scale API cleanup with many small improvements.
  • Removed platform-specific APIs