minify_html 0.3.2 → 0.3.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a376f571d2d926f3bac082d39b5bc61fa361a75e2f38ac1c91e11f6e917fb6f
4
- data.tar.gz: 5a4d174fe6a246c5711df1ce514df7c4a4f5072059b10a7121ad2b205c70ec5e
3
+ metadata.gz: b00d960a09c6d4de6681e685eb99b36d696cb8858b18a0654fabedf80b382a69
4
+ data.tar.gz: bcc1185949fccb475dcc7635a9426d54b4f7edff5cb3a27cae824c6da456dc68
5
5
  SHA512:
6
- metadata.gz: 562683934fff79dcbd2136eecf8cda7f56a785ce70a6aed79c1e77467fbe852291bf59715920705bee0f8f8e905010e2ff5861db5c1799195c755c89e0d0e436
7
- data.tar.gz: 63aef7ee0683604390ad15f11e4345d107584e012c04de42e166b3a4a5ed5152a0e4137c496bce61e19cc45f59190304671c093bb2f922a7727acc23e2fea9e6
6
+ metadata.gz: aa9f76653e9059242cb57d4dba063c108ea9d710d465b1196f21e578c7a6c2b321b8c23fa9fc068eee5f3a9710be069bbe3d2722040469dcda49a9742a2240dc
7
+ data.tar.gz: e600314828a8b2a0f29a4412fbc4cf7e3fcceb4c22b842019f4f638a16e76e5d8fa3da2bb6700cc04e76cf1cd2dceb336500f0bfb324eb73c6384ec1e99e4bca
data/README.md CHANGED
@@ -5,13 +5,13 @@ An HTML minifier meticulously optimised for both speed and effectiveness, availa
5
5
  - Advanced minification strategy beats other minifiers with only one pass.
6
6
  - Uses zero memory allocations, SIMD searching, direct tries, and lookup tables.
7
7
  - Well tested with a large test suite and extensive [fuzzing](./fuzz).
8
- - Natively binds to [esbuild](https://github.com/evanw/esbuild) for super fast JS minification.
8
+ - Natively binds to [esbuild](https://github.com/wilsonzlin/esbuild-rs) for super fast JS minification.
9
9
 
10
10
  ## Performance
11
11
 
12
12
  Comparison with [html-minfier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize), run on the top web pages. [See the breakdown here.](./bench)
13
13
 
14
- <img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.2/js/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.2/js/average-sizes.png">
14
+ <img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.3/js/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.3/js/average-sizes.png">
15
15
 
16
16
  ## Usage
17
17
 
@@ -21,9 +21,9 @@ Precompiled binaries are available for x86-64 Linux, macOS, and Windows.
21
21
 
22
22
  ##### Get
23
23
 
24
- [Linux](https://wilsonl.in/minify-html/bin/0.3.2-linux-x86_64) |
25
- [macOS](https://wilsonl.in/minify-html/bin/0.3.2-macos-x86_64) |
26
- [Windows](https://wilsonl.in/minify-html/bin/0.3.2-windows-x86_64.exe)
24
+ [Linux](https://wilsonl.in/minify-html/bin/0.3.3-linux-x86_64) |
25
+ [macOS](https://wilsonl.in/minify-html/bin/0.3.3-macos-x86_64) |
26
+ [Windows](https://wilsonl.in/minify-html/bin/0.3.3-windows-x86_64.exe)
27
27
 
28
28
  ##### Use
29
29
 
@@ -42,7 +42,7 @@ minify-html --src /path/to/src.html --out /path/to/output.min.html
42
42
 
43
43
  ```toml
44
44
  [dependencies]
45
- minify-html = { version = "0.3.2", features = ["js-esbuild"] }
45
+ minify-html = { version = "0.3.3", features = ["js-esbuild"] }
46
46
  ```
47
47
 
48
48
  Building with the `js-esbuild` feature requires the Go compiler to be installed as well, to build the [JS minifier](https://github.com/evanw/esbuild).
@@ -161,7 +161,7 @@ Add as a Maven dependency:
161
161
  <dependency>
162
162
  <groupId>in.wilsonl.minifyhtml</groupId>
163
163
  <artifactId>minify-html</artifactId>
164
- <version>0.3.2</version>
164
+ <version>0.3.3</version>
165
165
  </dependency>
166
166
  ```
167
167
 
@@ -449,6 +449,7 @@ Spaces are removed between attributes if possible.
449
449
  ### Entities
450
450
 
451
451
  Entities are decoded if valid (see relevant parsing section) and their decoded characters as UTF-8 is shorter or equal in length.
452
+ Some entities are longer decoded than encoded, so they're left encoded.
452
453
 
453
454
  Numeric entities that do not refer to a valid [Unicode Scalar Value](https://www.unicode.org/glossary/#unicode_scalar_value) are replaced with the [replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character).
454
455
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minify_html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilson Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-26 00:00:00.000000000 Z
11
+ date: 2020-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle