Permalink
Browse files

add note about UglifyJS 2.0

  • Loading branch information...
1 parent de2c36d commit 9b69218cc0870d1736983a5ebda525ca5e8f1f0f @mishoo committed Aug 27, 2012
Showing with 101 additions and 56 deletions.
  1. +87 −56 README.html
  2. +14 −0 README.org
View
@@ -7,7 +7,7 @@
<title>UglifyJS &ndash; a JavaScript parser/compressor/beautifier</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2011-12-09 14:59:08 EET"/>
+<meta name="generated" content="2012-08-27 12:38:12 EEST"/>
<meta name="author" content="Mihai Bazon"/>
<meta name="description" content="a JavaScript parser/compressor/beautifier in JavaScript"/>
<meta name="keywords" content="javascript, js, parser, compiler, compressor, mangle, minify, minifier"/>
@@ -99,39 +99,65 @@ <h1 class="title">UglifyJS &ndash; a JavaScript parser/compressor/beautifier</h1
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
-<li><a href="#sec-1">1 UglifyJS &mdash; a JavaScript parser/compressor/beautifier </a>
+<li><a href="#sec-1">1 NEW: UglifyJS2 </a></li>
+<li><a href="#sec-2">2 UglifyJS &mdash; a JavaScript parser/compressor/beautifier </a>
<ul>
-<li><a href="#sec-1-1">1.1 Unsafe transformations </a>
+<li><a href="#sec-2-1">2.1 Unsafe transformations </a>
<ul>
-<li><a href="#sec-1-1-1">1.1.1 Calls involving the global Array constructor </a></li>
-<li><a href="#sec-1-1-2">1.1.2 <code>obj.toString()</code> ==&gt; <code>obj+“”</code> </a></li>
+<li><a href="#sec-2-1-1">2.1.1 Calls involving the global Array constructor </a></li>
+<li><a href="#sec-2-1-2">2.1.2 <code>obj.toString()</code> ==&gt; <code>obj+“”</code> </a></li>
</ul>
</li>
-<li><a href="#sec-1-2">1.2 Install (NPM) </a></li>
-<li><a href="#sec-1-3">1.3 Install latest code from GitHub </a></li>
-<li><a href="#sec-1-4">1.4 Usage </a>
+<li><a href="#sec-2-2">2.2 Install (NPM) </a></li>
+<li><a href="#sec-2-3">2.3 Install latest code from GitHub </a></li>
+<li><a href="#sec-2-4">2.4 Usage </a>
<ul>
-<li><a href="#sec-1-4-1">1.4.1 API </a></li>
-<li><a href="#sec-1-4-2">1.4.2 Beautifier shortcoming &ndash; no more comments </a></li>
-<li><a href="#sec-1-4-3">1.4.3 Use as a code pre-processor </a></li>
+<li><a href="#sec-2-4-1">2.4.1 API </a></li>
+<li><a href="#sec-2-4-2">2.4.2 Beautifier shortcoming &ndash; no more comments </a></li>
+<li><a href="#sec-2-4-3">2.4.3 Use as a code pre-processor </a></li>
</ul>
</li>
-<li><a href="#sec-1-5">1.5 Compression &ndash; how good is it? </a></li>
-<li><a href="#sec-1-6">1.6 Bugs? </a></li>
-<li><a href="#sec-1-7">1.7 Links </a></li>
-<li><a href="#sec-1-8">1.8 License </a></li>
+<li><a href="#sec-2-5">2.5 Compression &ndash; how good is it? </a></li>
+<li><a href="#sec-2-6">2.6 Bugs? </a></li>
+<li><a href="#sec-2-7">2.7 Links </a></li>
+<li><a href="#sec-2-8">2.8 License </a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-1" class="outline-2">
-<h2 id="sec-1"><span class="section-number-2">1</span> UglifyJS &mdash; a JavaScript parser/compressor/beautifier </h2>
+<h2 id="sec-1"><span class="section-number-2">1</span> NEW: UglifyJS2 </h2>
<div class="outline-text-2" id="text-1">
<p>
+I started working on UglifyJS's successor, version 2. It's almost a full
+rewrite (except for the parser which is heavily modified, everything else
+starts from scratch). I've detailed my reasons in the README, see the
+project page.
+</p>
+<p>
+<a href="https://github.com/mishoo/UglifyJS2">https://github.com/mishoo/UglifyJS2</a>
+</p>
+<p>
+Version 1 will continue to be maintained for fixing show-stopper bugs, but
+no new features should be expected.
+</p>
+<p>
+Please help me focus on version 2 by <a href="http://pledgie.com/campaigns/18110">making a donation</a>!
+</p>
+</div>
+
+</div>
+
+<div id="outline-container-2" class="outline-2">
+<h2 id="sec-2"><span class="section-number-2">2</span> UglifyJS &mdash; a JavaScript parser/compressor/beautifier </h2>
+<div class="outline-text-2" id="text-2">
+
+
+<p>
This package implements a general-purpose JavaScript
parser/compressor/beautifier toolkit. It is developed on <a href="http://nodejs.org/">NodeJS</a>, but it
should work on any JavaScript platform supporting the CommonJS module system
@@ -233,9 +259,9 @@ <h2 id="sec-1"><span class="section-number-2">1</span> UglifyJS &mdash; a JavaSc
</div>
-<div id="outline-container-1-1" class="outline-3">
-<h3 id="sec-1-1"><span class="section-number-3">1.1</span> <span class="target">Unsafe transformations</span> </h3>
-<div class="outline-text-3" id="text-1-1">
+<div id="outline-container-2-1" class="outline-3">
+<h3 id="sec-2-1"><span class="section-number-3">2.1</span> <span class="target">Unsafe transformations</span> </h3>
+<div class="outline-text-3" id="text-2-1">
<p>
@@ -246,9 +272,9 @@ <h3 id="sec-1-1"><span class="section-number-3">1.1</span> <span class="target">
</div>
-<div id="outline-container-1-1-1" class="outline-4">
-<h4 id="sec-1-1-1"><span class="section-number-4">1.1.1</span> Calls involving the global Array constructor </h4>
-<div class="outline-text-4" id="text-1-1-1">
+<div id="outline-container-2-1-1" class="outline-4">
+<h4 id="sec-2-1-1"><span class="section-number-4">2.1.1</span> Calls involving the global Array constructor </h4>
+<div class="outline-text-4" id="text-2-1-1">
<p>
@@ -316,19 +342,19 @@ <h4 id="sec-1-1-1"><span class="section-number-4">1.1.1</span> Calls involving t
</div>
-<div id="outline-container-1-1-2" class="outline-4">
-<h4 id="sec-1-1-2"><span class="section-number-4">1.1.2</span> <code>obj.toString()</code> ==&gt; <code>obj+“”</code> </h4>
-<div class="outline-text-4" id="text-1-1-2">
+<div id="outline-container-2-1-2" class="outline-4">
+<h4 id="sec-2-1-2"><span class="section-number-4">2.1.2</span> <code>obj.toString()</code> ==&gt; <code>obj+“”</code> </h4>
+<div class="outline-text-4" id="text-2-1-2">
</div>
</div>
</div>
-<div id="outline-container-1-2" class="outline-3">
-<h3 id="sec-1-2"><span class="section-number-3">1.2</span> Install (NPM) </h3>
-<div class="outline-text-3" id="text-1-2">
+<div id="outline-container-2-2" class="outline-3">
+<h3 id="sec-2-2"><span class="section-number-3">2.2</span> Install (NPM) </h3>
+<div class="outline-text-3" id="text-2-2">
<p>
@@ -339,9 +365,9 @@ <h3 id="sec-1-2"><span class="section-number-3">1.2</span> Install (NPM) </h3>
</div>
-<div id="outline-container-1-3" class="outline-3">
-<h3 id="sec-1-3"><span class="section-number-3">1.3</span> Install latest code from GitHub </h3>
-<div class="outline-text-3" id="text-1-3">
+<div id="outline-container-2-3" class="outline-3">
+<h3 id="sec-2-3"><span class="section-number-3">2.3</span> Install latest code from GitHub </h3>
+<div class="outline-text-3" id="text-2-3">
@@ -369,9 +395,9 @@ <h3 id="sec-1-3"><span class="section-number-3">1.3</span> Install latest code f
</div>
-<div id="outline-container-1-4" class="outline-3">
-<h3 id="sec-1-4"><span class="section-number-3">1.4</span> Usage </h3>
-<div class="outline-text-3" id="text-1-4">
+<div id="outline-container-2-4" class="outline-3">
+<h3 id="sec-2-4"><span class="section-number-3">2.4</span> Usage </h3>
+<div class="outline-text-3" id="text-2-4">
<p>
@@ -408,6 +434,11 @@ <h3 id="sec-1-4"><span class="section-number-3">1.4</span> Usage </h3>
</ul>
</li>
+<li><code>-c</code> or <code>----consolidate-primitive-values</code> &mdash; consolidates null, Boolean,
+ and String values. Known as aliasing in the Closure Compiler. Worsens the
+ data compression ratio of gzip.
+
+</li>
<li><code>--ascii</code> &mdash; pass this argument to encode non-ASCII characters as
<code>\uXXXX</code> sequences. By default UglifyJS won't bother to do it and will
output Unicode characters instead. (the output is always encoded in UTF8,
@@ -556,9 +587,9 @@ <h3 id="sec-1-4"><span class="section-number-3">1.4</span> Usage </h3>
</div>
-<div id="outline-container-1-4-1" class="outline-4">
-<h4 id="sec-1-4-1"><span class="section-number-4">1.4.1</span> API </h4>
-<div class="outline-text-4" id="text-1-4-1">
+<div id="outline-container-2-4-1" class="outline-4">
+<h4 id="sec-2-4-1"><span class="section-number-4">2.4.1</span> API </h4>
+<div class="outline-text-4" id="text-2-4-1">
<p>
@@ -727,9 +758,9 @@ <h4 id="sec-1-4-1"><span class="section-number-4">1.4.1</span> API </h4>
</div>
-<div id="outline-container-1-4-2" class="outline-4">
-<h4 id="sec-1-4-2"><span class="section-number-4">1.4.2</span> Beautifier shortcoming &ndash; no more comments </h4>
-<div class="outline-text-4" id="text-1-4-2">
+<div id="outline-container-2-4-2" class="outline-4">
+<h4 id="sec-2-4-2"><span class="section-number-4">2.4.2</span> Beautifier shortcoming &ndash; no more comments </h4>
+<div class="outline-text-4" id="text-2-4-2">
<p>
@@ -749,9 +780,9 @@ <h4 id="sec-1-4-2"><span class="section-number-4">1.4.2</span> Beautifier shortc
</div>
-<div id="outline-container-1-4-3" class="outline-4">
-<h4 id="sec-1-4-3"><span class="section-number-4">1.4.3</span> Use as a code pre-processor </h4>
-<div class="outline-text-4" id="text-1-4-3">
+<div id="outline-container-2-4-3" class="outline-4">
+<h4 id="sec-2-4-3"><span class="section-number-4">2.4.3</span> Use as a code pre-processor </h4>
+<div class="outline-text-4" id="text-2-4-3">
<p>
@@ -830,9 +861,9 @@ <h4 id="sec-1-4-3"><span class="section-number-4">1.4.3</span> Use as a code pre
</div>
-<div id="outline-container-1-5" class="outline-3">
-<h3 id="sec-1-5"><span class="section-number-3">1.5</span> Compression &ndash; how good is it? </h3>
-<div class="outline-text-3" id="text-1-5">
+<div id="outline-container-2-5" class="outline-3">
+<h3 id="sec-2-5"><span class="section-number-3">2.5</span> Compression &ndash; how good is it? </h3>
+<div class="outline-text-3" id="text-2-5">
<p>
@@ -864,9 +895,9 @@ <h3 id="sec-1-5"><span class="section-number-3">1.5</span> Compression &ndash; h
</div>
-<div id="outline-container-1-6" class="outline-3">
-<h3 id="sec-1-6"><span class="section-number-3">1.6</span> Bugs? </h3>
-<div class="outline-text-3" id="text-1-6">
+<div id="outline-container-2-6" class="outline-3">
+<h3 id="sec-2-6"><span class="section-number-3">2.6</span> Bugs? </h3>
+<div class="outline-text-3" id="text-2-6">
<p>
@@ -890,9 +921,9 @@ <h3 id="sec-1-6"><span class="section-number-3">1.6</span> Bugs? </h3>
</div>
-<div id="outline-container-1-7" class="outline-3">
-<h3 id="sec-1-7"><span class="section-number-3">1.7</span> Links </h3>
-<div class="outline-text-3" id="text-1-7">
+<div id="outline-container-2-7" class="outline-3">
+<h3 id="sec-2-7"><span class="section-number-3">2.7</span> Links </h3>
+<div class="outline-text-3" id="text-2-7">
<ul>
@@ -915,9 +946,9 @@ <h3 id="sec-1-7"><span class="section-number-3">1.7</span> Links </h3>
</div>
-<div id="outline-container-1-8" class="outline-3">
-<h3 id="sec-1-8"><span class="section-number-3">1.8</span> License </h3>
-<div class="outline-text-3" id="text-1-8">
+<div id="outline-container-2-8" class="outline-3">
+<h3 id="sec-2-8"><span class="section-number-3">2.8</span> License </h3>
+<div class="outline-text-3" id="text-2-8">
<p>
@@ -971,7 +1002,7 @@ <h2 class="footnotes">Footnotes: </h2>
</div>
<div id="postamble">
-<p class="date">Date: 2011-12-09 14:59:08 EET</p>
+<p class="date">Date: 2012-08-27 12:38:12 EEST</p>
<p class="author">Author: Mihai Bazon</p>
<p class="creator">Org version 7.7 with Emacs version 23</p>
<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
View
@@ -5,6 +5,20 @@
#+AUTHOR: Mihai Bazon
#+EMAIL: mihai.bazon@gmail.com
+* NEW: UglifyJS2
+
+I started working on UglifyJS's successor, version 2. It's almost a full
+rewrite (except for the parser which is heavily modified, everything else
+starts from scratch). I've detailed my reasons in the README, see the
+project page.
+
+[[https://github.com/mishoo/UglifyJS2][https://github.com/mishoo/UglifyJS2]]
+
+Version 1 will continue to be maintained for fixing show-stopper bugs, but
+no new features should be expected.
+
+Please help me focus on version 2 by [[http://pledgie.com/campaigns/18110][making a donation]]!
+
* UglifyJS --- a JavaScript parser/compressor/beautifier
This package implements a general-purpose JavaScript

0 comments on commit 9b69218

Please sign in to comment.