github scssphp/scssphp 1.2

latest releases: v1.12.1, v1.12.0, v1.11.1...
3 years ago

COMPAT BUSTERS:

  • Cache: cache directory must exist and be writeable (robocoder)
  • Deprecation warning when call() is used with a string (Cerdic)
  • Compiler: deprecated throwError() (stof)
  • Remove ignoreErrors mode (stof)
  • Drop support for configuring precision (stof)
  • bin/pscss deprecated --continue-on-error and --precision (stof)

Sass compatibility:

  • Partial fix of special cases in hsl/hsla functions (Cerdic)
  • In certain interpolations, the spec seems to prefer to force a double quote for output strings (Cerdic)
  • Fix list separated values with no delimiter with a keyword between two strings (Cerdic)
  • Fix spaces escaping in @import path strings (Cerdic)
  • Fix single/double quote escaping in single/double scope strings (stof)
  • Refactor handling of strings and escape sequences (stof)
  • Fix the enclosedList parsing in a more generic way (Cerdic)
  • Parser: explicitly flatten where expected (Cerdic)
  • Color function can be called with a var(..) argument (Cerdic)
  • Throw an error when passing too many arguments (stof, Cerdic)
  • Don't coerce anything into a map but throw an error if it's not at all matching a map (Cerdic)
  • In the @atroot (#{with: media}) the interpolation has to be reparsed in the compiler before trying to manipulate as a map (Cerdic)
  • Throw an error if positional and named passed, even on a splat... argument, except if this is the only one (Cerdic)
  • Fix map-remove() : second argument key can be a list of arguments (Cerdic)
  • Fix parsing value list in function call made of value list of 1 element (Cerdic)
  • Fix name of arguments on functions mix(color1,color2), map-merge(), comparable(), selector-extend(), selector-replace(), selector-parse() (Cerdic)
  • Fix saturate(50%) (Cerdic)
  • Throw an error if a value that should be in a range is not a numeric value (Cerdic)
  • Add error handling for invalid type in some color functions (Cerdic)
  • --& is a valid custom property (where & should be interpreted as self selector) (Cerdic)
  • Replace self selector in target part before the pushExtends() (Cerdic)
  • Add a proper error when trying to take a modulo by 0 (stof)
  • Properly detect the wrong operands for for loops (stof)
  • Fix the parsing of while(false) loop (stof)
  • Introducing scss get-function() and T_FUNCTION_REFERENCE type (Cerdic)
  • Reorder color names (stof)
  • Change output order for nested selectors (stof)
  • Simplify the handling of comments to be more spec-compliant (stof)
  • Refactor the format of the output for debug and warn directives (stof)
  • Discard comments in include arguments (stof)
  • Fix parsing of id tokens in values (stof)
  • Respect precision when computing alpha channel (stof)
  • Fix keyframe parsing in css files (dwachss, Cerdic)
  • In plain CSS, a property can only occur in a selector (ryssbowh, Cerdic)

Bug Fixes:

  • Compiler: fix undefined offset 2 (chrisblakley)

New Features:

  • Compiler: add getSourcePosition() (ryssbowh, robocoder)
  • ParserException: add sourcePosition getter/setter (cbl, robocoder)

Testing:

  • Many, many sass-spec test improvements (stof, Cerdic)
  • Update sass-spec tests (2020.08.20)

Misc:

  • Add SassException interface (stof)
  • Add polyfill for mb_chr (stof)
  • Update to PSR-12 (robocoder)
  • Add php 8 nightly to Travis CI (robocoder)

Don't miss a new scssphp release

NewReleases is sending notifications on new releases.