hasmin v1.0.1 Release Notes
Release Date: 2017-12-30 // about 6 years ago-
โ Added
Removing
all
andall and
in media query lists, sinceall
is assumed when not present. In other words, the following rules are equivalent:@media all {/*..*/} @media {/*..*/}
and so are these:
@media all and (min-width: 500px) {/*..*/} @media (min-width: 500px) {/*..*/}
Note that this applies to media query lists in at-import rules too.
Replacing the
url()
notation for a <string> when used in the@import
rule.Four pseudoelement minifications:
:nth-of-type(1)
-->:first-of-type
.:nth-last-of-type(1)
-->:last-of-type
.:nth-child(1)
-->:first-child
.:nth-last-child(1)
-->:last-child
.
[class~=x]
to.x
minification.
๐ Improved
- ๐ <position> parser, making hasmin around four times faster on stylesheets with many <position> values.
๐ Fixed
- Length's Eq instance, which would equate lengths with the same numerical value when one had an absolute unit, and the other relative, e.g. 1in and 1em.
- Escaped character conversion: converting characters would crash the program when:
1. The escaped character had more than 6 hexadecimal digits (6 is the specs maximum); E.g. `\aaaaaaa`. 2. The escaped character's numerical representation was out of the unicode range.
This is no longer the case.