minify_html 0.15.0-aarch64-linux → 0.16.0-aarch64-linux
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 +4 -4
- data/README.md +23 -15
- data/lib/2.7/minify_html.so +0 -0
- data/lib/3.0/minify_html.so +0 -0
- data/lib/3.1/minify_html.so +0 -0
- data/lib/3.2/minify_html.so +0 -0
- data/lib/3.3/minify_html.so +0 -0
- data/lib/3.4/minify_html.so +0 -0
- metadata +6 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 12dccb1a189d5db0807a666ce21c32f642082b2cf777f59891f0befaa929e35b
         | 
| 4 | 
            +
              data.tar.gz: 115cfe7f802c2ee8f1cdc5254a5bf80a16c6d58c0b2c6cf3192a59161278256a
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 4c0ad4c894029b26c43f9e13c5df36de6978c01d93e5b485cb50ba248b96f3d1b32beb7c80b5f150b1c6b923f5a9a61ed8a5d45e8795443cc76b1d742966ee4a
         | 
| 7 | 
            +
              data.tar.gz: 7fd3c99f7b17d85679b6f1d76c09b60795bfbfacad196c07d7f742f0648e3bf5961c4630003d9b48c353140ab1930d54530d5c6c620f31185b5644d5ea04e463
         | 
    
        data/README.md
    CHANGED
    
    | @@ -12,9 +12,8 @@ minify-html | |
| 12 12 |  | 
| 13 13 | 
             
            A Rust HTML minifier meticulously optimised for speed and effectiveness, with bindings for other languages.
         | 
| 14 14 |  | 
| 15 | 
            -
            - Advanced minification strategy beats other minifiers while being much faster.
         | 
| 16 | 
            -
            -  | 
| 17 | 
            -
            - Handles [invalid HTML](./notes/Parsing.md), with extensive testing and [fuzzing](./fuzz).
         | 
| 15 | 
            +
            - Advanced minification strategy beats other minifiers in effectiveness while still being much faster.
         | 
