Releases: micronaut-projects/micronaut-core
v4.9.6
Micronaut Core 4.7.26
Micronaut Core 4.9.5
What's Changed
Bug Fixes 🐞
Improvements ⭐
Docs 📖
Dependency updates 🚀
Other Changes 💡
- Jackson 2.19.1 by @dstepanov in #11893
Full Changelog: v4.9.4...v4.9.5
Micronaut Core 4.9.4
What's Changed
Bug Fixes 🐞
- fix bug aggregating processing that has postponed elements by @graemerocher in #11879
Full Changelog: v4.9.3...v4.9.4
Micronaut Core 4.9.3
What's Changed
Dependency updates 🚀
Other Changes 💡
- Fix a memory ordering issue in ThreadLocalScopeSpec by @mikehearn in #11875
- sourcegen 1.8.2 by @sdelamo in #11876
Full Changelog: v4.9.2...v4.9.3
Micronaut Core 4.9.2
What's Changed
Bug Fixes 🐞
- When checking
refCnt > 0, make sure we're the exclusive owner beforehand by @yawkat in #11864 - Check error element type. Fixes #11859 by @graemerocher in #11865
Other Changes 💡
Full Changelog: v4.9.1...v4.9.2
Micronaut Core 4.9.1
What's Changed
Bug Fixes 🐞
- Remove managed Kotlin 2 KSP 2 from BOM by @dstepanov in #11862
Full Changelog: v4.9.0...v4.9.1
Micronaut Core 4.9.0
What's Changed
Netty 4.2.2
Micronaut 4.9.0 updates to Netty 4.2. This Netty release changes the default buffer allocator, which may affect application performance.
Event loop Carrier
micronaut-http-server-netty 4.9.0 introduces an experimental mode to run virtual threads on the Netty event loop. This can lead to more predictable performance when migrating from async code to virtual threads. A more detailed blog post will follow with the 4.9 platform release.
@ClassImport
@ClassImport annotation allows to process already compiled classes as if they were ordinary non-compiled classes.
@Mixin
It’s possible to define a Mixin class by annotating it with @Mixin and specifying which class does it reference.
Mixins only modify the Micronaut annotations metadata model. Original classes are not modified in any way. Mixins are currently supported only in Java.
HTTP/3
If you were using the experimental HTTP/3 support you need to replace the dependency io.netty.incubator:netty-incubator-codec-http3 with io.micronaut:micronaut-http-netty-http3.
Graceful Shutdown
This release includes a Graceful shutdown API. A graceful shutdown allows you to stop accepting new work and finish in-progress tasks.
Cache Control API
A fluid API CacheControl permits you to populate the HTTP Cache-Control header in an HTTP Response easily.
KSP 2
This release supports KSP 2 (starting from the version 2.0.2) and it's tested to work with Kotlin 2.
New Features 🎉
- Move to main HTTP/3 version by @yawkat in #11849
- Allow visiting imported classes + Mixin by @dstepanov in #11860
- Introduce
TypeElementQueryto limit visitations ofTypeElementVisitorby @dstepanov in #11809 - Event loop loom carrier by @yawkat in #11704
- Add graceful shutdown by @yawkat in #10701
- Cache Control API by @sdelamo in #11701
Bug Fixes 🐞
- fix: don’t throw NPE if exception message is null by @sdelamo in #11591
- AOP: Fix delegated method invocation by @dstepanov in #11702
- Fix duplicate error in HTTP client by @yawkat in #11727
- Propagate context to ExceptionHandler by @dstepanov in #11847
- Fix flaky test by @dstepanov in #11853
- Fix shutdown hooks by @dzmauchy in #11677
Improvements ⭐
- Small ResponseBodyWriter improvements by @yawkat in #11681
- ThreadLocal bean improvements by @yawkat in #11685
- Fix compatibility with the Espresso JVM. by @mikehearn in #11693
- Fix ordering of bean event listeners when @order is used and not the Ordered interface. by @mikehearn in #11714
- Permit whatwg URLs for requests by @yawkat in #11601
- Include Argument in BeanCreatedEvent by @patrick96 in #11756
- Add JFR event for HTTP requests by @yawkat in #11800
- Implement jitter in @retryable to avoid thundering herd by @jhl221123 in #11805
- New client pool implementation by @yawkat in #11736
- Add support records for groovy by @altro3 in #11832
- Make the sleep behavior of DefaultRetryInterceptor customizable via bean replacement. by @mikehearn in #11775
- Add configurable active keys for environment endpoint (#11799) by @ayagmar in #11801
- improve error message when multiple bean candidates are present and all are Secondary by @edgao in #11766
- Disable Loom support on JVMs that support the virtual threads API but don't really implement it. by @mikehearn in #11856
- Add a test for
ExecutableMethodequality by @dstepanov in #11668
Docs 📖
- Clarify the JavaDocs of PropagatedContext. by @mikehearn in #11692
- Document declarative client and retryable by @joshua-m-baker in #11658
- doc: split bean mapper merging docs by @sdelamo in #11708
Kotlin 2
- Support Kotlin 2 KSP 2 by @dstepanov in #11742
- Update KotlinVisitorContext.kt to accommodate changes in Kotlin 2.1.20 by @jpsugar-flow in #11796
Dependency updates 🚀
Netty
- Netty 4.2.2.Final by @yawkat in #11835
- Netty 4.2 by @yawkat in #11672
- fix(deps): update netty monorepo to v4.1.119.final by @renovate in #11689
- fix(deps): update dependency io.netty.incubator:netty-incubator-codec-http3 to v0.0.29.final by @renovate in #11700
- fix(deps): update dependency io.netty:netty-tcnative-boringssl-static to v2.0.72.final by @renovate in #11822
- fix(deps): update dependency org.zalando:logbook-netty to v3.12.1 by @renovate in #11782
Apache Groovy
- fix(deps): update groovy monorepo to v4.0.26 by @renovate in #11635
- fix(deps): update groovy monorepo to v4.0.27 by @renovate in #11823
SnakeYaml
Vertx
- fix(deps): update vertx to v4.5.13 by @renovate in #11618
- fix(deps): update vertx to v4.5.14 by @renovate in #11712
Jackson
Reactor
- fix(deps): update managed.reactor to v3.7.4 by @renovate in #11615
- fix(deps): update managed.reactor to v3.7.5 by @renovate in #11757
- fix(deps): update managed.reactor to v3.7.6 by @renovate in #11828
Logback
SLF4J
Blaze
- fix(deps): update dependency com.blazebit:blaze-persistence-core-impl to v1.6.15 by @renovate in #11699
JavaParser
- fix(deps): update dependency com.github.javaparser:javaparser-symbol-solver-core to v3.26.4 by @renovate in #11709
Lombok
methvin Directory Watcher
Smallrye-fault-Tolerance
Awaitility
Test Containers
- fix(deps): update depend...
Micronaut Core 4.8.18
Full Changelog: v4.8.17...v4.8.18
Micronaut Core 4.8.17
Merge up the following PRs:
- Properly handle HTTP/2 idle timeout (#11726)
- fix config properties refresh for each property (#11798)
- Verifier error importing Lombok introspections (#11711)
- Netty 4.1.119.Final
Full Changelog: v4.8.16...v4.8.17