Skip to content

Commit 1a7cbd1

Browse files
author
Andrea Verlicchi
committed
Merge branch 'hotfix/14.0.1'
2 parents 3c9fb88 + 5418792 commit 1a7cbd1

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Version 14
44

5+
#### 14.0.1
6+
7+
- Fixed error TS1036: Statements are not allowed in ambient contexts. Closes #427
8+
59
#### 14.0.0
610

711
🎉 **Major refactoring and performance improvement!**

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Please note that the video poster can be lazily loaded too.
113113

114114
## 👩‍💻 Getting started - Script
115115

116-
The latest, recommended version of LazyLoad is **14.0.0**.
116+
The latest, recommended version of LazyLoad is **14.0.1**.
117117

118118
### To polyfill or not to polyfill IntersectionObserver?
119119

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

130130
```html
131-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/lazyload.min.js"></script>
131+
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.min.js"></script>
132132
```
133133

134134
Or, with the IntersectionObserver polyfill:
135135

136136
```html
137137
<script src="https://cdn.jsdelivr.net/npm/[email protected]/intersection-observer.js"></script>
138-
<script src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/lazyload.min.js"></script>
138+
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.min.js"></script>
139139
```
140140

141141
Then, in your javascript code:
@@ -168,7 +168,7 @@ Include RequireJS:
168168
Then `require` the AMD version of LazyLoad, like this:
169169

170170
```js
171-
var lazyLoadAmdUrl = "https://cdn.jsdelivr.net/npm/[email protected].0/dist/lazyload.amd.min.js";
171+
var lazyLoadAmdUrl = "https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.amd.min.js";
172172
var polyfillAmdUrl = "https://cdn.jsdelivr.net/npm/[email protected]/intersection-observer-amd.js";
173173

174174
/// Dynamically define the dependencies
@@ -214,7 +214,7 @@ Then include the script.
214214
```html
215215
<script
216216
async
217-
src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/lazyload.min.js"
217+
src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.min.js"
218218
></script>
219219
```
220220
@@ -247,7 +247,7 @@ Then include the script.
247247
```html
248248
<script
249249
async
250-
src="https://cdn.jsdelivr.net/npm/[email protected].0/dist/lazyload.min.js"
250+
src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/lazyload.min.js"
251251
></script>
252252
```
253253

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vanilla-lazyload",
3-
"version": "14.0.0",
3+
"version": "14.0.1",
44
"description": "A fast, lightweight script to load images as they enter the viewport. SEO friendly, it supports responsive images (both srcset + sizes and picture) and progressive JPEG",
55
"main": "dist/lazyload.min.js",
66
"module": "dist/lazyload.esm.js",

typings/lazyload.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,3 @@ interface ILazyLoad {
3232
}
3333
declare var LazyLoad: ILazyLoad;
3434
export default LazyLoad;
35-
36-
if (this._observer) {
37-
this._observer.disconnect();
38-
}

0 commit comments

Comments
 (0)