Skip to content

v2.0.0

Compare
Choose a tag to compare
@rainbowdashlabs rainbowdashlabs released this 23 Feb 14:45
· 56 commits to main since this release
a1d875a

Changelog:

2.0.0 has several breaking changes. A general cleanup was performed to align the package structure and allow usage of java modules.
The old queries module was removed and replaced by a new query format. See the migration guide for further information.

Package Changes

  • Everything inside the core module was moved from de.sadu to de.sadu.core
  • Everything inside the mariadb module was moved from de.sadu to de.sadu.mariadb
  • Everything inside the sqlite module was moved from de.sadu to de.sadu.sqlite
  • Everything inside the mysql module was moved from de.sadu to de.sadu.mysql
  • Everything inside the postgresql module was moved from de.sadu to de.sadu.postgresql
  • Everything inside the testing module was moved from de.sadu.tests to de.sadu.testing
  • The Row class was moved from de.sadu.wrapper.util to de.sadu.mapper.wrapper

Module changes

  • Removed queries module
  • Added new queries module #42
  • Every module now declares a module-info.java and defines its module

Class changes

  • Added RowMapping class.
  • A RowMapper is now a RowMapping as well. This should be compatible with the old signature already.

General changes

  • Setting a config in the SqlUpdater is no longer possible. The Updater wasnt using the query builder anyway, so it had no effect at all.
  • All instances where ThrowingFunction<? extends T, Row, SQLException> was used to map a row was replaced with RowMapper<T>, which is an interface that is still compatible with the old signature via RowMapping.create(ThrowingFunction) or via signature match, which is identical
  • Bumped base java version from 15 to 17

Dendency changes

  • Annotations from jsr305 were replaced with jetbrains annotations

Documentation

  • Documentation and package-info were added to a wide amount of packages
  • Docs are now available at sadu.docs.chojo.dev

What's Changed

Full Changelog: v1.4.1...v2.0.0