seamless-scroll-polyfill
Advanced tools
Comparing version 1.2.4 to 2.0.0-alpha.1
@@ -5,3 +5,3 @@ { | ||
"description": "Smooth Scroll behavior polyfill", | ||
"version": "1.2.4", | ||
"version": "2.0.0-alpha.1", | ||
"author": { | ||
@@ -20,43 +20,35 @@ "name": "Dustan Kasten", | ||
"devDependencies": { | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.2.0", | ||
"@typescript-eslint/parser": "^4.2.0", | ||
"commitizen": "^4.2.1", | ||
"@commitlint/cli": "^13.1.0", | ||
"@commitlint/config-conventional": "^13.1.0", | ||
"commitizen": "^4.2.4", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^7.9.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"husky": "^4.3.0", | ||
"prettier": "^2.1.2", | ||
"rollup": "^2.28.1", | ||
"rollup-plugin-babel-minify": "^10.0.0", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.3" | ||
"eslint": "^7.32.0", | ||
"eslint-config-akari": "^0.0.2", | ||
"husky": "^7.0.1", | ||
"lint-staged": "^11.1.2", | ||
"prettier": "^2.3.2", | ||
"rollup": "^2.56.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.3.5", | ||
"semantic-release": "^17.4.5" | ||
}, | ||
"main": "dist/es5/seamless.js", | ||
"umd:main": "dist/umd/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"sideEffects": [ | ||
"./src/auto-polyfill.js", | ||
"./dist/es5/seamless.auto-polyfill.min.js" | ||
], | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"main": "lib/bundle.js", | ||
"module": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
"esm": "tsc", | ||
"cjs": "tsc -m commonjs -t es2015 --outDir dist/cjs", | ||
"rollup": "rollup -c", | ||
"build": "npm run esm && npm run cjs && npm run rollup", | ||
"type-check": "tsc --noEmit --skipLibCheck", | ||
"lint": "eslint \"src/**/*.{js,ts}\"", | ||
"listdiff": "prettier --list-different \"src/**/*.ts\" \"*.{js,json,md}\"", | ||
"format": "prettier --write \"src/**/*.ts\" \"*.{js,json,md}\"" | ||
"prettier": "prettier --ignore-path .gitignore -l \"**/*.{ts,js,json,md}\"", | ||
"prettier:fix": "prettier --ignore-path .gitignore --write \"**/*.{ts,js,json,md,yml}\" \"*.{json,md}\"", | ||
"lint": "eslint --ignore-path .gitignore \"**/*.ts\"", | ||
"prepare": "husky install", | ||
"semantic-release": "HUSKY=0 semantic-release" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/magic-akari/seamless-scroll-polyfill.git" | ||
"url": "https://github.com/magic-akari/seamless-scroll-polyfill.git" | ||
}, | ||
@@ -63,0 +55,0 @@ "keywords": [ |
@@ -42,3 +42,3 @@ [![Build Status](https://travis-ci.org/magic-akari/seamless-scroll-polyfill.svg?branch=master)](https://travis-ci.org/magic-akari/seamless-scroll-polyfill) | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@1.0.0/dist/es5/seamless.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@2.0.0/lib/bundle.min.js"></script> | ||
<script> | ||
@@ -48,3 +48,3 @@ // patch all methods | ||
// or use specific methods | ||
seamless.windowScrollBy({ behavior: "smooth", top: 200, left: 0 }); | ||
seamless.windowScrollBy(window, { behavior: "smooth", top: 200, left: 0 }); | ||
@@ -59,18 +59,2 @@ seamless.elementScrollIntoView(document.querySelector("#target"), { | ||
## Auto polyfill via script | ||
```html | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@1.0.0/dist/es5/seamless.auto-polyfill.min.js" | ||
data-seamless | ||
></script> | ||
``` | ||
## Generated files structure | ||
| dir | dist/esm | dist/umd | dist/es6 | dist/cjs | dist/es5 | | ||
| ------------: | ---------- | -------- | -------- | -------- | -------- | | ||
| module format | ES Modules | UMD | UMD | CJS | UMD | | ||
| ES version | ESNext | ESNext | ES2015 | ES2015 | ES5 | | ||
## Thanks | ||
@@ -77,0 +61,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
488562
86
2945
1
1
61
1