Skip to content

2.57.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 14:06
· 28 commits to master since this release
c5c914f

Compatible environment configuration

What's Changed

For customised themes

We upgraded swiper to 12 and dompurify to 3.4.14 to close two security advisories (#2457). swiper had no fix on the 11.x line, so it's a major bump — if you customised carousels, two things need attention:

  • Stylesheet imports — Sass and LESS sources are gone. Change every @use "swiper/scss…" to @use "swiper/css…", or the build fails. $themeColor from swiper/scss/vars is gone too; use the --swiper-theme-color CSS variable.
  • Built-in nav buttons — if you styled .swiper-button-next / .swiper-button-prev, recheck them: the arrow is an SVG now, not an icon-font glyph, with different default offsets. Custom nav markup is unaffected.

dompurify only changed in one visible way: custom SVG icons keep vector-effect and pointer-events instead of being stripped.

Full Changelog: 2.56.0...2.57.0