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