Skip to content

Commit

Permalink
Removed caniuse-lite from dependences. Closes #505
Browse files Browse the repository at this point in the history
  • Loading branch information
verlok committed Feb 7, 2021
1 parent a3ecc8a commit ff8a4c1
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 72 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Version 17

#### 17.3.1

- Removed `caniuse-lite` from dependencies. Fixes #505. Thanks to @ar53n.

#### 17.3.0

- Added `class_entered` and `class_exited` options to apply a class when an element entered and/or exited the viewport
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Please note that the video poster can be lazily loaded too.

## 👩‍💻 Getting started - Script

The latest, recommended version of LazyLoad is **17.3.0**.
The latest, recommended version of LazyLoad is **17.3.1**.

Quickly understand how to upgrade from a previous version reading the [practical upgrade guide](UPGRADE.md).

Expand All @@ -170,14 +170,14 @@ If you prefer to load a polyfill, the regular LazyLoad behaviour is granted.
The easiest way to use LazyLoad is to include the script from a CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.0/dist/lazyload.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.1/dist/lazyload.min.js"></script>
```

Or, with the IntersectionObserver polyfill:

```html
<script src="https://cdn.jsdelivr.net/npm/intersection-observer@0.7.0/intersection-observer.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.0/dist/lazyload.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.1/dist/lazyload.min.js"></script>
```

Then, in your javascript code:
Expand Down Expand Up @@ -209,7 +209,7 @@ Include RequireJS:
Then `require` the AMD version of LazyLoad, like this:

```js
var lazyLoadAmdUrl = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.0/dist/lazyload.amd.min.js";
var lazyLoadAmdUrl = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.1/dist/lazyload.amd.min.js";
var polyfillAmdUrl = "https://cdn.jsdelivr.net/npm/intersection-observer-amd@2.0.1/intersection-observer-amd.js";

/// Dynamically define the dependencies
Expand Down Expand Up @@ -254,7 +254,7 @@ Then include the script.
```html
<script
async
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.0/dist/lazyload.min.js"
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.1/dist/lazyload.min.js"
></script>
```
Expand Down Expand Up @@ -288,7 +288,7 @@ Then include the script.
```html
<script
async
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.0/dist/lazyload.min.js"
src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.1/dist/lazyload.min.js"
></script>
```
Expand Down
2 changes: 1 addition & 1 deletion dist/lazyload.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

127 changes: 62 additions & 65 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,64 @@
{
"name": "vanilla-lazyload",
"version": "17.3.0",
"description": "LazyLoad is a lightweight (2.4 kB) and flexible script that speeds up your web application by deferring the loading of your below-the-fold images, videos and iframes to when they will enter the viewport. It's written in plain \"vanilla\" JavaScript, it leverages the IntersectionObserver API, it supports responsive images, it optimizes your website for slower connections, and can enable native lazy loading.",
"main": "dist/lazyload.min.js",
"module": "dist/lazyload.esm.js",
"browser": "dist/lazyload.min.js",
"typings": "typings/lazyload.d.ts",
"dependencies": {
"caniuse-lite": "^1.0.30001161"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/preset-env": "^7.9.6",
"@rollup/plugin-node-resolve": "^7.1.3",
"jest": "^25.5.4",
"rollup": "^1.32.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^7.0.0"
},
"scripts": {
"build": "rollup -c",
"dev": "rollup -c --watch",
"test": "jest",
"devtest": "jest --watch"
},
"files": [
"dist",
"typings"
],
"repository": {
"type": "git",
"url": "https://github.com/verlok/vanilla-lazyload"
},
"keywords": [
"lazyload",
"vanilla",
"responsive",
"images",
"picture",
"srcset",
"sizes",
"native",
"SEO",
"intersectionObserver",
"progressive",
"performance",
"perfmatters",
"async",
"no-jquery"
],
"author": {
"name": "Andrea \"verlok\" Verlicchi",
"email": "andrea.verlicchi@gmail.com",
"url": "https://www.andreaverlicchi.eu"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/verlok/vanilla-lazyload/issues"
},
"homepage": "https://www.andreaverlicchi.eu/vanilla-lazyload",
"funding": {
"type": "individual",
"url": "https://ko-fi.com/verlok"
}
"name": "vanilla-lazyload",
"version": "17.3.1",
"description": "LazyLoad is a lightweight (2.4 kB) and flexible script that speeds up your web application by deferring the loading of your below-the-fold images, videos and iframes to when they will enter the viewport. It's written in plain \"vanilla\" JavaScript, it leverages the IntersectionObserver API, it supports responsive images, it optimizes your website for slower connections, and can enable native lazy loading.",
"main": "dist/lazyload.min.js",
"module": "dist/lazyload.esm.js",
"browser": "dist/lazyload.min.js",
"typings": "typings/lazyload.d.ts",
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/preset-env": "^7.9.6",
"@rollup/plugin-node-resolve": "^7.1.3",
"jest": "^26.6.3",
"rollup": "^1.32.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^7.0.0"
},
"scripts": {
"build": "rollup -c",
"dev": "rollup -c --watch",
"test": "jest",
"devtest": "jest --watch"
},
"files": [
"dist",
"typings"
],
"repository": {
"type": "git",
"url": "https://github.com/verlok/vanilla-lazyload"
},
"keywords": [
"lazyload",
"vanilla",
"responsive",
"images",
"picture",
"srcset",
"sizes",
"native",
"SEO",
"intersectionObserver",
"progressive",
"performance",
"perfmatters",
"async",
"no-jquery"
],
"author": {
"name": "Andrea \"verlok\" Verlicchi",
"email": "andrea.verlicchi@gmail.com",
"url": "https://www.andreaverlicchi.eu"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/verlok/vanilla-lazyload/issues"
},
"homepage": "https://www.andreaverlicchi.eu/vanilla-lazyload",
"funding": {
"type": "individual",
"url": "https://ko-fi.com/verlok"
}
}

0 comments on commit ff8a4c1

Please sign in to comment.