github kenwheeler/slick v2.0.0

5 hours ago

Slick 2.0 is compatible with jQuery 4.
This is a major release because it migrates off jQuery APIs that were removed in
jQuery 4 and drops some long-obsolete CSS/font support.

⚠️ jQuery 4 compatibility (breaking)

  • Replaced jQuery APIs removed in v4:
    • $.isArray(...)Array.isArray(...)
    • .focus() event-trigger shorthand → .trigger('focus')
  • Rewrote the UMD / CommonJS module wrapper for robust loading — jQuery is now
    required lazily and it no longer assumes a window (safer for SSR / non-browser
    environments).

Fixes

  • Focus/blur handling rewritten: focus.slick and blur.slick are now separate
    handlers and no longer call stopImmediatePropagation(), so focus events
    propagate to other listeners (#2901).
  • Fixed misplaced .slick-active class when centerMode: true and total slides
    slidesToShow (#4065).
  • Fixed centering logic when using swipe.
  • Cloned slides now use .removeAttr('id') instead of .attr('id', ''), avoiding
    empty/duplicate id attributes.
  • Corrected the counter in the dots buttons' aria-label.
  • Fixed slick-image-url / SCSS url interpolation and a wrong-quotes @charset.

Styling & assets

  • Cleaned up transform properties: unprefixed, unitless 0, consistent
    translate / translate3d spacing.
  • Removed poorly-supported CSS: -webkit- font smoothing and vendor-prefixed
    visibility handling.
  • Dropped SVG font support (no longer needed); added woff2 font + font stacks
    and font-display: swap.
  • Drag cursor now uses grab / grabbing.
  • Allow text selection when the slider is not draggable (#3112).

Full Changelog: v1.8.1...v2.0.0

Don't miss a new slick release

NewReleases is sending notifications on new releases.