This repository was 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.1GitHub 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.1Compare Source
Bug Fixes
aria-roledescriptionattribute name (1b73c3b), closes #4371getComputedStylehelper (9698e58), closes #4337Features
disabledprop on nav element if it is a<button>element (7536fbd), closes #4312v6.5.0Compare Source
Bug Fixes
Features
v6.4.15Compare Source
Bug Fixes
v6.4.14Compare Source
Bug Fixes
Features
v6.4.12Compare Source
Bug Fixes
Performance Improvements
v6.4.11Compare 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.elwill throw an error on destroyFeatures
6.4.8 - Released on January 22th, 2021
6.4.7 - Released on January 21th, 2021
zoomprop on slides, e.g.<ng-template swiperSlide [zoom]="true">pagination.el6.4.6 - Released on January 20th, 2021
edgeSwipeDetectionparameter now can receive string'prevent'to prevent system swipe-back navigationslidesPerViewlast slide never received "active" class/state6.4.5 - Released on December 18th, 2020
postinstallscript6.4.4 - Released on December 18th, 2020
postinstallscript.cssfiles are also available for all components.sveltefiles 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.06.4.0 - Released on December 8th, 2020
.sveltecomponents6.3.5 - Released on October 30th, 2020
slideTo'sindexparameter6.3.4 - Released on October 20th, 2020
Maximum recursive updates6.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,containerRoleDescriptionMessageanditemRoleDescriptionMessage(#3834 thanks to @jenemde)React
SwiperSlidecomponent requires uniquevirtualIndexto be set so Swiper can know which slide is rendered exactlyVue
SwiperSlidewas not rendered if used withv-forSwiperSlidecomponent requires uniquevirtualIndexto 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
useLayoutEffectwarning in Next.js6.1.1 - Released on July 31th, 2020
6.1.0 - Released on July 31th, 2020
thresholdDeltaandthresholdTime(#3720).lessfiles (#3724)sideEffectscausing some bundlers to not include imported styles (#3708)SwiperSlideaccepts render function withisActive,isVisible,isPrev,isNext,isDuplicateprops: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.nextElandnavigation.prevElare passed from later-available refs6.0.1 - Released on July 7th, 2020
Core
$colorsvar 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
loopPreventsSlideboolean 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
swiperinstance as a first argument (BREAKING CHANGE)Added official TypeScript definitions
Updated to use next generation
dom7andssr-windowlibrariesAll new Swiper React components:
5.4.5 - Released on June 16th, 2020
pageUpDownto enable/disable pageUp and pageDown keys (enabled by default)5.4.3 - Released on June 13th, 2020
UIWebViewtext from codeslideToto last slide when it shouldn't5.4.2 - Released on June 3rd, 2020
forceToAxisalso inverted scrollingscaleparameter (#3598)uniqueNavElements(#3590)5.4.1 - Released on May 20th, 2020
5.4.0 - Released on May 15th, 2020
hashChangeandhashSetevents (#3557)<picture>lazy loading (#3560)ssr-windowanddom7dependencies to latest versions5.3.8 - Released on April 24th, 2020
paginationBulletMessage(#3540, #3541)thumbs.autoScrollOffsetparameter that allows to set on what thumbs active slide from edge. It should automatically move scroll thumbs5.3.7 - Released on April 10th, 2020
cssModebehavior in RTL layout5.3.6 - Released on February 29th, 2020
centeredSlidesenabledzoom.in()API (#3451)<picture>element (#3456)swiper-zoom-targetclass to such elementsstretchparameter now can be set in%(#3468)5.3.1 - Released on February 8th, 2020
labelto list of form events to keep clicks on it (#3407)5.3.0 - Released on January 11th, 2020
slidesPerGroupSkipbehavior (#3361)5.2.1 - Released on November 16th, 2019
beforeLoopFixandloopFixupdateOnWindowResize(by defaulttrue) that will update/recalc swiper on window resize/orientationchange--swiper-theme-colorvariable when not building from source (#3334).oncecould 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
centeredSlidesBoundsparameter that when enabled will keep first and last slides at boundsfreeModecould break position on resize (#2708, #3303)freeModeSticky(#3302)watchOverflowandslidesOffsetBefore/slidesOffsetAftercouldn't work together (#3291)5.1.0 - Released on October 16th, 2019
translateTomethod #3268loop: true#32555.0.4 - Released on September 30th, 2019
slidesPerViewcould break loop mode (#3225 by @robpop)pausedafter returning from hidden tab5.0.3 - Released on September 19th, 2019
touchEventsTargetdefaults back tocontainertouchcancelevent #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 configurationsbreakpointsInverseparameter has been removed and nowbreakpointsbehave like withbreakpointsInverse: truebefore.touchMoveStopPropagationparameter now defaults tofalseclickevent won't be fired with 300ms delay anymore. Now it will be fired at the same time astapeventslidesPerColumnFill: 'column'it now usesflex-direction: columnlayout which requires specified height on swiper-containertouchEventsTargetnow defaults towrapper(rather thancontainerlike before)slidesPerColumnnow can be used with breakpoints--swiper-theme-color: #​007aff;esmodule "tree-shake-ability"swiper.esm.browser.bundle.jspackage that can be used directly in browser (import Swiper from 'swiper.esm.browser.bundle.js')--swiper-preloader-colorCSS custom property (which is defaults to--swiper-theme-color)--swiper-pagination-colorproperty (which is defaults to--swiper-theme-color)--swiper-navigation-colorproperty (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)indexOfof undefined' that sometimes occurs on use of thumbnailsPageUp/PageDownkeybindings.4.5.0 - Released on February 22nd, 2019
swiper.changeDirection()method to change direction from horizontal to vertical (and back) dynamicallydirectionparameter can be used in breakpointsswiper.virtual.appendSlidenow accepts array of slides to addswiper.virtual.prependSlidenow accepts array of slides to prependswiper.virtual.removeSlide(indexes)to remove virtual selected slidesswiper.virtual.removeAllSlides()to remove all virtual slidesnavigationHideandnavigationShowevents when on nav hide/showpaginationHideandpaginationShowevents when on pagination hide/show.oncebound event could still be there after unbinding it with.off4.4.6 - Released on December 19th, 2018
4.4.5 - Released on December 14th, 2018
observeSlideChildrenparameter to enable auto update on slide children updatezoomChangeevent withscale,imageElandslideElarguments4.4.2 - Released on November 1st, 2018
touchStartForcePreventDefaultparameter to force touch start event prevent default4.4.1 - Released on September 14th, 2018
4.4.0 - Released on September 14th, 2018
centerInsufficientSlidesparameter to center slides if the amount of slides less thanslidesPerViewbreakpointsInverseparameter (boolean), if enabled then it will count breakpoints in reversed direction, e.g. will override parameters if window width is more than specified breakpointaddSlidesBeforeandaddSlidesAfterparameters to increase amount of pre-rendered slides4.3.5 - Released on July 31th, 2018
iOSEdgeSwipeThresholdparameter renamed to justedgeSwipeThreshold. OldiOSEdgeSwipeThresholdname 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
swipeBacksometimes slides to wrong slideiOSEdgeSwipeDetection. Thanks to @langjun4.2.6 - Released on May 1st, 2018
console.logcleanup4.2.5 - Released on April 29th, 2018
4.2.2 - Released on April 1st, 2018
.update()methodprogressbarOppositeparameter to make pagination progressbar opposite todirectionparameter, means vertical progressbar for horizontal swiper direction and horizontal progressbar for vertical swiper directionloop+freeModefor loop not being set correctly4.2.0 - Released on March 16th, 2018
swiper.updateAutoHeight(speed)now supportsspeedparameter to resize swiper wrapper with durationfreeModeStickynot 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
noSwipingSelectorparameter that can be used instead ofnoSwipingClasspreventIntercationOnTransitionparameter to prevent interaction during slice change transition.slideToLoopmethod to be used in loop modeslideChangeevents being fired when slide wasn't actually changedsimulateTouchfor desktops when it isdraggable4.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 slidingreverseDirectionto enable autoplay in reverse directionwaitForTransitionparameter 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 transitiononlyInViewportparameter (enabled by default). When enabled it will control sliders that are currently in viewport4.0.7 - Released on November 28th, 2017
touchReleaseOnEdgeson iOSdragSize4.0.6 - Released on November 13th, 2017
iOSEdgeSwipeDetectionwill also be in consideration with right-edge swipefreeModeStickybehavior in RTL modebreakpointevent on breakpoint change4.0.5 - Released on November 7th, 2017
noSwipingparameterslidesPerGroupparameterbreakpoints4.0.3 - Released on October 27th, 2017
documentobjectslidesPerView: 'auto'build-dev->build:dev,build-prod->build:prod4.0.2 - Released on October 18th, 2017
beforeResizeevent4.0.1 - Released on October 11th, 2017
realIndexcalculation orderingswiper.module.js->swiper.esm.bundle.js(exported by default)swiper.modular.js->swiper.esm.js4.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.jsfor 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
onAfterResizeandonBeforeResizecallbacksonKeyPresscallback 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-loadingzoom- enable zoom functionalityzoomMax- maximum image zoom multiplier, by default is3zoomMin- minimum image zoom multiplier, by default is1zoomToggle- enable/disable zoom-in by slide's double tapzoomMaxcan be also overridden for specific slide by usingdata-swiper-zoomattributeswiper.enableTouchControl()andswiper.disableTouchControl()methods to enable disable touch control (it togglesonlyExternalparameter)swiper.realIndexproperty in addition toswiper.activeIndexthat returns index of active slide considering loophistoryparameter. It uses history pushState to set active slide URLhashnavWatchStateparameter to navigate through slides (when hashnav is enabled) by browser history or by setting directly hash on document locationreplaceStateparameter 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:falsenormalizeSlideIndexparameter to improve work of controller (see #1766)lazyLoadingInPrevNextAmountnow works withslidesPerView: 'auto'passiveListenersparameter to use passive event listeners to improve scrolling performance on mobile devices. Enabled by defaultfreeModeMomentumVelocityRatioparameter to control moment velocitydata-swiper-autoplayattribute on themsizesresponsive images attributemousewheelEventsTargedparameter (by default 'container') where you can specify mousewheel events targetonScrollevent/callback that triggers when swiping/scrolling happens with mousewheeltouchReleaseOnEdgesparameter to release touch events on slider edge position (beginning, end) and allow for further page scrollingpaginationBulletRendernow acceptsswiperinstance as a first argument,paginationBulletRender(index, className)->paginationBulletRender(swiper, index, className)3.3.1 - Released on February 7th, 2016
uniqueNavElementsparameter. 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 scrollbaronPaginationRenderedcallback. 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 changedslidesPerViewparameter, it will dynamically recreate duplicated slides required for loop.nextButtonand.prevButtonproperties with Dom7/jQuery element with next/prev button HTML elementslidesPerView/Groupparameters3.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 paginationlazyLoadingInPrevNextAmountparameter allows to lazy load images in specified amount of next/prev slidesautoplayStopOnLastparameter (trueby 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
mousewheelControl3.2.5 - Released on November 21st, 2015
autoHeight: trueparametersetWrapperTranslate3.2.0 - Released on November 7th, 2015
Added responsive breakpoints support using new
breakpointsparameter. Now you can specify differentslidesPerViewand other similar parameters for different sizes:New callbacks:
onSlideNextStart,onSlideNextEnd,onSlidePrevStart,onSlidePrevEndAdded Meteor package
meteor add nolimits4web:swiperFixed 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 imagesslideToClickedSlidewithloopandcenteredSlidesslidesPerView * slidesPerColumnwithslidesPerColumnFill: 'row'3.1.5 - Released on September 28th, 2015
srcsetwith lazy loading usingdata-srcsetattributeWebkitCSSMatrixslideToClickedSlidewithloopandcenteredSlidesfreeModeMinimumVelocityparameter 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:truemode to setloopedSlidesto the amount of slides by default (if not specified)mousewheelSensitivity: 1parameter 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.