Skip to content

Releases: leafo/scssphp

v0.6.1

13 Dec 08:11
Compare
Choose a tag to compare

Announcements:

  • bin/pscss --continue-on-error

SCSS Compatibility:

  • implement @extend !optional
  • implement keywords($args) built-in

Bug fixes:

  • BEM and @extend infinite loop

Internals:

v0.6.0

04 Dec 05:52
Compare
Choose a tag to compare

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

11 Nov 22:22
Compare
Choose a tag to compare

Announcements:

Compatibility:

  • Avoid notices with custom error handlers that don't check if error_reporting() returns 0

v0.5.0

11 Nov 05:11
Compare
Choose a tag to compare

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

09 Nov 15:14
Compare
Choose a tag to compare

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

23 Oct 17:45
Compare
Choose a tag to compare

Announcement:

Enhancements:

  • Compiler: add getVariables() and addFeature() API methods

Compatibility:

  • Compiler: can pass negative indices to nth() and set-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

04 Oct 16:36
Compare
Choose a tag to compare

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: and without: not yet supported
  • Partial call() support; kwargs not yet supported
  • String-based keys mismatch in map functions
  • Short-circuit evaluation for and, or, and if()

Other:

  • Compiler: getParsedFiles() now includes the main file (by @dleffler)

v0.3.1

12 Sep 03:07
Compare
Choose a tag to compare

Compatibility:

  • Fix v0.3.0 regression with bootstrap v4-dev

v0.3.0

07 Sep 01:36
Compare
Choose a tag to compare

Announcements:

  • Compiler getParsedFiles() compat buster; method now returns a map of imported files and their corresponding timestamps

Compatibility:

v0.2.1

06 Sep 03:16
Compare
Choose a tag to compare

Compatibility:

  • Fix map-get(null)
  • Fix nested function definition (variable scoping)
  • Fix extend bug with BEM syntax
  • Fix selector regression from 0.1.9