htmlnano 2.1.0 → 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,21 @@
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
+
14
+ ## [2.1.1] - 2024-04-28
15
+
16
+ ### Fixed
17
+ - Downlevel-revealed closing comment being deleted in safe mode [#278]
18
+
19
+
5
20
  ## [2.1.0] - 2023-10-19
6
21
 
7
22
  ### Added
@@ -282,6 +297,8 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
282
297
  - Remove attributes that contains only white spaces.
283
298
 
284
299
 
300
+ [2.1.2]: https://github.com/posthtml/htmlnano/compare/2.1.1...2.1.2
301
+ [2.1.1]: https://github.com/posthtml/htmlnano/compare/2.1.0...2.1.1
285
302
  [2.1.0]: https://github.com/posthtml/htmlnano/compare/2.0.4...2.1.0
286
303
  [2.0.4]: https://github.com/posthtml/htmlnano/compare/2.0.3...2.0.4
287
304
  [2.0.3]: https://github.com/posthtml/htmlnano/compare/2.0.2...2.0.3
@@ -313,7 +330,9 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
313
330
  [0.1.2]: https://github.com/posthtml/htmlnano/compare/0.1.1...0.1.2
314
331
  [0.1.1]: https://github.com/posthtml/htmlnano/compare/0.1.0...0.1.1
315
332
 
316
-
333
+ [#328]: https://github.com/posthtml/htmlnano/issues/328
334
+ [#293]: https://github.com/posthtml/htmlnano/issues/293
335
+ [#278]: https://github.com/posthtml/htmlnano/issues/278
317
336
  [#260]: https://github.com/posthtml/htmlnano/issues/260
318
337
  [#257]: https://github.com/posthtml/htmlnano/issues/257
319
338
  [#220]: https://github.com/posthtml/htmlnano/issues/220
@@ -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
  }