Repository navigation
v0.3.0
Summary
v0.3.0 improves routing fallback behavior and Spring auto-configuration activation conditions. This release makes type-mappings/category-mappings based setups more predictable in production.
Highlights
- Improved routing fallback behavior
- If
type-mappingsexists but resolves to zero valid targets (enabled + valid endpoint), routing now falls back tocategory-mappings. - If
category-mappingsalso resolves to zero valid targets, routing falls back todefault-mappings.
- If
- Expanded auto-configuration activation condition
- Previously centered on
default-mappings. - Auto-configuration now activates when any of the following is configured:
hookrouter.type-mappingshookrouter.category-mappingshookrouter.default-mappings
- Previously centered on
- Stronger activation condition handling
- Supports bracket-style keys (for example,
hookrouter.type-mappings[order.failed][0].platform=...). - Properly detects mapping configuration from map-backed non-enumerable
PropertySourceimplementations.
- Supports bracket-style keys (for example,
Behavior Change
- Previous behavior: if a higher-priority mapping list existed, fallback was blocked even when it produced zero targets.
- New behavior: a higher-priority mapping is selected only when it resolves at least one valid target; otherwise routing proceeds to the next priority level.
Validation
./gradlew checkpassed./scripts/verify-consumer-smoke.shpassed./gradlew apiCompat -PapiBaselineVersion=0.2.0passed
Included Commits
ed5fce7Fix mapping activation and routing fallback semantics5e2c28dSupport bracket-style mapping keys in activation conditionfa46c89Handle non-enumerable property sources for mapping activationf724f1cchore(release): bump version to 0.3.0