Skip to content

v5.0.0

Choose a tag to compare

@elusivecodes elusivecodes released this 13 Sep 01:48

Major release standardizing camelCase API names, upgrading FrostCore, and improving DOM state preservation, animations, events, AJAX, and form handling.

Breaking Changes

  • Renamed getHTML and setHTML to getHtml and setHtml in both the static and QuerySet APIs.
  • Renamed hasCSSAnimation, hasCSSTransition, withCSSAnimation, and withCSSTransition to hasCssAnimation, hasCssTransition, withCssAnimation, and withCssTransition in both APIs.
  • Renamed $.parseHTML to $.parseHtml. Source-module consumers must also update escapeCSS imports to escapeCss.
  • Updated @fr0st/core from version 3 to version 4. The _-prefixed FrostCore utilities now follow the version 4 API, including its camelCase acronym names. The previous fQuery method names are not retained as aliases.

Added

  • Added reversible setStyleLock helpers for the static and QuerySet APIs, with explicit release callbacks and protection against conflicting or unrestorable style changes.

Fixed

  • Preserved inline display values and !important priorities through hide/show cycles and animations, including stylesheet-hidden elements, forced toggling, and cloned animation effects.
  • Corrected zero-duration and future-start animation progress, animation callback reentry, named-queue stopping, and squeeze sizing with padding and borders.
  • Preserved events, data, animations, selections, and original-node identity when cloning, moving, wrapping, replacing, or removing nodes, including overlapping selections, detached targets, shadow roots, and template contents.
  • Corrected scoped event delegation, restored delegated event properties after callbacks, preserved persistent handlers alongside once-only handlers, and cleaned up multi-touch drag completion and cancellation.
  • Corrected AJAX GET/HEAD query encoding, case-insensitive header merging, content-type handling, relative and base-URL resolution, network errors, and direct XHR cancellation.
  • Preserved repeated form values and File/Blob inputs, normalized serialized line endings, and respected form associations, disabled controls/options, fieldsets, and non-submitting controls.
  • Hardened DOM access against named form-property collisions, preserved CSS custom property names, and recursively sanitized allowed template contents.
  • Corrected detached-tree sorting, common-ancestor and descendant checks, selection boundaries, box-model measurements, position calculations, and document scrolling fallbacks.

Improved

  • Consolidated repeated DOM and QuerySet tests into shared fixtures and behavior cases with shallow groups and explicit lifecycle sequences.
  • Made animation and queue tests deterministic, strengthened cleanup and first-node assertions, and expanded cross-browser regression coverage.
  • Updated the README, JSDoc, distribution bundles, source maps, and Playwright dependency for version 5.0.0.