# Changelog
## [Swiper 6.1.1](https://github.com/nolimits4web/swiper/compare/v6.1.0...v6.1.1) - Released on July 31th, 2020
- Fixed ESM/CJS import paths
## [Swiper 6.1.0](https://github.com/nolimits4web/swiper/compare/v6.0.4...v6.1.0) - Released on July 31th, 2020
- Core
- Mousewheel
- New mousewheel parameters `thresholdDelta` and `thresholdTime` (#3720)
- Fixed issue with Navigation and Pagination `.less` files (#3724)
- Fixed issue with setting proper `sideEffects` causing some bundlers to not include imported styles (#3708)
- React
- Now `SwiperSlide` accepts render function with `isActive`, `isVisible`, `isPrev`, `isNext`, `isDuplicate` props:
```jsx
{({ isActive }) =>
Current slide is {isActive ? 'active' : 'not active'}
}
...
...
```
- Minor fixes
## [Swiper 6.0.4](https://github.com/nolimits4web/swiper/compare/v6.0.3...v6.0.4) - Released on July 15th, 2020
- Fixed TS definitions for Swiper React component (#3692)
## [Swiper 6.0.3](https://github.com/nolimits4web/swiper/compare/v6.0.2...v6.0.3) - Released on July 14th, 2020
- Dom7 updated to latest with correct `__proto__` setters/getters
## [Swiper 6.0.2](https://github.com/nolimits4web/swiper/compare/v6.0.1...v6.0.2) - Released on July 9th, 2020
- React
- Now Swiper will be auto updated if `pagination.el`, `scrollbar.el`, `navigation.nextEl` and `navigation.prevEl` are passed from later-available refs
## [Swiper 6.0.1](https://github.com/nolimits4web/swiper/compare/v6.0.0...v6.0.1) - Released on July 7th, 2020
- Core
- SCSS:Fixed issue with missing `$colors` var in Navigation and Pagination
- React
- Fixed Swiper instance argument typings in event handler props
- Added event handler props definitions for modules events
## [Swiper 6.0.0](https://github.com/nolimits4web/swiper/compare/v5.4.5...v6.0.0) - Released on July 3rd, 2020
- New NPM package structure
- All scripts transpiled to ES5
- New and renamed files (**BREAKING CHANGE**):
- `swiper.less` - core Swiper LESS
- `swiper.scss` - core Swiper SCSS
- `swiper-bundle.css` - Swiper bundle CSS
- `swiper-bundle.js` - Swiper bundle JavaScript in UMD format
- `swiper-bundle.cjs.js` - Swiper bundle JavaScript in CommonJS format
- `swiper-bundle.esm.js` - Swiper bundle JavaScript in ESM format
- `swiper.cjs.js` - Swiper core JavaScript in CommonJS format
- `swiper.esm.js` - Swiper core JavaScript in ESM format
- Following imports are now available
- `import Swiper from 'swiper'` - imports core version
- `import Swiper from 'swiper/bundle'` - imports bundle version
- `import Swiper from 'swiper/core'` - imports core version
- Components can be imported from core version using named imports, or using direct import:
```js
import { Navigation } from 'swiper';
// or
import Navigation from 'swiper/components/navigation';
// and styles (Less or SCSS only)
import 'swiper/components/navigation/navigation.less';
```
- Full server-side rendering support (SSR) with new parameters:
- `userAgent` - device user agent, required for some initial detection
- `url` - required to correctly detect and set initial slide if Hash Navigation or History modules are used
- New `loopPreventsSlide` boolean parameter (by default enabled), that prevents slidePrev/Next transitions while transition is in progress
- Full support for Node.js DOM libraries like JSDOM and Domino
- Added new `onAny(callback)` listener to listen for any swiper event
- All events now emit `swiper` instance as a first argument (**BREAKING CHANGE**)
- Added official TypeScript definitions
- Updated to use next generation `dom7` and `ssr-window` libraries
- All new Swiper React components:
```jsx
import { Swiper, SwiperSlide } from 'swiper/react';
export default () => {
return (
console.log(swiper)}
onSlideChange={() => console.log('slide change')}
>
Slide 1Slide 2
...
);
};
```
## [Swiper 5.4.5](https://github.com/nolimits4web/swiper/compare/v5.4.3...v5.4.5) - Released on June 16th, 2020
- Core
- Fixed issue when checkOverflow method could throw error if Navigation module wasn't installed (#3621)
- Keyboard
- New parameter `pageUpDown` to enable/disable pageUp and pageDown keys (enabled by default)
## [Swiper 5.4.3](https://github.com/nolimits4web/swiper/compare/v5.4.2...v5.4.3) - Released on June 13th, 2020
- Core
- Removed `UIWebView` text from code
- Fixed resize handler calling `slideTo` to last slide when it shouldn't
## [Swiper 5.4.2](https://github.com/nolimits4web/swiper/compare/v5.4.1...v5.4.2) - Released on June 3rd, 2020
- Mousewheel
- Fixed issue when enabling `forceToAxis` also inverted scrolling
- Coverflow Effect
- Added support for `scale` parameter (#3598)
- Pagination
- Fixed detectction of `uniqueNaVElements` (#3590)
## [Swiper 5.4.1](https://github.com/nolimits4web/swiper/compare/v5.4.0...v5.4.1) - Released on May 20th, 2020
- Fixed dependencies versions
## [Swiper 5.4.0](https://github.com/nolimits4web/swiper/compare/v5.3.8...v5.4.0) - Released on May 15th, 2020
- Hash Navigation
- Added `hashChange` and `hashSet` events (#3557)
- Lazy
- Added support for `