htmlnano 2.0.0 → 2.0.1
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 +9 -0
- package/docs/package-lock.json +262 -2072
- package/lib/htmlnano.js +53 -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 -23
- 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,12 @@
|
|
|
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.1] - 2022-04-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Speed improvements [#127]
|
|
9
|
+
- Fix `<img sizes>` [#180]
|
|
10
|
+
|
|
5
11
|
|
|
6
12
|
## [2.0.0] - 2022-01-12
|
|
7
13
|
*The major version has to be released because of vulnerability in PostCSS (see [#165])*
|
|
@@ -233,6 +239,7 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
233
239
|
- Remove attributes that contains only white spaces.
|
|
234
240
|
|
|
235
241
|
|
|
242
|
+
[2.0.1]: https://github.com/posthtml/htmlnano/compare/2.0.0...2.0.1
|
|
236
243
|
[2.0.0]: https://github.com/posthtml/htmlnano/compare/1.1.1...2.0.0
|
|
237
244
|
[1.1.1]: https://github.com/posthtml/htmlnano/compare/1.1.0...1.1.1
|
|
238
245
|
[1.1.0]: https://github.com/posthtml/htmlnano/compare/1.0.1...1.1.0
|
|
@@ -259,6 +266,7 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
259
266
|
[0.1.2]: https://github.com/posthtml/htmlnano/compare/0.1.1...0.1.2
|
|
260
267
|
[0.1.1]: https://github.com/posthtml/htmlnano/compare/0.1.0...0.1.1
|
|
261
268
|
|
|
269
|
+
[#180]: https://github.com/posthtml/htmlnano/issues/180
|
|
262
270
|
[#170]: https://github.com/posthtml/htmlnano/issues/170
|
|
263
271
|
[#168]: https://github.com/posthtml/htmlnano/issues/168
|
|
264
272
|
[#165]: https://github.com/posthtml/htmlnano/issues/165
|
|
@@ -273,6 +281,7 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
273
281
|
[#145]: https://github.com/posthtml/htmlnano/issues/145
|
|
274
282
|
[#135]: https://github.com/posthtml/htmlnano/issues/135
|
|
275
283
|
[#129]: https://github.com/posthtml/htmlnano/issues/129
|
|
284
|
+
[#127]: https://github.com/posthtml/htmlnano/issues/127
|
|
276
285
|
[#125]: https://github.com/posthtml/htmlnano/issues/125
|
|
277
286
|
[#122]: https://github.com/posthtml/htmlnano/issues/122
|
|
278
287
|
[#120]: https://github.com/posthtml/htmlnano/issues/120
|