Skip to content

v1.2.0

Compare
Choose a tag to compare
@Jeffset Jeffset released this 12 Apr 14:18
· 166 commits to main since this release

What's Changed

  • Implement new ap options mechanism to ensure that they are all provided in processor by @bacecek in #16
  • Enhance: Improve error-type handling. by @Jeffset in #25
    • Unresolved types reporting should include type names themselves (if correctErrorTypes is enabled for KAPT, KSP support is limited) instead of error.UnresolvedCla$$.
  • API: Add and implement @Reusable scope. by @Jeffset in #26
    • Now @Reusable scope is properly supoprted as in Dagger.
  • Enhance: Allow adding child components implicitly. by @Jeffset in #28
    • Now sub-components can be added by declaring their factory methods inside the parent component as with Dagger.
  • Enhance: Support full-blown subcomponent factory methods. by @Jeffset in #33
    • Now sub-component factory methods can accept modules, dependencies and @BindInstance arguments as in Dagger and more.
  • Fix: Properly resolve aliases while computing caching omission. by @Jeffset in #36
    • Generated code performance optimization.
  • Enhance: Implement auto-builder. by @Jeffset in #34
    • New Yatagan.autoBuilder() loader can be used for components without a declared builder. Use with caution - no type safety is enforced at compile time. Feature aimed to compensate for the Dagger's auto-generated builder absence.
  • Enhance: Allow for @Builder's factory methods to return supertypes by @Jeffset in #42
    • As in Dagger
  • Enhance: Allow IntoMap.Key annotations to have non-"value" attributes. by @Jeffset in #43
    • As in Dagger
  • Fix: Introduce reportDuplicateAliasesAsErrors option. by @Jeffset in #49
    • Add yatagan.experimental.reportDuplicateAliasesAsErrors = true to processor arguments (for KAPT, KSP) and Yatagan.reportDuplicateAliasesAsErrors(true) to reflection setup. This will activate duplicate @Binds errors. This option will be enabled and removed in the next major release.

New Contributors

Full Changelog: v1.1.0...v1.2.0