Skip to content

Releases: hexydec/jslite

JSlite v1.0.5

25 Dec 11:43
Compare
Choose a tag to compare

This is a maintenance release that updates dependencies, improves syntax, and has a better test interface:

  • Updated design of test interface
  • Updated composer dependencies and added PHPStan
  • Updated docblocks to fix PHPStan issues
  • Updated stability to stable
  • Fixed missing null definition in method argument
  • Added command interface for each token type
  • Updated jslite::save() to include $options
  • Updated docblocks to include better array definitions

JSlite v1.0.3

09 Jan 21:38
Compare
Choose a tag to compare

This is a maintenance release that fixes a bug:

  • Fixed bug #4 where a semicolon was incorrectly inserted after a class declaration if the brackets started on a new line
  • Added tests
  • Updated dependencies

JSlite v1.0.2

18 Dec 09:02
Compare
Choose a tag to compare

This release fixes some issues, improves syntax, and updates dependencies:

  • Fixed issue #2 where get and set were not specified as keywords
  • Fixed issue where private class properties were incorrectly minified
  • Added as to the keyword list to enable exports to work correctly
  • Updated require to be used as a keyword instead of a function
  • Added tests
  • Updated dependencies

JSlite v1.0.1

15 May 17:10
Compare
Choose a tag to compare

This release fixed some issues and improves code quality:

  • Updated dependent PHP version to 8.0+ in composer.json
  • Fixed #1, where the static keyword was missing from the keywords regexp
  • Updated github workflow with newer packages
  • Removed unused variables
  • Made some checks clearer
  • Refactored brackets::minify() to split code blocks into smaller functions to reduce complexity
  • Refactored expression::parse() to reduce cyclomatic complexity
  • Improved logic in expression::isEol()
  • Replaced some mb_strpos() calls with str_contains()
  • Removed dead code from whitespace::minify()
  • Added @property-read annotation for jslite::__get()
  • Updated null check in whitespace::minify()
  • Added tests

JSlite v1.0.0

11 Feb 20:57
Compare
Choose a tag to compare

This release removes support for PHP 7.4, and moves to a stable release:

  • 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
  • Added missing docblock to expression::isRegexpAllowed()
  • Updated text where it said HTML instead of Javascript

JSlite v0.6.3

30 Nov 20:35
Compare
Choose a tag to compare

This release fixes some bugs with capturing and parsing the input Javascript:

  • Fixed issue with regexp for capturing string tokens
  • Fixed issue where an automatic semi-colon was incorrectly inserted when the linebreak was preceded by a double operator
  • Added tests

JSlite v0.6.2

11 Nov 22:41
Compare
Choose a tag to compare

This release fixes a few bugs handling certain Javascript constructs:

  • Fixed bug where the of keyword was not processed correctly as it was not in the keywords list
  • Fixed bug in jslite::$tokens where the doublequotes and singlequotes tokens didn't capture escaped line breaks in strings
  • Added tests
  • Added keywords to composer.json

JSlite v0.6.1

15 Sep 21:13
Compare
Choose a tag to compare

This update corrects some typing issues and improves docblocks:

  • Corrected lots of PHPdoc errors
  • Fixed issue in autoload.php where the return type was incorrect
  • expression::parse() now doesn't pass itself to each child object unless required
  • Updated composer dependencies

JSlite v0.6.0

19 May 16:28
Compare
Choose a tag to compare

This release unifies the API with my other minifiers and improves documentation:

  • Added jslite::save() method as it was missing
  • Fixed some types in docblocks
  • Updated tests

JSLite v0.5.6

04 Mar 23:31
Compare
Choose a tag to compare

This release removes support for PHP 7.3 by adding typed properties.
Updated dependencies.