diff --git a/HISTORY.md b/HISTORY.md index 90cc7ad..e693074 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -10,6 +10,7 @@ * Add config option for simply concatenating files * Add config option for altering creation of Minify/MinApp objects * Missing spec no longer redirects, instead links to docs +* Minify::VERSION is an int that tracks the major version number ## Version 2.2.1 (2014-10-30) * Builder styled with Bootstrap (thanks to help from acidvertigo) diff --git a/lib/Minify.php b/lib/Minify.php index b518490..1fe79a9 100644 --- a/lib/Minify.php +++ b/lib/Minify.php @@ -26,7 +26,15 @@ use Psr\Log\LoggerInterface; */ class Minify { - const VERSION = '3.0.0'; + /** + * API version + * + * This is only bumped when API breaks are done and should follow the major version of the library + * + * @var int + */ + const VERSION = 3; + const TYPE_CSS = 'text/css'; const TYPE_HTML = 'text/html'; // there is some debate over the ideal JS Content-Type, but this is the