v12.2.0

snarktank/ralphv12.2.0May 27, 2026by nolimits4web

AI Summary

This release primarily addresses stability issues by fixing event listener management and CSS type resolution to prevent errors during Swiper destruction.

Key Highlights

  • Fixed duplicate CSS type resolutions causing errors.
  • Guarded against stale event listeners in touch handlers (onTouchEnd/onTouchMove).
  • Guarded all event handlers against invocations on destroyed swipers.
  • Added TypeScript support for boolean as controller type.

New Features

  • TypeScript support for boolean controller types

Full Release Notes

### Bug Fixes

* avoid duplicate css type resolutions ([aaf6014](https://github.com/nolimits4web/Swiper/commit/aaf60141d2af8a0dcfd4f06951de4e606c7a59d5))
* **core:** guard against stale event listeners in onTouchEnd and onTouchMove ([00fe610](https://github.com/nolimits4web/Swiper/commit/00fe610b034edba92ef09a3f78b521673871b5f5))
* **core:** guard all event handlers against stale invocations on destroyed swiper ([3b2b85f](https://github.com/nolimits4web/Swiper/commit/3b2b85f904789b14628f65c89edb4991c3bf5859))
* **types:** support boolean as controller type ([b10f9e0](https://github.com/nolimits4web/Swiper/commit/b10f9e0d6d62303d16d9364be93ab454f6c3d038))