Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0.0 #161

Merged
merged 29 commits into from
Feb 23, 2024
Merged

Release 2.0.0 #161

merged 29 commits into from
Feb 23, 2024

Conversation

rainbowdashlabs
Copy link
Owner

@rainbowdashlabs rainbowdashlabs commented Feb 9, 2024

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 Sadu Queries 2 #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

renovate bot and others added 7 commits February 2, 2024 19:52
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@rainbowdashlabs rainbowdashlabs changed the title Release 1.5.0 Release 2.0.0 Feb 9, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
The method name 'withHikariConfig' has been changed to 'editHikariConfig' in both DataSourceCreator.java and ConfigurationStage.java. The modified name more accurately describes the method's behavior, thus improving clarity and readability of the code.
@rainbowdashlabs rainbowdashlabs merged commit a1d875a into main Feb 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant