Releases: leafo/scssphp
Releases · leafo/scssphp
v0.6.1
Announcements:
- bin/pscss --continue-on-error
SCSS Compatibility:
- implement
@extend !optional
- implement
keywords($args)
built-in
Bug fixes:
- BEM and
@extend
infinite loop
Internals:
- exception refactoring (@osavchenko)
- Compiler: setIgnoreErrors(boolean) (@osavchenko)
v0.6.0
Announcement:
- php5.4 support to be dropped in the new year
Compat Buster:
- Parser: getLineNo() removed
Compatibility:
- handle escaped quotes inside quoted strings (with or without interpolation present)
Bug fixes:
- undefined sourceParser when re-using a single Compiler instance
Internals:
- replace sourceParsers[] with sourceNames
- replace sourcePosition with sourceLine and sourceColumn
v0.5.1
Announcements:
- Added
@scssphp-import-once
(@IceReaper)
Compatibility:
- Avoid notices with custom error handlers that don't check if
error_reporting()
returns 0
v0.5.0
Announcements:
- Raise minimum supported version to PHP 5.4
- Drop HHVM support/hacks
Breaking Changes:
- Remove deprecated classmap.php
- Node\Number units reimplemented as array
Compatibility:
- Compiler: treat ! null === true
- Compiler: str-splice() fixes
- Node\Number: fixes incompatible units
v0.4.0
Announcements:
- The vote to raise minimum PHP requirement to 5.4.0 has passed! (3 👍 vs 0 👎 )
- The vote to remove deprecated classmap.php file has passed! (2 👍 vs 0 👎 )
Breaking Changes:
- Parser: remove deprecated show() and to() methods
- Parser, Compiler: convert stdClass to Block, Node, and OutputBlock abstractions
- Compiler: 2nd argument passed to user registered functions now receive kwargs instead of a Compiler instance
Enhancements:
- New control directives:
@break
,@continue
, and naked@return
- New operator:
<=>
(spaceship) operator
Compatibility Fixes:
- Compiler:
index()
- coerce first argument to list - Compiler/Parser: fix
@media
nested in mixin - Compiler: output literal string instead of division-by-zero exception
- Compiler:
str-slice()
- handle negative index - Compiler: pass kwargs to built-ins and user registered functions
v0.3.3
Announcement:
- Community consultation period (October 23 - November 7, 2015) to vote on these proposals:
Enhancements:
- Compiler: add
getVariables()
andaddFeature()
API methods
Compatibility:
- Compiler: can pass negative indices to
nth()
andset-nth()
- Compiler: can pass map as args to mixin expecting varargs
- Compiler: add coerceList(map)
- Compiler: improve
@at-root
support - Nested formatter: suppress empty blocks
Internals:
- Parser, Compiler: refactoring sourceParser to sourceIndex to facilitate future caching of parse tree
v0.3.2
Compatibility:
- Fix
@extend
behavior when interpolating variable containing a selector list - Hoist
@keyframes
so children selectors will not be prefixed by parent selector - Don't wrap
@import
inside@media
query (by @hitok) - Partial
@at-root
support;with:
andwithout:
not yet supported - Partial
call()
support;kwargs
not yet supported - String-based keys mismatch in map functions
- Short-circuit evaluation for
and
,or
, andif()
Other:
- Compiler: getParsedFiles() now includes the main file (by @dleffler)