Skip to content

v2.2.0

Latest

Choose a tag to compare

@jacobaraujo7 jacobaraujo7 released this 24 Jun 01:06

What's new

Added

  • addInjector(injector, resolveUpward: true) — a nested injector can now resolve the params of its own binds against an ancestor scope as a fallback, not only its own subtree. Default is false, preserving the previous downward-only behavior. Local/downward binds always take precedence; the ancestor is consulted only when a bind is not found locally. Mutual upward links are rejected eagerly with the new UpwardResolutionCycle exception.

Fixed

  • LayersGraph dispose-listener leak — re-running commit() on a long-lived injector stacked one dispose listener per surviving inner injector on every commit, growing unbounded across re-commits and retaining graph closures. Listener (re)registration is now idempotent, keeping the listener count stable.

🤖 Generated with Claude Code