| 16 | 
            +
            - Handles [invalid HTML](./notes/Parsing.md) and [templating syntax](#templating-syntax).
         | 
| 18 17 | 
             
            - Uses [minify-js](https://github.com/wilsonzlin/minify-js) and [lightningcss](https://github.com/parcel-bundler/lightningcss) for super fast JS and CSS minification.
         | 
| 19 18 |  | 
| 20 19 | 
             
            View the [changelog](./CHANGELOG.md) to see the latest updates.
         | 
| @@ -23,9 +22,9 @@ View the [changelog](./CHANGELOG.md) to see the latest updates. | |
| 23 22 |  | 
| 24 23 | 
             
            Comparison with [html-minifier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize), run on the top web pages. [See the breakdown here.](./bench)
         | 
| 25 24 |  | 
| 26 | 
            -
            <img width="400" alt="Chart showing speed of HTML minifiers" src=" | 
| 25 | 
            +
            <img width="400" alt="Chart showing speed of HTML minifiers" src="./bench/graphs/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="./bench/graphs/average-sizes.png">
         | 
| 27 26 |  | 
| 28 | 
            -
            The [onepass](https://github.com/wilsonzlin/minify-html/tree/master/ | 
| 27 | 
            +
            The [onepass](https://github.com/wilsonzlin/minify-html/tree/master/minify-html-onepass) variant is even more optimised for speed. See its [README](https://github.com/wilsonzlin/minify-html/tree/master/minify-html-onepass) for more details.
         | 
| 29 28 |  | 
| 30 29 | 
             
            ## Compatibility and usage
         | 
| 31 30 |  | 
| @@ -61,7 +60,7 @@ minhtml --keep-closing-tags --minify-css /path/to/**/*.html | |
| 61 60 |  | 
| 62 61 | 
             
            ```toml
         | 
| 63 62 | 
             
            [dependencies]
         | 
| 64 | 
            -
            minify-html = "0. | 
| 63 | 
            +
            minify-html = "0.16.0"
         | 
| 65 64 | 
             
            ```
         | 
| 66 65 |  | 
| 67 66 | 
             
            ### Use
         | 
| @@ -73,14 +72,16 @@ Check out the [docs](https://docs.rs/minify-html) for API and usage examples. | |
| 73 72 | 
             
            <details>
         | 
| 74 73 | 
             
            <summary><img width="24" src="https://wilsonl.in/minify-html/icon/deno.png"> <strong>Deno</strong></summary>
         | 
| 75 74 |  | 
| 76 | 
            -
            - Package: https:// | 
| 75 | 
            +
            - Package: [@minify-html/deno](https://jsr.io/@minify-html/deno/)
         | 
| 77 76 | 
             
            - Binding: [WASM](https://webassembly.org/)
         | 
| 78 77 | 
             
            - Platforms: All
         | 
| 79 78 |  | 
| 80 79 | 
             
            ### Use
         | 
| 81 80 |  | 
| 81 | 
            +
            Add the JSR package using `deno add jsr:@minify-html/deno`.
         | 
| 82 | 
            +
             | 
| 82 83 | 
             
            ```ts
         | 
| 83 | 
            -
            import init, {minify} from " | 
| 84 | 
            +
            import init, {minify} from "@minify-html/deno";
         | 
| 84 85 |  | 
| 85 86 | 
             
            const encoder = new TextEncoder();
         | 
| 86 87 | 
             
            const decoder = new TextDecoder();
         | 
| @@ -146,7 +147,7 @@ Add as a Maven dependency: | |
| 146 147 | 
             
            <dependency>
         | 
| 147 148 | 
             
              <groupId>in.wilsonl.minifyhtml</groupId>
         | 
| 148 149 | 
             
              <artifactId>minify-html</artifactId>
         | 
| 149 | 
            -
              <version>0. | 
| 150 | 
            +
              <version>0.16.0</version>
         | 
| 150 151 | 
             
            </dependency>
         | 
| 151 152 | 
             
            ```
         | 
| 152 153 |  | 
| @@ -173,7 +174,7 @@ All [`Cfg` fields](https://docs.rs/minify-html/latest/minify_html/struct.Cfg.htm | |
| 173 174 |  | 
| 174 175 | 
             
            - Package: [minify-html](https://pypi.org/project/minify-html)
         | 
| 175 176 | 
             
            - Binding: [PyO3](https://github.com/PyO3/pyo3)
         | 
| 176 | 
            -
            - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Python 3.8 to 3. | 
| 177 | 
            +
            - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Python 3.8 to 3.13
         | 
| 177 178 |  | 
| 178 179 | 
             
            ### Get
         | 
| 179 180 |  | 
| @@ -196,7 +197,7 @@ All [`Cfg` fields](https://docs.rs/minify-html/latest/minify_html/struct.Cfg.htm | |
| 196 197 |  | 
| 197 198 | 
             
            - Package: [minify_html](https://rubygems.org/gems/minify_html)
         | 
| 198 199 | 
             
            - Binding: [rb-sys](https://github.com/oxidize-rb/rb-sys) and [magnus](https://github.com/matsadler/magnus)
         | 
| 199 | 
            -
            - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Ruby 2.7 to 3. | 
| 200 | 
            +
            - Platforms: Linux (ARM64 and x64), macOS (ARM64 and x64), Windows (x64); Ruby 2.7 to 3.4
         | 
| 200 201 |  | 
| 201 202 | 
             
            ### Get
         | 
| 202 203 |  | 
| @@ -250,11 +251,18 @@ Note that in all of these syntax, the parsing is "dumb": it will simply look for | |
| 250 251 |  | 
| 251 252 | 
             
            ## Minification
         | 
| 252 253 |  | 
| 253 | 
            -
             | 
| 254 | 
            +
            ### Spec compliance
         | 
| 255 | 
            +
             | 
| 256 | 
            +
            WHATWG is the current HTML standard and [obsoletes all previous standards](https://www.w3.org/html/). WHATWG lists suggested validators [here](https://whatwg.org/validator/).
         | 
| 257 | 
            +
             | 
| 258 | 
            +
            To minify even further, it's possible to enable options that may output HTML that doesn't fully pass validation, but is still interpreted and rendered correctly according to the [WHATWG parsing specification](https://html.spec.whatwg.org/multipage/parsing.html), which major browser engines (Firefox, Chrome, Safari) implement. Refer to these options:
         | 
| 259 | 
            +
             | 
| 260 | 
            +
            - `allow_noncompliant_unquoted_attribute_values`
         | 
| 261 | 
            +
            - `allow_optimal_entities`
         | 
| 262 | 
            +
            - `allow_removing_spaces_between_attributes`
         | 
| 263 | 
            +
            - `minify_doctype`
         | 
| 254 264 |  | 
| 255 | 
            -
             | 
| 256 | 
            -
            - `ensure_spec_compliant_unquoted_attribute_values`
         | 
| 257 | 
            -
            - `keep_spaces_between_attributes`
         | 
| 265 | 
            +
            In Rust, `Cfg::enable_possibly_noncompliant` can enable all of these at once.
         | 
| 258 266 |  | 
| 259 267 | 
             
            ### Whitespace
         | 
| 260 268 |  | 
    
        data/lib/2.7/minify_html.so
    CHANGED
    
    | Binary file | 
    
        data/lib/3.0/minify_html.so
    CHANGED
    
    | Binary file | 
    
        data/lib/3.1/minify_html.so
    CHANGED
    
    | Binary file | 
    
        data/lib/3.2/minify_html.so
    CHANGED
    
    | 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. | 
| 4 | 
            +
              version: 0.16.0
         | 
| 5 5 | 
             
            platform: aarch64-linux
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Wilson Lin
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2025-03-22 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake
         | 
| @@ -50,6 +50,8 @@ files: | |
| 50 50 | 
             
            - lib/3.0/minify_html.so
         | 
| 51 51 | 
             
            - lib/3.1/minify_html.so
         | 
| 52 52 | 
             
            - lib/3.2/minify_html.so
         | 
| 53 | 
            +
            - lib/3.3/minify_html.so
         | 
| 54 | 
            +
            - lib/3.4/minify_html.so
         | 
| 53 55 | 
             
            - lib/minify_html.rb
         | 
| 54 56 | 
             
            homepage: https://github.com/wilsonzlin/minify-html
         | 
| 55 57 | 
             
            licenses:
         | 
| @@ -66,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 66 68 | 
             
                  version: '2.7'
         | 
| 67 69 | 
             
              - - "<"
         | 
| 68 70 | 
             
                - !ruby/object:Gem::Version
         | 
| 69 | 
            -
                  version: 3. | 
| 71 | 
            +
                  version: 3.5.dev
         | 
| 70 72 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 71 73 | 
             
              requirements:
         | 
| 72 74 | 
             
              - - ">="
         | 
| 73 75 | 
             
                - !ruby/object:Gem::Version
         | 
| 74 76 | 
             
                  version: '0'
         | 
| 75 77 | 
             
            requirements: []
         | 
| 76 | 
            -
            rubygems_version: 3. | 
| 78 | 
            +
            rubygems_version: 3.5.23
         | 
| 77 79 | 
             
            signing_key: 
         | 
| 78 80 | 
             
            specification_version: 4
         | 
| 79 81 | 
             
            summary: Extremely fast and smart HTML + JS + CSS minifier
         |