Skip to content

Bump metro from 0.10.4 to 0.11.2#308

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/gradle/metro-0.11.2
Open

Bump metro from 0.10.4 to 0.11.2#308
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/gradle/metro-0.11.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 2, 2026

Bumps metro from 0.10.4 to 0.11.2.
Updates dev.zacsweers.metro:metrox-viewmodel-compose from 0.10.4 to 0.11.2

Release notes

Sourced from dev.zacsweers.metro:metrox-viewmodel-compose's releases.

0.11.2

New

Class/KClass map key interop

This release introduces a special-cased opt-in java.lang.Class and kotlin.reflect.KClass interop on JVM/android compilations. While these types are not intrinsics of each other in regular code, they are in annotations and are often used in Map multibindings. Metro can support these if you enable the enableKClassToClassMapKeyInterop option. When enabled, java.lang.Class and kotlin.reflect.KClass are treated as interchangeable in map key types, matching Kotlin's own annotation compilation behavior. This only applies to map keys because these are the only scenario where annotation arguments are materialized into non-annotation code (i.e. @ClassKey(Foo::class) -> Map<Class<*>, V>).

This is disabled by default (even if other framework interops like includeDagger are enabled) because this is purely for annotations interop and potentially comes at some runtime overhead cost to interop since KClass types are still used under the hood and must be mapped in some cases. It's recommended to migrate these to KClass and call .java where necessary if possible.

