Update README.md
authorXhmikosR <xhmikosr@gmail.com>
Thu, 25 Dec 2014 17:31:43 +0000 (19:31 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 25 Dec 2014 17:31:43 +0000 (19:31 +0200)
Remove obsolete info about 1.x to 2.x upgrade now that 3.x is out.

README.md

index b0df9aa..db087a7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ npm install clean-css
 
 #### Command-line interface (CLI) - no breaking changes.
 
-#### Module interface
+#### Node.js module
 
 * `noAdvanced` became `advanced` - make sure to reverse the value;
 * `noAggressiveMerging` became `aggressiveMerging` - make sure to reverse the value;
@@ -37,33 +37,6 @@ npm install clean-css
 * `minify` method returns a hash instead of a string now, so use `new CleanCSS().minify(source).styles` instead of `new CleanCSS().minify(source)`. This change is due to addition of source-maps.
 * `stats`, `errors`, and `warnings` are now a properties of a hash returned by `minify` method (see above) instead of CleanCSS instance.
 
-### How to upgrade clean-css from 1.x to 2.x?
-
-#### Command-line interface (CLI)
-
-```
-npm update clean-css
-```
-
-or point `package.json` to version 2.x. That's it!
-
-#### Node.js module
-
-Update `clean-css` as for CLI above.
-Then change your JavaScript code from:
-
-```js
-var minimized = CleanCSS.process(source, options);
-```
-
-into
-
-```js
-var minimized = new CleanCSS(options).minify(source);
-```
-
-And you are done.
-
 ### How to use clean-css CLI?
 
 Clean-css accepts the following command line arguments (please make sure