All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
3.1.0 (2023-09-13)
3.0.10 (2023-04-10)
3.0.9 (2023-04-09)
3.0.8 (2023-04-08)
3.0.7 (2023-04-06)
3.0.6 (2023-02-14)
3.0.5 (2023-02-14)
- always use
el.scroll()
(6472ede)
3.0.4 (2023-01-08)
- deps: update dependencies (non-major) (#1136) (a72d093)
- deps: update dependency compute-scroll-into-view to ^2.0.4 (#1145) (b839598)
3.0.3 (2022-12-01)
- make the generic param optional (1bc73d3)
3.0.2 (2022-12-01)
- deps: update dependency compute-scroll-into-view to ^2.0.2 (#1126) (275d193)
- improve typings, reduce bundlesize (2166404)
3.0.1 (2022-12-01)
- docs: show correct bundlesizes (871c02a)
3.0.0 (2022-12-01)
- drops umd builds, and ships more modern syntax with ESM as baseline
- deps: update dependency compute-scroll-into-view to v2 (#1119) (40ccca2)
- support node ESM (#1120) (8f48307)
2.2.31 (2022-11-29)
- add
pkg.exports
(e81272f)
2.2.30 (2022-11-29)
- Support for
behavior
,block
andinline
options, from the spec. scrollMode: "if-needed" | "always"
to control theif-needed
behavior, based on the csswg proposal to the spec.
centerIfNeeded
, usescrollMode: "if-needed", block: "center"
instead.duration
to trigger animation, usesmooth-scroll-into-view-if-needed
instead.handleScroll(parent, {scrollLeft, scrollTop}, options)
, usebehavior: function(actions)
instead, whereactions
is an array of{el, top, left}
allowing you to scroll everything in parallel or in a sequence, it's up to you.offset
, use wrapper elements and CSS like padding or margins instead.
1.5.0 - 2018-02-25
sideEffects: false
in package.json to enable optimizations introduced in webpack v4.
1.4.0 - 2017-11-17
- New
handleScroll
option allows customizing scrolling behavior.
- Animation logic is separated from scroll calculation logic. This allows skip importing animation dependencies and reduces bundle sizes when you don't need the built in animation feature.
1.3.0 - 2017-11-12
- New API interface (#148 @tonybdesign)
1.2.8 - 2017-11-05
- Missing TypeScript definitions and rollup/webpack pkg.module files from published package (#145)
1.2.7 - 2017-11-05
- Package published on npm contained unnecessary files bloating the package (#144)
1.2.6 - 2017-11-05
- Don't use postinstall as it runs in userland (#143)
1.2.5 - 2017-11-05
- Migrate tests to new page that showcases how it works (#141)
1.2.4 - 2017-11-05
- TypeScript requires HTMLElement when it should accept Element (#140)
1.2.3 - 2017-11-04
- Incorrect TypeScript declarations and export format (#136)
1.2.2 - 2017-10-29
- Incorrect export declaration in TS typings (#132)
1.2.1 - 2017-10-02
- Fifth option should be optional (#129)
1.2.0 - 2017-10-01
- Set offset feature (#127 @iwangulenko)
1.1.1 - 2017-10-01
- Windows compatibility and CommonJS interop change back to Babel 5 functionality (#121 @khell)
1.1.0 - 2017-03-29
- An optional argument finalElement was added to limit the scope of the function (#108 @hemnstill)
1.0.7 - 2017-03-14
- MIT License (#107 @JKillian)
- Reduced size of dist build by switching from rollup to babel (#106 @JKillian)
1.0.6 - 2016-11-17
- Updated typescript definition making options optional (#75 @pelotom)
1.0.5 - 2016-11-12
- Fix TypeScript definition file issues (#74 @forabi)
- React example snippet in readme.
1.0.4 - 2016-10-31
- Changelog readme.
- TypeScript definition file (#73 @forabi)
- link to official ponyfill page (#68 @sindresorhus)
- Greenkeeper
- Incomatibility with default webpack config.
- PULLED: accidentally pushed incomplete build to npm!
- Initial release.