Enhancements

  • [FIR]: Report adhoc graph extension factories as these are unsupported in Metro (but apparently supported in Dagger!)
  • [FIR]: Report a diagnostic error for usage of Dagger's @LazyClassKey as this is unsupported in Metro.
  • [IR]: Report warning diagnostics for unused synthetic multibindings, as it's often a sign that the user accidentally bound them to the wrong supertype.
    warning: [Metro/SuspiciousUnusedMultibinding] Synthetic multibinding kotlin.collections.Map<kotlin.reflect.KClass<*>, BaseViewModel> is unused but has 4 source binding(s). Did you possibly bind them to the wrong type?
    

    SuspiciousUnusedMultibinding.kt:36:1 HomeViewmodel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:31:1 AccountViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:26:1 SettingsViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ ...and 1 more

    Similar multibindings:

    • Map<KClass<*>, ViewModel>
  • [Gradle]: Add IDE support docs link to @RequiresIdeSupport opt-in message.
  • Fixes

    • [IR]: Fix a code gen bug where @Provides graph parameters wouldn't correctly be used by scoped bindings directly held in that graph.

    Contributors

    Special thanks to the following contributors for contributing to this release!

    What's Changed

    ... (truncated)

    Changelog

    Sourced from dev.zacsweers.metro:metrox-viewmodel-compose's changelog.

    0.11.2

    2026-03-02

    New

    Class/KClass map key interop

    This release introduces a special-cased opt-in java.lang.Class and kotlin.reflect.KClass interop on JVM/android compilations. While these types are not intrinsics of each other in regular code, they are in annotations and are often used in Map multibindings. Metro can support these if you enable the enableKClassToClassMapKeyInterop option. When enabled, java.lang.Class and kotlin.reflect.KClass are treated as interchangeable in map key types, matching Kotlin's own annotation compilation behavior. This only applies to map keys because these are the only scenario where annotation arguments are materialized into non-annotation code (i.e. @ClassKey(Foo::class) -> Map<Class<*>, V>).

    This is disabled by default (even if other framework interops like includeDagger are enabled) because this is purely for annotations interop and potentially comes at some runtime overhead cost to interop since KClass types are still used under the hood and must be mapped in some cases. It's recommended to migrate these to KClass and call .java where necessary if possible.

    Enhancements

    • [FIR]: Report adhoc graph extension factories as these are unsupported in Metro (but apparently supported in Dagger!)
    • [FIR]: Report a diagnostic error for usage of Dagger's @LazyClassKey as this is unsupported in Metro.
    • [IR]: Report warning diagnostics for unused synthetic multibindings, as it's often a sign that the user accidentally bound them to the wrong supertype.
      warning: [Metro/SuspiciousUnusedMultibinding] Synthetic multibinding kotlin.collections.Map<kotlin.reflect.KClass<*>, BaseViewModel> is unused but has 4 source binding(s). Did you possibly bind them to the wrong type?
      

      SuspiciousUnusedMultibinding.kt:36:1 HomeViewmodel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:31:1 AccountViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:26:1 SettingsViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ ...and 1 more

      Similar multibindings:

      • Map<KClass<*>, ViewModel>
  • [Gradle]: Add IDE support docs link to @RequiresIdeSupport opt-in message.
  • Fixes

    • [IR]: Fix a code gen bug where @Provides graph parameters wouldn't correctly be used by scoped bindings directly held in that graph.

    Contributors

    Special thanks to the following contributors for contributing to this release!

    0.11.1

    ... (truncated)

    Commits

    Updates dev.zacsweers.metro from 0.10.4 to 0.11.2

    Release notes

    Sourced from dev.zacsweers.metro's releases.

    0.11.2

    New

    Class/KClass map key interop

    This release introduces a special-cased opt-in java.lang.Class and kotlin.reflect.KClass interop on JVM/android compilations. While these types are not intrinsics of each other in regular code, they are in annotations and are often used in Map multibindings. Metro can support these if you enable the enableKClassToClassMapKeyInterop option. When enabled, java.lang.Class and kotlin.reflect.KClass are treated as interchangeable in map key types, matching Kotlin's own annotation compilation behavior. This only applies to map keys because these are the only scenario where annotation arguments are materialized into non-annotation code (i.e. @ClassKey(Foo::class) -> Map<Class<*>, V>).

    This is disabled by default (even if other framework interops like includeDagger are enabled) because this is purely for annotations interop and potentially comes at some runtime overhead cost to interop since KClass types are still used under the hood and must be mapped in some cases. It's recommended to migrate these to KClass and call .java where necessary if possible.

    Enhancements

    • [FIR]: Report adhoc graph extension factories as these are unsupported in Metro (but apparently supported in Dagger!)
    • [FIR]: Report a diagnostic error for usage of Dagger's @LazyClassKey as this is unsupported in Metro.
    • [IR]: Report warning diagnostics for unused synthetic multibindings, as it's often a sign that the user accidentally bound them to the wrong supertype.
      warning: [Metro/SuspiciousUnusedMultibinding] Synthetic multibinding kotlin.collections.Map<kotlin.reflect.KClass<*>, BaseViewModel> is unused but has 4 source binding(s). Did you possibly bind them to the wrong type?
      

      SuspiciousUnusedMultibinding.kt:36:1 HomeViewmodel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:31:1 AccountViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:26:1 SettingsViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ ...and 1 more

      Similar multibindings:

      • Map<KClass<*>, ViewModel>
  • [Gradle]: Add IDE support docs link to @RequiresIdeSupport opt-in message.
  • Fixes

    • [IR]: Fix a code gen bug where @Provides graph parameters wouldn't correctly be used by scoped bindings directly held in that graph.

    Contributors

    Special thanks to the following contributors for contributing to this release!

    What's Changed

    ... (truncated)

    Changelog

    Sourced from dev.zacsweers.metro's changelog.

    0.11.2

    2026-03-02

    New

    Class/KClass map key interop

    This release introduces a special-cased opt-in java.lang.Class and kotlin.reflect.KClass interop on JVM/android compilations. While these types are not intrinsics of each other in regular code, they are in annotations and are often used in Map multibindings. Metro can support these if you enable the enableKClassToClassMapKeyInterop option. When enabled, java.lang.Class and kotlin.reflect.KClass are treated as interchangeable in map key types, matching Kotlin's own annotation compilation behavior. This only applies to map keys because these are the only scenario where annotation arguments are materialized into non-annotation code (i.e. @ClassKey(Foo::class) -> Map<Class<*>, V>).

    This is disabled by default (even if other framework interops like includeDagger are enabled) because this is purely for annotations interop and potentially comes at some runtime overhead cost to interop since KClass types are still used under the hood and must be mapped in some cases. It's recommended to migrate these to KClass and call .java where necessary if possible.

    Enhancements

    • [FIR]: Report adhoc graph extension factories as these are unsupported in Metro (but apparently supported in Dagger!)
    • [FIR]: Report a diagnostic error for usage of Dagger's @LazyClassKey as this is unsupported in Metro.
    • [IR]: Report warning diagnostics for unused synthetic multibindings, as it's often a sign that the user accidentally bound them to the wrong supertype.
      warning: [Metro/SuspiciousUnusedMultibinding] Synthetic multibinding kotlin.collections.Map<kotlin.reflect.KClass<*>, BaseViewModel> is unused but has 4 source binding(s). Did you possibly bind them to the wrong type?
      

      SuspiciousUnusedMultibinding.kt:36:1 HomeViewmodel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:31:1 AccountViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ SuspiciousUnusedMultibinding.kt:26:1 SettingsViewModel contributes a binding of BaseViewModel ~~~~~~~~~~~~~ ...and 1 more

      Similar multibindings:

      • Map<KClass<*>, ViewModel>
  • [Gradle]: Add IDE support docs link to @RequiresIdeSupport opt-in message.
  • Fixes

    • [IR]: Fix a code gen bug where @Provides graph parameters wouldn't correctly be used by scoped bindings directly held in that graph.

    Contributors

    Special thanks to the following contributors for contributing to this release!

    0.11.1

    ... (truncated)

    Commits

    You can trigger a rebase of this PR by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

    @dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Mar 2, 2026
    @bherbst
    Copy link
    Contributor

    bherbst commented Mar 2, 2026

    @dependabot rebase

    Bumps `metro` from 0.10.4 to 0.11.2.
    
    Updates `dev.zacsweers.metro:metrox-viewmodel-compose` from 0.10.4 to 0.11.2
    - [Release notes](https://github.com/ZacSweers/metro/releases)
    - [Changelog](https://github.com/ZacSweers/metro/blob/main/CHANGELOG.md)
    - [Commits](ZacSweers/metro@0.10.4...0.11.2)
    
    Updates `dev.zacsweers.metro` from 0.10.4 to 0.11.2
    - [Release notes](https://github.com/ZacSweers/metro/releases)
    - [Changelog](https://github.com/ZacSweers/metro/blob/main/CHANGELOG.md)
    - [Commits](ZacSweers/metro@0.10.4...0.11.2)
    
    ---
    updated-dependencies:
    - dependency-name: dev.zacsweers.metro:metrox-viewmodel-compose
      dependency-version: 0.11.2
      dependency-type: direct:production
      update-type: version-update:semver-minor
    - dependency-name: dev.zacsweers.metro
      dependency-version: 0.11.2
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    @dependabot dependabot bot force-pushed the dependabot/gradle/metro-0.11.2 branch from 98e9f36 to c637b05 Compare March 2, 2026 19:03
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    dependencies Pull requests that update a dependency file java Pull requests that update Java code

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    1 participant