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

Update jdbi to v3.40.0 #270

Merged
merged 1 commit into from
Aug 6, 2023
Merged

Update jdbi to v3.40.0 #270

merged 1 commit into from
Aug 6, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 6, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.jdbi:jdbi3-sqlobject (source) 3.32.0 -> 3.40.0 age adoption passing confidence
org.jdbi:jdbi3-core (source) 3.32.0 -> 3.40.0 age adoption passing confidence

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.


Release Notes

jdbi/jdbi (org.jdbi:jdbi3-sqlobject)

v3.40.0

  • add extension point to decorate withHandle and friends (#​2448)
    • fix PreparedBatch c'tor problem where the binding context was not set correctly. (#​2404)
    • Slight memory optimization on RowMappers and ColumnMappers findFor (#​2418)
    • JsonMapper implementations now bind the Type earlier, which saves work in Jackson and Gson (#​2420)
    • performance improvements for all ExtensionConfigurer implementations (#​2416, #​2424)
    • Remove JSR 305 annotations from the Jdbi codebase, one small step closer to JPMS. (#​2408)
    • remove unnecessary tests before adding standard methods to extension objects (#​2414)
    • Update h2 to 2.2.220 (#​2428)
    • various small performance improvements (#​2436, #​2437, #​2440)
    • improve generator performance (#​2439)

v3.39.1

3.39.x is the last release of Jdbi to support Java 8. Java 8 is
obsolete for a long time and the burden of supporting it in Jdbi has
grown as parts of our tool chain and libraries no longer support
it. We intend to do occasional bug patches for significant bugs or
security issues but there will be no further active development
work.

  • add Extensions#failFast() to enable extension objects with misconfigured methods to fail at first access. Default is to fail when a misconfigured method is accessed for the first time.

  • add new @RegisterCollector customizing annotation (#​2377)

  • correctly return null for OutParameters when the called procedure returns NULL.

  • promoted from @Beta to stable (no functional changes, some minor doc reformatting and additions)

    • JdbiProperty, DatabaseValue, PropagateNull, GenerateSqlObject annotations
    • NamedArgumentFinder, SetObjectArgumentFactory, GetObjectColumnMapperFactory, GenericMapMapperFactory, RowViewMapper
    • MapMappers configuration object
    • ConfigCache functionality
    • SqlStatementCustomizer#warm() and SqlStatementParameterCustomizer#warm()
    • template engines
    • moshi json support
  • promoted from @Alpha to @Beta (no functional changes, doc cleanups)

    • Codec functionality
    • BaseStatement#attachToHandleForCleanup()
    • PostGIS support

v3.39.0

  • don't use. Functional equivalent to 3.39.1 but missing some tests and the Alpha/Beta promotions. Prefer 3.39.1

v3.38.3

  • allow unknown result mappers during ResultReturner warmup. This restores the pre-3.38.0 behavior
    where SQLObject classes with invalid methods could be used unless a method is explicitly called (#​2342)
    • document vavr incompatibility between 0.10.x and 1.0.0-alpha (#​2350)
    • Handle.inTransaction: improve exception thrown when restoring transaction isolation #​2343
    • add support for Guice 6.x (using javax.inject annotations) and guice 7.x (using jakarta.inject annotations)

v3.38.2

  • spring5 JdbiUtil: fix thread safety #​2341

v3.38.1

  • Dramatic performance improvement around copying configuration objects when creating statements
    Should reduce allocation rate and time spent in ConcurrentHashMap init

v3.38.0

  • CaseStrategy is now an official API (dropped @​Beta) (#​2309)
    • rewrite AccessibleObjectStrategy into an enum (#​2310)
    • allow user defined functions for message rendering (#​2311)
    • fix GenericType creation in parameterized classes (#​2305)
    • add SqlStatements#setAttachAllStatementsForCleanup. Setting this configuration flag will attach all created statements to their handles for resource cleanup. Default is false. (#​2293, thanks @​jodastephen)
    • add SqlStatements#setAttachCallbackStatementsForCleanup. Setting this configuration flag will attach all created statements within one of the Jdbi callback methods to the handle. This allows code that uses the Jdbi callback methods to delegate resource management fully to Jdbi. This flag is set by default. (#​2293, thanks @​jodastephen)
    • fix problem when using the jdbi bom in spring projects (#​2295, thanks @​jedvardsson)
    • add JdbiExecutor for async Jdbi operations (#​2280, thanks @​leblonk)
    • rewrite the core extension framework, move functionality from sqlobject to core
    • rewrite sqlobject and the generator to use the new extension framework, deprecate functionality that moved to the core
    • StringTemplate engine: handle st4 errors rather than logging to stderr. Allow configuring missing attribute as a fatal error
    • StringTemplate 4.3.4
    • update spring framework dependency to 5.3.27 (address CVE-2023-20861, CVE-2023-20863)
    • ResultIterable methods: set(), collectToMap(), toCollection(), collectInto(), collectIntoList(), collectIntoSet()
    • Helpers to make registering CollectorFactory easier
    • FreemarkerEngine encourages singleton use so caching works better
    • Support Consumer<Iterable> as a consumer argument for operations that return multiple results.

v3.37.1

  • fix deadlock in default Jdbi cache (#​2274)

v3.37.0

** DO NOT USE **

The default cache contains a thread deadlock when the cache is
evicting while adding new entries through multiple threads. This has
been fixed in 3.37.1

  • upgrade to geantyref 1.3.14
  • removes the core dependency on the caffeine library. This now uses a simple LRU cache for sql parser and sql statements.
  • adds pluggable cache implementation using caffeine. The old caching behavior can now be restored by using the
    jdbi3-caffeine-cache dependency and adding jdbi.installPlugin(new CaffeineCachePlugin());.
  • adds pluggable no-op cache implementation for testing and debugging
  • improve PostGIS null value handling (#​2260, thanks @​tprebs)
  • use Postgres 15 (native arm64) for building on MacOS arm64

v3.36.0

v3.35.0

  • Fix JdbiFlywayMigration to work with Flyway 9 (#​2179, thanks @​broccolai)
    • ResultIterable.useIterator and ResultIterable.withIterator new helper methods to close iterator resources
    • add handle and resource leak checking to all unit tests, fix unit tests to not leak any resources
    • add resource leak checking support to the JdbiExtension JUnit5 testing framework
    • support lifecycle listeners for Handle and StatementContext
    • fixes and updates to the build system, additional docs for contributing, IDE code style support for IntelliJ and Eclipse
    • doc updates for Kotlin code
    • add Kotlin mapTo(KClass<*>) extension function to ResultBearing
    • SqlObject Consumer now accepts Consumer<Stream> and Consumer<Iterator> forms
    • deprecate misnamed setTransactionIsolation method, add setTransactionIsolationLevel to the handle
    • deprecate misnamed release method, add releaseSavepoint to the handle
    • add missing isInTransaction method to Transactional, bringing it to par to the handle set of methods
    • add H2 option string, user and password methods to JdbiH2Extension
    • ReflectionMappers: add accessibleObjectStrategy to allow skipping setAccessible calls for FieldMapper in particular
    • minimal support for testing with other databases in JdbiGenericExtension
    • Dependabot warnings for Postgres and H2, upgrade to 42.5.1 and 2.1.214 respectively.

v3.34.0

  • jdbi3-generator will now support any Java 8+ version without generating compile-time warnings (#​2128)
    • AbstractArgumentFactory also need to check for supertypes when the generic argument is not a class (fixes #​2026)
    • Replace @Unmappable with @JdbiProperty so you can configure both mapping and binding flexibly

v3.33.0

  • make @Unmappable work with FieldMapper fields and KotlinMapper properties
    • rework the mapping logic for all bean related mappers (Bean, Field, Constructor, KotlinMapper)
    • clarify the @​PropagateNull logic, ensure that it works with nested beans
    • ensure that bean mapper annotations work with lombok value and bean classes
    • add explicit support for byte[] -> BYTEA for Postgres. (#​2109)
    • Revert lexer changes #​1906 due to regressions
    • add missing jdbi3-postgis and jdbi3-json (tests) to the BOM
    • update build tooling for Java and Kotlin
    • internal kotlin packages are considered undocumented and no longer show up in the docs
    • Bean mapping now prefers setter annotations over getter annotations. (#​2103)
    • Various methods that accept SQL statements now take CharSequence in preference to String (#​2047)
    • Add a typesafe Sql class for SQL statements.
    • Upgrade Postgres driver to 42.5.0
    • call warm() correctly for SqlStatementCustomizer (#​2040)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Aug 6, 2023
@KiriCattus KiriCattus merged commit 76cb0ce into 4.0 Aug 6, 2023
4 checks passed
@KiriCattus KiriCattus deleted the renovate/jdbi branch August 6, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant