Skip to content

Commit

Permalink
Begin prep for 2.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclay committed Mar 7, 2016
1 parent 1c3c370 commit afbcadf
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
# /
/test
/.idea/
/composer.lock
.DS_Store
/vendor
/.php_cs.cache
32 changes: 21 additions & 11 deletions HISTORY.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
Minify Release History

(master)
Version 2.3.0
* Adds `$min_concatOnly` option to just concatenate files
* Deprecates use of Minify_Loader
* Deprecates use of Minify_Logger
* Deprecates use of JSMinPlus
* Deprecates use of FirePHP
* Deprecates use of DooDigestAuth

Version 2.2.1 (2014-10-30)
* Builder styled with Bootstrap (thanks to help from acidvertigo)
* Add config option for simply concatenating files
* Update CSSmin to v.2.4.8
* Added WinCache
* URLs with spaces properly rewritten

Version 2.2.0
Version 2.2.0 (2014-03-12)
* Fix handling of RegEx in certain situations in JSMin
* Thanks to Vovan-VE for reporting this
* Update composer.json with support info
Expand All @@ -26,11 +36,11 @@ Version 2.2.0
* Allow far-future expiration and file versioning with the "v" querystirng parameter in addition to existing method
* Lots of general code tidy ups

Version 2.1.7
Version 2.1.7 (2013-07-23)
* Fixes arbitrary file inclusion vulnerability on some systems
* Thanks to Matt Mecham for reporting this

Version 2.1.6
Version 2.1.6 (2013-07-19)
* JSMin fixes
* Prevents some Closure Compiler API failures
* Uses autoloading for all class loading
Expand All @@ -42,7 +52,7 @@ Version 2.1.6
* CLI script more portable
* Adds composer.json

Version 2.1.5
Version 2.1.5 (2012-03-10)
* Removed XSS vulnerability
* Disabled builder bby default
* command line tools to minify and rewrite URIs in CSS
Expand All @@ -51,7 +61,7 @@ Version 2.1.5
* Closure Compiler uses cURL when allow_url_fopen is off
* Missing file notices when using groups

Version 2.1.4
Version 2.1.4 (2010-07-10)
* Option to minify JS with Closure Compiler API w/ JSMin failover
* Cookie/bookmarklet-based debug mode. No HTML editing!
* Allows 1 file to be missing w/o complete failure
Expand All @@ -67,7 +77,7 @@ Version 2.1.4
* Removed annoying maxFiles limit
* mbstring.func_overload usage is safer

Version 2.1.3
Version 2.1.3 (2009-06-30)
* HTTP fixes
* ETag generation now valid (different when gzipped)
* Vary header always sent when Accept-Encoding is sniffed
Expand All @@ -79,7 +89,7 @@ Version 2.1.3
* Allow setting contentType in Minify_Source objects
* No more 5.3 deprecation warnings: split() removed

Version 2.1.2
Version 2.1.2 (2009-03-04)
* Javascript fixes
* Debug mode no longer confused by "*/*" in strings/RegExps (jQuery)
* quote characters inside RegExp literals no longer cause exception
Expand All @@ -91,14 +101,14 @@ Version 2.1.2
* Builder app doesn't fail on systems without gzdeflate()
* APC caching class included

Version 2.1.1
Version 2.1.1 (2008-10-19)
* Bug fix release
* Detection and workarounds for zlib.output_compression and non-PHP encoding modules
* Zlib not required (mod_rewrite, et.al., can still be used for encoding)
* HTML : More IE conditional comments preserved
* Minify_groupUri() utility fixed

Version 2.1.0
Version 2.1.0 (2008-09-18)
* "min" default application for quick deployment
* Minify URI Builder app & bookmarklet for quickly creating minify URIs
* Relative URIs in CSS file are fixed automatically by default
Expand Down
7 changes: 3 additions & 4 deletions docs/CookBook.wiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,12 @@ $min_serveOptions['minifiers']['text/css'] = array('Minify_CSSmin', 'minify');

