Skip to content

Commit bf5bc25

Browse files
committed
update version 2.8.8
1 parent b28cf7f commit bf5bc25

14 files changed

+19
-19
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Tiny-slider was strongly inspired by [Owl Carousel](https://owlcarousel2.github.
1515
### Fire an issue
1616
We can't test Tiny-slider on every browser and device. There are always some edge cases in which tiny-slider may not run properly. Fire an issue when it doesn't work for you. This not only helps you, also prevent others from facing the same issue.
1717
**Notes for firing issues:**
18-
- Before you fire an issue, make sure you update to the latest version of each main version. (e.g. v2.8.7 for version 2)
18+
- Before you fire an issue, make sure you update to the latest version of each main version. (e.g. v2.8.8 for version 2)
1919
- Provide the OS and browser version.
2020
- Provide a link or your plugin options.
2121

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tiny-slider 2.0
22
[![](https://data.jsdelivr.com/v1/package/npm/tiny-slider/badge?style=rounded)](https://www.jsdelivr.com/package/npm/tiny-slider)
3-
![version](https://img.shields.io/badge/Version-2.8.7-green.svg)
3+
![version](https://img.shields.io/badge/Version-2.8.8-green.svg)
44
Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.github.io/OwlCarousel2/).
55
[Demos](http://ganlanyuan.github.io/tiny-slider/demo)
66
[Test results](http://ganlanyuan.github.io/tiny-slider/test)
@@ -203,8 +203,8 @@ Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.gi
203203
## Usage
204204
#### 1. Add CSS (and IE8 polyfills if needed)
205205
```html
206-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.7/tiny-slider.css">
207-
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.7/min/tiny-slider.helper.ie8.js"></script><![endif]-->
206+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.8/tiny-slider.css">
207+
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.8/min/tiny-slider.helper.ie8.js"></script><![endif]-->
208208
```
209209

210210
#### 2. Add markup
@@ -220,7 +220,7 @@ Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.gi
220220
#### 3. Call tns()
221221
Add tiny-slider.js to your page:
222222
```html
223-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.7/min/tiny-slider.js"></script>
223+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.8/min/tiny-slider.js"></script>
224224
<!-- NOTE: prior to v2.2.1 tiny-slider.js need to be in <body> -->
225225
```
226226

@@ -230,7 +230,7 @@ Or import `tns` via `webpack` or `rollup`:
230230
import { tns } from "./node_modules/tiny-slider/src/tiny-slider"
231231
```
232232

233-
Or import `tns` directly start from v2.8.7
233+
Or import `tns` directly start from v2.8.8
234234
```html
235235
<script type="module">
236236
import {tns} from './src/tiny-slider.js';

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiny-slider",
3-
"version": "2.8.7",
3+
"version": "2.8.8",
44
"homepage": "https://github.com/ganlanyuan/tiny-slider",
55
"authors": [
66
"WilliamLin <ganlanyuan@gmail.com>"

dist/min/tiny-slider.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sourcemaps/tiny-slider.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tiny-slider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3098,7 +3098,7 @@ var tns = function(options) {
30983098
}
30993099

31003100
return {
3101-
version: '2.8.7',
3101+
version: '2.8.8',
31023102
getInfo: info,
31033103
events: events,
31043104
goTo: goTo,

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiny-slider",
3-
"version": "2.8.7",
3+
"version": "2.8.8",
44
"description": "Vanilla javascript slider for all purposes, inspired by Owl Carousel.",
55
"main": "src/tiny-slider.js",
66
"types": "src/tiny-slider.d.ts",

src/tiny-slider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@ export var tns = function(options) {
26652665
}
26662666

26672667
return {
2668-
version: '2.8.7',
2668+
version: '2.8.8',
26692669
getInfo: info,
26702670
events: events,
26712671
goTo: goTo,

src/tiny-slider.module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@ export var tns = function(options) {
26652665
}
26662666

26672667
return {
2668-
version: '2.8.7',
2668+
version: '2.8.8',
26692669
getInfo: info,
26702670
events: events,
26712671
goTo: goTo,

src/tiny-slider.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 2.8.7
1+
// Version: 2.8.8
22

33
.tns-outer {
44
padding: 0 !important; // remove padding: clientWidth = width + padding (0) = width

test/js/tests-async-es5.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ function testResponsive5() {
14691469
return wait(1000);
14701470

14711471
case 4:
1472-
assertionFixedWidth = first.clientWidth === getFW(windowWidth) && wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
1472+
assertionFixedWidth = first.clientWidth === getFW(windowWidth) && compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
14731473
// console.log(first.clientWidth + '|' + getFW(windowWidth) + '|' + wrapper.getBoundingClientRect().left + '|' + first.getBoundingClientRect().left);
14741474
assertionAutoHeight = wrapper.style.height === '';
14751475
// if (!assertionFixedWidth) {
@@ -1491,7 +1491,7 @@ function testResponsive5() {
14911491

14921492
case 12:
14931493
if (assertionFixedWidth) {
1494-
assertionFixedWidth = first.clientWidth === getFW(windowWidth) + 100 && wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
1494+
assertionFixedWidth = first.clientWidth === getFW(windowWidth) + 100 && compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
14951495
// console.log(first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ' | ' + wrapper.getBoundingClientRect().left + ' | ' + first.getBoundingClientRect().left);
14961496
// if (!assertionFixedWidth) {
14971497
// commentFixedWidth = 'FixedWidth 2 >> first element width: ' + first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ', wrapper left: ' + wrapper.getBoundingClientRect().left + ' | first element left: ' + first.getBoundingClientRect().left + ', viewport width: ' + windowWidth;

test/js/tests-async.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ function testResponsive5 () {
12291229

12301230
await wait(1000);
12311231
assertionFixedWidth = first.clientWidth === getFW(windowWidth) &&
1232-
wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
1232+
compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
12331233
// console.log(first.clientWidth + '|' + getFW(windowWidth) + '|' + wrapper.getBoundingClientRect().left + '|' + first.getBoundingClientRect().left);
12341234
assertionAutoHeight = wrapper.style.height === '';
12351235
// if (!assertionFixedWidth) {
@@ -1246,7 +1246,7 @@ function testResponsive5 () {
12461246
await wait(2000);
12471247
if (assertionFixedWidth) {
12481248
assertionFixedWidth = first.clientWidth === (getFW(windowWidth) + 100) &&
1249-
wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
1249+
compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
12501250
// console.log(first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ' | ' + wrapper.getBoundingClientRect().left + ' | ' + first.getBoundingClientRect().left);
12511251
// if (!assertionFixedWidth) {
12521252
// commentFixedWidth = 'FixedWidth 2 >> first element width: ' + first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ', wrapper left: ' + wrapper.getBoundingClientRect().left + ' | first element left: ' + first.getBoundingClientRect().left + ', viewport width: ' + windowWidth;

test/screenshot/edge/frame5.png

-55 Bytes
Loading

0 commit comments

Comments
 (0)