https://github.com/mishoo/UglifyJS

sort by:
Revision Author Date Message Commit Date
ba9936a v2.4.24 22 July 2015, 13:58:09 UTC
905b601 Don't attempt to negate non-boolean AST_Binary Fix #751 22 July 2015, 13:55:55 UTC
63fb2d5 Merge pull request #735 from kzc/master optimizations for && and || where left side is constant expression 20 July 2015, 06:58:01 UTC
85a5fc0 Don't drop parens in a * (b * c). Close #744 30 June 2015, 07:10:29 UTC
9d398d9 spacing 14 June 2015, 21:45:19 UTC
f47b2b5 operator && and || optimization: add "else" before "if" as intended 14 June 2015, 21:44:26 UTC
fedb619 optimizations for && and || where left side is constant expression 12 June 2015, 03:22:38 UTC
5bf617e Merge pull request #733 from jcxplorer/add-mangle-regex-option Add --mangle-regex option 09 June 2015, 13:33:21 UTC
0b82e1c Change --mangle-regex to accept a full regex 09 June 2015, 12:14:41 UTC
9aef34a Show descriptive error when --mangle-regex is invalid 09 June 2015, 11:31:49 UTC
0ac6918 Add --mangle-regex option 09 June 2015, 11:16:50 UTC
c6fa291 v2.4.23 20 May 2015, 14:48:30 UTC
bce4307 Treat \uFEFF as whitespace. Fix #714 20 May 2015, 13:17:46 UTC
96ad94a v2.4.22 18 May 2015, 10:58:25 UTC
a5b6021 Fix compressing conditionals Only transform foo() ? EXP(x) : EXP(y) into EXP(foo() ? x : y) if EXP has no side effects. Fix #710 18 May 2015, 10:56:04 UTC
44fd669 fix again reserved props 13 May 2015, 19:03:00 UTC
e48db3a Make reserved names take priority over the name cache 07 May 2015, 12:01:16 UTC
e637bda Only drop the BOM when it's the first character. Close #704 05 May 2015, 07:11:38 UTC
d558abb v2.4.21 04 May 2015, 16:14:42 UTC
4aed083 Fix blank lines in the output. The issue was more obvious when max_line_len has a small value, rather than the default 32K characters. A blank line showed up after most statements. 04 May 2015, 14:55:42 UTC
d2dda34 Remove deprecated calls to utils.print/utils.error Close #542, #641, #647 04 May 2015, 12:07:16 UTC
c3a10c1 Avoid spurious brackets when dropping unused vars Fix #702 04 May 2015, 11:49:17 UTC
92e4340 Fix parsing strings with literal DOS newlines (should not set newline_before) Fix #693 23 April 2015, 09:08:19 UTC
7b22f20 If name_cache is specified, do rename cached properties (even if --mangle-props is not there) 22 April 2015, 14:34:49 UTC
3b14582 Fix tests 17 April 2015, 08:28:59 UTC
274e1b3 Drop NaN -> 0/0 transformation. Fix #687 17 April 2015, 08:26:36 UTC
de58b02 Added expect_exact for testing the OutputStream This works almost exactly like `expect`, except that you pass a literal string of which the result is compared with the generated output. 14 April 2015, 18:26:47 UTC
efea52a Normalize package.json. * Specify the files to install in package.json * Add missing properties * Follow `npm init`'s scheme 14 April 2015, 18:17:03 UTC
763bd36 Test on latest `node` and `io.js` Per https://github.com/mishoo/UglifyJS2/commit/0262b4244c13b3ef148bf096874847aea84b93e5 - if you're going to stop testing on 0.8, you should be testing on 0.12. Also allow failures on unstable nodes and "older than two latest" `io.js` versions, and enable "sudo: false" which makes tests run faster. 14 April 2015, 18:06:09 UTC
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
back to top