Skip to content

Releases: hexydec/jslite

JSlite v1.0.8

Choose a tag to compare

@hexydec hexydec released this 04 May 19:05
a7d507b

This is a maintenance and quality release:

  • Updated tests.yml with a better build processing, using PHP 8.4, caching assets, and added codecov token
  • Fixed PHPstan issues, and added neon file
  • Updated dependencies

JSLite v1.0.7

Choose a tag to compare

@hexydec hexydec released this 24 Mar 22:38

This is a maintenance release to update dependencies.

JSlite v1.0.6

Choose a tag to compare

@hexydec hexydec released this 15 Jul 21:36

This is a bug fix and maintenance release:

  • Fixed spelling mistake in path in autoload.php
  • Updated dependencies

JSlite v1.0.5

Choose a tag to compare

@hexydec hexydec released this 25 Dec 11:43

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

Choose a tag to compare

@hexydec hexydec released this 09 Jan 21:38

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

Choose a tag to compare

@hexydec hexydec released this 18 Dec 09:02

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

Choose a tag to compare

@hexydec hexydec released this 15 May 17:10

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

Choose a tag to compare

@hexydec hexydec released this 11 Feb 20:57

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

Choose a tag to compare

@hexydec hexydec released this 30 Nov 20:35

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

Choose a tag to compare

@hexydec hexydec released this 11 Nov 22:41

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