hyperbuild 0.0.38 → 0.0.44

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: c124ffbf973555b640e5fc9463f66be587a161ae82dbeb2aa7a6577a4817a597
4
- data.tar.gz: 6b10fe6134e46bee426dca81a78751565142009c457af01157fd5e7ce400ebfc
3
+ metadata.gz: c08a3df4ded7e9f0e90457cbcd2bece9e33ebe8ce47246f0e6a93095a517ea19
4
+ data.tar.gz: 0bb130c76c5ed061cf3610ce73a9a2b0ebab72f12df0d16767330c8d7cc61f63
5
5
  SHA512:
6
- metadata.gz: 2b82d0143ce5147ca6ebd2777ac2a3765444f70b4b27d01c231eda67f24fed06674620ec25061f118806310843b06bf94d260f0c35da29f6b675daa2feedb89a
7
- data.tar.gz: 7b14c5a899a21ec26ab448b5995d0ae759619acd6083fd9ef455e3573037a30d55b89c2ca36f7876c8e121832c59e2a48e162b2c8d6c2ef228996c0877c1aea0
6
+ metadata.gz: d74715dc36e9201b399401b944eb27348e5a0a88885d6db4f9aa609db048f251496bc0b9acbb5f9dea5978789b15d72504be64febc6905b251af200a1bf037fd
7
+ data.tar.gz: db810d4b7e4290c5f07dfd7c2302ad1396d07d614a1c5fbc153d8e5fc9e273f589e59bc36c3023748693d9e4646864198160bf4e7c1e70571ae84db7a0dc874a
data/README.md CHANGED
@@ -17,17 +17,21 @@ Available as:
17
17
 
18
18
  Speed and effectiveness of Node.js version compared to [html-minfier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize). See [bench](./bench) folder for more details.
19
19
 
20
- <img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.38/average-speeds.png"> <img width="435" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.38/average-sizes.png">
20
+ <img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.44/average-speeds.png"> <img width="435" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.44/average-sizes.png">
21
21
 
22
22
  ## Usage
23
23
 
24
24
  ### CLI
25
25
 
26
+ Precompiled binaries are available for x86-64 Windows, macOS, and Linux.
27
+
28
+ To compile and install from source, run `cargo install hyperbuild`, which requires [Rust](https://www.rust-lang.org/tools/install).
29
+
26
30
  ##### Get
27
31
 
28
- [Windows](https://wilsonl.in/hyperbuild/bin/0.0.38-windows-x86_64.exe) |
29
- [macOS](https://wilsonl.in/hyperbuild/bin/0.0.38-macos-x86_64) |
30
- [Linux](https://wilsonl.in/hyperbuild/bin/0.0.38-linux-x86_64)
32
+ [Windows](https://wilsonl.in/hyperbuild/bin/0.0.44-windows-x86_64.exe) |
33
+ [macOS](https://wilsonl.in/hyperbuild/bin/0.0.44-macos-x86_64) |
34
+ [Linux](https://wilsonl.in/hyperbuild/bin/0.0.44-linux-x86_64)
31
35
 
32
36
  ##### Use
33
37
 
@@ -44,7 +48,7 @@ hyperbuild --src /path/to/src.html --out /path/to/output.min.html
44
48
 
45
49
  ```toml
46
50
  [dependencies]
47
- hyperbuild = "0.0.38"
51
+ hyperbuild = "0.0.44"
48
52
  ```
49
53
 
50
54
  ##### Use
@@ -90,6 +94,14 @@ const hyperbuild = require("hyperbuild");
90
94
  const minified = hyperbuild.minify("<p> Hello, world! </p>");
91
95
  ```
92
96
 
97
+ hyperbuild is also available for TypeScript:
98
+
99
+ ```ts
100
+ import * as hyperbuild from "hyperbuild";
101
+
102
+ const minified = hyperbuild.minify("<p> Hello, world! </p>");
103
+ ```
104
+
93
105
  </details>
94
106
 
95
107
  <details>
@@ -105,7 +117,7 @@ Add as a Maven dependency:
105
117
  <dependency>
106
118
  <groupId>in.wilsonl.hyperbuild</groupId>
107
119
  <artifactId>hyperbuild</artifactId>
108
- <version>0.0.38</version>
120
+ <version>0.0.44</version>
109
121
  </dependency>
110
122
  ```
111
123
 
@@ -381,10 +393,10 @@ Spaces are removed between attributes if possible.
381
393
  Entities are decoded if valid (see relevant parsing section) and their decoded characters as UTF-8 is shorter or equal in length.
382
394
 
383
395
  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).
384
-
396
+
385
397
  If an entity is unintentionally formed after decoding, the leading ampersand is encoded, e.g. `&&#97;&#109;&#112;;` becomes `&ampamp;`. This is done as `&amp` is equal to or shorter than all other entity representations of characters part of an entity (`[&#a-zA-Z0-9;]`), and there is no other conflicting entity name that starts with `amp`.
386
398
 
387
- Right chevrons after any decoding in text are encoded to `&GT` if possible or `&GT;` otherwise.
399
+ Right chevrons after any decoding in text are encoded to `&GT` if possible or `&GT;` otherwise.
388
400
 
389
401
  ### Comments
390
402
 
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: hyperbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.44
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-01-26 00:00:00.000000000 Z
11
+ date: 2020-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle