All Versions
14
Latest Version
Avg Release Cycle
136 days
Latest Release
1939 days ago

Changelog History
Page 1

  • v1.0.3 Changes

    January 02, 2019

    ๐Ÿ›  Fixed

    • overflow: visible hidden minifying as overflow:hidden. Now it's left untouched. It's possible that there where other instances of this, which sould now be fixed.
    • quickcheck-instances upper bound not admitting version 0.3.19 (#5)
    • Incorrect description for two flags in the usage info (when running --help). The descriptions for -no-@kfsel-min and -no-transform-function-min were swapped.

    โž• Added

    • 0๏ธโƒฃ Minification for properties with a pair of values whose second one defaults to the first when missing. For example: overflow: clip clip is minified to overflow: clip. This also properly interacts with property traits, i.e. overflow: visible visible is properly minified to overflow: unset (since visible visible is equivalent to visible, and visible is the initial value and overflow doesn't inherit, thus unset). Among the properties for which this is now done are:

      • border-bottom-left-radius
      • border-bottom-right-radius
      • border-top-left-radius
      • border-top-right-radius
      • overscroll-behavior
    • Property traits for overscroll-behavior and its longhands, overscroll-behavior-x and overscroll-behavior-y.

    • ๐Ÿ“œ Minification for object-position. This property's value is now parsed as a <position>, allowing to apply all the minifications a <position> allows.

    • Minification for text-emphasis-position. This property now correctly utilizes its traits, e.g. text-emphasis-position: right over minifies to text-emphasis-position: unset.

  • v1.0.2 Changes

    March 25, 2018

    โž• Added

    • caret-color and font-display to the property traits table, enabling their minification.
    • border-radius minification.
    • ๐Ÿ“œ Parsing and minification of <basic-shape>.

    ๐Ÿ‘Œ Improved

    • Position minification
  • v1.0.2.1 Changes

    August 28, 2018

    ๐Ÿ›  Fixed

    • ๐Ÿ“œ Parser choking on CSS variables. (#3)
  • v1.0.1 Changes

    December 30, 2017

    โž• Added

    • Removing all and all and in media query lists, since all 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:

    1. :nth-of-type(1) --> :first-of-type.
    2. :nth-last-of-type(1) --> :last-of-type.
    3. :nth-child(1) --> :first-child.
    4. :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.

  • v1.0 Changes

    October 20, 2017

    โž• Added

    • border-color-*, border-width-* and border-style-* longhands are now replaced by their shorthand, when the four corresponding longhands are present in a rule.
    • ๐Ÿ’… Style rules merging: merges pairs of rules that either have all the same selectors, or all the same declarations. For it to be safe, it only does so whenever two conditions don't meet:
      1. There is a rule in between with the same specificity
      2. This rule has a declaration that "clashes" (interferes) with one of the declarations of the rules to be merged.

    By default it is enabled, but it can be disabled with --no-rule-merging (or using a Config with MergeRulesOn).

    ๐Ÿ”„ Changed

    • Replaced --no-property-sorting for --sort-properties. Now Hasmin doesn't sort properties by default; sorting declarations became opt-in rather than opt-out. This is because:
      1. Whether lexicographical sorting of properties aids compression varies a lot from stylesheet to stylesheet, for some files it helps, for others it hurts.
      2. The current implementation doesn't take into account all the possible interactions between properties, making it unsafe.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed non-exhaustive pattern bug introduced in 0.3.3
    • ๐Ÿ›  Fixed parser choking with rules that contained a semicolon but no declarations, e.g. div { ; }.
  • v0.3.3 Changes

    October 18, 2017

    This version introduced a non-exhaustive pattern bug. Don't use it.

    โž• Added

    • ๐Ÿ”€ Simple merging of adjacent media queries (@media rules), e.g.: css @media all and (min-width: 24rem) { a { font-size: 1.2rem; } } @media all and (min-width: 24rem) { b { padding-left: .25rem; padding-right: .25rem; } } ๐Ÿ”€ Gets merged into into: css @media all and (min-width: 24rem) { a { font-size: 1.2rem; } b { padding-left: .25rem; padding-right: .25rem; } } This closes [#2](https://github.com/contivero/hasmin/issues/2).
  • v0.3.3.1

    October 28, 2017
  • v0.3.2 Changes

    March 18, 2017
    • ๐Ÿ›  Fixed some dimensions minifying incorrectly.
    • ๐Ÿ›  Fixed some Eq instances.
    • ๐Ÿ‘Œ Improved test coverage.
    • <An+B> values data type modified to disallow invalid values. This makes the data type safer, also simplifying the Quickcheck Arbitrary instance.
  • v0.3.2.4 Changes

  • v0.3.2.3 Changes

    • โœ… Relaxed doctest upper bound.