Skip to content

Releases: hexydec/cssdoc

CSSdoc v1.2.0

18 Dec 08:48
Compare
Choose a tag to compare

This update adds support for the @layer directive, and improves syntax:

  • Added @layer directive to list of nested directives
  • Updated directive::parse() to set a new empty property, for detecting when a directive has curly brackets, but no content, enabling directives with just properties not to be deleted
  • Updated require to be called as a keyword instead of a function call
  • Added tests
  • Updated dependencies

CSSdoc v1.1.1

15 May 17:01
Compare
Choose a tag to compare

This release fixed a number of issues, and improves code quality:

  • Updated composer.json to inidicate PHP 8.0+ support
  • Fixed #7 where hexadecimal colours with an opacity notation were incorrectly minified
  • Fixed#8 where min(), max() and clamp() all support calc operations, but the spaces were not retained
  • Updated github workflow with newer packages
  • Removed dead code
  • Made assertions clearer when checking values as booleans
  • Added some comments
  • Fixed null issue in cssdoc::compile()
  • Split config into its own file and extended cssdoc
  • Added tests

CSSdoc v1.1.0

11 Feb 20:43
Compare
Choose a tag to compare

This release updates the code to only support PHP 8.0+. PHP 7.4 is no longer supported:

  • Updated type hints to correct types where #[\ReturnTypeWillChange] as the software now only supports PHP 8.0+
  • Added type hints where mixed is required
  • Added union type hints on arguments and return types where missing
  • Commented out new code that is not working yet

CSSdoc v1.0.4

26 Sep 11:17
Compare
Choose a tag to compare

This release fixes a return type issue and updates composer:

  • In later versions of PHP, the return type of iterator::key() is now mixed. For now this has been marked as #ReturnTypeWillChange for PHP 7.4 compatibility
  • Updated keywords in composer.json

CSSdoc v1.0.3

15 Sep 21:09
Compare
Choose a tag to compare

This release fixes a a few typing issues and PHPdoc errors:

  • Fixed errors in PHPdocs
  • Removed duplicate configuration items in cssdoc::$config
  • Fixed bug in document::__construct() where the rules were not stored in the class
  • Fixed issue in cssdoc::load() where the document was not reset correctly
  • Fixed issue in cssdocTest::compareMinify() where if the input is blank, there is no internal document do minify and compile, the load() method is now tested
  • Updated dependencies
  • Fixed status badge in readme.md

CSSdoc v1.0.2

19 May 15:49
Compare
Choose a tag to compare

This release fixes a few little issues and improves compatibility with PHP 7.4 to PHP 8.1:

  • Added #[\ReturnTypeWillChange] to methods that return mixed for PHP 8.1 compatibility
  • Fixed some docblock issues
  • Updated usage of str... functions to be mb_str...
  • Fixed issue in value::minify() where if the decimalplaces setting was false it would be treated as 0
  • [Updated cssdoc::save() to return the compiled code instead of true if saved, as it returns the code if no file is specified
  • Added tests

CSSdoc v1.0.1

04 Mar 23:33
Compare
Choose a tag to compare

Updated dependencies.

CSSdoc v1.0.0

04 Mar 22:45
Compare
Choose a tag to compare

This release removes support for PHP 7.3, and moves to a full production release.

CSSdoc v0.5.3

02 Mar 23:22
Compare
Choose a tag to compare

This release is a maintenance update:

  • Added more colours to the minify list
  • Fixed compatibility issue withPHP 8.1

CSSdoc v0.5.2

23 Aug 20:09
Compare
Choose a tag to compare

This release fixes some bugs and improves the modularity of the code:

  • Made some checks stricter
  • Updated cssdoc::parse() to initialise the tokeniser instead of cssdoc::load()
  • Fixed bug in value::minify() where it didn't minify mutliples correctly
  • Updated cssdoc::open() to check that the $context variable is a resource
  • Fixed bug in value::parse() where the token should be compared to null instead of false
  • Added tests
  • Tweaks to index.php