https://github.com/mishoo/UglifyJS

sort by:
Revision Author Date Message Commit Date
0552dbd v2.4.20 13 April 2015, 15:59:21 UTC
18c63ff Fix compression of conditionals Don't move the condition on the right side of an assignment when the left side may have side effects. Fix #677 13 April 2015, 14:29:48 UTC
e04ef56 Use the `before` visitor in mangle props (works around a bug in our tree walker which, while cloning nodes, breaks references between labeled statements and break/continue labels) 10 April 2015, 08:33:29 UTC
5d60484 More fixes for the breaking changes in yargs Close #670 05 April 2015, 10:20:22 UTC
3c846e6 Merge pull request #669 from galvanix/documentation-inSourceMap Document passing source maps directly to minify() using inSourceMap 04 April 2015, 12:29:03 UTC
2850dc6 Document passing source maps directly to minify() using inSourceMap 04 April 2015, 00:27:28 UTC
94205c3 v2.4.19 29 March 2015, 11:02:37 UTC
2ada34b Merge pull request #660 from ntkme/fix-long-options Fix long options 29 March 2015, 11:01:21 UTC
db396da Fix long options 29 March 2015, 11:00:42 UTC
0262b42 Disable testing with Node 0.8 29 March 2015, 10:19:07 UTC
73ca767 v2.4.18 29 March 2015, 10:15:27 UTC
3ec11c7 Update README 29 March 2015, 10:13:40 UTC
a79ff06 Merge branch 'propmangle' 29 March 2015, 09:50:43 UTC
43991f8 Add tool to extract property names 29 March 2015, 09:38:06 UTC
6b82069 Merge in more DOM properties. 24 March 2015, 11:59:57 UTC
276b9a3 Fix compressing `![foo()];` as a statement need to check whether the literal has any side effects before replacing that with `false`. 23 March 2015, 21:27:00 UTC
5801fa3 [sequencesize] Actually even better: do create the sequence even if the stat list is bigger than 2000 statements, but limit the sequence itself to 2000 expressions. Ref #414 22 March 2015, 11:02:45 UTC
f0ab1b0 Avoid sequencesize for more than 2000 statements. It hardly saves any bytes for a sequence so long, and it risks blowing the stack with the recursive Seq functions. Ref #414 22 March 2015, 10:51:15 UTC
36c28e0 Add start/end nodes for NaN/Infinity transformations 22 March 2015, 10:50:36 UTC
e1c3861 Export readDefaultReservedFile 22 March 2015, 09:04:28 UTC
ecfd881 Keep unused function arguments by default Discarding unused function arguments affects function.length, which can lead to some hard to debug issues. This optimization is now done only in "unsafe mode". Fix #121 20 March 2015, 08:28:51 UTC
81b7335 Don't use Object.create 19 March 2015, 10:54:43 UTC
bb010c2 tools/props.html: output complete JSON 19 March 2015, 08:10:01 UTC
03b6121 Add --reserve-domprops along with a default exclusion list in tools/domprops.json 18 March 2015, 10:10:21 UTC
3ef0923 Support multiple --reserved-file args 18 March 2015, 09:53:17 UTC
540c197 Bump yargs version (for .array arguments) 18 March 2015, 09:51:09 UTC
80d1c82 Fix parsing for U+2028 / U+2029 (they should be treated as whitespace) 18 March 2015, 08:11:37 UTC
d36faff Fix parsing for U+2028 / U+2029 (they should be treated as whitespace) 18 March 2015, 08:09:30 UTC
7c8c9b9 tools/props.html: use try/catch in a few more places 17 March 2015, 12:31:22 UTC
f5eeed7 Add tool to list DOM properties/methods 17 March 2015, 09:46:04 UTC
80cfd06 Export readNameCache / writeNameCache 17 March 2015, 08:05:49 UTC
aa45f65 rename --prop-cache to --name-cache ... and support storing there variable names as well, to help with multiple invocations when mangling toplevel. 16 March 2015, 11:16:30 UTC
0c80d21 Fix prop mangling Even if not “defined”, do mangle if name exists in the cache. 16 March 2015, 08:53:31 UTC
375c882 Fix --reserved-file 14 March 2015, 09:36:58 UTC
ea34301 Add property name mangler We only touch properties that are present in an object literal, or which are assigned to. Example: x = { foo: 1 }; x.bar = 2; x["baz"] = 3; x[cond ? "qwe" : "asd"] = 4; console.log(x.stuff); The names "foo", "bar", "baz", "qwe" and "asd" will be mangled, and the resulting mangled names will be used for the same properties throughout the code. The "stuff" will not be, since it's just referenced but never assigned to. This *will* break most of the code out there, but could work on carefully written code: do not use eval, do not define methods or properties by walking an array of names, etc. Also, a comprehensive list of exclusions needs to be passed, to avoid mangling properties that are standard in JavaScript, DOM, used in external libraries etc. 14 March 2015, 09:22:28 UTC
9de7199 v2.4.17 10 March 2015, 22:04:26 UTC
ae07714 Add filename to the JS_Parse_Error exception. It would be nice to have access to the filename of the file that includes the code that causes a JavaScript error. This is especially handy if uglifying multiple files at once. Only a small change is needed for this to happen as it's already available in the function that throws the error. 11 February 2015, 22:21:22 UTC
0e41a3f Add .npmignore 11 February 2015, 22:19:21 UTC
61e850c Clean up unit test breakage In 992b6b9fcce47ca67ecb14675f10b172ce7a99b5 unit test broke (which I missed). This was due to undeclared variables not being side-effects free. However, since they're really not side-effect free, just declare them in the test cases. 11 February 2015, 20:27:21 UTC
992b6b9 Fix invalid removal of left side in && and || compression See #637. This does not produce the optimal result, but it does prevent the removal of non-side-effect-free code. 11 February 2015, 20:08:41 UTC
7b71344 Parse regexes properly 11 February 2015, 17:29:15 UTC
605362f Drop all `console` statements properly Because the base reference can be an member expression as well, we have to dig a bit deeper to find the leftmost base reference. Fixes #451 31 January 2015, 12:24:44 UTC
fbbaa42 Add option to preserve/enforce string quote style `-q 0` (default) use single or double quotes such as to minimize the number of bytes (prefers double quotes when both will do); this is the previous behavior. `-q 1` -- always use single quotes `-q 2` -- always use double quotes `-q 3` or just `-q` -- always use the original quotes. Related codegen option: `quote_style`. Close #495 Close #460 Some `yargs` guru please tell me why `uglifyjs --help` doesn't display the help string for `-q` / `--quotes`, and why it doesn't output the expected argument types anymore, like good old `optimist` did. 27 January 2015, 20:26:27 UTC
099992e Keep single line comments after nlb, after nlb Fixes #583 26 January 2015, 11:11:52 UTC
d78ae20 Make empty source map values more reasonable in .minify() `"null"` isn't a very usable value. `JSON.parse(null)` also gives `null`, which makes this fully backwards compatible. Closes #616 26 January 2015, 11:07:44 UTC
5c02d65 fixes issue #621 SourceMap toString JSON format The correct format of a sourcemap is acquired from a mozilla source map generator by calling toJSON on this object. This patch alters the toString function on mozilla generators to print the format that is to spec instead of the generator's internal representation of itself. 24 January 2015, 08:33:02 UTC
d36067c Merge pull request #615 from avdg/unicode Give parser more unicode support 20 January 2015, 11:00:31 UTC
f1b2134 Add test 19 January 2015, 23:31:44 UTC
74cda80 Add unicode digit parsing support 19 January 2015, 23:17:24 UTC
9a3a848 Update unicode letter 19 January 2015, 23:17:03 UTC
a1a4c2a Optimize conditionals where the consequent and alternative are both booleans and not equivalent 13 January 2015, 17:27:21 UTC
189dbf0 Merge pull request #612 from rvanvelzen/issue-611 Replace the correct node when replacing in `void` sequences 12 January 2015, 16:18:55 UTC
42ecd42 Replace the correct node when replacing in `void` sequences Close #611. 12 January 2015, 16:09:34 UTC
a10f6a9 Merge pull request #482 from arty-name/inline-ng-inject added @ngInject support for inline functions 11 January 2015, 10:10:42 UTC
0d232a1 Merge pull request #606 from rvanvelzen/document-double-dash Document `--` for usage in CLI class 07 January 2015, 21:17:08 UTC
285bffd Document `--` for usage in CLI class Close #518 07 January 2015, 18:04:10 UTC
61c233a Fix make_node_from_constant for Regexp-s Close #588 07 January 2015, 09:20:04 UTC
d2d7164 aborts(AST_If) returns the `if` node Previously it returned the abort node from the alternative branch. This is not much use as it can be different from the one in the body branch (i.e. return vs. throw) and can trick us into issues like #591. Fix #591 06 January 2015, 12:01:35 UTC
f16033a Location fix for Mozilla AST start token. 06 January 2015, 10:32:41 UTC
ae5366a Track ending lines/columns; fix end locations in Mozilla AST. 06 January 2015, 10:32:41 UTC
6b23cbc AST_Do nodes: walk body before condition 06 January 2015, 10:29:07 UTC
7f9bc9e Pass mangle options to `figure_out_scope` and `compute_char_frequence` Fix #219. Because the options were not set and `toplevel` is `false` by default, some toplevel names would sometimes not be mangled correctly. 05 January 2015, 18:10:32 UTC
13219ce Fix handling \r\n Close #437 05 January 2015, 10:14:42 UTC
93a6e57 Declare boolean type for --keep-fnames 05 January 2015, 09:20:00 UTC
fe55e0d Merge branch 'keep-function-expression-names' of https://github.com/rvanvelzen/UglifyJS2 05 January 2015, 09:11:38 UTC
e1f0747 Support keep_fnames in compressor, and --keep-fnames. #552 Passing `--keep-fnames` will enable it both for compressor/mangler, so that function names will not be dropped (when unused) nor mangled. 05 January 2015, 09:03:13 UTC
e37b67d Add an option to prevent function names from being mangled See #552. This is mostly useful for having the actual function names in traces. 04 January 2015, 20:48:43 UTC
ad18689 using the original sourcemap as the base * Creates a new SourceMapGenerator based on a SourceMapConsumer: https://github.com/mozilla/source-map#sourcemapgeneratorfromsourcemapsourcemapconsumer 04 January 2015, 20:08:29 UTC
0f80b10 Resolve the relative path to lib files last This allows usage of UglifyJS on build systems which have a flat (or non-matching relative) directory structure for source files. 04 January 2015, 20:01:11 UTC
0d48af3 Add a "keep_fnames" option to the compressor to retain function expression names See #552. This is useful for stack traces. 04 January 2015, 19:14:38 UTC
4613644 passes in references to process and Buffer to silence ReferenceErrors 04 January 2015, 18:26:47 UTC
718e475 Fix backslashes in source-map paths on Windows 04 January 2015, 18:08:19 UTC
aa5dd15 Update README.md otions => options 04 January 2015, 15:01:53 UTC
5bff65c Use svg instead of png to get better image quality 04 January 2015, 14:58:00 UTC
24bc09b Fix #556 `\uFEFF` (ZERO WIDTH NO-BREAK SPACE) is removed when parsing, but was un-escaped for the output when `ascii_only` was false. When using UglifyJS multiple times (creating packages from minified sources, for example), this would lead to problems because the byte was removed when parsing for the second time. 04 January 2015, 14:01:55 UTC
37c17d5 Merge pull request #570 from rvanvelzen/fix-569 Fix #569 04 January 2015, 13:02:08 UTC
120948f Merge pull request #584 from clyfish/fix-base54 fix base54 04 January 2015, 13:00:23 UTC
66e6f0c Merge pull request #592 from micschro/patch-1 Fix max_line_len not working for JSON files 04 January 2015, 12:53:31 UTC
f7447ef Merge pull request #600 from KenPowers/master Use yargs instead of optimist. 04 January 2015, 12:52:02 UTC
f4d36a5 Fix #569 When no arguments are given to `new Function()`, it should be treated as a regular anonymous function (http://es5.github.io/#x15.3.2.1) 04 January 2015, 12:37:59 UTC
6d1c3e1 Use yargs instead of optimist. 01 January 2015, 06:04:54 UTC
73cc050 Merge pull request #599 from rvanvelzen/fix-597 Fix #597 31 December 2014, 12:18:31 UTC
c75f5a1 Fix #597 NaN and Infinity were replaced in the output generation, instead of during compression. This could lead to results where `1/0` was inserted without parens leading to invalid output. The nodes are replaced in the compression step now, and the output generation returns their regular names. This should not be a problem, since they're already only constructed from the original name. 31 December 2014, 11:23:00 UTC
39d8880 Fix max_line_len not working for JSON files As `maybe_newline()` is only called when `might_need_semicolon` is `true`, the `max_line_len` option has no effect for files without (or with very few) semicolons (like JSON files). A simple for this problem is to use `maybe_newline()` instead of `noop` as the `newline()` function in non-beautify mode. 17 December 2014, 15:31:03 UTC
5538ec7 v2.4.16 09 December 2014, 13:21:44 UTC
f101d64 Merge pull request #546 from jacobk/patch-1 Use uglify source map token names if missing 04 December 2014, 12:07:08 UTC
fe06fc8 fix base54 01 December 2014, 05:16:44 UTC
f36a1ea Add option to allow return outside of functions. Close #288 20 October 2014, 15:12:13 UTC
a64bdda Document `keep_fargs`. Close #557 28 September 2014, 09:36:36 UTC
01d19b4 Referencing a global is assumed to have side effects. Close #550 28 September 2014, 08:18:25 UTC
f0c1a01 Merge pull request #549 from Arnavion/unreferenced-catch-symbol Don't warn for an unreferenced exception symbol in a catch block. 13 September 2014, 06:29:34 UTC
7be680d Don't warn for an unreferenced exception symbol in a catch block. 13 September 2014, 04:01:19 UTC
57dab1e Merge pull request #541 from TalAter/conditional-improvements Conditional assignment of equivalent constants compressed ( x=y?1:1 --> x=1 ) 09 September 2014, 15:45:12 UTC
21b3c89 Use uglify source map token names if missing 09 September 2014, 11:02:50 UTC
fb0ec72 Compress conditions that have side effects using sequences 03 September 2014, 23:57:49 UTC
7971ed3 Added a test for else if 02 September 2014, 22:35:30 UTC
885835a Compress conditional assignments where all possible outcomes are equivalant and condition has no side effects 02 September 2014, 20:30:25 UTC
4c64554 Turn foo.new into foo["new"] when not --screw-ie8. Fix #534 26 August 2014, 07:11:01 UTC
548beeb Prevent error for Function(""). Close #538 20 August 2014, 06:16:34 UTC
e3066f9 Merge pull request #529 from RReverser/master Added example for usage with SpiderMonkey AST 04 August 2014, 20:05:29 UTC
back to top