ed80b4a | Mihai Bazon | 20 August 2013, 14:45:52 UTC | Move support for `negate_iife` in the compressor, rather than code generator (the code generator doesn't maintain enough context to know whether the return value is important or discarded) Fixes #272 | 20 August 2013, 14:45:52 UTC |
4f09df2 | Mihai Bazon | 19 August 2013, 07:21:08 UTC | Merge pull request #270 from michaelficarra/GH-259 fixes #259: don't unnecessarily quote object properties when --screw-ie8 | 19 August 2013, 07:21:08 UTC |
d9ad3c7 | Michael Ficarra | 19 August 2013, 00:45:06 UTC | fixes #259: don't unnecessarily quote object properties when --screw-ie8 | 19 August 2013, 00:45:06 UTC |
6ea3f7f | Mihai Bazon | 08 August 2013, 06:15:13 UTC | fix usage | 08 August 2013, 06:15:13 UTC |
4c4dc21 | Mihai Bazon | 07 August 2013, 09:04:58 UTC | Don't drop unused setter argument. Fix #257 | 07 August 2013, 09:04:58 UTC |
4aa4b3e | Mihai Bazon | 07 August 2013, 08:43:47 UTC | Support `-p relative`. Fix #256 | 07 August 2013, 08:43:47 UTC |
2604aad | Forbes Lindesay | 01 August 2013, 04:51:09 UTC | Add support for browserify | 07 August 2013, 08:21:30 UTC |
964d5b9 | Mihai Bazon | 04 August 2013, 18:44:17 UTC | Don't pretend to evaluate lambdas Fix #255 | 04 August 2013, 18:44:17 UTC |
b7adbca | Mihai Bazon | 30 July 2013, 09:16:29 UTC | Fix #251 | 30 July 2013, 09:16:29 UTC |
3435af4 | Mihai Bazon | 28 July 2013, 08:11:11 UTC | Don't require arguments to --enclose | 28 July 2013, 08:11:11 UTC |
41c6273 | Mihai Bazon | 25 July 2013, 15:08:36 UTC | Reverting "added option for dropping unused params" Revert "added option for dropping unused params" (turns out we already had the `unused` option for this.) This reverts commit e54df2226f7f3887d2f850cea8caf5c0353dce00. | 25 July 2013, 15:08:36 UTC |
e54df22 | Dusan Bartos | 25 July 2013, 13:32:21 UTC | added option for dropping unused params | 25 July 2013, 14:37:47 UTC |
b1febde | David Glasser | 16 January 2013, 19:59:19 UTC | Fix output for arrays whose last element is a hole: [1,,] 1529ab96 started to do this (by considering holes to be separate from "undefined") but it still converted [1,,] (length 2, last element hole, trailing comma) to [1,] (length 1, trailing comma) Unfortunately the test suite doesn't really make this clear: the new test here passes with or without this patch because run-tests.js beautifys the expected output (in "make_code"), which does the incorrect transformation! If you make some manual change to arrays.js to make the test fail and see the INPUT and OUTPUT, then you can see that without this fix, [1,,] -> [1,], and with this fix it stays [1,,]. | 18 July 2013, 12:39:22 UTC |
193049a | Mihai Bazon | 15 July 2013, 08:59:23 UTC | Revert previous patch, it was no good. | 15 July 2013, 08:59:23 UTC |
4a0bab0 | Mihai Bazon | 15 July 2013, 08:27:11 UTC | Add "position" option to parser, to specify initial pos/line/col (for parsing embedded scripts) | 15 July 2013, 08:27:11 UTC |
9243b0c | Mihai Bazon | 14 July 2013, 10:24:09 UTC | Apply transformer to AST_VarDef's name Fix #237 | 14 July 2013, 10:24:09 UTC |
fc9ba32 | Mihai Bazon | 12 July 2013, 06:56:58 UTC | Fix typo. Close #239 | 12 July 2013, 06:56:58 UTC |
d0689c8 | Mihai Bazon | 28 June 2013, 07:08:13 UTC | Reset the base54 counters every time minify is called. Close #229 | 28 June 2013, 07:08:13 UTC |
02a8438 | Mihai Bazon | 07 June 2013, 09:51:23 UTC | Don't swap binary ops when "use asm" is in effect. Refs #167 | 07 June 2013, 09:52:09 UTC |
a4889a0 | Mihai Bazon | 03 June 2013, 18:10:14 UTC | Merge pull request #220 from lautis/escape-null Escape null characters as \x00 | 03 June 2013, 18:10:14 UTC |
f29f07a | Ville Lautanala | 03 June 2013, 17:18:42 UTC | Escape null characters as \x00 Since \0 might be mistakenly interpreted as octal if followed by a number and using literal null is in some cases interpreted as end of string, escape null as \x00. | 03 June 2013, 17:46:42 UTC |
188e28e | Mihai Bazon | 23 May 2013, 20:42:32 UTC | v2.3.6 | 23 May 2013, 20:42:32 UTC |
2df4892 | Mihai Bazon | 22 May 2013, 18:30:54 UTC | Merge pull request #213 from mattrobenolt/patch-1 SourceMapping pragma has changed to //# | 22 May 2013, 18:30:54 UTC |
9fc6796 | Mihai Bazon | 22 May 2013, 18:22:14 UTC | Add `negate_iife` option to the code generator. See discussion in a9511dfbe5c0d96d8cacb87582aa9a19737bbb98 | 22 May 2013, 18:22:14 UTC |
9fc8a52 | Mihai Bazon | 22 May 2013, 10:08:19 UTC | Set "global" on undeclared SymbolDef-s | 22 May 2013, 10:08:19 UTC |
3a21861 | Matt Robenolt | 21 May 2013, 14:50:21 UTC | The extra /* */ isn't needed now | 21 May 2013, 14:50:21 UTC |
1dbffd4 | Matt Robenolt | 21 May 2013, 14:46:27 UTC | SourceMapping pragma has changed to //# See: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit The spec was updated on May 16th since `//@` was causing some issues with IE. | 21 May 2013, 14:46:27 UTC |
22a038e | Mihai Bazon | 20 May 2013, 05:27:37 UTC | Fix output of statement: `new function(){...};` Close #209 | 20 May 2013, 05:27:37 UTC |
f652372 | Mihai Bazon | 19 May 2013, 11:25:05 UTC | v2.3.5 | 19 May 2013, 11:25:05 UTC |
ad1fc3b | Mihai Bazon | 19 May 2013, 11:24:33 UTC | Fix package.json (use `repository` instead of `repositories`) | 19 May 2013, 11:24:33 UTC |
2b40a5a | Mihai Bazon | 15 May 2013, 10:27:40 UTC | v2.3.4 | 15 May 2013, 10:27:40 UTC |
ca3388c | Mihai Bazon | 15 May 2013, 10:27:23 UTC | Add `--expr`, an option to parse a single expression (suitable for JSON) | 15 May 2013, 10:27:23 UTC |
caa8896 | Mihai Bazon | 14 May 2013, 15:36:31 UTC | Only compress code in `new Function` if all arguments are strings. | 14 May 2013, 15:36:31 UTC |
d13aa39 | Mihai Bazon | 14 May 2013, 08:33:28 UTC | v2.3.3 | 14 May 2013, 08:33:28 UTC |
f64539f | Mihai Bazon | 14 May 2013, 07:47:06 UTC | Compress code passed to `new Function` if it's a constant. Only for `--unsafe`. Close #203 | 14 May 2013, 07:47:06 UTC |
d56ebd7 | Mihai Bazon | 14 May 2013, 07:41:28 UTC | Fix a["1_1"] Close #204 | 14 May 2013, 07:42:34 UTC |
3edfe7d | Mihai Bazon | 10 May 2013, 09:56:24 UTC | Merge pull request #202 from nschonni/add-travis-ci Add CI build for supported Node versions | 10 May 2013, 09:56:24 UTC |
7f77eda | Mihai Bazon | 09 May 2013, 05:58:55 UTC | v2.3.2 | 09 May 2013, 05:58:55 UTC |
a9511df | Mihai Bazon | 09 May 2013, 05:58:47 UTC | Use the negation hack rather than parens for a toplevel function expression call (only in !beautify mode) | 09 May 2013, 05:58:47 UTC |
064e7aa | Mihai Bazon | 09 May 2013, 05:44:24 UTC | Fix is_assignable (not likely to be noticed, it's only used in `strict` parse mode) | 09 May 2013, 05:44:24 UTC |
46814f8 | Nick Schonning | 09 May 2013, 03:48:12 UTC | Add Travis build badge to README | 09 May 2013, 03:48:12 UTC |
4a19802 | Nick Schonning | 09 May 2013, 03:42:06 UTC | Add CI build for supported Node versions | 09 May 2013, 03:42:06 UTC |
1e9f98a | Trey Griffith | 08 May 2013, 19:29:46 UTC | add a test for zero-length string in is_identifier_string, which is used in property compression. Also added a test exercising the change. | 08 May 2013, 19:43:20 UTC |
11e24d5 | Mihai Bazon | 08 May 2013, 19:37:48 UTC | Fix property names Close #199 | 08 May 2013, 19:37:48 UTC |
0f509f8 | Mihai Bazon | 08 May 2013, 13:45:36 UTC | v2.3.1 | 08 May 2013, 13:45:36 UTC |
a6ed2c8 | Mihai Bazon | 08 May 2013, 13:22:39 UTC | Better fix for equality of typeof ... against "undefined" | 08 May 2013, 13:22:48 UTC |
a1958aa | Justin Lau | 05 May 2013, 12:38:32 UTC | Fixed typeof undefined optimization and updated related test case to accomodates the sort behaviour changes made in commit mishoo/UglifyJS2@aebafad41eab48f43ed649ce8c77e8f1528b50da. Signed-off-by: Justin Lau <justin@tclau.com> | 08 May 2013, 13:22:48 UTC |
6726996 | Justin Lau | 05 May 2013, 11:54:27 UTC | Added test cases for #104. Signed-off-by: Justin Lau <justin@tclau.com> | 08 May 2013, 13:22:48 UTC |
645d5bd | Mihai Bazon | 08 May 2013, 12:51:52 UTC | Merge pull request #195 from kjbekkelund/typo Fix typo in bin and readme | 08 May 2013, 12:51:52 UTC |
9af2bbf | Justin Lau | 05 May 2013, 18:45:41 UTC | Fixed dot properties not optimizing unicode identifiers. Signed-off-by: Justin Lau <justin@tclau.com> | 07 May 2013, 11:20:19 UTC |
fcd544c | Justin Lau | 05 May 2013, 17:26:33 UTC | Added test scenario with unicode in properties name. Signed-off-by: Justin Lau <justin@tclau.com> | 05 May 2013, 17:26:33 UTC |
1e3bc0c | Justin Lau | 05 May 2013, 14:27:43 UTC | Fixed dot property issue with invlid identifier names. Signed-off-by: Justin Lau <justin@tclau.com> | 05 May 2013, 14:27:43 UTC |
8227e87 | Justin Lau | 05 May 2013, 14:08:13 UTC | Added scenario in test case where properties shouldn't be accessed with dotted syntax even with screw_ie8 option. Signed-off-by: Justin Lau <justin@tclau.com> | 05 May 2013, 14:08:13 UTC |
790b3bc | Kim Joar Bekkelund | 02 May 2013, 09:15:33 UTC | Fix typo in bin and readme | 02 May 2013, 09:15:33 UTC |
d6e6458 | Mihai Bazon | 01 May 2013, 14:04:01 UTC | Merge pull request #194 from ulikoehler/master Add README syntax highlighting | 01 May 2013, 14:04:01 UTC |
a54b670 | Uli Köhler | 01 May 2013, 13:56:20 UTC | Add README syntax highlighting | 01 May 2013, 13:56:20 UTC |
8e62661 | Mihai Bazon | 01 May 2013, 10:15:34 UTC | Take two. v2.3.0 | 01 May 2013, 10:15:34 UTC |
5c22a1b | Mihai Bazon | 01 May 2013, 10:14:07 UTC | v2.3 | 01 May 2013, 10:14:07 UTC |
9794ebf | Mihai Bazon | 29 April 2013, 12:03:52 UTC | Workaround for missing `prefix` in UnaryExpression generated by Esprima See #193 | 29 April 2013, 12:03:52 UTC |
68394ee | Mihai Bazon | 21 April 2013, 08:35:50 UTC | Make compress/mangle disabled by default, as before 5af144522a6fea302abdd0b63d48864de0664207 | 21 April 2013, 08:35:50 UTC |
753b4b6 | Mihai Bazon | 21 April 2013, 08:30:02 UTC | Merge pull request #191 from michaelficarra/use-es5-member-access-with-screw-ie use dotted member access when --screw-ie8 option given | 21 April 2013, 08:30:02 UTC |
a9c1b9f | Mihai Bazon | 21 April 2013, 08:28:45 UTC | Merge pull request #190 from michaelficarra/patch-1 unbalanced parentheses in readme | 21 April 2013, 08:28:45 UTC |
5af1445 | Michael Ficarra | 20 April 2013, 20:11:05 UTC | fixes #189: use dotted member access when --screw-ie8 option given | 20 April 2013, 20:11:05 UTC |
483e0ca | Michael Ficarra | 20 April 2013, 19:05:52 UTC | unbalanced parentheses in readme | 20 April 2013, 19:05:52 UTC |
4b81805 | Roman Bataev | 04 April 2013, 02:34:38 UTC | Fix typeof evaluation for regex and function | 04 April 2013, 02:34:38 UTC |
b956e5f | Roman Bataev | 04 April 2013, 02:34:19 UTC | Add tests for typeof evaluation | 04 April 2013, 02:34:19 UTC |
37d7cb8 | Vladimir Zhuravlev | 31 March 2013, 13:55:11 UTC | Quote objects with numeric keys | 31 March 2013, 16:52:28 UTC |
2b8e206 | Mihai Bazon | 31 March 2013, 10:38:02 UTC | fix package.json | 31 March 2013, 10:38:02 UTC |
a869b85 | Mihai Bazon | 31 March 2013, 10:35:29 UTC | Don't use \xYY for identifiers Fix #173 | 31 March 2013, 10:36:22 UTC |
81f5efe | Andreas Lind Petersen | 31 March 2013, 09:07:31 UTC | Output, to_ascii: Escape non-ascii chars with \xnn instead of \unnnn whenever possible. | 31 March 2013, 10:36:22 UTC |
69dde04 | Andreas Lind Petersen | 31 March 2013, 09:51:43 UTC | uglifyjs binary: Make read_whole_file async and don't attempt to read STDIN synchronously. | 31 March 2013, 10:36:22 UTC |
7628bca | Mihai Bazon | 25 March 2013, 16:05:44 UTC | Merge pull request #163 from mzgol/screw-oldie renamed --screw-ie to --screw-oldie, documented it in README.md, indicat... | 25 March 2013, 16:05:44 UTC |
75f0bbe | Michał Gołębiowski | 25 March 2013, 15:11:07 UTC | renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it doesn't break IE9+ | 25 March 2013, 16:03:21 UTC |
478bf4d | Jake Harding | 01 March 2013, 05:21:14 UTC | Add support for enclose option. Closes #139. | 24 March 2013, 09:11:23 UTC |
e0f67ba | Mihai Bazon | 23 March 2013, 22:57:35 UTC | Don't print the warning on parse error, just throw a JS_Parse_Error. Fix #159 | 23 March 2013, 22:57:35 UTC |
b14d3df | Mihai Bazon | 22 March 2013, 16:02:08 UTC | Keep legit code working even when --screw-ie is not passed. Previously: Without `--screw-ie`, UglifyJS would always leak names of function expressions into the containing scope, as if they were function declarations. That was to emulate IE<9 behavior. Code relying on this IE bug would continue to work properly after mangling, although it would only work in IE (since other engines don't share the bug). Sometimes this broke legitimage code (see #153 and #155). With `--screw-ie` the names would not be leaked into the current scope, working properly in legit cases; but still it broke legit code when running in IE<9 (see #24). Currently: Regardless of the `--screw-ie` setting, the names will not be leaked. Code relying on the IE bug will not work properly after mangling. <evil laughter here> Without `--screw-ie`: a hack has been added to the mangler to avoid using the same name for a function expression and some other variable in the same scope. This keeps legit code working, at the (negligible, indeed) cost of one more identifier. With `--screw-ie` you allow the mangler to name function expressions with the same identifier as another variable in scope. After mangling code might break in IE<9. Oh man, the commit message is longer than the patch. Fix #153, #155 | 22 March 2013, 16:04:46 UTC |
24e58ee | Mihai Bazon | 13 March 2013, 08:36:55 UTC | Merge pull request #125 from devongovett/master Allow inSourceMap option to be a generated JSON source map | 13 March 2013, 08:36:55 UTC |
9b1a40d | Mihai Bazon | 13 March 2013, 07:44:06 UTC | Support mangling toplevel names Close #127 | 13 March 2013, 07:44:06 UTC |
e4b078c | Mihai Bazon | 10 March 2013, 22:04:31 UTC | Disable `unsafe` by default Close #147 | 10 March 2013, 22:04:31 UTC |
3bd7ca9 | Mihai Bazon | 06 March 2013, 06:17:09 UTC | Merge pull request #146 from mbostock/read-all-stdin Read the entire STDIN. | 06 March 2013, 06:17:09 UTC |
f83aca6 | Mike Bostock | 06 March 2013, 04:35:49 UTC | Read the entire STDIN. The problem with reading synchronously from /dev/stdin is that you can get a spurious EOF when the input buffer is empty, even if more content is coming. Now STDIN is read from a loop, and only stops polling when all input has been read. This fixes #70 #85 and other errors related to parsing large files on STDIN. | 06 March 2013, 04:35:49 UTC |
aebafad | Mihai Bazon | 04 March 2013, 08:06:01 UTC | Fix reordering comparisons Close #143 | 04 March 2013, 08:06:01 UTC |
26746ce | Mihai Bazon | 02 March 2013, 12:28:34 UTC | Add `--screw-ie` option For now the implication is that UglifyJS will not leak a function expression's name in the surrounding scope (IE < 9 does that). (ref. mishoo/UglifyJS#485) | 02 March 2013, 12:28:34 UTC |
dac6efb | Mihai Bazon | 01 March 2013, 11:12:03 UTC | Drop last `default:` if it's the last branch and empty Close #141 | 01 March 2013, 11:12:03 UTC |
8880f48 | Mihai Bazon | 01 March 2013, 08:26:06 UTC | Compress boolean constants after evaluation Close #137 | 01 March 2013, 08:26:06 UTC |
cb0c576 | Mihai Bazon | 22 February 2013, 11:58:16 UTC | Add license Close #131 | 22 February 2013, 11:58:16 UTC |
3a591c4 | Mihai Bazon | 19 February 2013, 16:12:19 UTC | Fix compressing `do {...} while (false)` It's not safe to transform it to {...} because the body might contain `break`. The solution could be more elaborate (detect if body contains `break`) but I don't think it's worth the trouble. Close #129 | 19 February 2013, 16:12:19 UTC |
db66eca | Mihai Bazon | 14 February 2013, 10:51:13 UTC | v2.2.5 | 14 February 2013, 10:51:13 UTC |
f276745 | Devon Govett | 10 February 2013, 18:06:13 UTC | Allow inSourceMap to be a generated JSON source map instead of just a file name | 10 February 2013, 18:06:13 UTC |
916faf0 | Mihai Bazon | 06 February 2013, 09:57:59 UTC | Force space after literal regexp when used in "instanceof" or "in" Close #118 | 06 February 2013, 09:57:59 UTC |
f36e4e9 | Mihai Bazon | 06 February 2013, 09:51:09 UTC | Give up evaluating (unary-prefix '-' 0) Close #117 ------ JS, WHY YOU SUCK SO BADLY? ;-( | 06 February 2013, 09:51:09 UTC |
fdf8b5e | Mihai Bazon | 06 February 2013, 09:38:29 UTC | Fix parens for NaN Close #116 | 06 February 2013, 09:38:29 UTC |
de7ec7f | Mihai Bazon | 06 February 2013, 09:36:04 UTC | Fix parens for negative numbers Close #115 | 06 February 2013, 09:36:04 UTC |
3c8a0bd | Mihai Bazon | 06 February 2013, 09:28:49 UTC | Fix parens for AST_New Close #114 | 06 February 2013, 09:28:49 UTC |
9e8ba27 | Mihai Bazon | 06 February 2013, 09:15:31 UTC | Fix handling of constants Close #113 | 06 February 2013, 09:15:31 UTC |
719a8fd | Mihai Bazon | 05 February 2013, 17:10:33 UTC | Ugly hack to print comments before return/throw statements Close #112 | 05 February 2013, 17:11:39 UTC |
3a22e91 | Mihai Bazon | 04 February 2013, 07:44:31 UTC | Merge pull request #111 from mattrobenolt/safer-sourcemap Wraps sourceMappingURL in a multiline comment. Fixes #108 | 04 February 2013, 07:44:31 UTC |
a9af2c9 | Matt Robenolt | 04 February 2013, 00:01:01 UTC | Wraps sourceMappingURL in a multiline comment. Fixes #108 | 04 February 2013, 00:01:01 UTC |
31e99ce | Mihai Bazon | 01 February 2013, 11:31:28 UTC | v2.2.4 | 01 February 2013, 11:32:15 UTC |
a5b2094 | Mihai Bazon | 26 January 2013, 12:24:54 UTC | Fix end token for Assign nodes | 01 February 2013, 11:32:15 UTC |