Skip to content

fix(deps): update koin.compiler.plugin to v1.2.3 - #392

Merged
diasDominik merged 1 commit into
mainfrom
renovate/patch-koin.compiler.plugin
Nov 5, 2026
Merged

diasDominik merged 1 commit into
mainfrom
renovate/patch-koin.compiler.plugin

Conversation

@renovate

@renovate renovate Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
io.insert-koin.compiler.plugin (source) 1.2.1 → 1.2.3 age confidence
io.insert-koin:koin-compiler-gradle-plugin (source) 1.2.1 → 1.2.3 age confidence

Release Notes

InsertKoinIO/koin-compiler-plugin (io.insert-koin.compiler.plugin)

v1.2.3

Compare Source

Patch release: two regressions reported on 1.2.2, a location for cross-module KOIN-D001, and compile safety that says, on the line, which DSL shape it could not follow.

🐛 Fixed

  • Native, JS and wasm compilations crashed on 1.2.2 with Different declarations with the same signatures when two DSL modules provided two internal types of the main source set, or the same type twice (#​144).
  • False KOIN-D001 for a factory<T>() from another Gradle module under startKoin<T> / @KoinApplication; 1.2.2 fixed it for single only (#​143). A factory inside a scope { } block stays scoped. Rebuild the library with 1.2.3 to get it.
  • KOIN-D001 on a definition from another Gradle module had no location. With startKoin { modules(...) } it now points at the modules(...) call that loads it, with the chain: loaded by: modules() at ToolsTest.kt:60 → toolsModule → useCasesModule → notificationsKernelModule. A local single<LibImpl>() of a library class points at that line.
  • The "Fix with AI" line could point at the wrong file, or at another compilation's error under parallel builds (#​140). It follows the error.
  • Diagnostics anchored on a declaration or a modules() call showed the file only in the Gradle output, no line and column, so a KOIN-D001 or KOIN-W001 could not be clicked to. Every Koin diagnostic now carries file:line:column.

✨ Added

  • Compile safety discloses the DSL shapes it cannot follow, on the line, with the shape to use instead: KOIN-W012 for an includes() inside an inline module { } or a public fun Module.x() helper (its modules are reported unloaded and their types missing), KOIN-W014 for a private helper called on an explicit receiver or as a function reference, KOIN-W015 for a module { } in by lazy, a lambda or a list builder. KOIN-W013 says an entry point in a module with no DSL definition of its own gets no DSL graph check (#​142); no rewrite yet. Followed shapes: docs/COMPILE_TIME_SAFETY.md. Like every KOIN-W, they fail a build with allWarningsAsErrors.

🔧 Changed

  • modules(AppModule().module()) is now verified like modules(AppModule::class). A missing dependency in such a graph now reports KOIN-D001.
  • KOIN-W003 points at the operand it could not read and names it (the parameter under a *spread or a +, not the spread or the plus()); when that operand is a parameter of the enclosing function, it says to start Koin where the modules are known. KOIN-W001 points at the module declaration.
  • KOIN-W012 and KOIN-W015 are INFO in a compilation that starts no Koin, since what they describe can only happen in the module that does; they stay warnings there. One warning per module block.

✅ Compatibility

  • Koin 4.2.0+
  • Kotlin 2.3.20, 2.4.0, 2.4.10, 2.4.20

📦 Install

plugins {
    id("io.insert-koin.compiler.plugin") version "1.2.3"
}

Thanks

@​richmenaft (#​144), @​JajaComp (#​143) and @​renaudmathieu (#​142) for the reports and reproducers.

Your feedback is welcome 🙏

Full changelog: InsertKoinIO/koin-compiler-plugin@1.2.2...1.2.3

v1.2.2

Compare Source

Compile safety on Kotlin/Native and wasm/JS now sees your whole graph, and multi-module projects get far fewer false errors.

✨ Added
  • Hidden dependency check (opt-in): koinCompiler { hiddenDependencyCheck = "warning" } (or "error") lists the modules that the startKoin module reaches only through a transitive implementation dependency, so compile safety can't fully check them. JVM and Android.
🐛 Fixed
  • Native, wasm and JS: definitions from another Gradle module were invisible to compile safety. You got a false KOIN-D002, or a real missing dependency passed the build (#​105, #​106, #​113). If you turned compileSafety off for these targets, turn it back on.
  • False KOIN-D001 / KOIN-D004 across modules: on DSL parameters that need no provider (default value, nullable, List<T>, Lazy<T>, @InjectedParam, @Property, @Provided, @ScopeId) (#​115), on qualified function providers (#​96), on a @Single fun provider two modules away (#​114), and on a DSL module from another Gradle module loaded by startKoin<MyApp> (#​124, single only for now: factory and scoped still need @Provided).
  • @Single(binds = [X::class]) on a class from another module lost its binding: false KOIN-D001, and getAll<X>() empty at runtime (#​98).
  • False KOIN-W001 / KOIN-D002: after moving a module to another package, on includes() chains of 3+ modules, on a module returned by a function, and on a Koin built elsewhere (#​58). False KOIN-D006 on activityViewModel<T>() (#​121).
  • Crashes: "No classId" on local classes and anonymous objects (#​101), invalid IR when a definition in another module targets an internal class (#​74), Kotlin daemon out of memory on multi-module builds (#​110).
  • Configuration cache is no longer thrown away on every Kotlin edit.
🔧 Changed
  • More of your graph is checked: a green build can now fail on a real missing dependency.
  • Explicit binds across modules: the class is bound to exactly its binds, as within one module (#​98).
  • strictSafety: strictSafety = false is honored on the startKoin module, with a warning (#​120), and strictSafetyForceOff is deprecated. AGP 9 modules are now detected. With compileSafety = false, it no longer scans or logs (#​88).
  • New warnings KOIN-W008 to KOIN-W011: module definitions not visible, a call on your own Koin, activityViewModel<T>() without parametersOf(), a module chosen at runtime. They fail allWarningsAsErrors builds.
  • KMP libraries with apiCheck: run apiDump once for the new org.koin.plugin.hints entries. Libraries built with 1.1.0 to 1.2.1: rebuild them with 1.2.2 to get the #​96 fix.
✅ Compatibility
  • Koin 4.2.0+
  • Kotlin 2.3.20, 2.4.0, 2.4.10, 2.4.20
📦 Install
plugins {
    id("io.insert-koin.compiler.plugin") version "1.2.2"
}
Thanks

@​PhBogdanov traced the KLIB root cause down to the Kotlin serializer across four Kotlin versions (#​106), and found and fixed the daemon memory leak (#​111). @​shreknitin89 (#​116), @​cpaleop (#​90) and @​paulnunezm (#​128) sent fixes this release builds on.

Thanks to everyone who reported, reproduced and retested: @​acmpo6ou, @​af-jul, @​ahmedhappa, @​alexandru-calinoiu, @​andrew-turner-control4, @​aoreshkov, @​axiel7, @​brueggenthies-adesso, @​dakatso, @​dmitry-stakhov, @​emartynov, @​exoego, @​Faltenreich, @​GoodSir42, @​hmy65, @​ikurek, @​imcmib, @​JajaComp, @​jamesarich, @​kfaraj, @​Komdosh, @​MattSkala, @​nabiu256, @​nagatsuka-shuuya, @​oscardavison, @​PhilippNowak96, @​renaudmathieu, @​sanders9, @​smartine-ledger, @​stzouvaras, @​tylerwilson, @​VladimirPupavaESET, @​xephosbot, @​yaroslav-v and @​zjarlin.

Your feedback is welcome 🙏

Full changelog: InsertKoinIO/koin-compiler-plugin@1.2.1...1.2.2


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Nov 4, 2026
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 21f6b747-984e-405e-bcbf-8996476452f1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@renovate
renovate Bot force-pushed the renovate/patch-koin.compiler.plugin branch from 972b8a1 to bcf6f5c Compare November 5, 2026 21:15
@renovate renovate Bot changed the title fix(deps): update koin.compiler.plugin to v1.2.2 fix(deps): update koin.compiler.plugin to v1.2.3 Nov 5, 2026
@diasDominik
diasDominik merged commit 8325c8b into main Nov 5, 2026
4 checks passed
@diasDominik
diasDominik deleted the renovate/patch-koin.compiler.plugin branch November 5, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant