Micronaut Core 4.6.0
What's Changed
New Features π
- Reintroduce build time init of compilation time metadata by @graemerocher in #10950
Bug Fixes π
- Fix NPE in
BeanDefinitionProducer
by @dstepanov in #10956 - Correct cookies in simple request/response by @dstepanov in #10973
- Fix client channel option configuration by @yawkat in #10979
- KSP: Simple Java properties should have access to field annotations by @dstepanov in #11005
- Use ReentrantLock instead of synchronized in CancellableMonoSink by @yawkat in #11015
- Fix returning unit from suspended methods by @yawkat in #11006
- Allow DELETE request body in http-client-jdk by @yawkat in #11050
- KSP: Generate beans in the process method instead in the finish method by @dstepanov in #11052
- Fix resolution of
@Retryable(value=)
attribute by @Kushal-Dalasaniya in #11061 - Correct order of body handlers by @dstepanov in #11069
- Fix usage of
@Header(name="..")
by @dstepanov in #11060
Improvements β
- Apply code improvements suggested by IDE by @dstepanov in #10906
- EachBean: Allow to inject the origin bean and the registration by @dstepanov in #10902
- Cleanup micronaut-router by @altro3 in #10935
- Properly handle missing classes in metadata + precalculated requirements by @dstepanov in #10936
- Support unix domain sockets for the access log handler by @yawkat in #10940
- Add config option for DNS resolution modes by @yawkat in #10937
- Don't store enum values. Store a class and the enum name instead by @dstepanov in #10963
- Add config options for form parsing limits by @yawkat in #10967
- Correct reading HTTP client response body without content type +
ByteBuffer
converters by @dstepanov in #10975 - Add a reflection util class to extract generic type and annotations for a class by @dstepanov in #10962
- Add
toString
for synthesized annotations by @dstepanov in #10984 - Type pollution test by @yawkat in #10918
- Support binding RouteMatch in server filter methods by @yawkat in #10961
- Code cleanup for inject-java by @altro3 in #10949
- Improvements to HTTP client timeout handling by @yawkat in #10983
- Code cleanup for io.micronaut.http.uri by @altro3 in #10857
- Allow for
@EachBean
to delegate the generics to the newly created bean definition by @dstepanov in #11003 - #9607: Endpoint path must support URI path as per rfc3986 appendix-B by @pragyamutluru in #10998
- Improve message body handlers by @dstepanov in #11002
- Correct HTTP client body handler by @dstepanov in #11019
- Implement
@PreMatching
request filter methods by @dstepanov in #11017 - 10799 deduce cloud environment app engine by @pragyamutluru in #11035
- Can't find micronautserviceconfigs when running as jlink-ed application by @rfscholte in #10982
- imp: remove @experimental from ServerFilter by @sdelamo in #11057
- Avoid using
ElementQuery#named
by @dstepanov in #11055 - Http server: Allow to disable not-found on missing body by @dstepanov in #11059
- Remove old HttpBody API by @yawkat in #11064
- Add API to access main context from bootstrap context by @yawkat in #11065
- Add a ByteBody-based write API by @yawkat in #11078
Dependency updates π
- Update dependency com.fasterxml.jackson.dataformat:jackson-dataformat-yaml to v2.17.2 by @renovate in #10966
- Update dependency me.champeau.gradle:japicmp-gradle-plugin to v0.4.3 by @renovate in #10959
- chore(deps): update plugin io.micronaut.build.shared.settings to v6.7.1 by @renovate in #10970
- fix(deps): update dependency org.graalvm.nativeimage:svm to v23.1.4 by @renovate in #10985
- fix(deps): update micronaut.test to v4.4.0 by @renovate in #10986
- fix(deps): update vertx to v4.5.9 by @renovate in #10991
- chore(deps): update kotlin monorepo to v1.9.25 by @renovate in #10999
- fix(deps): update dependency net.bytebuddy:byte-buddy to v1.14.18 by @renovate in #11000
- fix(deps): update dependency net.bytebuddy:byte-buddy-agent to v1.14.18 by @renovate in #11001
- chore(deps): update managed.ksp to v1.9.25-1.0.20 by @renovate in #11008
- fix(deps): update netty monorepo to v4.1.112.final by @renovate in #11013
- fix(deps): update dependency org.testcontainers:spock to v1.20.1 by @renovate in #11034
- fix(deps): update dependency io.smallrye:smallrye-fault-tolerance to v6.4.0 by @renovate in #11020
- fix(deps): update selenium by @renovate in #11036
- fix(deps): update dependency com.github.javaparser:javaparser-symbol-solver-core to v3.26.1 by @renovate in #10886
- fix(deps): update managed.reactor to v3.6.8 by @renovate in #10867
- fix(deps): update dependency jakarta.persistence:jakarta.persistence-api to v3.2.0 by @renovate in #10865
- fix(deps): update dependency io.micronaut.rxjava3:micronaut-rxjava3-bom to v3.4.0 by @renovate in #10911
- fix(deps): update dependency io.micronaut.aws:micronaut-aws-bom to v4.6.0 by @renovate in #10894
- fix(deps): update dependency com.blazebit:blaze-persistence-core-impl to v1.6.12 by @renovate in #11056
- fix(deps): update dependency io.micronaut.rxjava2:micronaut-rxjava2-bom to v2.4.0 by @renovate in #10910
- fix(deps): update dependency io.micronaut.reactor:micronaut-reactor-bom to v3.4.1 by @renovate in #10901
- fix(deps): update dependency org.awaitility:awaitility to v4.2.2 by @renovate in #11062
- chore(deps): update graalvm/setup-graalvm action to v1.2.3 by @renovate in #11066
- fix(deps): update dependency org.slf4j:slf4j-api to v2.0.16 by @renovate in #11067
- chore(deps): update actions/checkout action to v4 by @renovate in #11038
- fix(deps): update selenium to v4.23.1 by @renovate in #11073
- chore(deps): update actions/setup-java action to v4 by @renovate in #11074
GraalVM π
Other Changes π‘
- Uri template rewrite by @dstepanov in #10921
- Add
MatchArgumentQualifier
from Serde by @dstepanov in #10932 NettyMutableHttpResponse
should supportgetCookies
by @dstepanov in #10972- fix: escape
+
to fix rendering in docs by @maxkomarychev in #10969 - Use
MatchArgumentQualifier
forDefaultMessageBodyHandlerRegistry
by @dstepanov in #10964 - Merge 4.5 into 4.6 by @dstepanov in #10987
- Fix build with JCenter removal by @melix in #10990
- Fix body handler by @dstepanov in #11009
- Allow body readers to read form uploads by @dstepanov in #11011
- Code cleanup for micronaut-management by @altro3 in #11033
- Code cleanup for micronaut-json by @altro3 in #11032
- Code cleanup for micronaut-messaging and runtime-osx modules by @altro3 in #11031
- Code cleanup for micronaut-jackson modules by @altro3 in #11030
- Code cleanup for micronaut-websocket by @altro3 in #11029
- Code cleanup for micronaut-retry by @altro3 in #11028
- Code cleanup for micronaut-graal by @altro3 in #11026
- Code cleanup for micronaut-core-reactive by @altro3 in #11023
- Code cleanup for discovery-core by @altro3 in #11021
- Code cleanup for micronaut-inject-groovy by @altro3 in #11027
- Code cleanup for micronaut-function modules by @altro3 in #11025
- Code cleanup for micronaut-buffer-netty by @altro3 in #11024
- Code cleanup for micronaut-context by @altro3 in #11018
- Code cleanup for micronaut-aop by @altro3 in #11016
- imp: reduce handler duplication by @sdelamo in #11076
- imp: handle errors via standard mechanism - exceptions and error handlers by @sdelamo in #11080
New Contributors
- @maxkomarychev made their first contribution in #10969
- @pragyamutluru made their first contribution in #10998
- @rfscholte made their first contribution in #10982
- @Kushal-Dalasaniya made their first contribution in #11061
Full Changelog: v4.5.4...v4.6.0