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 +20 -1
- package/docs/docs/050-modules.md +2 -2
- package/docs/package-lock.json +886 -868
- package/index.d.ts +2 -1
- package/lib/helpers.cjs +3 -2
- package/lib/helpers.mjs +2 -1
- package/lib/htmlnano.cjs +5 -3
- package/lib/htmlnano.mjs +3 -1
- package/lib/modules/minifyConditionalComments.cjs +1 -1
- package/lib/modules/minifyUrls.cjs +4 -4
- package/lib/modules/minifyUrls.mjs +4 -4
- package/lib/modules/sortAttributes.cjs +1 -3
- package/lib/modules/sortAttributes.mjs +1 -3
- package/lib/modules/sortAttributesWithLists.cjs +1 -3
- package/lib/modules/sortAttributesWithLists.mjs +1 -2
- package/lib/presets/ampSafe.cjs +1 -1
- package/lib/presets/max.cjs +1 -1
- package/package.json +15 -13
- package/test.js +8 -33
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
|
package/docs/docs/050-modules.md
CHANGED