Skip to content

chore(deps): update plugin metro to v0.5.0 #2190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

slack-oss-bot
Copy link
Collaborator

This PR contains the following updates:

Package Change Age Confidence
dev.zacsweers.metro 0.4.0 -> 0.5.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

ZacSweers/metro (dev.zacsweers.metro)

v0.5.0

Compare Source

2025-07-14

  • New: Experimental support for "binding containers" via @BindingContainer. See their docs for more details.
  • New: Add keys-scopedProviderFields-*.txt and keys-providerFields-*.txt reports to see generated field reports for graphs.
  • Enhancement: Remove Any constraint from binding<T>(), allowing bindings to satisfy nullable variants.
  • Enhancement: Add diagnostic to check for scoped @Binds declarations. These are simple pipes and should not have scope annotations.
  • Enhancement: Move graph dependency cycle checks to earlier in validation.
  • Enhancement: When using Dagger interop, default allowEmpty to true when using Dagger's @Multibinds annotation.
  • Enhancement: Make Dagger interop providers/lazy instances a dagger.internal.Provider internally for better compatibility with Dagger internals. Some dagger-generated code assumes this type at runtime.
  • Enhancement: Support javax/jakarta Provider types as multibinding Map value types when Dagger interop is enabled.
  • Enhancement: Completely skip processing local and enum classes as they're irrelevant to Metro's compiler.
  • Enhancement: When reporting @Binds declarations in binding stacks, report the original declaration rather than inherited fake overrides.
  • Enhancement: Add interop support for kotlin-inject's @AssistedFactory annotations.
  • Enhancement: Add diagnostic to check for graph classes directly extending other graph classes. You should use @Extends.
  • Enhancement: Add diagnostic to check for @Assisted parameters in provides functions.
  • Enhancement: Add diagnostic to check duplicate @Provides declaration names in the same class.
  • Fix: Within (valid) cycles, topographically sort bindings within the cycle. Previously these would fall back to a deterministic-but-wrong alphabetical sort.
  • Fix: Handle enum entry arguments to qualifier, scope, and map key annotations.
  • Fix: Report the original location of declarations in fake overrides in error reporting.
  • Fix: Handle default values on provides parameters with absent bindings during graph population.
  • Fix: Don't try to read private accessors of @Includes parameters.
  • Fix: Don't quietly stub accessors for missing Binding.Provided bindings.
  • Fix: Check constructor-annotated injections when discovering scoped classes in parent graphs.
  • Fix: Fix BaseDoubleCheck.isInitialized().
  • Fix: Gracefully fall back to MessageCollector for graph seal and contributed graph errors on sourceless declarations.
  • Fix: Fix supporting overloads of binds functions from parent graphs or external supertypes.
  • Fix: Fix generating binding functions with names that contain dashes.
  • Fix: Treat interop'd Dagger/Anvil/KI components as implicitly extendable.
  • Fix: Record lookups of @Binds declarations for IC.
  • Fix: Record lookups of generated class factories and their constructor signatures for IC.

Special thanks to @​kevinguitar, @​gabrielittner, @​chrisbanes, @​yschimke, and @​ajarl for contributing to this release!


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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


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

This PR has been generated by Renovate Bot.

@slack-oss-bot slack-oss-bot enabled auto-merge July 15, 2025 08:10
@slack-oss-bot slack-oss-bot force-pushed the renovate/dev.zacsweers.metro-0.x branch from 956e5a6 to ce48111 Compare July 16, 2025 08:09
@slack-oss-bot slack-oss-bot added this pull request to the merge queue Jul 16, 2025
Merged via the queue into main with commit ba202ec Jul 16, 2025
5 checks passed
@slack-oss-bot slack-oss-bot deleted the renovate/dev.zacsweers.metro-0.x branch July 16, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants