npm / swiper
swiper
What changed in swiper 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
1 security3 new APIs and options13 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initswiper 1217 changes
Security 1
Prototype pollution in swiper
New APIs and options 3
Supports a custom speed parameter for keyboard navigation.
Adds the snapToSlideEdge parameter.
Added getRotateFix as an export from effect utils.
Fixes and other changes 13
The a11y value can now be a boolean.
Avoids double-subtracting offsets when centerInsufficientSlides is enabled.
Fixes focus handling when virtual mode is enabled.
Fixes custom delay percentages when autoplay is paused and resumed.
Escapes all CSS selector special characters.
Fixes a lazy preloader removal error in React and Vue.
When the virtual module is enabled, realIndex no longer uses data-swiper-slide-index.
Supports slidesOffsetAfter in cssMode.
Supports slidesOffsetBefore in cssMode.
Adds autoScroll to the thumbs.update type signature.
Updates slide classes when a virtual swiper is updated.
Initializes gesture state after programmatic zoom.
Fixed the reference to the navigation arrows SVG.