Skip to content

Version 4.0.0

Latest

Choose a tag to compare

@marekdedic marekdedic released this 20 Aug 20:11
· 67 commits to master since this release
4.0.0
8f2fe0f

Breaking changes

  • ILBOptions is now an exported type instead of a global. Import it
    explicitly:
    import { ImageLightbox, type ILBOptions } from "imagelightbox";
  • The jQuery adapter's method declarations (imageLightbox,
    startImageLightbox, …) are now shipped in the imagelightbox/jquery entry
    point rather than declared globally, so they are only visible where that entry
    point is imported.

Bug fixes

  • Fixed the style and types entries in package.json exports pointing at
    files that don't exist.
  • data-ilb2-video autoplay now honours an explicit false instead of
    treating any present value as enabled.
  • Fixed an error when closing a gallery with enableKeyboard: false — Escape no
    longer lets the browser dismiss the dialog behind the lightbox's back.
  • Fixed a race condition when adding images to an open gallery with navigation
    enabled, and the navigation is now properly removed when the gallery closes.

Other

  • The demo page is no longer part of the npm package, cutting several megabytes
    of demo images and video from the download. It remains available at
    https://marekdedic.github.io/imagelightbox
  • Support for jQuery 4.