seamless-scroll-polyfill
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -0,1 +1,8 @@ | ||
## [2.1.7](https://github.com/magic-akari/seamless-scroll-polyfill/compare/v2.1.6...v2.1.7) (2022-02-17) | ||
### Bug Fixes | ||
* use `.cjs` as bundle extension ([be50916](https://github.com/magic-akari/seamless-scroll-polyfill/commit/be50916c448fc4856464767a9fb20e3e318aa094)) | ||
## [2.1.6](https://github.com/magic-akari/seamless-scroll-polyfill/compare/v2.1.5...v2.1.6) (2021-12-05) | ||
@@ -2,0 +9,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Smooth Scroll behavior polyfill", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"author": { | ||
@@ -20,4 +20,4 @@ "name": "Dustan Kasten", | ||
"devDependencies": { | ||
"@commitlint/cli": "^15.0.0", | ||
"@commitlint/config-conventional": "^15.0.0", | ||
"@commitlint/cli": "^16.2.1", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"@semantic-release/changelog": "^6.0.1", | ||
@@ -27,22 +27,22 @@ "@semantic-release/git": "^10.0.1", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.4.0", | ||
"eslint": "^8.9.0", | ||
"eslint-config-akari": "^0.0.4", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.1.2", | ||
"lint-staged": "^12.3.4", | ||
"prettier": "^2.5.1", | ||
"rollup": "^2.60.2", | ||
"rollup": "^2.67.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.31.1", | ||
"semantic-release": "^18.0.1", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"semantic-release": "^19.0.2", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.5.2" | ||
"typescript": "^4.5.5" | ||
}, | ||
"packageManager": "pnpm@6.23.6", | ||
"type": "module", | ||
"main": "./lib/bundle.js", | ||
"browser": "./lib/bundle.min.js", | ||
"main": "./lib/bundle.cjs", | ||
"browser": "./lib/bundle.min.cjs", | ||
"module": "./lib/index.js", | ||
"exports": { | ||
"import": "./lib/index.js", | ||
"default": "./lib/bundle.js" | ||
"default": "./lib/bundle.cjs" | ||
}, | ||
@@ -49,0 +49,0 @@ "types": "lib/index.d.ts", |
@@ -34,5 +34,5 @@ [![Build Status](https://travis-ci.org/magic-akari/seamless-scroll-polyfill.svg?branch=master)](https://travis-ci.org/magic-akari/seamless-scroll-polyfill) | ||
```js | ||
import { elementScrollIntoView } from "seamless-scroll-polyfill"; | ||
import { scrollIntoView } from "seamless-scroll-polyfill"; | ||
elementScrollIntoView(document.querySelector("#target"), { behavior: "smooth", block: "center", inline: "center" }); | ||
scrollIntoView(document.querySelector("#target"), { behavior: "smooth", block: "center", inline: "center" }); | ||
``` | ||
@@ -49,5 +49,5 @@ | ||
// or use specific methods | ||
seamless.windowScrollBy(window, { behavior: "smooth", top: 200, left: 0 }); | ||
seamless.scrollBy(window, { behavior: "smooth", top: 200, left: 0 }); | ||
seamless.elementScrollIntoView(document.querySelector("#target"), { | ||
seamless.scrollIntoView(document.querySelector("#target"), { | ||
behavior: "smooth", | ||
@@ -54,0 +54,0 @@ block: "center", |
@@ -18,3 +18,3 @@ import { terser } from "rollup-plugin-terser"; | ||
{ | ||
file: "lib/bundle.js", | ||
file: "lib/bundle.cjs", | ||
name: "seamless", | ||
@@ -25,3 +25,3 @@ format: "umd", | ||
{ | ||
file: "lib/bundle.min.js", | ||
file: "lib/bundle.min.cjs", | ||
name: "seamless", | ||
@@ -28,0 +28,0 @@ format: "umd", |
Sorry, the diff of this file is not supported yet
435114