This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
Update dependency swiper to v6 [SECURITY] #4635
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.3.6
->6.5.1
GitHub Vulnerability Alerts
CVE-2021-23370
Versions of the package swiper before 6.5.1 are susceptible to prototype pollution.
Release Notes
nolimits4web/Swiper
v6.5.1
Compare Source
Bug Fixes
aria-roledescription
attribute name (1b73c3b), closes #4371getComputedStyle
helper (9698e58), closes #4337Features
disabled
prop on nav element if it is a<button>
element (7536fbd), closes #4312v6.5.0
Compare Source
Bug Fixes
Features
v6.4.15
Compare Source
Bug Fixes
v6.4.14
Compare Source
Bug Fixes
Features
v6.4.12
Compare Source
Bug Fixes
Performance Improvements
v6.4.11
Compare Source
Bug Fixes
false
#4181 (ffedb6b)Features
6.4.10 (2021-01-29)
Bug Fixes
6.4.9 - Released on January 28th, 2021
Bug Fixes
scrollbar.el
will throw an error on destroyFeatures
6.4.8 - Released on January 22th, 2021
6.4.7 - Released on January 21th, 2021
zoom
prop on slides, e.g.<ng-template swiperSlide [zoom]="true">
pagination.el
6.4.6 - Released on January 20th, 2021
edgeSwipeDetection
parameter now can receive string'prevent'
to prevent system swipe-back navigationslidesPerView
last slide never received "active" class/state6.4.5 - Released on December 18th, 2020
postinstall
script6.4.4 - Released on December 18th, 2020
postinstall
script.css
files are also available for all components.svelte
files in package[config]
support to pass all Swiper params as single object (nolimits4web/swiper@f7d21c5)(index)
active slide binding (nolimits4web/swiper@86670bd)6.4.1 - Released on December 9th, 2020
6.4.0
6.4.0 - Released on December 8th, 2020
.svelte
components6.3.5 - Released on October 30th, 2020
slideTo
'sindex
parameter6.3.4 - Released on October 20th, 2020
Maximum recursive updates
6.3.3 - Released on October 9th, 2020
6.3.2 - Released on September 28th, 2020
6.3.1 - Released on September 25th, 2020
Core
6.3.0 - Released on September 25th, 2020
Core
containerMessage
,containerRoleDescriptionMessage
anditemRoleDescriptionMessage
(#3834 thanks to @jenemde)React
SwiperSlide
component requires uniquevirtualIndex
to be set so Swiper can know which slide is rendered exactlyVue
SwiperSlide
was not rendered if used withv-for
SwiperSlide
component requires uniquevirtualIndex
to be set so Swiper can know which slide is rendered exactlyAll new Swiper Svelte components:
6.2.0 - Released on September 4rd, 2020
All new Swiper Vue.js (v3) components:
6.1.3 - Released on September 3rd, 2020
6.1.2 - Released on August 17th, 2020
useLayoutEffect
warning in Next.js6.1.1 - Released on July 31th, 2020
6.1.0 - Released on July 31th, 2020
thresholdDelta
andthresholdTime
(#3720).less
files (#3724)sideEffects
causing some bundlers to not include imported styles (#3708)SwiperSlide
accepts render function withisActive
,isVisible
,isPrev
,isNext
,isDuplicate
props:6.0.4 - Released on July 15th, 2020
6.0.3 - Released on July 14th, 2020
__proto__
setters/getters6.0.2 - Released on July 9th, 2020
pagination.el
,scrollbar.el
,navigation.nextEl
andnavigation.prevEl
are passed from later-available refs6.0.1 - Released on July 7th, 2020
Core
$colors
var in Navigation and PaginationReact
6.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 LESSswiper.scss
- core Swiper SCSSswiper-bundle.css
- Swiper bundle CSSswiper-bundle.js
- Swiper bundle JavaScript in UMD formatswiper-bundle.cjs.js
- Swiper bundle JavaScript in CommonJS formatswiper-bundle.esm.js
- Swiper bundle JavaScript in ESM formatswiper.cjs.js
- Swiper core JavaScript in CommonJS formatswiper.esm.js
- Swiper core JavaScript in ESM formatFollowing imports are now available
import Swiper from 'swiper'
- imports core versionimport Swiper from 'swiper/bundle'
- imports bundle versionimport Swiper from 'swiper/core'
- imports core versionComponents can be imported from core version using named imports, or using direct import:
Full server-side rendering support (SSR) with new parameters:
userAgent
- device user agent, required for some initial detectionurl
- required to correctly detect and set initial slide if Hash Navigation or History modules are usedNew
loopPreventsSlide
boolean parameter (by default enabled), that prevents slidePrev/Next transitions while transition is in progressFull support for Node.js DOM libraries like JSDOM and Domino
Added new
onAny(callback)
listener to listen for any swiper eventAll events now emit
swiper
instance as a first argument (BREAKING CHANGE)Added official TypeScript definitions
Updated to use next generation
dom7
andssr-window
librariesAll new Swiper React components:
5.4.5 - Released on June 16th, 2020
pageUpDown
to enable/disable pageUp and pageDown keys (enabled by default)5.4.3 - Released on June 13th, 2020
UIWebView
text from codeslideTo
to last slide when it shouldn't5.4.2 - Released on June 3rd, 2020
forceToAxis
also inverted scrollingscale
parameter (#3598)uniqueNavElements
(#3590)5.4.1 - Released on May 20th, 2020
5.4.0 - Released on May 15th, 2020
hashChange
andhashSet
events (#3557)<picture>
lazy loading (#3560)ssr-window
anddom7
dependencies to latest versions5.3.8 - Released on April 24th, 2020
paginationBulletMessage
(#3540, #3541)thumbs.autoScrollOffset
parameter that allows to set on what thumbs active slide from edge. It should automatically move scroll thumbs5.3.7 - Released on April 10th, 2020
cssMode
behavior in RTL layout5.3.6 - Released on February 29th, 2020
centeredSlides
enabledzoom.in()
API (#3451)<picture>
element (#3456)swiper-zoom-target
class to such elementsstretch
parameter now can be set in%
(#3468)5.3.1 - Released on February 8th, 2020
label
to list of form events to keep clicks on it (#3407)5.3.0 - Released on January 11th, 2020
slidesPerGroupSkip
behavior (#3361)5.2.1 - Released on November 16th, 2019
beforeLoopFix
andloopFix
updateOnWindowResize
(by defaulttrue
) that will update/recalc swiper on window resize/orientationchange--swiper-theme-color
variable when not building from source (#3334).once
could be called more than once (#3322)multipleActiveThumbs
(by defaulttrue
) option to control whether multiple thumbnail slides may get activated or not.5.2.0 - Released on October 26th, 2019
centeredSlidesBounds
parameter that when enabled will keep first and last slides at boundsfreeMode
could break position on resize (#2708, #3303)freeModeSticky
(#3302)watchOverflow
andslidesOffsetBefore
/slidesOffsetAfter
couldn't work together (#3291)5.1.0 - Released on October 16th, 2019
translateTo
method #3268loop: true
#32555.0.4 - Released on September 30th, 2019
slidesPerView
could break loop mode (#3225 by @robpop)paused
after returning from hidden tab5.0.3 - Released on September 19th, 2019
touchEventsTarget
defaults back tocontainer
touchcancel
event #3219slidesPerColumnFill: 'row'
mode5.0.1 - Released on September 17th, 2019
5.0.0 - Released on September 17th, 2019
cssMode: true
). It doesn't support all of Swiper's features, but potentially should bring a much better performance in simple configurationsbreakpointsInverse
parameter has been removed and nowbreakpoints
behave like withbreakpointsInverse: true
before.touchMoveStopPropagation
parameter now defaults tofalse
click
event won't be fired with 300ms delay anymore. Now it will be fired at the same time astap
eventslidesPerColumnFill: 'column'
it now usesflex-direction: column
layout which requires specified height on swiper-containertouchEventsTarget
now defaults towrapper
(rather thancontainer
like before)slidesPerColumn
now can be used with breakpoints--swiper-theme-color: #​007aff;
es
module "tree-shake-ability"swiper.esm.browser.bundle.js
package that can be used directly in browser (import Swiper from 'swiper.esm.browser.bundle.js'
)--swiper-preloader-color
CSS custom property (which is defaults to--swiper-theme-color
)--swiper-pagination-color
property (which is defaults to--swiper-theme-color
)--swiper-navigation-color
property (which is defaults to--swiper-theme-color
)--swiper-navigation-size
(defaults to44px
) it is now possible to change size of the navigation buttons (and icons)4.5.1 - Released on September 13th, 2019
slidesPerColumnFill: 'row'
now considers groups (#3077)indexOf
of undefined' that sometimes occurs on use of thumbnailsPageUp
/PageDown
keybindings.4.5.0 - Released on February 22nd, 2019
swiper.changeDirection()
method to change direction from horizontal to vertical (and back) dynamicallydirection
parameter can be used in breakpointsswiper.virtual.appendSlide
now accepts array of slides to addswiper.virtual.prependSlide
now accepts array of slides to prependswiper.virtual.removeSlide(indexes)
to remove virtual selected slidesswiper.virtual.removeAllSlides()
to remove all virtual slidesnavigationHide
andnavigationShow
events when on nav hide/showpaginationHide
andpaginationShow
events when on pagination hide/show.once
bound event could still be there after unbinding it with.off
4.4.6 - Released on December 19th, 2018
4.4.5 - Released on December 14th, 2018
observeSlideChildren
parameter to enable auto update on slide children updatezoomChange
event withscale
,imageEl
andslideEl
arguments4.4.2 - Released on November 1st, 2018
touchStartForcePreventDefault
parameter to force touch start event prevent default4.4.1 - Released on September 14th, 2018
4.4.0 - Released on September 14th, 2018
centerInsufficientSlides
parameter to center slides if the amount of slides less thanslidesPerView
breakpointsInverse
parameter (boolean), if enabled then it will count breakpoints in reversed direction, e.g. will override parameters if window width is more than specified breakpointaddSlidesBefore
andaddSlidesAfter
parameters to increase amount of pre-rendered slides4.3.5 - Released on July 31th, 2018
iOSEdgeSwipeThreshold
parameter renamed to justedgeSwipeThreshold
. OldiOSEdgeSwipeThreshold
name is still supported4.3.3 - Released on June 5th, 2018
4.3.2 - Released on June 1st, 2018
addSlide(index, slide)
method to add slide at required position. Thanks to @kochizufanformatFractionCurrent(number)
parameter to format current number in Fraction paginationformatFractionTotal(number)
parameter to format total number in Fraction pagination4.3.0 - Released on May 27th, 2018
swipeBack
sometimes slides to wrong slideiOSEdgeSwipeDetection
. Thanks to @langjun4.2.6 - Released on May 1st, 2018
console.log
cleanup4.2.5 - Released on April 29th, 2018
4.2.2 - Released on April 1st, 2018
.update()
methodprogressbarOpposite
parameter to make pagination progressbar opposite todirection
parameter, means vertical progressbar for horizontal swiper direction and horizontal progressbar for vertical swiper directionloop
+freeMode
for loop not being set correctly4.2.0 - Released on March 16th, 2018
swiper.updateAutoHeight(speed)
now supportsspeed
parameter to resize swiper wrapper with durationfreeModeSticky
not being able to snap to closest snap pointswiper.slideToClosest()
method to slide to closest snap point when it is somewhere in between4.1.6 - Released on February 11th, 2018
4.1.5 - Released on February 10th, 2018
noSwipingSelector
parameter that can be used instead ofnoSwipingClass
preventIntercationOnTransition
parameter to prevent interaction during slice change transition.slideToLoop
method to be used in loop modeslideChange
events being fired when slide wasn't actually changedsimulateTouch
for desktops when it isdraggable
4.1.0 - Released on January 13th, 2018
watchOverflow
(disabled by default). When enabled Swiper will be disabled and hide navigation buttons on case there are not enough slides for slidingreverseDirection
to enable autoplay in reverse directionwaitForTransition
parameter when autoplay will wait for wrapper transition to continue (enabled by default). Can be disabled in case of using Virtual Translate when your slider may not have transitiononlyInViewport
parameter (enabled by default). When enabled it will control sliders that are currently in viewport4.0.7 - Released on November 28th, 2017
touchReleaseOnEdges
on iOSdragSize
4.0.6 - Released on November 13th, 2017
iOSEdgeSwipeDetection
will also be in consideration with right-edge swipefreeModeSticky
behavior in RTL modebreakpoint
event on breakpoint change4.0.5 - Released on November 7th, 2017
noSwiping
parameterslidesPerGroup
parameterbreakpoints
4.0.3 - Released on October 27th, 2017
document
objectslidesPerView: 'auto'
build-dev
->build:dev
,build-prod
->build:prod
4.0.2 - Released on October 18th, 2017
beforeResize
event4.0.1 - Released on October 11th, 2017
realIndex
calculation orderingswiper.module.js
->swiper.esm.bundle.js
(exported by default)swiper.modular.js
->swiper.esm.js
4.0.0 - Released on October 4th, 2017 🎉
swiper.module.js
- swiper bundle forimport Swiper from 'swiper'
swiper.modular.js
- modular version for using Swiper with required components onlyscripts/build-config.js
for creating custom Swiper build with required components and custom color theme4.0.0-beta.4 - Released on September 20th, 2017
4.0.0-beta.3 - Released on September 13th, 2017
4.0.0-beta.2 - Released on September 2nd, 2017
4.0.0-beta.1 - Released on August 30th, 2017
3.4.2 - Released on March 10th, 2017
onAfterResize
andonBeforeResize
callbacksonKeyPress
callback when keyboard control is used3.4.1 - Released on December 13th, 2016
3.4.0 - Released on October 16th, 2016
gulp custom -zoom,effects,lazy-loading
zoom
- enable zoom functionalityzoomMax
- maximum image zoom multiplier, by default is3
zoomMin
- minimum image zoom multiplier, by default is1
zoomToggle
- enable/disable zoom-in by slide's double tapzoomMax
can be also overridden for specific slide by usingdata-swiper-zoom
attributeswiper.enableTouchControl()
andswiper.disableTouchControl()
methods to enable disable touch control (it togglesonlyExternal
parameter)swiper.realIndex
property in addition toswiper.activeIndex
that returns index of active slide considering loophistory
parameter. It uses history pushState to set active slide URLhashnavWatchState
parameter to navigate through slides (when hashnav is enabled) by browser history or by setting directly hash on document locationreplaceState
parameter that work in addition to hashnav or history to replace current url state with the new one instead of adding it to historys.unsetGrabCursor()
ands.setGrabCursor()
to enable/disable grab cursorsimulateTouch:false
normalizeSlideIndex
parameter to improve work of controller (see #1766)lazyLoadingInPrevNextAmount
now works withslidesPerView: 'auto'
passiveListeners
parameter to use passive event listeners to improve scrolling performance on mobile devices. Enabled by defaultfreeModeMomentumVelocityRatio
parameter to control moment velocitydata-swiper-autoplay
attribute on themsizes
responsive images attributemousewheelEventsTarged
parameter (by default 'container') where you can specify mousewheel events targetonScroll
event/callback that triggers when swiping/scrolling happens with mousewheeltouchReleaseOnEdges
parameter to release touch events on slider edge position (beginning, end) and allow for further page scrollingpaginationBulletRender
now acceptsswiper
instance as a first argument,paginationBulletRender(index, className)
->paginationBulletRender(swiper, index, className)
3.3.1 - Released on February 7th, 2016
uniqueNavElements
parameter. If enabled (by default) and navigation elements' parameters passed as the string (like.pagination
) then Swiper will look for such elements through child elements first. Applies for pagination, prev/next buttons and scrollbaronPaginationRendered
callback. Will be fired after pagination elements generated and added to DOM.reLoop()
method, which combines.destroyLoop()
+.createLoop()
methods with additional positioning fixes. Useful to call after you have changedslidesPerView
parameter, it will dynamically recreate duplicated slides required for loop.nextButton
and.prevButton
properties with Dom7/jQuery element with next/prev button HTML elementslidesPerView/Group
parameters3.3.0 - Released on January 10th, 2016
paginationType
- type of pagination. Can be'bullets'
(default) or'fraction'
or'progress'
or'custom'
paginationFractionRender(swiper, currentClass, totalClass)
- custom function to render "fraction" type paginationpaginationProgressRender(swiper, progressbarClass)
- custom function to render "progress" type paginationpaginationCustomRender(swiper, current, total)
- custom function to render "custom" type paginationlazyLoadingInPrevNextAmount
parameter allows to lazy load images in specified amount of next/prev slidesautoplayStopOnLast
parameter (true
by default) tells to autoplay should it stop on last slide or start from first slideonAutoplay(swiper)
callback3.2.7 - Released on December 7th, 2015
3.2.6 - Released on November 28th, 2015
mousewheelControl
3.2.5 - Released on November 21st, 2015
autoHeight: true
parametersetWrapperTranslate
3.2.0 - Released on November 7th, 2015
Added responsive breakpoints support using new
breakpoints
parameter. Now you can specify differentslidesPerView
and other similar parameters for different sizes:New callbacks:
onSlideNextStart
,onSlideNextEnd
,onSlidePrevStart
,onSlidePrevEnd
Added Meteor package
meteor add nolimits4web:swiper
Fixed issue with mouse touchMove/End callbacks firing all the time
Fixed issue with mousewheel in Chrome
Minor fixes
3.1.7 - Released on October 10th, 2015
undefined
-src imagesslideToClickedSlide
withloop
andcenteredSlides
slidesPerView * slidesPerColumn
withslidesPerColumnFill: 'row'
3.1.5 - Released on September 28th, 2015
srcset
with lazy loading usingdata-srcset
attributeWebkitCSSMatrix
slideToClickedSlide
withloop
andcenteredSlides
freeModeMinimumVelocity
parameter to set minimum required touch velocity to trigger free mode momentumscrollbarDraggable
- (boolean) by default isfalse
. Allows to enable draggable scrollbarscrollbarSnapOnRelease
- (boolean) by default isfalse
. Control slider snap on scrollbar release3.1.2 - Released on August 22nd, 2015
slidesPerView: 'auto'
and enabledloop:true
mode to setloopedSlides
to the amount of slides by default (if not specified)mousewheelSensitivity: 1
parameter allows to tweak mouse wheel sensitivityConfiguration
📅 Schedule: "" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.