Skip to content

v2.2.0

Choose a tag to compare

@kai-init kai-init released this 16 Jun 02:18
· 140 commits to main since this release

Automatic dependency inference for whereHas and join, plus through/pivot correctness fixes.

Added

  • whereHas, whereDoesntHave, and variants are now cached automatically for simple Cacheable relations — no dependsOn() required.
  • Plain join() calls automatically infer the joined table as a cache dependency.

Fixed

  • hasManyThrough/hasOneThrough no longer serves one parent's cached results to a different parent.
  • dependsOn() declared on a through-relation query now correctly invalidates when those dependencies change.
  • Pivot relations with explicit dependsOn() now bypass cache instead of tracking incomplete version keys.
  • Through fast-path guard now correctly detects aliased or replaced from sources.

Full Changelog: CHANGELOG