Skip to content


Subversion checkout URL

You can clone with
Download ZIP


@tedivm tedivm released this

This release incorporates a number of performance optimizations and improved UTF character detection.


v1.0.1: Empty Comment Bug Fix

@tedivm tedivm released this · 6 commits to master since this release

This release fixes a bug where completely empty comments could be misinterpreted as just the opening or closing comment tag, rather than the whole thing, causing runtime errors or missing javascript code.

Example comment:



JShrink v1.0.0!!!!

@tedivm tedivm released this · 12 commits to master since this release

This release, besides being the first v1.0 release and thus having a stable API, includes:

  • Formatting updates for PSR-1 and PSR-2
  • Increased code coverage significantly.
  • Increased testing of Comments, Strings and Regex.
  • Added tests for error conditions to ensure proper exceptions are thrown.
  • Added additional test groups for feature requests and in development test cases.
  • Cleaned up stray lines that were being outputted around comments.
  • Reduced size of multiline strings even further!
  • Revamped "minify" static function to for efficiency.
  • Made code more portable by removing some old PHP 5.2 code.
  • Normalized Exception methods and made them more clear.
  • Added and updated a lot of the comments.
  • Removed a few bugs around edge cases in javascript (like "i + ++j").
  • Refactored code for improved clarity and development

As always, thank you for the support! I hope JShrink makes all of your projects faster for all of your users.


v0.5.2: Return of the Test Suite

@tedivm tedivm released this · 70 commits to master since this release

This release is primarily a refactoring of the Test Suite (to make it actually functional) and a clean up of the secondary files themselves.

The JShrink code itself is unchanged, and you should be able to update without issue.


Something went wrong with that request. Please try again.