Skip to content

0.0.3

Choose a tag to compare

@jschwind jschwind released this 13 Dec 11:05
· 17 commits to main since this release
ef4c912

Release 0.0.3 – Changelog Summary

A focused quality update that improves how the lightbox opens and integrates into real-world markup. You’ll get smoother clicks (including on links), small refactors for consistency, and a cleaner repo.

  • Anchor Support
    Now opens images when clicking <a href="..."> wrappers, not just <img> elements.
    Makes it easier to use thumbnails that link to full-size media.

  • Safer Click Handling
    Clicks on matched elements call preventDefault() before opening the lightbox.
    Prevents accidental page navigation and ensures a reliable lightbox experience.

  • Refined Listener Setup
    Event binding generalized from image-only to any matched elements.
    Improves compatibility with different HTML structures and reduces selector fragility.

  • Internal Refactor
    Code style and naming streamlined across ESM and UMD builds.
    Easier to read and maintain with no behavioral changes to the public API.

  • Version Bump
    Library version updated to 0.0.3 in source and distributed bundles.
    Clearer dependency tracking and package management.

  • Repository Cleanup
    Removed the .idea directory from version control.
    Keeps the repository tidy and avoids editor-specific noise.

Compatibility: Backward compatible.


Full Changelog: 0.0.2...0.0.3