Releases: hexydec/jslite
Releases · hexydec/jslite
JSlite v1.0.5
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
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
This release fixes some issues, improves syntax, and updates dependencies:
- Fixed issue #2 where
get
andset
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
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 withstr_contains()
- Removed dead code from
whitespace::minify()
- Added
@property-read
annotation forjslite::__get()
- Updated
null
check inwhitespace::minify()
- Added tests
JSlite v1.0.0
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 ofJavascript
JSlite v0.6.3
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
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 thedoublequotes
andsinglequotes
tokens didn't capture escaped line breaks in strings - Added tests
- Added keywords to composer.json
JSlite v0.6.1
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
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
This release removes support for PHP 7.3 by adding typed properties.
Updated dependencies.