Jakub Pawlowicz [Sun, 9 Nov 2014 16:54:39 +0000 (16:54 +0000)]
Fixes #380 - rounding fractions to a whole number.
Jakub Pawlowicz [Mon, 20 Oct 2014 19:15:27 +0000 (20:15 +0100)]
Fixes #363 - `rem` units overriding more understandable ones.
Lukas Böcker [Wed, 15 Oct 2014 14:10:46 +0000 (16:10 +0200)]
Allows disabling rounding precision.
* Use `roundingPrecision: -1` or `--rounding-precision \\-1`.
Jakub Pawlowicz [Wed, 15 Oct 2014 21:05:19 +0000 (22:05 +0100)]
Fixes #344 - merging background-size into shorthand.
* Adds properties.backgroundSizeMerging to control the behaviour.
Jakub Pawlowicz [Tue, 14 Oct 2014 07:09:07 +0000 (08:09 +0100)]
Adds more granular control over compatibility settings.
* Manages compatibility options as a hash of options.
* Handles fallback to previous compatibility options.
Jakub Pawlowicz [Sun, 12 Oct 2014 15:33:06 +0000 (16:33 +0100)]
Merge pull request #368 from XhmikosR/master
README.md: use master branch for the Travis CI badge.
Jakub Pawlowicz [Sun, 12 Oct 2014 15:21:22 +0000 (16:21 +0100)]
Replaces remaining references to line breaks with require('os').EOL.
* Thanks @XhmikosR!
Jakub Pawlowicz [Sun, 12 Oct 2014 15:14:38 +0000 (16:14 +0100)]
Fixes comments processor on non-*nix systems.
* Windows, I'm looking at you!
Jakub Pawlowicz [Sun, 12 Oct 2014 09:39:41 +0000 (10:39 +0100)]
Removes support for node.js 0.8.x.
* Although 0.12 is not ready yet, support for 0.8 among libraries is waning.
* Bumps browserify dev dependency to 6.x.
* Bumps nock dev dependency to 0.48.
XhmikosR [Sat, 11 Oct 2014 06:21:31 +0000 (09:21 +0300)]
README.md: use master branch for the Travis CI badge.
Jakub Pawlowicz [Fri, 10 Oct 2014 21:08:37 +0000 (22:08 +0100)]
Fixes specs under latest 0.11.
Jakub Pawlowicz [Fri, 10 Oct 2014 20:48:56 +0000 (21:48 +0100)]
Adds 3.0 release warning to docs.
Jakub Pawlowicz [Fri, 10 Oct 2014 06:47:20 +0000 (07:47 +0100)]
Simplifies `SelectorsOptimizer` instantiation.
Jakub Pawlowicz [Fri, 10 Oct 2014 06:45:56 +0000 (07:45 +0100)]
Renames `noRebase` option into `rebase`.
Jakub Pawlowicz [Fri, 10 Oct 2014 06:35:33 +0000 (07:35 +0100)]
Renames `noAggressiveMerging` option into `aggressiveMerging`.
Jakub Pawlowicz [Fri, 10 Oct 2014 06:30:00 +0000 (07:30 +0100)]
Adds missing entry to Readme about broken module compatibility.
* see
3f1e064c91474ff9bd45ea39b11bc7bd564125c6.
Jakub Pawlowicz [Fri, 10 Oct 2014 06:29:07 +0000 (07:29 +0100)]
Renames `noAdvanced` option into `advanced`.
Jakub Pawlowicz [Fri, 10 Oct 2014 06:17:07 +0000 (07:17 +0100)]
Improves handling & documentation of minification options.
Jakub Pawlowicz [Thu, 9 Oct 2014 19:48:02 +0000 (20:48 +0100)]
Updates changelog after reworked minification.
Jakub Pawlowicz [Thu, 9 Oct 2014 06:15:07 +0000 (07:15 +0100)]
Speeds up advanced processing by shortening optimize loop.
* As it seems we only need 2 extra passes from #removeDuplicates and #mergeAdjacent.
Jakub Pawlowicz [Mon, 6 Oct 2014 20:28:50 +0000 (21:28 +0100)]
Reverses boolean passed to property optimizer.
Jakub Pawlowicz [Mon, 6 Oct 2014 17:23:29 +0000 (18:23 +0100)]
Removes unnecessary libraries.
Jakub Pawlowicz [Mon, 6 Oct 2014 14:45:53 +0000 (15:45 +0100)]
Simplifies advanced processing & property optimizer interface.
* Previously property optimizer accepted a string with selectors & returned a similar list.
* Since advanced optimizer operates on arrays now so does property optimizer.
Jakub Pawlowicz [Mon, 6 Oct 2014 13:42:12 +0000 (14:42 +0100)]
Removes property optimizer from simple optimizations.
Jakub Pawlowicz [Mon, 6 Oct 2014 11:17:03 +0000 (12:17 +0100)]
Speeds up minifying zero values.
* Checks if zeros are present in property value before proceeding.
Jakub Pawlowicz [Mon, 6 Oct 2014 11:07:16 +0000 (12:07 +0100)]
Speeds up clean up operations.
* Removes function from loop.
* Runs optimizations only if needed.
Jakub Pawlowicz [Mon, 6 Oct 2014 09:35:48 +0000 (10:35 +0100)]
Rewrites optimizer's #rebuild as a simple loop.
Jakub Pawlowicz [Sun, 5 Oct 2014 18:36:08 +0000 (19:36 +0100)]
Removes extra trim from clean up code.
Jakub Pawlowicz [Sun, 5 Oct 2014 14:43:44 +0000 (15:43 +0100)]
Speeds up simple reduction by using for loop not map.
Jakub Pawlowicz [Sun, 5 Oct 2014 14:39:38 +0000 (15:39 +0100)]
Speeds up precision minification.
* Caches minification regexp.
* Skips minification if no decimal dots in value.
Jakub Pawlowicz [Sun, 5 Oct 2014 14:16:50 +0000 (15:16 +0100)]
Speeds up unit minification by caching regexp.
Jakub Pawlowicz [Sun, 5 Oct 2014 14:02:43 +0000 (15:02 +0100)]
Speeds up hex name shortener even futher.
* Skips running hex -> name shortener if there are no hex colors.
* Simplifies toName regexp.
Jakub Pawlowicz [Sat, 4 Oct 2014 23:30:45 +0000 (00:30 +0100)]
Speeds up HexNameShortener.
* Moves regex creation out of loop.
* Makes #shorten a simple function.
Jakub Pawlowicz [Sat, 4 Oct 2014 22:56:48 +0000 (23:56 +0100)]
Adds faster tokenizer extraction.
Jakub Pawlowicz [Sat, 4 Oct 2014 09:33:40 +0000 (10:33 +0100)]
Fixes remaining specs (we are green now!).
Jakub Pawlowicz [Sat, 4 Oct 2014 09:32:09 +0000 (10:32 +0100)]
Fixes advanced optimizer.
* It was broken since we use tokenized data now.
Jakub Pawlowicz [Fri, 3 Oct 2014 16:39:24 +0000 (17:39 +0100)]
Fixes tokenizer to split over commas correctly.
Jakub Pawlowicz [Thu, 2 Oct 2014 14:49:06 +0000 (15:49 +0100)]
Fixes tokenizing escaped content within selectors.
Jakub Pawlowicz [Thu, 2 Oct 2014 13:55:17 +0000 (14:55 +0100)]
Fixes rebuilding flat blocks in SelectorOptimizer.
Jakub Pawlowicz [Wed, 1 Oct 2014 09:59:35 +0000 (10:59 +0100)]
Adds value & charset optimizations.
* Re-implemented most of property values' minifications.
* Extra charset(s) are stripped and first one is moved to the beginning.
Jakub Pawlowicz [Mon, 29 Sep 2014 12:01:20 +0000 (13:01 +0100)]
Improves selector optimizer.
* Turns to prototypal OO.
* Adds specs.
* Extracts Simple & Advanced optimizers into separate modules.
* Adds nasty workarounds as property optimizer is incompatible with new tokenizer output.
Jakub Pawlowicz [Sun, 28 Sep 2014 21:36:27 +0000 (22:36 +0100)]
Improves Tokenizer.
* Adds prototypal OO.
* Adds specs.
* Adds stripping some whitespace from selectors and properties.
Jakub Pawlowicz [Fri, 26 Sep 2014 16:14:28 +0000 (17:14 +0100)]
Restores SelectorsOptimizer in minification.
Jakub Pawlowicz [Fri, 26 Sep 2014 15:47:37 +0000 (16:47 +0100)]
Further simplifies CleanCSS#minify by extracting debug options.
Jakub Pawlowicz [Fri, 26 Sep 2014 15:15:48 +0000 (16:15 +0100)]
Simplifies CleanCSS#minify method.
* All processing is now done through content processors with predicatable API.
* Benchmarking also got easier because of that.
Jakub Pawlowicz [Fri, 26 Sep 2014 14:58:11 +0000 (15:58 +0100)]
Removes duplicate stats statement.
Jakub Pawlowicz [Thu, 18 Sep 2014 07:44:42 +0000 (09:44 +0200)]
Strips main clean.js transforms to bare minimum.
Jakub Pawlowicz [Fri, 26 Sep 2014 14:23:40 +0000 (15:23 +0100)]
Removes EmptyRemoval as no longer needed.
Jakub Pawlowicz [Fri, 26 Sep 2014 11:49:10 +0000 (12:49 +0100)]
Moves QuoteScanner to lib/utils.
Jakub Pawlowicz [Fri, 26 Sep 2014 11:44:36 +0000 (12:44 +0100)]
Improves UrlsProcessor.
* Adds prototypal OO.
* Adds basic tests.
Jakub Pawlowicz [Fri, 26 Sep 2014 11:30:17 +0000 (12:30 +0100)]
Moves Splitter to lib/utils.
Jakub Pawlowicz [Thu, 25 Sep 2014 22:58:27 +0000 (23:58 +0100)]
Improves FreeTextProcessor.
* Removes module wrapper.
* Adds basic tests.
* Adds very ugly normalization (pending refactoring).
Jakub Pawlowicz [Thu, 25 Sep 2014 12:21:42 +0000 (13:21 +0100)]
Improves QuoteScanner.
* Removes module wrapper.
* Adds set of tests.
Jakub Pawlowicz [Wed, 24 Sep 2014 20:24:18 +0000 (21:24 +0100)]
Improves Splitter.
* Adds prototypal OO.
Jakub Pawlowicz [Wed, 24 Sep 2014 20:21:57 +0000 (21:21 +0100)]
Adds minor tweaks to Splitter.
Jakub Pawlowicz [Wed, 24 Sep 2014 20:19:06 +0000 (21:19 +0100)]
Improves EscapeStore.
* Uses prototypal OO.
* Adds specs.
Jakub Pawlowicz [Wed, 24 Sep 2014 19:56:25 +0000 (20:56 +0100)]
Improves ExpressionsProcessor.
* Adds prototypal declarations.
* Adds tests.
Jakub Pawlowicz [Thu, 18 Sep 2014 07:51:06 +0000 (09:51 +0200)]
Improves CommentsProcessor.
* Adds prototypal OO.
* Adds basic tests.
Jakub Pawlowicz [Mon, 22 Sep 2014 02:03:46 +0000 (04:03 +0200)]
Improves Chunker to split content based on a given terminator.
Jakub Pawlowicz [Mon, 22 Sep 2014 01:58:25 +0000 (03:58 +0200)]
Extracts Chunker into a module.
* Adds some simple specs too.
Jakub Pawlowicz [Fri, 19 Sep 2014 08:48:12 +0000 (10:48 +0200)]
Adds #nextMatch method to EscapeStore.
Jakub Pawlowicz [Thu, 18 Sep 2014 09:25:08 +0000 (11:25 +0200)]
Adds metadata support to EscapeStore.
Jakub Pawlowicz [Thu, 18 Sep 2014 09:09:31 +0000 (11:09 +0200)]
Adds simple EscapeStore spec.
Jakub Pawlowicz [Tue, 16 Sep 2014 08:32:32 +0000 (09:32 +0100)]
Moves unit tests to integration.
Jakub Pawlowicz [Fri, 26 Sep 2014 14:49:14 +0000 (15:49 +0100)]
Breaks 2.x compatibility for using CleanCSS as a function.
Jakub Pawlowicz [Fri, 26 Sep 2014 14:42:53 +0000 (15:42 +0100)]
Turns upcoming version to 3.x (yay!).
Jakub Pawlowicz [Tue, 16 Sep 2014 07:13:27 +0000 (08:13 +0100)]
Version 2.2.16.
Jakub Pawlowicz [Tue, 16 Sep 2014 07:07:26 +0000 (08:07 +0100)]
Fixes #358 - property merging in compatibility mode.
* More understandable properties can't be merged into less understandable shorthands.
* E.g: div{background:linear-gradient(...) #000;background-color:red;}
Jakub Pawlowicz [Sun, 14 Sep 2014 15:43:14 +0000 (16:43 +0100)]
Fixes #354 - !important overriding in shorthands.
Follow up to #346 for overriding important property by another important one in shorthand declarations.
Jakub Pawlowicz [Sun, 14 Sep 2014 14:42:06 +0000 (15:42 +0100)]
Fixes #359 - handling escaped double backslash.
Jakub Pawlowicz [Thu, 4 Sep 2014 07:59:36 +0000 (08:59 +0100)]
Fixes #356 - leaving out IE7 *+html hack if ie7 compatibility mode.
* Also removes *+html hack from multi-selectors.
Ҽ˿ [Mon, 15 Sep 2014 03:30:34 +0000 (11:30 +0800)]
Add seven kinds of SVG 1.0 grey variants color keywords and rebeccapurple color (CSS Color Level 4)
Jakub Pawlowicz [Sun, 31 Aug 2014 22:56:05 +0000 (23:56 +0100)]
Version 2.2.15.
Jakub Pawlowicz [Sat, 30 Aug 2014 22:53:56 +0000 (23:53 +0100)]
Fixes #350 - edge cases in `@import` processing.
Jakub Pawlowicz [Sat, 30 Aug 2014 21:35:53 +0000 (22:35 +0100)]
Fixes #346 - overriding !important by !important which is less understandable.
Daniel Darabos [Tue, 26 Aug 2014 12:10:48 +0000 (14:10 +0200)]
Fixes #345 - disable rebasing for document-relative URL.
Már Örlygsson [Tue, 26 Aug 2014 15:15:39 +0000 (15:15 +0000)]
Clarify that rounding-precision only applies to px values
Jakub Pawlowicz [Mon, 25 Aug 2014 17:55:35 +0000 (18:55 +0100)]
Allows `target` option to be a path to a folder instead of a file.
* Should fix #336.
* For examples regarding root / target / relativeTo take a look at https://github.com/jakubpawlowicz/clean-css/blob/master/test/unit-test.js#L971 - 'urls rewriting - root and target' test.
Jakub Pawlowicz [Mon, 25 Aug 2014 16:53:51 +0000 (17:53 +0100)]
Updates release notes.
Jakub Pawlowicz [Mon, 25 Aug 2014 16:51:06 +0000 (17:51 +0100)]
Merge pull request #343 from noslouch/master
Simplifies transparency check to only look for zeroes in all parameters.
Jakub Pawlowicz [Mon, 25 Aug 2014 14:09:23 +0000 (15:09 +0100)]
Version 2.2.14.
Jakub Pawlowicz [Mon, 25 Aug 2014 12:43:29 +0000 (13:43 +0100)]
Fixes #339 - skips invalid properties.
* Skips processing of properties without values.
* Passing selector name to property optimiser is far from ideal but have to do for the time being.
Jakub Pawlowicz [Mon, 25 Aug 2014 10:36:16 +0000 (11:36 +0100)]
Fixes #341 - ensures output is shorter than input.
* Was not the case for multival expressions (e.g. multiple backgrounds).
Jakub Pawlowicz [Mon, 25 Aug 2014 10:33:34 +0000 (11:33 +0100)]
Makes multival operations idempotent.
Jakub Pawlowicz [Mon, 25 Aug 2014 10:44:01 +0000 (11:44 +0100)]
Fixes #342 - using clean-css in gulp via vinyl-map wrapper.
Jakub Pawlowicz [Sun, 24 Aug 2014 18:12:24 +0000 (19:12 +0100)]
Finalise repository move.
Brian Whitton [Fri, 22 Aug 2014 17:43:50 +0000 (13:43 -0400)]
simplifies transparency check to only look for zeroes in all parameters. fixes overeager transparent keyword optimization
Goal Smashers Dev Team [Thu, 14 Aug 2014 20:32:11 +0000 (21:32 +0100)]
Merge pull request #340 from lukeapage/patch-2
Add roundingPrecision to programattic description
Luke Page [Thu, 14 Aug 2014 15:59:18 +0000 (16:59 +0100)]
Add roundingPrecision to programattic description
Jakub Pawlowicz [Tue, 12 Aug 2014 21:37:03 +0000 (22:37 +0100)]
Version 2.2.13.
Andrew Crites [Mon, 11 Aug 2014 22:33:45 +0000 (18:33 -0400)]
Fix #337 -- component importance.
If a matching component and the corresponding token are both important, treat it as if neither is
Jakub Pawlowicz [Sat, 2 Aug 2014 10:37:30 +0000 (11:37 +0100)]
Version 2.2.12.
Jakub Pawlowicz [Sat, 2 Aug 2014 10:01:06 +0000 (11:01 +0100)]
Fixes #332 - background shorthand with none and color at the end (per spec).
Jakub Pawlowicz [Sat, 2 Aug 2014 09:41:12 +0000 (10:41 +0100)]
Refixes #325 - invalid charset declarations.
* All incorrect, non-lowercase charsets are being now removed.
* Removes stripping @IMPORT declarations.
Jakub Pawlowicz [Sat, 2 Aug 2014 09:37:13 +0000 (10:37 +0100)]
Fixes invalid CSS in unit tests.
Jakub Pawlowicz [Sat, 2 Aug 2014 09:33:47 +0000 (10:33 +0100)]
Fixes #329 - font shorthands incorrectly processed.
Jakub Pawlowicz [Tue, 29 Jul 2014 20:42:20 +0000 (21:42 +0100)]
Fixes issue with tokenizer removing first selector after an unknown @ rule.
See discussion in #325.
Jakub Pawlowicz [Mon, 28 Jul 2014 21:39:02 +0000 (22:39 +0100)]
Version 2.2.11.
Jakub Pawlowicz [Mon, 28 Jul 2014 21:38:00 +0000 (22:38 +0100)]
Fixes #326 - regression issue in background-size minification.
Jakub Pawlowicz [Sun, 27 Jul 2014 13:28:40 +0000 (14:28 +0100)]
Version 2.2.10.