From 384ca3b81834c1f8aaf37fff0ff84028ed34a5f4 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Wed, 29 Jun 2022 15:14:27 +0300 Subject: [PATCH] 8.2.6 release --- CHANGELOG.md | 12 ++++++++++ package-lock.json | 5 +++-- package.json | 3 ++- scripts/release.js | 52 ++++++++++++++++++++++--------------------- src/copy/package.json | 2 +- 5 files changed, 45 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a763d890..188e4961a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +# [8.2.6](https://github.com/nolimits4web/Swiper/compare/v8.2.5...v8.2.6) (2022-06-29) + +### Bug Fixes + +- **thumbs:** active class gets removed ([#5826](https://github.com/nolimits4web/Swiper/issues/5826)) ([3267616](https://github.com/nolimits4web/Swiper/commit/3267616d53d8e943b690a20ac327024cd3b2fff8)) +- **vue:** virtualUpdate event is not declared ([#5830](https://github.com/nolimits4web/Swiper/issues/5830)) ([8b00333](https://github.com/nolimits4web/Swiper/commit/8b003333d5684e00fc4919e6aef992ae4ae447f8)) + +### Features + +- **core:** add `changeLanguageDirection` method to change it to RTL/LTR after init ([f5bb7af](https://github.com/nolimits4web/Swiper/commit/f5bb7af0e1039cc52068909159943d6302d819ba)), closes [#3279](https://github.com/nolimits4web/Swiper/issues/3279) +- **navigation:** add `navigationPrev` and `navigationNext` events ([d0c6365](https://github.com/nolimits4web/Swiper/commit/d0c636572387e0ec94538cb00877de646a36736a)), closes [#5832](https://github.com/nolimits4web/Swiper/issues/5832) + # [8.2.5](https://github.com/nolimits4web/Swiper/compare/v8.2.4...v8.2.5) (2022-06-27) ### Bug Fixes diff --git a/package-lock.json b/package-lock.json index 75a08eb54..cc93e449f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "swiper-src", - "version": "8.2.5", + "version": "8.2.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "swiper-src", - "version": "8.2.5", + "version": "8.2.6", "funding": [ { "type": "patreon", @@ -86,6 +86,7 @@ "protractor": "~7.0.0", "react": "^18.0.0", "react-dom": "^18.0.0", + "rimraf": "^3.0.2", "rollup": "^2.52.2", "rollup-plugin-svelte": "^7.1.0", "rxjs": "~7.4.0", diff --git a/package.json b/package.json index 259eb40b2..1e00c11a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swiper-src", - "version": "8.2.5", + "version": "8.2.6", "description": "Most modern mobile touch slider and framework with hardware accelerated transitions", "scripts": { "build": "node scripts/build", @@ -154,6 +154,7 @@ "protractor": "~7.0.0", "react": "^18.0.0", "react-dom": "^18.0.0", + "rimraf": "^3.0.2", "rollup": "^2.52.2", "rollup-plugin-svelte": "^7.1.0", "rxjs": "~7.4.0", diff --git a/scripts/release.js b/scripts/release.js index ab78b8ac4..d25013a8c 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -3,6 +3,7 @@ const exec = require('exec-sh'); const inquirer = require('inquirer'); const fs = require('fs'); const path = require('path'); +const rimraf = require('rimraf'); const pkg = require('../package.json'); const childPkg = require('../src/copy/package.json'); @@ -77,37 +78,38 @@ async function release() { ); const cleanPackage = [ - "find *.js -type f -not -name 'postinstall.js' -print0 | xargs -0 -I {} rm -v {}", - 'rm -rf angular', - 'rm -rf components', - 'rm -rf core', - 'rm -rf modules', - 'rm -rf react', - 'rm -rf shared', - 'rm -rf svelte', - 'rm -rf types', - 'rm -rf vue', - 'rm -rf **/*.ts', - 'rm -rf *.ts', - 'rm -rf **/*.css', - 'rm -rf *.css', - 'rm -rf **/*.map', - 'rm -rf *.map', - 'rm -rf **/*.less', - 'rm -rf *.less', - 'rm -rf **/*.scss', - 'rm -rf *.scss', - 'rm -rf **/*.svelte', - 'rm -rf *.svelte', + 'angular', + 'components', + 'core', + 'modules', + 'react', + 'shared', + 'svelte', + 'types', + 'vue', + '**/*.js', + '*.js', + '**/*.ts', + '*.ts', + '**/*.css', + '*.css', + '**/*.map', + '*.map', + '**/*.less', + '*.less', + '**/*.scss', + '*.scss', + '**/*.svelte', + '*.svelte', ]; - await exec.promise(`cd ./dist && ${cleanPackage.join(' && ')}`); await exec.promise('git pull'); await exec.promise('npm i'); - await exec.promise(`cd ./dist && ${cleanPackage.join(' && ')}`); + cleanPackage.map((p) => rimraf.sync(`./dist/${p}`)); await exec.promise(`npm run build:prod`); await exec.promise('git add .'); - await exec.promise(`git commit -m "${pkg.version} release"`); + console.log(`git commit -m "${pkg.version} release" --no-verify`); + await exec.promise(`git commit -m "${pkg.version} release" --no-verify`); await exec.promise('git push'); await exec.promise(`git tag v${pkg.version}`); await exec.promise('git push origin --tags'); diff --git a/src/copy/package.json b/src/copy/package.json index b89890805..a896ed310 100644 --- a/src/copy/package.json +++ b/src/copy/package.json @@ -1,6 +1,6 @@ { "name": "swiper", - "version": "8.2.5", + "version": "8.2.6", "description": "Most modern mobile touch slider and framework with hardware accelerated transitions", "typings": "swiper.d.ts", "type": "module",