htmlnano 2.0.0 → 2.0.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 +19 -0
- package/docs/package-lock.json +262 -2072
- package/lib/htmlnano.js +60 -3
- package/lib/modules/collapseAttributeWhitespace.js +20 -20
- package/lib/modules/collapseBooleanAttributes.js +13 -19
- package/lib/modules/deduplicateAttributeValues.js +10 -16
- package/lib/modules/minifyJson.js +12 -24
- package/lib/modules/minifySvg.js +3 -2
- package/lib/modules/normalizeAttributeValues.js +9 -15
- package/lib/modules/removeComments.js +17 -9
- package/lib/modules/removeEmptyAttributes.js +13 -17
- package/lib/modules/removeRedundantAttributes.js +19 -23
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.0.2] - 2022-04-06
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- JSON-LD crash [#182]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [2.0.1] - 2022-04-04
|
|
12
|
+
**This version contains a critical bug [#182].**
|
|
13
|
+
**Don't use it.**
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Speed improvements [#127]
|
|
17
|
+
- Fix `<img sizes>` [#180]
|
|
18
|
+
|
|
5
19
|
|
|
6
20
|
## [2.0.0] - 2022-01-12
|
|
7
21
|
*The major version has to be released because of vulnerability in PostCSS (see [#165])*
|
|
@@ -233,6 +247,8 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
233
247
|
- Remove attributes that contains only white spaces.
|
|
234
248
|
|
|
235
249
|
|
|
250
|
+
[2.0.2]: https://github.com/posthtml/htmlnano/compare/2.0.1...2.0.2
|
|
251
|
+
[2.0.1]: https://github.com/posthtml/htmlnano/compare/2.0.0...2.0.1
|
|
236
252
|
[2.0.0]: https://github.com/posthtml/htmlnano/compare/1.1.1...2.0.0
|
|
237
253
|
[1.1.1]: https://github.com/posthtml/htmlnano/compare/1.1.0...1.1.1
|
|
238
254
|
[1.1.0]: https://github.com/posthtml/htmlnano/compare/1.0.1...1.1.0
|
|
@@ -259,6 +275,8 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
259
275
|
[0.1.2]: https://github.com/posthtml/htmlnano/compare/0.1.1...0.1.2
|
|
260
276
|
[0.1.1]: https://github.com/posthtml/htmlnano/compare/0.1.0...0.1.1
|
|
261
277
|
|
|
278
|
+
[#182]: https://github.com/posthtml/htmlnano/issues/182
|
|
279
|
+
[#180]: https://github.com/posthtml/htmlnano/issues/180
|
|
262
280
|
[#170]: https://github.com/posthtml/htmlnano/issues/170
|
|
263
281
|
[#168]: https://github.com/posthtml/htmlnano/issues/168
|
|
264
282
|
[#165]: https://github.com/posthtml/htmlnano/issues/165
|
|
@@ -273,6 +291,7 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
273
291
|
[#145]: https://github.com/posthtml/htmlnano/issues/145
|
|
274
292
|
[#135]: https://github.com/posthtml/htmlnano/issues/135
|
|
275
293
|
[#129]: https://github.com/posthtml/htmlnano/issues/129
|
|
294
|
+
[#127]: https://github.com/posthtml/htmlnano/issues/127
|
|
276
295
|
[#125]: https://github.com/posthtml/htmlnano/issues/125
|
|
277
296
|
[#122]: https://github.com/posthtml/htmlnano/issues/122
|
|
278
297
|
[#120]: https://github.com/posthtml/htmlnano/issues/120
|