# What changed in swiper

> 17 changes in swiper 12 from its official release notes, upgrade guides and advisories: 1 security, 3 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/swiper/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## swiper 12

### Security

- Prototype pollution in swiper (12.1.2) — [security advisory](https://github.com/advisories/GHSA-HMX5-QPQ5-P643)

### New APIs and options

- Supports a custom speed parameter for keyboard navigation. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Adds the snapToSlideEdge parameter. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Added getRotateFix as an export from effect utils. (12.0.3) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.0.3)

### Fixes and other changes

- The a11y value can now be a boolean. (12.1.1) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.1)
- Avoids double-subtracting offsets when centerInsufficientSlides is enabled. (12.1.1) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.1)
- Fixes focus handling when virtual mode is enabled. (12.1.1) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.1)
- Fixes custom delay percentages when autoplay is paused and resumed. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Escapes all CSS selector special characters. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Fixes a lazy preloader removal error in React and Vue. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- When the virtual module is enabled, realIndex no longer uses data-swiper-slide-index. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Supports slidesOffsetAfter in cssMode. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Supports slidesOffsetBefore in cssMode. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Adds autoScroll to the thumbs.update type signature. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Updates slide classes when a virtual swiper is updated. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Initializes gesture state after programmatic zoom. (12.1.0) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.1.0)
- Fixed the reference to the navigation arrows SVG. (12.0.3) — [release notes](https://github.com/nolimits4web/swiper/releases/tag/v12.0.3)
