Repository navigation
Releases: hexydec/jslite
Releases · hexydec/jslite
Release list
JSlite v1.0.8
JSLite v1.0.7
This is a maintenance release to update dependencies.
JSlite v1.0.6
This is a bug fix and maintenance release:
- Fixed spelling mistake in path in
autoload.php - Updated dependencies
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
nulldefinition 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
classdeclaration 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
getandsetwere not specified as keywords - Fixed issue where private class properties were incorrectly minified
- Added
asto the keyword list to enable exports to work correctly - Updated
requireto 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-readannotation forjslite::__get() - Updated
nullcheck 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
mixedis required - Added union type hints on arguments and return types where missing
- Added missing docblock to
expression::isRegexpAllowed() - Updated text where it said
HTMLinstead 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
ofkeyword was not processed correctly as it was not in the keywords list - Fixed bug in
jslite::$tokenswhere thedoublequotesandsinglequotestokens didn't capture escaped line breaks in strings - Added tests
- Added keywords to composer.json