npm / swiper
swiper
What changed in swiper 6 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.
4 breaking1 security16 new APIs and options1 behavior and defaults2 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initswiper 121 changes
Security 1
Prototype pollution in swiper
swiper 623 changes
Breaking changes 4
All events now pass the swiper instance as their first argument, a breaking change for event handlers.
New boolean parameter, enabled by default, prevents slidePrev/Next transitions while a transition is in progress.
Importing from swiper now imports the core version.
New parameter required to correctly detect and set the initial slide when using Hash Navigation or History modules.
New APIs and options 16
New listener for listening to any Swiper event.
Full server-side rendering support is added, with parameters for initial device detection and slide detection.
New CommonJS-format JavaScript file for the Swiper bundle.
New CSS file for the Swiper bundle.
New ESM-format JavaScript file for the Swiper bundle.
New UMD-format JavaScript file for the Swiper bundle.
New import path for the bundle version.
Components can now be imported directly from their component path.
Component styles can be imported directly in Less or SCSS.
New import path for the core version.
New Swiper React components are available from this import path.
New CommonJS-format JavaScript file for Swiper core.
New ESM-format JavaScript file for Swiper core.
New core Swiper LESS file in the package structure.
New core Swiper SCSS file in the package structure.
New parameter for the device user agent, required for some initial detection during SSR.
Behavior and default changes 1
Full support is added for Node.js DOM libraries like JSDOM and Domino.
Tooling 2
All scripts are transpiled to ES5.
Official TypeScript definitions are added.