## JSMin+

Minify 2.1.3 comes with Tino Zijdel's [JSMin+](http://crisp.tweakblogs.net/blog/1665/a-new-javascript-minifier-jsmin+.html) 1.1. This is a full parser based on a port of [Narcissus](http://en.wikipedia.org/wiki/Narcissus_(JavaScript_engine)). To try it out:
Tino Zijdel's [JSMin+](http://crisp.tweakblogs.net/blog/6861/jsmin%2B-version-14.html) has resulted in memory usage problems for many users and will be removed from the Minify codebase in 3.0. If you wish to use it, you should download it outside the Minify directory and link to it:

```
require '/path/to/jsminplus.php';
$min_serveOptions['minifiers']['application/x-javascript'] = array('JSMinPlus', 'minify');
```
This should yield smaller javascript files, but I've tested this only briefly. For production you may want to get the [latest version](http://crisp.tweakblogs.net/blog/cat/716) (you must rename it: `min/lib/JSMinPlus.php`).

Note: JSMin+ is memory intensive, so be prepared to up your memory limit. Also it has no [comment preservation](http://code.google.com/p/minify/source/browse/tags/release_2.1.3/min/lib/JSMin.php#10) as of 1.3, in case you rely on this.

## Server-specific Options

Expand Down
2 changes: 1 addition & 1 deletion docs/CustomSource.wiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ To change minifier, set `minifier` to a [callback](http://php.net/manual/en/lang
```
if (! function_exists('myMin')) {
function myMin($js) {
require_once 'JSMinPlus.php';
require_once '/path/to/jsminplus.php';
return JSMinPlus::minify($js);
}
}
Expand Down
2 changes: 2 additions & 0 deletions min/lib/DooDigestAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* @version $Id: DooDigestAuth.php 1000 2009-07-7 18:27:22
* @package doo.auth
* @since 1.0
*
* @deprecated 2.3 This will be removed in Minify 3.0
*/
class DooDigestAuth{

Expand Down
2 changes: 2 additions & 0 deletions min/lib/FirePHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
* @author Christoph Dorn <christoph@christophdorn.com>
* @license [MIT License](http://www.opensource.org/licenses/mit-license.php)
* @package FirePHPCore
*
* @deprecated 2.3 This will be removed in Minify 3.0
*/
class FirePHP {

Expand Down
6 changes: 5 additions & 1 deletion min/lib/JSMinPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@
define('KEYWORD_WHILE', 'while');
define('KEYWORD_WITH', 'with');


/**
* @deprecated 2.3 This will be removed in Minify 3.0
*/
class JSMinPlus
{
private $parser;
Expand All @@ -197,6 +199,8 @@ private function __construct()

public static function minify($js, $filename='')
{
trigger_error(__CLASS__ . ' is deprecated. This will be removed in Minify 3.0', E_USER_DEPRECATED);

static $instance;

// this is a singleton
Expand Down
5 changes: 5 additions & 0 deletions min/lib/Minify/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
* @package Minify
* @author Stephen Clay <steve@mrclay.org>
*
* @deprecated 2.3 This will be removed in Minify 3.0
*/
class Minify_Loader {
public function loadClass($class)
Expand All @@ -20,6 +22,9 @@ public function loadClass($class)
}
}

/**
* @deprecated 2.3 This will be removed in Minify 3.0
*/
static public function register()
{
$inst = new self();
Expand Down
2 changes: 1 addition & 1 deletion min/lib/Minify/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @package Minify
* @author Stephen Clay <steve@mrclay.org>
*
* @todo lose this singleton! pass log object in Minify::serve and distribute to others
* @deprecated 2.3 This will be removed in Minify 3.0
*/
class Minify_Logger {

Expand Down

0 comments on commit afbcadf

Please sign in to comment.