v7.0.0

mercurjs/mercurv7.0.0Feb 4, 2026by mherrmann

AI Summary

This major version release fixes a critical bug in relative search logic that prevented elements from being found when using multiple spatial relationships like `to_left_of` and `below`.

Key Highlights

  • Fixes relative search logic for finding elements based on spatial relationships
  • Addresses a specific failure case involving nested relative searches (e.g., to_left_of and below)
  • Changes which elements are found, necessitating a major version bump

Full Release Notes

The previous release 6.0.0 was not able to find `Button('Duplicate Button', to_left_of=Button('Duplicate Button', below=Button('Duplicate Button')))` in the following arrangement:

<img width="299" height="66" alt="image" src="https://github.com/user-attachments/assets/68d76dcb-14ba-4ac1-b512-70b00ec949ed" />

This release fixes this. It changes which elements are found and is therefore a major version.