github InsertKoinIO/koin 4.1.1

2 days ago

Koin 4.1.1 Changelog

🐛 Bug Fixes

  • Logger Constraint Revert - Reverted logger constraint due to compatibility issues causing errors across projects
  • Compose Scope Resolution - Fixed scope resolution issues in Compose integration with proper context handling
  • Maven Central Publication - Fixed publication issues for Maven Central distribution

🚀 Features & Improvements

  • Compose ViewModel Navigation - Added optional navGraphRoute parameter to sharedKoinViewModel for better navigation support
  • Compose Context Handling - Reworked LocalKoinApplication/LocalKoinScope with ContextWrapper to properly handle:
    • Scope closing lifecycle
    • Context restart scenarios
    • Better memory management

⚡ Performance & Core

  • Core Resolver Optimization - Avoid unnecessary flattening operations when dealing with single scope resolution
  • Scope Debugging - Enhanced scope debugging by showing linked scope IDs for better development experience
  • Library Updates - Updated underlying dependencies to latest stable versions

📚 Library Updates

  • Kotlin - Updated to 2.1.21 (from 2.1.20)
  • Binary Validator - Updated to 0.18.1 (from 0.16.3)
  • Ktor - Updated to 3.2.3 (from 3.1.3)
  • Jetbrains Compose - Updated to 1.8.2 (from 1.8.0)
  • AndroidX Libraries:
    • Fragment 1.8.9 (from 1.8.8)
    • WorkManager 2.10.3 (from 2.10.1)
    • Lifecycle 2.9.3 (from 2.9.0)
    • Navigation 2.9.3 (from 2.9.0)
    • JB Navigation RC01 (from Beta01)
  • Testing:
    • Robolectric 4.15.1 (from 4.14.1)
    • Benchmark 0.4.14 (from 0.4.13)
  • Build Tools - Added NMCP 1.1.0 for improved publication workflow

📦 Publication

  • Multi-platform Artifacts - Ensured all platform variants are properly published
  • Version Consistency - Synchronized all module versions across the ecosystem

🔧 Development

  • Test Coverage - Added ActivityScopeArchetypeTest for better scope lifecycle testing
  • API Stability - Maintained backward compatibility while fixing internal issues

---Migration Notes: This is a maintenance release - no breaking changes. Direct upgrade from 4.1.0 is recommended.

👥 Contributors

https://github.com/arnaudgiuliani - Project Lead & Core Developer
https://github.com/rfaturriza - Community Contributor

New Contributors

Full Changelog: 4.1.0...4.1.1

Don't miss a new koin release

NewReleases is sending notifications on new releases.