Age | Commit message (Expand) | Author |
2016-06-19 | Respect quote style in object literals...The option added in fbbaa42ee55a7f753f7cab9b1a905ccf73cf26d5 wasn't
being respected inside object literals, so quoted property names would
still be stripped out with this option.
This is mostly a corner-case, but useful when the output is passed to
something like the Closure compiler, where quoted property names can be
used to prevent mangling.
| Shrey Banga |
2016-06-19 | Don't mix strings with directives in output... * Don't interpret strings with escaped content as directive
* Don't interpret strings after empty statement as directive
* Adapt output to prevent strings being represent as directive
* Introduce UGLIFY_DEBUG to allow internal testing like EXPECT_DIRECTIVE
| Anthony Van de Gejuchte |
2016-06-12 | Re-add parens after new expression in beautify mode | Anthony Van de Gejuchte |
2016-06-12 | Stop dropping args in new expressions | Anthony Van de Gejuchte |
2016-06-12 | Escape null characters as \0 unless followed by 0-7. | David Bau |
2016-06-08 | Fix uglify attempting to rewrite invalid new expressions | Anthony Van de Gejuchte |
2016-05-04 | Retain comments before AST_Constants during mangle. | kzc |
2016-03-24 | Escape all ASCII control characters within strings when using ascii_only....Fixes #1017.
Tab characters within strings are now output as `\t` in all output modes.
| kzc |
2016-03-14 | Fix: Uglified Number.prototype functions on big numbers | philippsimon |
2016-01-19 | Add some tests for comment-filters through api...Also never bother comment options to filter comment5/shebang comments
as they have their custom filter.
| Anthony Van de Gejuchte |
2015-11-12 | Fix output for "use asm" code from SpiderMonkey AST...(will only work properly if the SM tree contains "raw" properties for
Literal number nodes)
| Mihai Bazon |
2015-11-11 | Rework has_directive...It's now available during tree walking, i.e. walker.has_directive("use
asm"), rather than as part of the scope. It's thus no longer necessary
to call `figure_out_scope` before codegen. Added special bits in the
code generator to overcome the fact that it doesn't inherit from
TreeWalker.
Fix #861
| Mihai Bazon |
2015-10-28 | Allow specification beautify options in tests...Caught an error in #847 as well - `output` wasn't passed anywhere which led to an exception. `options` was available though.
| Richard van Velzen |
2015-10-27 | fixes #845: \v escaping should be restricted to "screw_ie8" mode | Michael Ficarra |
2015-10-20 | Fix #836 | Fábio Santos |
2015-10-15 | Make_string was missing \v and wasnt reversing vertical tabs even though read... | startswithaj |
2015-10-13 | Fix other operator output related to <!-- or --> | kzc |
2015-10-12 | Only encode <!-- and --> in strings when inline_script | Mihai Bazon |
2015-10-12 | Output `-- >` instead of `-->` in expressions. Escape `<!--` and `-->` within... | kzc |
2015-10-07 | Fix handling of "use asm" when no command line flags are passed to uglifyjs. ... | kzc |
2015-10-07 | Add proper support for "use asm"; blocks. Disable -c optimization within "use... | kzc |
2015-10-06 | Implement shebang support | Anthony Van de Gejuchte |
2015-07-30 | Fix semicolon printing when restricting max line length...Fixes #755
| Richard van Velzen |
2015-05-04 | 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.
| Mihai Bazon |
2015-01-27 | 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.
| Mihai Bazon |
2015-01-26 | Keep single line comments after nlb, after nlb...Fixes #583
| Anthony Van de Gejuchte |
2015-01-04 | 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.
| Richard van Velzen |
2015-01-04 | Merge pull request #592 from micschro/patch-1...Fix max_line_len not working for JSON files | Richard van Velzen |
2014-12-31 | 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.
| Richard van Velzen |
2014-12-17 | 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. | micschro |
2014-07-18 | Fix parens for AST_Undefined...Do the same as for AST_Unary, since we output undefined as `void 0`.
Reported at https://github.com/mishoo/UglifyJS2/issues/338#issuecomment-48858341
| Mihai Bazon |
2014-07-01 | Check for the case an AST_For's init is an EmptyStatement...(lame fix for #503)
| Mihai Bazon |
2014-04-27 | Actually, even better. #475...- also handle x = + ++y, x = - --y;
- don't use parens, a space suffices.
| Mihai Bazon |
2014-04-27 | Better fix for #475 | Mihai Bazon |
2014-04-27 | Fix parens in +(+x). Close #475 | Mihai Bazon |
2014-01-26 | Merge branch 'master' of github.com:mishoo/UglifyJS2 | Mihai Bazon |
2014-01-26 | Move unescaping regexps under a codegen option (`unescape_regexps`) | Mihai Bazon |
2014-01-25 | Don't unescape \x00 in regexes (it breaks IE8) | Daniel Stutzman |
2014-01-21 | More chars that cannot be unescaped in regexps. | Mihai Bazon |
2014-01-19 | Don't unescape byte order marks in regexps | Ville Lautanala |
2014-01-18 | Don't unescape \x2f (slash) in regexps. #54 | Mihai Bazon |
2014-01-10 | simplify | Mihai Bazon |
2014-01-10 | Unescape Unicode sequences in regexps when ascii_only is false. #54 | Mihai Bazon |
2014-01-05 | Fix parens for property access -- (foo, bar)["baz"] | Mihai Bazon |
2013-12-18 | Better fix for comments in AST_Exit...Close #374
| Mihai Bazon |
2013-12-18 | Take out all comments from an AST_Exit's value...Fix #372
| Mihai Bazon |
2013-10-30 | Workaround for Safari bug...Close #313
| Mihai Bazon |
2013-10-30 | Fix parsing setters/getters (allow keywords for name)....The "key" property was always "set" or "get", which didn't make much sense.
Now it'll be the actual name of the setter/getter (AST_Node), and the
AST_Accessor object itself, which represents the function, won't store any
name.
Close #319
| Mihai Bazon |
2013-10-30 | Fix output for `x = 2 * (a % b / b * c)`...(issue #337)
| Mihai Bazon |
2013-10-29 | Add "preamble" output option...Close #335
| Mihai Bazon |