[Pkg-javascript-commits] [uglifyjs] branch master updated (af451f5 -> 5e7bbf2)
Jonas Smedegaard
js at moszumanska.debian.org
Tue Apr 29 23:32:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a change to branch master
in repository uglifyjs.
from af451f5 Merge branch 'upstream'
new 9b6b3df Bump standards-version to 3.9.5.
new 43222a8 Update copyright file: Add alternate git URL.
new e419cdd Fix drop upstream parts of git-ignore file.
new c6a4f61 Update changelog, control file and copyright hints.
adds 7004741 Strip .gitignore file.
new f59061d git init (moved from a mercurial repo, but I don't care about previous history)
new d3fd47d minor
new 0f5aef0 fixed some issues with code generation; it's now hopefully complete.
new 141b5f2 added process_ast which mangles variable names and will eventually apply some optimizations to the AST to produce compressed/mangled output.
new f22f0d1 resolve simple binary ops on constants
new 2e4f5da mangling/compression finally works fine (compress itself, run the compressed version and we get identical output).
new 388277d fix parsing problem (only allow minus as part of the number when it's the first character)
new ff518bf allow function(){return} (no semicolon after return) when not in strict-semicolons
new c585bdb "new Foo;" should still insert an empty argument list
new b060d6a added "with" and "atom" generators for codegen
new 9e80e0e handle return with no arguments in codegen
new 1643ec1 fixed parsing conditionals (thanks Marijn!)
new 70a9e9b support "with" and "atom" in process_ast
new 315e128 minor
new 5a89d13 disorganized tests
new c1b1aa5 always add space between consecutive [+-] operators (handles "i + ++j").
new be26a86 add parens around called expression if not "name" or "dot" (should cover all cases)
new 4558de4 display empty blocks as "{}"
new 6fc4f36 minor
new 9cb7821 Better fix from the master programmer for some issues that I identified: http://marijn.haverbeke.nl/git/?p=parse-js;a=commit;h=2e09d491179be4a838e9435cdacfd7f1e84e9646
new 78eb4e6 better fix for "{return}" case (http://marijn.haverbeke.nl/git/?p=parse-js;a=blobdiff;f=src/parse.lisp;h=da8409d1e7078dea43c5c5de7ce5afcf1caf6562;hp=80438c39afad5ca5d5fc3fca35a13d3daae63de3;hb=732969c989144e56a74b51dea6b9e227a7e9d031;hpb=2e09d491179be4a838e9435cdacfd7f1e84e9646)
new 96c47bd fix for parsing ".1" (discard the dot from punc. chars)
new 99d4b8b minor
new ce318ce minor
new ce18e54 minor style changes
new bae53cf rewrote proper mangler/compressor (in process.js); revised code generator. It's now beating YUI compressor by 2.4KB (and by many long seconds :-p) on the DynarchLIB code.
new 3860ab8 some reorganization, some fixes (moved gen_code to process.js, handle consecutive var decls in switch blocks)
new 3a99226 minor
new b98d07a Fixed bug that showed up when processing jQuery: I was using the "token in KEYWORDS" construct everywhere, and it doesn't work well because jQuery defines a lot of variables using names that have some standard meaning in JS, such as "toString". "toString" in OBJECT will always evaluate to true, since all objects have a "toString" method, but it's not what we expect.
new 169da62 lots of other fixes while testing on jQuery:
new c9a7efa another fix: don't shadow a name that is referenced but not defined -- it's possibly a global defined elsewhere
new 5675154 dropping spurious brackets got back, but this time it's safer
new e6c1859 further optimizations for IFs:
new 2167f4f more optimization for IF statements
new ed0f081 comments + small cleanups
new 9026e22 minor
new 299ae5c added some documentation
new 5a1a2f0 README.org for github
new 8705783 symlink not good enough for github.
new c50512b README for github, take 3
new 6cb0104 fixed doc rendering for github
new d034913 minor doc changes (link to the Google Group)
new ee4ae7b links
new 190cf6f links
new 8806318 squeeze a few more bytes: if (!foo) bar(); else baz(); ==> foo ? baz() : bar();
new dbfa880 minor: transform !foo?bar():baz() ==> foo?baz():bar() for all conditionals (16 less bytes on DL and 3 on jQ :-p)
new c4a966a Fix for: http://github.com/mishoo/UglifyJS/issues#issue/2 --
new e3ccaf9 Allow unescaped slash character in literal regexps, when inside a character class.
new 8e77cfe we must add semicolon after do{...}while()
new 97ca763 newline after return shouldn't cause the next token to become the returned value: http://marijn.haverbeke.nl/git/?p=parse-js;a=commitdiff;h=894cf114437fbe23cb796a42be69e13cc0de6129;hp=bfddd819c0801ea66f375b3626d397849a71cffb
new 0188ecc maybe_before_semicolon no longer in use
new e3d3d1d add parens to "seq" in conditionals; fixed typo that caused this to break in "binary" as well.
new ba5bbe2 support for '2e-3' (http://github.com/mishoo/UglifyJS/issues#issue/4)
new 7f49791 newline normalization (http://github.com/mishoo/UglifyJS/issues#issue/7)
new a9e88c6 small fix (content of line comment tokens had the last char cut)
new f24fdf6 Multiline comments that contain a newline will trigger semicolon insertion (http://github.com/mishoo/UglifyJS/issues#issue/8)
new a3ba8ef when not in "strict semicolons", allow trailing comma in hash and array literals (http://github.com/mishoo/UglifyJS/issues#issue/9)
new 17cf220 add parens around "assign" when it's used as condition in the ?/: operator. (http://github.com/mishoo/UglifyJS/issues#issue/10)
new 4df9759 add parens around "seq" when used as constructor. (http://github.com/mishoo/UglifyJS/issues#issue/11)
new 436eba4 fixed again http://github.com/mishoo/UglifyJS/issues/issue/11/#comment_361674
new d910805 `new (X ? A : B)` → `new X?A:B` --- now fixed.
new 3cff513 Fixed parsing [^[ ... ] in regexp.
new 8201ca2 adding space before the colon in literal objects is now optional (beautify.space_colon, by default false)
new 577f7e0 minor cleanup
new 1398a9a some cleanups
new 3da76f9 removed old/unused files
new 81c6038 no more JSON.stringify to output strings
new 79a4c80 small script to call the uglifier/beautifier
new a554a69 add parens around "seq" when used as condition in the ?/: operator
new 496d35c minor improvement: if (!foo) bar(); else baz(); ==> if (foo) baz(); else bar();
new c05c1db minor: don't add parens around "binary" when used in combination with an operator of the same precedence that is: a+(b+(c+d)) ==> a+b+c+d
new 3db2083 reverted previous commit [ a-(b-c) was translated to a-b-c which is wrong ]
new 6ccdbc7 minor
new b99aefa block brackets are required in try/catch/finally (AST change: try/catch/finally now receive an array of statements, like "function")
new 80e4320 small cleanup
new a362966 add package.json for installation via npm
new 98176f7 some cleanups regarding "block" nodes -- and gained a few more bytes by properly adding the brackets *only* when really needed.
new 192096b Fixed bug when adding blocks to THEN clause:
new 45e86a2 fix: don't add a mangled name to anonymous functions
new f0da40a minor optimizations/experiments:
new 73898b1 minor fix gains another few hundred bytes on DL, Ymacs and jQuery. --seqs seems safe, so it's now default; use --no-seqs to disable it.
new 1c5ca3c default make_seqs => true
new 7ffacdb update docs
new fcafb26 fixed links
new 57ef537 no need to escape slashes in regexp, since we store the backslash as well
new 1a7834e fixed parsing for x++ / 5
new b3bddef minor
new 605fb8e escape \r and \f when in output strings
new 60ee8b2 parenthesize "dot" in "new" calls; sometimes this can add unnecessary parens, but it's safer (TODO: only add parens when necessary). Fixes:
new 92bc04c back to using JSON.stringify to output strings (still the safest variant)
new b8ad92d support "const"
new 284b919 fixed parsing 0xC1BDCEEE
new 6570252 fixed issue with mangling: http://github.com/mishoo/UglifyJS/issues#issue/17
new be3ab72 added option to mangle toplevel scope
new b5f7a12 minor improvements:
new 3ebf1a0 Handle EOF when reading blocks. http://github.com/mishoo/UglifyJS/issues#issue/19
new d7333fe minor fix for numbers
new dd0d3bf fixed again parsing unterminated blocks (handle EOF)
new f1aebc3 don't enforce for/do/while/switch in label_statement http://github.com/mishoo/UglifyJS/issues/closed#issue/20
new da2ca9a in fact, do check for do/for/while/switch after label, but only in "strict_mode"
new b4471e1 croak on try{} without catch{} and finally{}
new 4ff60e4 added --ast
new 33cdf4b when --ast is specified we should still go through all the requested tree processing
new 299bad6 "case" and "default" nodes no longer appear in the tree; instead, since they can only be branches in a switch, the AST for switch blocks now looks like this:
new 786a1d8 removed unused code
new ec41f0a added --overwrite to overwrite the original file
new a0582a3 Merge branch 'master' into macros
new ca5b39e remove final "break" statement in switch (only when unlabelled)
new 923ec5a some doc updates
new 1307ce5 allow regexp immediately after else
new ad34b71 allow a literal regexp to start a statement
new 315230b looks like comma-expressions should be explicitly forbidden in expressions of the "conditional" (?) operator. (cherry picked from commit c7b83e1be7628eac31ac4b289ee3cbc7d4122f30)
new aa0ba96 don't die on byte order mark at the beginning of files
new 7c40517 Accept operator &= http://github.com/marijnh/parse-js/commit/4cdced09ab375ad81f85dcaa5cf82b362a762b41
new 630237d disallow assignment to 'this' http://github.com/marijnh/parse-js/commit/77d1fa4694cb555431291000cc22db3498ad6ea1
new 9b8282b NaN is not a keyword http://github.com/marijnh/parse-js/commit/63f6632bcc9134ecad6bb0b18273e28f892dcb9b
new c10ea3f when parsing a function, reset in_loop to disallow break/continue
new 1a71081 mark 'i' as referenced in the current scope on "for (i in foo)"
new 77f2827 tighten try/catch/finally blocks
new c41857f ability to remove some dead code, and warn about it (ON by default):
new 19a5540 updated doc
new 9f2dd89 update doc
new 51b9627 fix for http://github.com/mishoo/UglifyJS/issues#issue/25
new 99ccc27 some cleanups/fixes that were figure out in the Lisp version [1]. Big speed improvement.
new c618ed6 when the condition in a conditional is a conditional, should add the parens (http://github.com/mishoo/UglifyJS/issues#issue/72)
new a206f93 don't quote object keys when they are integers
new 0111230 cut off a few more bytes by being a bit smarter about adding parens around function literals http://github.com/mishoo/UglifyJS/issues#issue/29
new 533d18d more cases to handle before discarding parens around function literals
new d4357e8 skip literal functions when detecting calls in "new" expression
new 4e01991 handle <<, >> and >>> when resolving binary operations
new 7bdccef should be safe not to force numbers in evaluating <<, >>, >>>
new 568da4f more accurately support numbers as keys in literal objects
new 48116b3 fixed regression (we always quoted object props)
new 26b651d fixed another regression (we always added parens in unary-prefix/postfix)
new a9770ea discarded other unnecessary parens -- before, !!b used to turn into !(!b)
new 862268a convert string properties to numbers where possible in literal objects
new 6757bc8 reverted previous commit (not such a good idea, as it changes semantics)
new ea2b579 fix parsing for 1e+2
new 72a8ffa in Node-0.3 "sys" has been renamed "util"
new 09b4201 minor
new fd629c8 version test for node was missing a leading `v` and was not compatible for all versions <0.3
new 1b010dc Merge branch 'master' of http://github.com/michaelficarra/UglifyJS
new 62f5950 make sure *this* is quoted
new ac7a4db reimplemented #28 in a sane way
new df702bb Merge branch 'master' of http://github.com/satyr/UglifyJS
new d59a614 sys = require("util") for node 0.3+
new bb3071c some cleanup
new 6bd7983 squeeze a few more bytes with an apparently safe transformation:
new 831bc79 Small note: we beat GCL on jQuery ;-) Should update the stats in the documentation.
new 3be3851 Added an easy way to create unittests and created units test for 16 of the fixed issues on github
new b513489 small change in handling the first comment (only keep the first X comments of the same style)
new 2c05d52 small change in the way the lib is loaded (officially named "uglify-js"; uglify-js.js should be symlinked in ~/.node_libraries/ and someone get this patch into node: http://groups.google.com/group/nodejs-dev/browse_thread/thread/fee52df63d3a1201/7da4897463cfbc9c#7da4897463cfbc9c)
new c76ac1a renamed uglify-js.js to index.js since it appears to be too complicated to get a simple bugfix into node (http://groups.google.com/group/nodejs-dev/browse_thread/thread/fee52df63d3a1201).
new 38f691e Add support for compressing 'a + "str1" + "str2" + b' to 'a+"str1str2"+b'
new 6c9936b Merge commit '38f691e'
new 899c9e1 minor optimization for if (foo) { ... return }
new 97f964a compress assignments more
new 01f9d66 Be even better with assignments
new 0ade80e Merge branch 'assignment' of http://github.com/WizKid/UglifyJS into wizkid-master
new 5f79498 compress assignments more
new 2d28aa7 Be even better with assignments
new 3de6acb Treat the first statement in a for-loop the same as a normal statement. So do seq with previous statements. Put together var and const declarations. And if it is empty move the last statement there
new 2b67f12 Add some more types to find_first_execute. Gives a few bytes on jquery and processingjs
new 5b093e1 whatever I'm commiting right now should just be a merge operation
new 230f452 Add a decompress step first so we don't have to add a lot of code to handle special cases around sequences and first statement in for-loops. But if you turn of make stuff in to sequences this can make the result be bigger. But it is so much easier to do stuff
new fda56da Move i++, ++i, i+=1 forward into the next statement if possible
new 891f0f5 Merge https://github.com/WizKid/UglifyJS into wizkid-master
new 1cbd34a Merge branch 'wizkid-master'
new 808a69c fixes issue #43 (restore regex_allowed after skipping a comment)
new 85a5d74 minor
new c93432b removed unused code
new 5c552d7 Make the package.json work when npm linking again
new 5451159 added --extra option, which will enable optimizations that we're not yet fully sure about (i.e. might alter code logic)
new 3fb2a84 fixed issue #50 and added test case. also:
new 831b1de Fix issue 48 where 0 and "" was treated as same and wrongful optimizations where done
new e41d6d0 Merge remote branch 'wizkid/master'
new ba1962a oops, fixed regression (var joining is safe, should be enabled by default)
new 62cd070 true => !0, false => !1 -- seems safe; this cuts 1K on DynarchLIB
new 831c2ab be smarter about negation: !(a == b) => a != b !(a && b) => !a || !b !(!a || !b) => a && b etc.
new dc3870b fixed issue #53: x = (y, z) should not discard the parens
new 43c585a foo.toString() ==> foo.""
new 6261a50 removed useless check
new 4d45bc8 disabled foo.toString() ==> foo+""; it's still available if you pass --unsafe to uglifyjs (or call ast_squeeze_more if you're using the JS API).
new d36abb0 Fixes printing printing small floating point numbers.
new 3865b73 minor (got rid of try/finally)
new ca9388d fix for issue #58
new e2e4d8b fixed issue #57 -- add block brackets around do/while in code like this:
new 2b802ab fixed issue #59 ("!--x" incorrectly yield "--x")
new 1f9c172 fixed issue #61: f((a, b)) was incorrectly rendered f(a, b)
new 54d46bb removed Node dependency from process.js (issue #60)
new 3184a1a fixed issue #62: properly handle negation such that:
new 9b619d1 got rid of JSON.stringify for writing strings; having our own function now, which counts the " or ' characters in the string and generates the smallest output.
new cd42c68 compress new Array(1, 2, 3) into [1,2,3]
new f98c5eb fixed regression: new Array(x) should be left as is.
new 8b7599d properly handle the case where Array exists in current scope:
new d0d0808 updated expected test result (broken since we added support for quoting with either " or ' depending on which one requires fewer backslashes)
new 2beccfd but then indeed, "new Array(x)" can be safely written "Array(x)" if we're talking about the global Array function.
new 145317b compress Array(1,2,3) into [1,2,3] too
new bd7780d updated doc to point out the potentially unsafe Array transformations
new e69bf38 doc fix
new 3f9b302 added an array mapping utility that allows us to push stuff at the top
new 4824f90 fixed issue #68: push function definitions to the top of the current scope block, when they are not inside some other block like a conditional. This is done in ast_mangle, so it's only available if mangling is enabled.
new d643f2a updated "expected" version for tests affected by the last change
new cd78ff5 fixed issue #69
new 4764baa fixed issue #70: for reasons unknown to humanity, you can have an unparenthesized literal regexp as a "case" expression.
new a21c720 switched to the simplified BSD license
new 617a3e7 support parsing getter/setter declarations in object literals (patch by Pavel Podivilov)
new 0cbd088 support mangling/squeezing/gen_code for getter/setters in object literals
new 9baf991 fixed comment
new cc2d15b issue #71 -- increment line count in multiline comments
new 50005c4 issue #72: (0).toString -> 0..toString
new a44d50d fixed parsing "5..toString()"
new 8e814c8 support [1,,3] (an array with 3 elements)
new 7248295 Added the ability to insert some newlines in the generated code (--max-line-len, default 32K). I've seen both FF and Chrome croak with weird errors when all code was on a single line of 670K (funnily enough, IE didn't complain)
new cc8bdc3 moved split_lines into the library code and exported it
new 5b2c91b Extend name mangling from base54 to base64 after first character. Provides better compression on libraries with a large number of variables. Example: DynarchLib compresses 571 bytes smaller (non-gzipped) or 212 bytes smaller (gzipped).
new ae50289 reversed the previous patch; the ideea was good, but implementation seems to be incorrect
new 30a0b41 fixed issue #77 -- endless recursion if the stream ends with ++/--
new d9e1783 remove bogus ~= operator and extra %= mention http://marijnhaverbeke.nl/git/?p=parse-js;a=commit;h=eb75e7e7f48fd317727229a23616bdf71a23c1fe
new 50a7d80 fixes #78 -- quote numeric property names when they're negative
new 5579816 don't call output.end() when we're writing to standard output
new 7951d98 semicolon removal less aggresive: {while();} must keep the semicolon, otherwise it introduces a syntax error
new 5ff30fe Employ the full parser, rather than just the tokenizer, for splitting lines (which is the only way we can deal with the "regexp starting a statement" syntax). Comments are now attached to the next token (.comments_before) rather than reported separately, which also simplified some code.
new a014e9e read --max-line-len argument as an integer
new bcc976f fixes #83 -- show a cleaner error when the input file isn't found
new 3c616d0 fixes #84 -- safer dealing with boolean expressions, at the expense of a few extra bytes :-(
new 2840c0a refs #84 -- consider a = !b a boolean expression too
new 7bb084c transform !(a?b:c) ==> !a?c:b
new 664e0cc minor optimizations:
new fa6626e oops, fixed regression: !(a?b:c) can't convert to !a?c:b
new c2a4319 fixed negating conditionals again :-\
new 37b4d56 fixes #86 -- dropped unsafe transformation
new fb2e980 mostly cosmetic change
new 02d7a2f - Removed --extra because of bugs in the optimizations. After the bugs are fixed I will move them into --unsafe so they get some testing. - Updated tests so all everything are green now
new 99560d1 removed unused code
new 8f78189 removed more unused code
new c1cfc3d fixes #65 -- moved the following transformations under --unsafe:
new ff1fea4 keep the first token in ast_walker, ast_add_scope and ast_mangle (useful for the case where we include the original token in the AST, see parse())
new 219f0c8 more embed_tokens: do lambdas too
new 234ced3 fixes #87 -- transform while(true){...} into for(;;){...}. Drop the block if it's empty.
new b32b6a1 but don't try to warn when the "unreachable code" is empty
new bf2cbf5 unstrict equals operator when operands share the same type
new 56c62d9 resolved conflict
new 5319c1b don't display warnings unless --verbose
new b02f2d0 fixes #94 -- drop names of inline functions when they aren't referenced anywhere
new 15604c4 slightly better fix, in case your inline function is named toString, hasOwnProperty or whatever.. :)
new 4ec73d3 More ignore rules
new 5eaa12f Reserved variable names option
new 57ee9e7 Merge branch 'master' of https://github.com/cadorn/uglify-js into cadorn-master
new 8638ae8 fixes #92 -- added --reserved-names command line argument (pass one or more names separated by a comma to exclude them from compression)
new 1cdb981 updated doc of ast_mangle (there was a small API change)
new a06a492 issue #96 -- added parser test suite, thanks to Peter van der Zee
new b876199 issue #96 (regular expression flags) -- accept any identifier character for regular expression flags (ES-262, 7.8.5)
new 7cdfabc support unicode chars in identifiers
new 687382e disabled some checks by default (they're enabled in strict_mode): - continue/break outside loop/switch - return outside of function - continue/break label not defined
new 4b29a26 treat ZWSP (zero-width space, U+200B) as whitespace
new 4c4f5af issue #96 -- support UnicodeEscapeSequence in names
new 4d23891 fixed some regexps
new 68ae5c3 minor
new d221da0 allow new Date++
new 7f9ddd4 allow call expressions to be lvalues too
new 3114abe don't check whether the left side is assignable, unless strict_mode == true
new aeccb64 support funny cases of for-in:
new 9760b79 renamed variable "strict_mode" to "exigent_mode", to avoid confusion with ES5's "use strict;" (which, for the time being, we don't care about).
new f378f63 reverted 687382e4d2f55401483e6823cb814d7c9cab5dbc and updated testparser.js to use valid code.
new a908752 fixes #99
new cc9e94d warn when "conditional comments" are encountered
new de80c97 add an ascii_only option to gen_code
new bb033d4 added --ascii option, useful to encode non-ASCII characters as \uXXXX. apply this to literal object property names and identifiers too.
new 3d10686 updated gen_code API description
new a55ed6f transform a["123"] into a[123] (fixes #107)
new 3b1eee2 only add a second dot in forms like (5).toFixed() if the number is integer. That is, the correct transformation for (0.9).toFixed() is .9.toFixed() (fixes #109)
new a1e5e94 fixed parsing for stuff like 0x12.toFixed() (when we have 0x, the dot cannot be part of the number)
new 9357003 removed duplicated operator
new 361951f fixes #117 -- don't parenthesize literal objects
new ca2bcfd add parens around object literal when used as first thing in a statement
new bf46f2b fix more pathological cases of parens around literal object
new 1eecae3 again: it can be first thing in a statement when in unary-prefix too...
new 55ddee9 more parens around literal objects/functions when first thing in a statement [ will this end? :-) ]
new 175b4cb handle conditional operator too
new 852122c NPM changes
new 9c4fbf4 comments (fixes #120)
new 4a99084 Support unicode newlines in make_string (make uglifyjs work for the Dragonfly project).
new 0fa93d2 Merge branch 'master' of https://github.com/chriskr/UglifyJS into chriskr-master
new 317d2bb fixes issue #129 -- initializers in var/const cannot be seq-s (parens needed)
new 56972f9 only defuns define a new name in the current scope; named lambdas seem that should not affect it. (fixes #128)
new 84b85fa better fix for issue #128:
new 6e751ef support "splice" node, which is like "block" but doesn't add the brackets in gen_code
new 6e89f5b added a sample on how to use the parser/walker to instrument some code
new e83767e embed tokens in expr_atom and expression parsers too
new b5d994a add brackets around splice nodes when they're directly under "for", "for-in", "if", "while", "do" or "with" nodes
new f0e1ec2 make the module exports a convenience function so minifying src with the defaults is just a one-lininer: min = require('uglify-js')(src);
new 8f4fe4c Merged pull request #133 from aaronblohowiak/master.
new d469517 Added option to define symbols for replacement (cf #define) and improved constant folding for shortcut operators ('&&', '||' and ternary conditional operator)
new df17381 Implemented --define-from-module constant substitution.
new 70cb9ee Merged pull request #137 from tav/master.
new 5bedabe can't optimize away do{ ... }while(false) - fixes #150
new a303476 options.defines is optional..
new d021ad8 Adds missing whitespace characters to WHITESPACE_CHARS
new 86a1d8d Merge pull request #149 from killdream/master
new 7c535e6 simple "make" utility. ideas welcome.
new d03ac93 v1.0.2 -- fixes #152
new b01fa40 newline after continue/break ends the statement (fixes #154)
new 068454a minor
new ae88177 mangled name of a function expression should not clash with a name in the parent scope, in order to deal with a 15 years-old IE bug. (fixes #161)
new 4473b36 version 1.0.3
new 9472f4f More sane unit testing script
new b3ed515 Merge commit '9472f4ff19e0daf3adb7fdb0304ab77f19d3cc52'
new 9053435 Compress ifs further
new b17d1b6 small cleanup
new e0926ab Failing test cases for name mangling
new 6217aab fixed mangling of lambda names (regressed as of ae88177)
new 440d08f version 1.0.4
new 6a873a7 fixed regression after ae88177fde6a7e54b047: mangling the name of function expressions might clash with an identifier that's already in scope if eval/when is in use.
new 59233a3 give unary postfix ops the right precedence (fixes #173)
new 8337656 added --inline-script option to escape `</script`, by popular demand
new d8435a4 updated doc
new 11566e7 version 1.0.5
new 8207ba9 minor (`</script` needs escape only if followed by `>` or whitespace)
new 8b2afcb Only a subset of whitespace characters is problematic after `</script`, so use `[\t\n\f\r ]` instead of `\s`.
new b763f4a `</script/` is problematic, too.
new 9d2fcbb Merge pull request #177 from mathiasbynens/master
new 4d5d1bb support deprecated OctalEscapeSequence in strings (fixes #178)
new 5a75e1e Added a failing test for with statements.
new f5c6f63 Merge pull request #179 from eirikurn/master
new 968c804 fixed compression of `with` statements (regressed at 9053435497e6ab53b100ead72aa399e48f3df8c3)
new 89f1330 version 1.0.6
new 9210f7e parenthesize seq values in object literals (fixes #180)
new 941c845 discard backslashed literal newlines in strings (fixes #183)
new 5221a35 Added ast_lift_variables, which does a little more than its name says:
new 115abc6 attempt to group assignments into the var declaration added --lift-vars to bin/uglifyjs options
new 4cfe602 minor
new db495a3 more solid check need of semicolons after the last statement of a block. small cleanup in gen_code (using ast_walker now).
new 5ee3b60 Easy yet safe optimization. Saves 119b on jQuery.
new 48cc9be Updated readme. Follow @UglifyJS on Twitter. ;-)
new 90ac6dd no point to keep initialization values in var/const in unreachable code
new 80afe6f mangle label names (fixes #151)
new 3cd9829 more fixes:
new 7f89bab Compatibility with the JScript engine, which doesn't support the \v escape sequence
new b5d9e39 Merge pull request #199 from thorn0/patch-1
new 0c67f57 moved Array ==> [] transforms in squeeze-more (so they now apply on `--unsafe`)
new 01a83b4 parameter start arrives 'undefined' or 'null', any falsy value should be zero
new a3c14f7 Merge pull request #200 from johnjbarton/01a83b461f541898cb4b2f9ef033245c1a7ee18b
new 8fff849 Fix tests broken after 3cd9829a
new b6575ef Merge pull request #202 from lautis/fix-broken-tests
new 43c21c7 Merge branch 'master' of github.com:mishoo/UglifyJS
new 25d02fb updated doc
new 5f2528a exit with code 1 in case of error (fixes #204)
new 6c4a19f version 1.0.7
new fce7830 fixed parsing in exigent_mode + embed_tokens (fixes #208)
new cd41e5a merged cade4f252e5f4db715d9 from @schmerg, other minor doc updates
new d891e2d fixed codegen for `(function(){...}()) && bar()`.
new d823384 Added an utility that allows walking depth-first easily. For example:
new 42bbd03 fixed rendering of extremely "large" negative numbers (fixes #214)
new b6de527 err, fixed again negative numbers. (#214)
new 71f32c4 Constant fold modulo operator.
new 07041f7 Merge pull request #220 from proxv/master
new 87d8f58 Fix sparse array literals e.g. [,]
new 1e7cd25 Merge pull request #216 from jasondavies/sparse-arrays
new 39093f4 compile `a=a+b` to `a+=b` and so on
new 83d1c85 put the assignment types into an array literal instead of stringsplit
new 7677944 Merge pull request #230 from thejh/assign-to-modifyassign
new dda958a support empty "then" IF branch in codegen
new ff46b80 fix for parsing regexps like /=/ where statement is expected
new 1b94161 Add syntax error on newline after 'throw'
new f12f00e add parens around literal object as statement (fixes #234)
new a46a85b Parenthesize sequences in constructor calls.
new 4481a82 Merge pull request #232 from proxv/master
new de91bd2 Merge branch 'master' of github.com:mishoo/UglifyJS
new 4c3d5b9 fixed removal of `if (false) { ... }`
new 3e5f5b4 Added null as a constant.
new 2d3e317 Merge pull request #235 from josephg/patch-1
new e967213 fixed issue #112: `_ == true` -> `_ == 1` and similar
new bdf9fe5 Merge branch 'issue112' of https://github.com/michaelficarra/UglifyJS into michaelficarra
new 8be7668 Parenthesize object literals with no properties.
new 4158510 Merge pull request #237 from proxv/parenthesize-no-prop-object-literals
new 926331b Merge branch 'master' of github.com:mishoo/UglifyJS
new 5fce8a3 Better parser error message for node
new 617353c Merge pull request #172 from 5long/master
new 0bb798b semicolons
new bf136c0 in fact, new Error().stack is enough to get a stacktrace
new 6d79555 Recognize various Unicode whitespace
new e57aadc Merge pull request #211 from lautis/unicode-whitespace
new 41c1754 Merge branch 'master' of github.com:mishoo/UglifyJS
new e82887b try negation in make_conditional (closes #227)
new a476f45 Encode null characters as '\0'
new ad7bfc4 Merge branch 'encode-nulls' of https://github.com/lautis/UglifyJS into lautis
new a02bb16 version 1.1
new 66506c4 fixed version for NPM
new 1721863 Parenthesize function expressions.
new 3dc988b Merge branch 'parenthesize-function-expressions' of https://github.com/proxv/UglifyJS into tmp
new 48d2fe7 Don't insert semicolons before multi-line strings.
new 120ed08 Merge pull request #238 from proxv/multiline-strings-semicolons
new 72ddf7d keep literal newlines in strings as \n
new 5ba19b3 reverted last patch
new f896f69 fix parenthesization of anonymous function calls
new 3a67143 better fix instead of f896f690500f11130435c495a7b1eaf9338c59dd
new 60fef22 negating >= and <= operators is back to --unsafe (closes #239)
new 7805e1d add final semicolon (closes #126)
new 565ee79 version 1.1.1
new 8459929 use == instead of === in `member` (fixes #244)
new 4f97733 escaped slash character in regexp
new e751e36 String(a) => a+"" (with --unsafe)
new 8c50b79 at most one ';' at EOF
new 662e846 some cleanup
new 1b81b9b Unsafe Object constructor transformations:
new 8bdc996 Merge pull request #263 from ikokostya/object
new dd7f9b8 Use a different scope for labels than for variables.
new 2ee365b Fixed parse error position: start line number and column number from 1.
new 9d4d768 Merge pull request #258 from ikokostya/fix-error-pos
new f74e6bc Keep end position of each token
new 00a7beb Merge pull request #248 from WolfgangKluge/endpos-in-tokens
new 7decebf fixes embed_tokens for functions (#260)
new 311c590 new RegExp() => RegExp() (with --unsafe)
new 4987ee3 new Error() => Error() (with --unsafe)
new b9cd98a Unsafe: new Function() => Function()
new 03f2a85 option to prevent mangling or dropping of function names (#267)
new 58d3600 updated doc
new 4b71a9e version 1.2
new 3800c29 made npm happy
new 28ceb22 don't walk label statements twice (closes #272)
new 29815b0 version 1.2.1
new 1ab6d41 walk label statement *after* mangling it (really fixes #272)
new 4675bca v1.2.2
new e51d1e4 support `debugger` statement (closes #278)
new a0dcd85 improved redo_if (closes #283)
new 08f6e1a v1.2.3
new 84553e7 Fixed #286: Only one variable declaration allowed in for..in loop
new dc5a7d1 Check abort else statement in make_real_if() when t[0] is "stat"
new 186aba5 Remove whitespace in #! line
new 0f8e7b8 Merge pull request #291 from isaacs/patch-1
new a60a831 v1.2.4
new 5a0095f Merge branch 'master' into abort-else
new fb1ba80 Test the local instead of the installed version.
new c963cf4 Merge pull request #295 from WolfgangKluge/master
new 0c84b2c handle null constant (closes #299)
new f5f3870 v1.2.5
new b8c7715 avoid parens for getter/setters (closes #301)
new 82a8934 make 2 symbol variable names range bigger (from 2862 to 3402)
new 08a8fcb avoid double-parens on calls on function expressions (fixes #313)
new dbd3a4c output literal TABs in strings (fixes #318)
new cab739c fix parsing `x = {}/1` (closes #320)
new dfb9a63 Consolidate null, Boolean, and String values
new de93f64 Merge pull request #327 from RGustBardon/master
new a967161 Fix issues #162 and #271
new 09680f7 Merge pull request #328 from RGustBardon/fix-162-and-271
new 51cda54 Implement the idea from issue #325
new cd8e0c7 Merge pull request #329 from RGustBardon/implement-325
new b969f45 v1.2.6
new 1f5949c support "use-strict" as a statement (refs #339)
new ec9d1be Improved strict mode support
new 5ae3187 Don't bother save/restoring in_directives
new 37aed3a Merge pull request #345 from mal/master
new 666a915 add semicolon after debugger statements if necessary (closes #353)
new 5d05477 add tests for issue 353
new e4ca86b Merge pull request #355 from proxv/debugger-semicolon-insertion
new 1fa8288 fix expected output for issue14 test to have literal tab instead of escaped tab
new 8ab7275 Merge pull request #356 from proxv/fix-failing-test
new b0f8876 make note of newlines in comments for ASI purposes (closes #349)
new f970de7 Merge pull request #357 from proxv/handle-comment-newlines
new 1f0c34d add nodeunit devDependency and add 'npm test' script to package.json
new 255c39e require local version of uglify instead of global
new d7398ac move consolidator tests to test/ dir and run them via 'npm test'
new b4f2111 add npm-debug.log to .gitignore
new 51194bf Merge pull request #358 from proxv/package-improvements
new 66fc6f5 fix consolidator to use new 'directive' AST node
new 9183ede Merge pull request #359 from proxv/fix-consolidator
new e635913 Apply ascii only option to regexps
new 521bb0f Merge pull request #369 from mal/ascii-regex
new f5419ec Squashable directives
new f944cbf Adding tests for squeezing directives
new 45f044f fix parsing 1e5..toFixed(5)
new 8ec0341 don't generate double-dot for 10000..toFixed(5)
new 04451f3 Fix make for newer versions of node
new 14dfd83 Merge pull request #373 from mal/master
new 24e0108 Merge branch 'master' of github.com:mishoo/UglifyJS
new 67e6163 avoid some double-parens
new 50ee352 Allow defines even when not mangling.
new e06dc6a Merge pull request #342 from int3/master
new 0040110 Revoke #368 and fix issue #383 to make jQuery tests pass
new b259613 Merge pull request #384 from RGustBardon/fix-383
new 133b36f Implement #368 (too many parentheses)
new 301d37b Merge pull request #385 from RGustBardon/implement-368
new c37094e Fix for issue #386
new ef4d776 Merge pull request #387 from rvanvelzen/master
new 0c936e0 when the statement of a for is not empty, check if it requires semicolon
new 4072f80 Optimize list of digits for generating identifiers for gzip compression.
new f834ec6 Merge pull request #397 from rvanvelzen/optimize_gzip
new 59ce11d Undo commit 133b36f54d0e8f78fc649e99983798bf05445b18
new b5037ad Fix issues #222 and #324
new e77ecaa Merge branch 'fix-222-and-324' of https://github.com/RGustBardon/UglifyJS into RGustBardon-fix-222-and-324
new 4a259ae propagate newline_before for comment tokens (fixes #398)
new 4e53bf1 when --unsafe, replace "foo".toString() with "foo", rather than "foo"+""
new 2fe0dc7 Add base54 digits override for unit tests.
new 8ddc3db Merge pull request #400 from proxv/override-digits-in-tests
new e520658 Also descend arg AST nodes in ast_squeeze function-call handler
new d88a799 Merge pull request #401 from proxv/ast-squeeze-call
new 2adb251 v1.3.0
new b689d52 ast_mangle should, well, mangle by default. (fixes #404)
new 5f5e7c2 also don't mangle function names if !options.mangle (#404)
new e87718e fix options for ast_mangle
new 5acf636 Remove unnecessary "+" sign in SignedInteger
new 46f0610 Merge pull request #407 from RGustBardon/1e+21
new e90dbc9 Remove NOT in IfStatement with EmptyStatement (-s)
new 4c72a63 Merge pull request #408 from RGustBardon/if-not
new 0cf0022 Fix representation of infinite values
new 2679409 Merge pull request #410 from RGustBardon/infinite
new 7c15135 cleaner fix for 0/0, 1/0, -1/0 (issue #410)
new a3fcb0d minor --make stuff
new ad80428 v1.3.1
new d3473bc add the space in “return λ” and similar cases
new 20f1dc3 v1.3.2
new 058748f revert f5419ec2d6b7e341f99a1f09a63ff6b6a0e3fc95 (squashable directives)
new 8062092 emacs vars
new 8872e3a added separate step to discard redundant directives
new 5d401d9 fix for redundant directives in same scope
new 18b3991 "sys" → "util"
new 8188f1b be wary of some conditional operators in lift_variables (fixes #435)
new 81adc84 fix --lift-vars for "for(var i; ...)" (var declared in for but uninitialized)
new fecadfe Fix issue #431
new c9aae35 Merge pull request #432 from rvanvelzen/fix-431
new 09511bd v1.3.3
new de2c36d I'm officially switching to 4-space indentation.
new 9b69218 add note about UglifyJS 2.0
new b3bd55f Fix division with regexp as right generating invalid code.
new d51853e Merge pull request #458 from rvanvelzen/div-with-regexp
new 8602447 discard all \uFEFF characters (close #462)
new 194cd4b disallow newlines in strings (fix #463)
new 5bec756 Added an example of how to use the `defines` option (see #281)
new cc1bde2 Fixed syntax
new 437232e Merge pull request #343 from spadgos/patch-1
new f34a662 Reverting "discard all \uFEFF characters (close #462)" Revert "discard all \uFEFF characters (close #462)"
new 25310d5 treat \uFEFF as whitespace
new a90b334 v1.3.4
new 7218ffc Fix broken calls of complex binary expressions [#471]
new 14398af add note about the NPM package, which switched to v2
new 9501219 drop the pledgie link
new ef660f1 v1.3.5
new 222825b Imported Upstream version 1.3.5
new d643d81 Merge tag 'upstream/1.3.5'
new f23acbf Stop track md5sum of upstream tarball: Compare tarball against upstream git commits instead.
new 907742b Relax to depend unversioned on nodejs: Only supported releases exist in Debian now.
new 5e7bbf2 Prepare for release: Update changelog, control file and copyright hints.
The 547 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.
Summary of changes:
.gitignore | 6 ------
README.html | 22 +++++++++++++---------
README.org | 11 +++++++----
debian/changelog | 17 +++++++++++++++++
debian/control | 4 ++--
debian/control.in | 4 ++--
debian/copyright | 1 +
debian/copyright_hints | 23 +++++++++--------------
debian/rules | 1 -
lib/process.js | 5 ++++-
package.json | 2 +-
test/unit/compress/expected/issue471.js | 1 +
test/unit/compress/test/issue471.js | 1 +
13 files changed, 58 insertions(+), 40 deletions(-)
create mode 100644 test/unit/compress/expected/issue471.js
create mode 100644 test/unit/compress/test/issue471.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list