Skip to content

Commit 67ba12d

Browse files
committed
Version 3.2.8
1 parent 92d851c commit 67ba12d

33 files changed

Lines changed: 139 additions & 124 deletions

.dev/notiflix-dev-builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Version: 1.0.0
77
* Author: Furkan (https://github.com/furcan)
8-
* Copyright 2019 - 2024 Notiflix - All In One, MIT License (https://opensource.org/licenses/MIT)
8+
* Copyright 2019 - 2025 Notiflix - All In One, MIT License (https://opensource.org/licenses/MIT)
99
*/
1010

1111
'use-strict';

.dev/notiflix-dev-constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Notiflix constants for the development.
55
* Version: 1.0.0
66
* Author: Furkan (https://github.com/furcan)
7-
* Copyright 2019 - 2024 Notiflix - Constants, MIT License (https://opensource.org/licenses/MIT)
7+
* Copyright 2019 - 2025 Notiflix - Constants, MIT License (https://opensource.org/licenses/MIT)
88
*/
99

1010
// Dev Dependencies
@@ -68,7 +68,7 @@ module.exports = {
6868
version: (JSON.stringify((packageJson || {}).version) || '').replace(/"/gm, ''),
6969
author: (JSON.stringify((packageJson || {}).author) || '').replace(/"/gm, ''),
7070
license: 'MIT License (https://opensource.org/licenses/MIT)',
71-
year: '2019 - ' + (new Date().getFullYear() || '2024'),
71+
year: '2019 - ' + (new Date().getFullYear() || '2025'),
7272
directories: {
7373
dist: 'dist',
7474
build: 'build',

.dev/notiflix-dev-minifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Version: 1.0.0
77
* Author: Furkan (https://github.com/furcan)
8-
* Copyright 2019 - 2024 Notiflix Minifier, MIT License (https://opensource.org/licenses/MIT)
8+
* Copyright 2019 - 2025 Notiflix Minifier, MIT License (https://opensource.org/licenses/MIT)
99
*/
1010

1111
'use-strict';

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
@3.2.8
2+
3+
* **Changed:**
4+
- Corrected grammar issues in comment lines.
5+
- Fixed(grammar) the name of an internal helper function:
6+
- ~~`removeNotifyElmentsAndWrapper`~~ => `removeNotifyElementsAndWrapper`
7+
8+
* **Fixed:**
9+
- Fix on `commonCheckHeadOrBody` internal helper function, which was checking for `null` instead of `undefined`.
10+
- _This overthought helper is intended to verify that `window.document.head` or `window.document.body` exists._
11+
12+
**Happy new year!**
13+
14+
---
15+
116
@3.2.7
217

318
No changes.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 - 2024 Notiflix
3+
Copyright (c) 2019 - 2025 Notiflix
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929

3030
# Notiflix
3131

32-
Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
32+
Notiflix is a dependency-free, secure, and lightweight JavaScript library built with pure JavaScript, offering client-side non-blocking notifications, popup boxes, loading indicators, and more.
33+
34+
It is designed to enhance the user experience without the need for heavy dependencies, making it suitable for a wide variety of projects.
3335

3436
### Current Version
3537

36-
3.2.7 [*](https://github.com/notiflix/Notiflix/blob/main/CHANGELOG.md "CHANGELOG")
38+
3.2.8 [*](https://github.com/notiflix/Notiflix/blob/main/CHANGELOG.md "CHANGELOG")
3739

3840
### Browser Compatibility
3941

@@ -94,27 +96,27 @@ import { Block } from 'notiflix/build/notiflix-block-aio';
9496

9597
#### CSS and JS
9698
```html
97-
<link rel="stylesheet" href="dist/notiflix-3.2.7.min.css" />
99+
<link rel="stylesheet" href="dist/notiflix-3.2.8.min.css" />
98100

99-
<script src="dist/notiflix-3.2.7.min.js"></script>
101+
<script src="dist/notiflix-3.2.8.min.js"></script>
100102
```
101103

102104
#### or only JS (All in One - Internal CSS)
103105
```html
104-
<script src="dist/notiflix-aio-3.2.7.min.js"></script>
106+
<script src="dist/notiflix-aio-3.2.8.min.js"></script>
105107
```
106108

107109
#### or only Modules JS (All in One - Internal CSS)
108110
```html
109-
<script src="dist/notiflix-notify-aio-3.2.7.min.js"></script>
111+
<script src="dist/notiflix-notify-aio-3.2.8.min.js"></script>
110112

111-
<script src="dist/notiflix-report-aio-3.2.7.min.js"></script>
113+
<script src="dist/notiflix-report-aio-3.2.8.min.js"></script>
112114

113-
<script src="dist/notiflix-confirm-aio-3.2.7.min.js"></script>
115+
<script src="dist/notiflix-confirm-aio-3.2.8.min.js"></script>
114116

115-
<script src="dist/notiflix-loading-aio-3.2.7.min.js"></script>
117+
<script src="dist/notiflix-loading-aio-3.2.8.min.js"></script>
116118

117-
<script src="dist/notiflix-block-aio-3.2.7.min.js"></script>
119+
<script src="dist/notiflix-block-aio-3.2.8.min.js"></script>
118120
```
119121

120122
---------
@@ -767,7 +769,7 @@ Notiflix.Block.init({
767769
---------
768770

769771
### Copyright
770-
Copyright &copy; 2019 - 2024 Notiflix
772+
Copyright &copy; 2019 - 2025 Notiflix
771773

772774
### License
773775
MIT license - https://opensource.org/licenses/MIT

build/notiflix-aio.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
* Notiflix AIO (https://notiflix.github.io)
33
* Description: This file has been created automatically that using "notiflix.js", and "notiflix.css" files.
4-
* Version: 3.2.7
4+
* Version: 3.2.8
55
* Author: Furkan (https://github.com/furcan)
6-
* Copyright 2019 - 2024 Notiflix, MIT License (https://opensource.org/licenses/MIT)
6+
* Copyright 2019 - 2025 Notiflix, MIT License (https://opensource.org/licenses/MIT)
77
*/
88

99
/* global define */
@@ -304,7 +304,7 @@
304304
// COMMON: Check Head or Body: begin
305305
var commonCheckHeadOrBody = function (element) {
306306
if (!element) { element = 'head'; }
307-
if (window.document[element] === null) {
307+
if (window.document[element] === undefined) {
308308
commonConsoleError('\nNotiflix needs to be appended to the "<' + element + '>" element, but you called it before the "<' + element + '>" element has been created.');
309309
return false;
310310
}
@@ -523,7 +523,7 @@
523523

524524
// if plainText is false but the message length more than messageMaxLength => Possible HTML tags error: begin
525525
if (!newNotifySettings.plainText && message.length > newNotifySettings.messageMaxLength) {
526-
// extend settings for error massege
526+
// extend settings for error massage
527527
newNotifySettings = commonExtendOptions(true, newNotifySettings, { closeButton: true, messageMaxLength: 150 });
528528
// error message
529529
message = 'Possible HTML Tags Error: The "plainText" option is "false" and the notification content length is more than the "messageMaxLength" option.';
@@ -542,11 +542,11 @@
542542
}
543543
// font awesome icon style: end
544544

545-
// if cssAnimaion is false => duration: begin
545+
// if cssAnimation is false => duration: begin
546546
if (!newNotifySettings.cssAnimation) {
547547
newNotifySettings.cssAnimationDuration = 0;
548548
}
549-
// if cssAnimaion is false => duration: end
549+
// if cssAnimation is false => duration: end
550550

551551
// notify wrap: begin
552552
var ntflxNotifyWrap = window.document.getElementById(notifySettings.wrapID) || window.document.createElement('div');
@@ -664,7 +664,7 @@
664664
if (newNotifySettings.closeButton && typeof callbackOrOptions !== 'function') {
665665
closeButtonHTML = '<span class="nx-close-button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g><path fill="' + theType.notiflixIconColor + '" d="M0.38 2.19l7.8 7.81 -7.8 7.81c-0.51,0.5 -0.51,1.31 -0.01,1.81 0.25,0.25 0.57,0.38 0.91,0.38 0.34,0 0.67,-0.14 0.91,-0.38l7.81 -7.81 7.81 7.81c0.24,0.24 0.57,0.38 0.91,0.38 0.34,0 0.66,-0.14 0.9,-0.38 0.51,-0.5 0.51,-1.31 0,-1.81l-7.81 -7.81 7.81 -7.81c0.51,-0.5 0.51,-1.31 0,-1.82 -0.5,-0.5 -1.31,-0.5 -1.81,0l-7.81 7.81 -7.81 -7.81c-0.5,-0.5 -1.31,-0.5 -1.81,0 -0.51,0.51 -0.51,1.32 0,1.82z"/></g></svg></span>';
666666
}
667-
// close buttpon element: end
667+
// close button element: end
668668

669669
// use icon: begin
670670
if (newNotifySettings.useIcon) {
@@ -722,7 +722,7 @@
722722
// hide notify elm and hide overlay: end
723723

724724
// remove notify elm and wrapper: begin
725-
var removeNotifyElmentsAndWrapper = function () {
725+
var removeNotifyElementsAndWrapper = function () {
726726
if (eachNotifyElement && eachNotifyElement.parentNode !== null) {
727727
eachNotifyElement.parentNode.removeChild(eachNotifyElement);
728728
}
@@ -743,7 +743,7 @@
743743
closeButtonElm.addEventListener('click', function () {
744744
hideNotifyElementsAndOverlay();
745745
var clickToCloseTimeout = setTimeout(function () {
746-
removeNotifyElmentsAndWrapper();
746+
removeNotifyElementsAndWrapper();
747747
clearTimeout(clickToCloseTimeout);
748748
}, newNotifySettings.cssAnimationDuration);
749749
});
@@ -758,7 +758,7 @@
758758
}
759759
hideNotifyElementsAndOverlay();
760760
var callbackTimeout = setTimeout(function () {
761-
removeNotifyElmentsAndWrapper();
761+
removeNotifyElementsAndWrapper();
762762
clearTimeout(callbackTimeout);
763763
}, newNotifySettings.cssAnimationDuration);
764764
});
@@ -773,7 +773,7 @@
773773
hideNotifyElementsAndOverlay();
774774
}, newNotifySettings.timeout);
775775
timeoutRemove = setTimeout(function () {
776-
removeNotifyElmentsAndWrapper();
776+
removeNotifyElementsAndWrapper();
777777
}, newNotifySettings.timeout + newNotifySettings.cssAnimationDuration);
778778
};
779779
autoRemove();
@@ -915,11 +915,11 @@
915915
}
916916
// max length: end
917917

918-
// if cssAnimaion is false => duration: begin
918+
// if cssAnimation is false => duration: begin
919919
if (!newReportSettings.cssAnimation) {
920920
newReportSettings.cssAnimationDuration = 0;
921921
}
922-
// if cssAnimaion is false => duration: end
922+
// if cssAnimation is false => duration: end
923923

924924
// report wrap: begin
925925
var ntflxReportWrap = window.document.createElement('div');
@@ -1104,11 +1104,11 @@
11041104
}
11051105
// max length: end
11061106

1107-
// if cssAnimaion is false => duration: begin
1107+
// if cssAnimation is false => duration: begin
11081108
if (!newConfirmSettings.cssAnimation) {
11091109
newConfirmSettings.cssAnimationDuration = 0;
11101110
}
1111-
// if cssAnimaion is false => duration: end
1111+
// if cssAnimation is false => duration: end
11121112

11131113
// confirm wrap: begin
11141114
var ntflxConfirmWrap = window.document.createElement('div');
@@ -1335,11 +1335,11 @@
13351335
}
13361336
// if message settings: end
13371337

1338-
// if cssAnimaion is false => duration: begin
1338+
// if cssAnimation is false => duration: begin
13391339
if (!newLoadingSettings.cssAnimation) {
13401340
newLoadingSettings.cssAnimationDuration = 0;
13411341
}
1342-
// if cssAnimaion is false => duration: end
1342+
// if cssAnimation is false => duration: end
13431343

13441344
// svgIcon: begin
13451345
var svgIcon = '';
@@ -1575,11 +1575,11 @@
15751575
}
15761576
// check the message: end
15771577

1578-
// if cssAnimaion is false => duration: begin
1578+
// if cssAnimation is false => duration: begin
15791579
if (!newBlockSettings.cssAnimation) {
15801580
newBlockSettings.cssAnimationDuration = 0;
15811581
}
1582-
// if cssAnimaion is false => duration: end
1582+
// if cssAnimation is false => duration: end
15831583

15841584
// check the class name: begin
15851585
var blockClassName = blockSettings.className;

build/notiflix-block-aio.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
* Notiflix Block AIO (https://notiflix.github.io)
33
* Description: This file has been created automatically that using "notiflix.js", and "notiflix.css" files.
4-
* Version: 3.2.7
4+
* Version: 3.2.8
55
* Author: Furkan (https://github.com/furcan)
6-
* Copyright 2019 - 2024 Notiflix, MIT License (https://opensource.org/licenses/MIT)
6+
* Copyright 2019 - 2025 Notiflix, MIT License (https://opensource.org/licenses/MIT)
77
*/
88

99
/* global define */
@@ -77,7 +77,7 @@
7777
// COMMON: Check Head or Body: begin
7878
var commonCheckHeadOrBody = function (element) {
7979
if (!element) { element = 'head'; }
80-
if (window.document[element] === null) {
80+
if (window.document[element] === undefined) {
8181
commonConsoleError('\nNotiflix needs to be appended to the "<' + element + '>" element, but you called it before the "<' + element + '>" element has been created.');
8282
return false;
8383
}
@@ -274,11 +274,11 @@
274274
}
275275
// check the message: end
276276

277-
// if cssAnimaion is false => duration: begin
277+
// if cssAnimation is false => duration: begin
278278
if (!newBlockSettings.cssAnimation) {
279279
newBlockSettings.cssAnimationDuration = 0;
280280
}
281-
// if cssAnimaion is false => duration: end
281+
// if cssAnimation is false => duration: end
282282

283283
// check the class name: begin
284284
var blockClassName = blockSettings.className;

build/notiflix-confirm-aio.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
* Notiflix Confirm AIO (https://notiflix.github.io)
33
* Description: This file has been created automatically that using "notiflix.js", and "notiflix.css" files.
4-
* Version: 3.2.7
4+
* Version: 3.2.8
55
* Author: Furkan (https://github.com/furcan)
6-
* Copyright 2019 - 2024 Notiflix, MIT License (https://opensource.org/licenses/MIT)
6+
* Copyright 2019 - 2025 Notiflix, MIT License (https://opensource.org/licenses/MIT)
77
*/
88

99
/* global define */
@@ -84,7 +84,7 @@
8484
// COMMON: Check Head or Body: begin
8585
var commonCheckHeadOrBody = function (element) {
8686
if (!element) { element = 'head'; }
87-
if (window.document[element] === null) {
87+
if (window.document[element] === undefined) {
8888
commonConsoleError('\nNotiflix needs to be appended to the "<' + element + '>" element, but you called it before the "<' + element + '>" element has been created.');
8989
return false;
9090
}
@@ -230,11 +230,11 @@
230230
}
231231
// max length: end
232232

233-
// if cssAnimaion is false => duration: begin
233+
// if cssAnimation is false => duration: begin
234234
if (!newConfirmSettings.cssAnimation) {
235235
newConfirmSettings.cssAnimationDuration = 0;
236236
}
237-
// if cssAnimaion is false => duration: end
237+
// if cssAnimation is false => duration: end
238238

239239
// confirm wrap: begin
240240
var ntflxConfirmWrap = window.document.createElement('div');

build/notiflix-loading-aio.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
* Notiflix Loading AIO (https://notiflix.github.io)
33
* Description: This file has been created automatically that using "notiflix.js", and "notiflix.css" files.
4-
* Version: 3.2.7
4+
* Version: 3.2.8
55
* Author: Furkan (https://github.com/furcan)
6-
* Copyright 2019 - 2024 Notiflix, MIT License (https://opensource.org/licenses/MIT)
6+
* Copyright 2019 - 2025 Notiflix, MIT License (https://opensource.org/licenses/MIT)
77
*/
88

99
/* global define */
@@ -75,7 +75,7 @@
7575
// COMMON: Check Head or Body: begin
7676
var commonCheckHeadOrBody = function (element) {
7777
if (!element) { element = 'head'; }
78-
if (window.document[element] === null) {
78+
if (window.document[element] === undefined) {
7979
commonConsoleError('\nNotiflix needs to be appended to the "<' + element + '>" element, but you called it before the "<' + element + '>" element has been created.');
8080
return false;
8181
}
@@ -258,11 +258,11 @@
258258
}
259259
// if message settings: end
260260

261-
// if cssAnimaion is false => duration: begin
261+
// if cssAnimation is false => duration: begin
262262
if (!newLoadingSettings.cssAnimation) {
263263
newLoadingSettings.cssAnimationDuration = 0;
264264
}
265-
// if cssAnimaion is false => duration: end
265+
// if cssAnimation is false => duration: end
266266

267267
// svgIcon: begin
268268
var svgIcon = '';

0 commit comments

Comments
 (0)