Skip to content

Commit e6a848f

Browse files
committed
bump library version
1 parent 81e0a18 commit e6a848f

6 files changed

Lines changed: 35 additions & 5 deletions

File tree

changelog.MD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# Changelog
22

3+
### 3.0.0
4+
5+
#### Features
6+
- Allow custom easing functions
7+
- Allow a custom amount of pixels to use as an offset (#3)
8+
- Animated scrolling links at the very top or bottom can now exceed the actual document so that easing functions like for example `easeInOutBounce` don't stop animating while exceeding the document.
9+
- Introduced `scrollBy` method
10+
- `scrollTo` now accepts numeric values
11+
12+
#### Enhancements
13+
- Make imports of easings optional to enhance filesize control
14+
- Import linear only per default (see Important Notes)
15+
- Enhanced easing patterns
16+
17+
#### Bug Fixes
18+
- Fixed a bug where the final position was calculated wrong in some situations
19+
- Bundled browser file was not transpiled to es5
20+
21+
#### Code Quality
22+
- Created a seperate file for each easing function
23+
- Create Typescript declaration files
24+
- Various minor bug fixes and structural improvements
25+
- Add esm bundle
26+
- Add cjs bundle
27+
28+
#### Important Notes
29+
Version 3.0.0 is a major update and comes with some breaking changes:
30+
- Easings are no longer imported by default, you have to import individual easings like `import { easeInQuad, easeOutQuad } from 'scrolltosmooth';`
31+
- The `fixedHeader` option has been renamed to `offset` and accepts a fixed amount of pixels now
32+
333
### 2.2.1
434
- Fix broken easings (easeInBack, easeOutBack, easeInOutBack)
535

dist/scrolltosmooth.cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ScrollToSmooth
33
* Author: Bastian Fießinger
4-
* Version: 2.2.1
4+
* Version: 3.0.0
55
*/
66
'use strict';
77

dist/scrolltosmooth.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* ScrollToSmooth
33
* Author: Bastian Fießinger
4-
* Version: 2.2.1
4+
* Version: 3.0.0
55
*/
66
function _typeof(obj) {
77
"@babel/helpers - typeof";

dist/scrolltosmooth.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scrolltosmooth.pkgd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "scrolltosmooth",
33
"sideEffects": false,
4-
"version": "2.2.1",
4+
"version": "3.0.0",
55
"description": "a vanilla JS smooth scroll to anchor script",
66
"main": "dist/scrolltosmooth.cjs.js",
77
"module": "dist/scrolltosmooth.esm.js",

0 commit comments

Comments
 (0)