htmlnano 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [2.1.2] - 2025-04-30
6
+
7
+ ### Added
8
+ - `skipInternalWarnings` flag to avoid `console.warn` output [#293]
9
+
10
+ ### Fixed
11
+ - Use Node.js `sort` instead of `timsort` [#328]
12
+
13
+
5
14
  ## [2.1.1] - 2024-04-28
6
15
 
7
16
  ### Fixed
@@ -288,6 +297,7 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
288
297
  - Remove attributes that contains only white spaces.
289
298
 
290
299
 
300
+ [2.1.2]: https://github.com/posthtml/htmlnano/compare/2.1.1...2.1.2
291
301
  [2.1.1]: https://github.com/posthtml/htmlnano/compare/2.1.0...2.1.1
292
302
  [2.1.0]: https://github.com/posthtml/htmlnano/compare/2.0.4...2.1.0
293
303
  [2.0.4]: https://github.com/posthtml/htmlnano/compare/2.0.3...2.0.4
@@ -320,7 +330,8 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
320
330
  [0.1.2]: https://github.com/posthtml/htmlnano/compare/0.1.1...0.1.2
321
331
  [0.1.1]: https://github.com/posthtml/htmlnano/compare/0.1.0...0.1.1
322
332
 
323
-
333
+ [#328]: https://github.com/posthtml/htmlnano/issues/328
334
+ [#293]: https://github.com/posthtml/htmlnano/issues/293
324
335
  [#278]: https://github.com/posthtml/htmlnano/issues/278
325
336
  [#260]: https://github.com/posthtml/htmlnano/issues/260
326
337
  [#257]: https://github.com/posthtml/htmlnano/issues/257
@@ -414,8 +414,8 @@ Source:
414
414
 
415
415
  ```js
416
416
  {
417
- removeComments: (comments) => {
418
- if (comments.includes('noindex')) return true;
417
+ removeComments: (comment) => {
418
+ if (comment.includes('noindex')) return true;
419
419
  return false;
420
420
  }
421
421
  }