unstale

npm / react-medium-image-zoom

react-medium-image-zoom

What changed in react-medium-image-zoom 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

11 breaking3 new APIs and options2 behavior and defaults8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.4 on npm

react-medium-image-zoom 523 changes

Breaking changes 10

New APIs and options 3

  • Added to customize the unzoom button.

    5.0.0release notes

  • Added to customize the zoom button.

    5.0.0release notes

  • Added to provide attributes for an image that should be loaded on zoom.

    5.0.0release notes

Behavior and default changes 2

  • Images must match the specified querySelector criteria to be found; elements with aria-hidden="true" are excluded.

    5.0.0release notes

  • Improved zooming support for images, picture and figure elements, and div and span elements with background images.

    5.0.0release notes

Fixes and other changes 8

  • Removes invalid aria-owns usage from rendered markup.

    5.4.8release notes

  • Opening or closing a zoom no longer shifts the page's scroll position, preventing scroll-driven UI from firing as though the user scrolled.

    5.4.7release notes

  • Unzoom now restores the previous scroll position instantly, avoiding animation from the top of the document on pages with smooth scrolling.

    5.4.6release notes

  • Fixes erratic zoom/pan when page height exceeds the viewport in Safari on iOS.

    5.4.5release notes

  • The mirror effect on a zoomed image now works with transform: scaleX(-100%).

    5.4.4release notes

  • Using controlled zoom and ZoomContent at the same time no longer breaks.

    5.4.4release notes

  • Fixed compatibility with React server-side rendering.

    5.4.3release notes

  • Fixed an issue involving an empty string being passed to the src attribute.

    5.4.2release notes

react-medium-image-zoom 41 changes

Breaking changes 1

  • The project was completely rewritten with breaking changes and a new API; see the README for migration details.

    4.0.0release notes