What’s New

Koin 4.2.1-RC1

4.2.1-RC1Pre-release

Koin 4.2.1-RC1

Changed 1
  • Improve scope resolution error messages in `NoDefinitionFoundException` to display the full scope chain that was searched and indicate which scope qualifier is missing a definition
Fixed 1
  • Fix ABI break on `runOnKoinStarted` by restoring the original JVM symbol name to prevent `NoSuchMethodError` at runtime for libraries compiled against 4.1.x
Koin 4.2.1-RC1
Bug Fixes
  • Fix ABI break on runOnKoinStarted (#2391) — The 4.2.0 refactor to move waitAllStartJobs to common code changed the JVM symbol for runOnKoinStarted from KoinWaitExtKt to KoinWaitExt_jvmKt, causing NoSuchMethodError at runtime for libraries compiled against 4.1.x. Fixed by adding @file:JvmName("KoinWaitExtKt") and @file:JvmMultifileClass to restore the original symbol.

  • Improved scope resolution error messages (#2379) — NoDefinitionFoundException now displays the full scope chain that was searched and indicates which scope qualifier is missing a definition, making scope resolution issues much easier to diagnose.

CI / Tooling
  • Added apiCheck to CI — The binary-compatibility-validator plugin was already configured but not running on PRs. apiCheck is now part of the CI build workflow, preventing accidental ABI breaks in future releases.
  • Updated .api dump files for all modules to reflect the current public API surface.
Still in progress for 4.2.1 final
  • PR #2389@Volatile on Scope._closed for concurrency fix
  • PR #2358 — Fix ClassCastException reading environment properties (#2348)
  • Documentation updates: #2339, #2336, #2328, #2218
View original

Discussion