Skip to content

v1.5.2

Choose a tag to compare

@github-actions github-actions released this 04 Jun 03:42

Added

  • Add maxHistorySize as a configurable undo/redo history bound for large image sessions.
  • Add regression coverage for crop apply locking, safe user callbacks, transform input validation, DOM disable restoration, placeholder suppression, and low-risk runtime hardening paths.

Fixed

  • Prevent cancelCrop() and crop reentry from mutating crop state while applyCrop() is in progress.
  • Keep successful image loads and mask creation committed when observer callbacks throw, reporting callback failures through warnings instead.
  • Fall back safely when label callbacks throw, reject non-finite transform inputs, and validate crop regions before export.
  • Keep canvas interaction available in crop mode, restore disabled/aria-disabled/pointer-events state on dispose, and consistently honor showPlaceholder: false.
  • Normalize invalid numeric runtime options, bound history size, report unsupported file selections once, validate JPEG background colors, reject degenerate polygon masks, and isolate throwing custom mask generators.