Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

animated-scroll-to

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animated-scroll-to - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

dist/cjs/index.d.ts

100

CHANGELOG.md
# Changelog
### v2.3.0
23.06.2022.
**Changed**
- Switched to [keen](https://github.com/Stanko/keen/) as build system.
- Added ESM and CJS modules.
- Upgraded dev dependencies.
---
### v2.2.0

@@ -9,5 +21,5 @@

* Added a warning if the scrolling element has `scroll-behavior: smooth` [#55](https://github.com/Stanko/animated-scroll-to/pull/55)
- Added a warning if the scrolling element has `scroll-behavior: smooth` [#55](https://github.com/Stanko/animated-scroll-to/pull/55)
-----
---

@@ -20,5 +32,5 @@ ### v2.1.0

* Removed support for using the script in browsers directly. It was broken, so probably was not using it anyway. Use version 1 if you really need it.
- Removed support for using the script in browsers directly. It was broken, so probably was not using it anyway. Use version 1 if you really need it.
-----
---

@@ -31,7 +43,6 @@ ### v2.0.12

* Reverted labeled tuple coordinates for TCoords [#49](https://github.com/Stanko/animated-scroll-to/pull/49) as it breaks on older TS version [#50](https://github.com/Stanko/animated-scroll-to/issues/50).
- Reverted labeled tuple coordinates for TCoords [#49](https://github.com/Stanko/animated-scroll-to/pull/49) as it breaks on older TS version [#50](https://github.com/Stanko/animated-scroll-to/issues/50).
-----
---
### v2.0.11

@@ -43,8 +54,7 @@

* Improved types, labeled tuple coordinates for TCoords [#49](https://github.com/Stanko/animated-scroll-to/pull/49).
* Fixed build on windows [#49](https://github.com/Stanko/animated-scroll-to/pull/49).
- Improved types, labeled tuple coordinates for TCoords [#49](https://github.com/Stanko/animated-scroll-to/pull/49).
- Fixed build on windows [#49](https://github.com/Stanko/animated-scroll-to/pull/49).
-----
---
### v2.0.9, 2.0.10

@@ -56,7 +66,6 @@

* Added `Promise<boolean>` as a return type in the types definition file.
- Added `Promise<boolean>` as a return type in the types definition file.
-----
---
### v2.0.8

@@ -68,5 +77,5 @@

* Event options were missing in `removeEventListener` [#44](https://github.com/Stanko/animated-scroll-to/pull/44)
- Event options were missing in `removeEventListener` [#44](https://github.com/Stanko/animated-scroll-to/pull/44)
-----
---

@@ -79,7 +88,7 @@ ### v2.0.6 and v2.0.7

* Calculating element offset inside of element was sometimes a pixel off.
* Active animations weren't cleared on animation end
* Now error is thrown in "elementToScroll" is not a parent of "scrollToElement"
- Calculating element offset inside of element was sometimes a pixel off.
- Active animations weren't cleared on animation end
- Now error is thrown in "elementToScroll" is not a parent of "scrollToElement"
-----
---

@@ -92,5 +101,5 @@ ### v2.0.4 and v2.0.5

* Fixed TS types [#36](https://github.com/Stanko/animated-scroll-to/issues/36)
- Fixed TS types [#36](https://github.com/Stanko/animated-scroll-to/issues/36)
-----
---

@@ -103,5 +112,5 @@ ### v2.0.3

* Fixed library breaking when running on server [#34](https://github.com/Stanko/animated-scroll-to/issues/34)
- Fixed library breaking when running on server [#34](https://github.com/Stanko/animated-scroll-to/issues/34)
-----
---

@@ -114,7 +123,6 @@ ### v2.0.2

* Switched to commonjs module [#33](https://github.com/Stanko/animated-scroll-to/issues/33)
- Switched to commonjs module [#33](https://github.com/Stanko/animated-scroll-to/issues/33)
-----
---
### v2.0.0 and v2.0.1

@@ -126,7 +134,7 @@

* Full TypeScript rewrite
* New method signatures
* Method now returns a promise
- Full TypeScript rewrite
- New method signatures
- Method now returns a promise
-----
---

@@ -139,5 +147,5 @@ ### v1.3.1

* Fixed if element was scrolling and cancelOnUserAction was passed the whole page couldn't scroll [#28](https://github.com/Stanko/animated-scroll-to/issues/28)
- Fixed if element was scrolling and cancelOnUserAction was passed the whole page couldn't scroll [#28](https://github.com/Stanko/animated-scroll-to/issues/28)
-----
---

@@ -150,5 +158,5 @@ ### v1.3.0

* `onComplete` callback now has a boolean argument `isCanceledByUserAction`, and it is called even when scroll is canceled [#26](https://github.com/Stanko/animated-scroll-to/issues/26)
- `onComplete` callback now has a boolean argument `isCanceledByUserAction`, and it is called even when scroll is canceled [#26](https://github.com/Stanko/animated-scroll-to/issues/26)
-----
---

@@ -161,6 +169,6 @@ ### v1.2.2

* Fix event listeners not being removed in IE11 [#19](https://github.com/Stanko/animated-scroll-to/pull/19)
* Updated `index.d.ts` to add `offset` [#19](https://github.com/Stanko/animated-scroll-to/pull/19)
- Fix event listeners not being removed in IE11 [#19](https://github.com/Stanko/animated-scroll-to/pull/19)
- Updated `index.d.ts` to add `offset` [#19](https://github.com/Stanko/animated-scroll-to/pull/19)
-----
---

@@ -173,9 +181,9 @@ ### v1.2.1

* Added `offset` option, kudos to @weotch [#17](https://github.com/Stanko/animated-scroll-to/pull/17)
- Added `offset` option, kudos to @weotch [#17](https://github.com/Stanko/animated-scroll-to/pull/17)
**Fixed**
* Chrome would throw `Unable to preventDefault inside passive event listener invocation.` when `cancelOnUserAction` was set to `false` [#18](https://github.com/Stanko/animated-scroll-to/issues/18)
- Chrome would throw `Unable to preventDefault inside passive event listener invocation.` when `cancelOnUserAction` was set to `false` [#18](https://github.com/Stanko/animated-scroll-to/issues/18)
-----
---

@@ -188,6 +196,6 @@ ### v1.2.0

* Added `horizontal` option, kudos to @jesseditson [#15](https://github.com/Stanko/animated-scroll-to/pull/15)
* Changelog
- Added `horizontal` option, kudos to @jesseditson [#15](https://github.com/Stanko/animated-scroll-to/pull/15)
- Changelog
-----
---

@@ -200,6 +208,6 @@ ### v1.1.11

* Set events to be `passive` by default, kudos to @cybot1711 [#14](https://github.com/Stanko/animated-scroll-to/pull/14)
- Set events to be `passive` by default, kudos to @cybot1711 [#14](https://github.com/Stanko/animated-scroll-to/pull/14)
-----
---
For changes prior version 1.1.11 please check the [commit list](https://github.com/Stanko/animated-scroll-to/commits/master).
{
"name": "animated-scroll-to",
"version": "2.2.0",
"version": "2.3.0",
"description": "Simple, plain JavaScript animated window scroll",
"main": "./lib/animated-scroll-to.js",
"types": "./lib/animated-scroll-to.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"scripts": {
"cypress": "cypress run",
"cypress:open": "cypress open",
"start": "parcel index.html",
"start:test": "parcel test.html --port 8088",
"build": "del-cli ./lib && tsc --declaration --outDir ./lib --moduleResolution Node --project ./tsconfig.json",
"build:docs": "del-cli ./docs && parcel build index.html --out-dir ./docs --public-url /animated-scroll-to && git add ./docs",
"test": "concurrently -k \"npm run start:test\" \"npm run cypress\" -s \"first\" -n \"parcel,cypress\" -c \"blue,yellow\"",
"test-and-build": "npm run test && npm run build && npm run build:docs",
"prepublishOnly": "npm run test-and-build"
"clean": "del-cli ./dist",
"build:esm": "tsc -p tsconfig.json && echo '{ \"type\": \"module\" }' > dist/esm/package.json",
"build:cjs": "tsc -p tsconfig-cjs.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:docs",
"prepublishOnly": "npm test && npm run build",
"start": "esbuild docs/docs.ts --bundle --tsconfig=tsconfig-demo.json --servedir=docs --outdir=docs/animated-scroll-to",
"build:docs": "esbuild docs/docs.ts --bundle --tsconfig=tsconfig-demo.json --outdir=docs --minify --sourcemap",
"test": "node test.js",
"cypress:run": "cypress run",
"cypress:open": "cypress open"
},

@@ -33,16 +41,12 @@ "repository": {

"devDependencies": {
"@types/node": "^14.14.33",
"concurrently": "^5.3.0",
"cypress": "^5.4.0",
"del-cli": "^3.0.1",
"parcel-bundler": "^1.12.4",
"typescript": "^4.0.3"
"@types/node": "^18.0.0",
"cypress": "^10.2.0",
"del-cli": "^4.0.1",
"esbuild": "^0.14.47",
"typescript": "^4.7.4"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all",
"ie 10",
"ie 11"
"files": [
"dist/",
"CHANGELOG.md"
]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc