unstale

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 init

@unstale/cli on npm

swiper 121 changes

Security 1

swiper 623 changes

Breaking changes 4

  • All events now pass the swiper instance as their first argument, a breaking change for event handlers.

    6.0.0release notes

  • New boolean parameter, enabled by default, prevents slidePrev/Next transitions while a transition is in progress.

    6.0.0release notes

  • Importing from swiper now imports the core version.

    6.0.0release notes

  • New parameter required to correctly detect and set the initial slide when using Hash Navigation or History modules.

    6.0.0release notes

New APIs and options 16

  • New listener for listening to any Swiper event.

    6.0.0release notes

  • Full server-side rendering support is added, with parameters for initial device detection and slide detection.

    6.0.0release notes

  • New CommonJS-format JavaScript file for the Swiper bundle.

    6.0.0release notes

  • New CSS file for the Swiper bundle.

    6.0.0release notes

  • New ESM-format JavaScript file for the Swiper bundle.

    6.0.0release notes

  • New UMD-format JavaScript file for the Swiper bundle.

    6.0.0release notes

  • New import path for the bundle version.

    6.0.0release notes

  • Components can now be imported directly from their component path.

    6.0.0release notes

  • Component styles can be imported directly in Less or SCSS.

    6.0.0release notes

  • New import path for the core version.

    6.0.0release notes

  • New Swiper React components are available from this import path.

    6.0.0release notes

  • New CommonJS-format JavaScript file for Swiper core.

    6.0.0release notes

  • New ESM-format JavaScript file for Swiper core.

    6.0.0release notes

  • New core Swiper LESS file in the package structure.

    6.0.0release notes

  • New core Swiper SCSS file in the package structure.

    6.0.0release notes

  • New parameter for the device user agent, required for some initial detection during SSR.

    6.0.0release notes

Behavior and default changes 1

  • Full support is added for Node.js DOM libraries like JSDOM and Domino.

    6.0.0release notes

Tooling 2