Commit Graph

  • ca3388cf5a Add --expr, an option to parse a single expression (suitable for JSON) Mihai Bazon 2013-05-15 13:27:23 +03:00
  • caa8896a8a Only compress code in new Function if all arguments are strings. Mihai Bazon 2013-05-14 18:36:31 +03:00
  • d13aa3954d v2.3.3 v2.3.3 Mihai Bazon 2013-05-14 11:33:28 +03:00
  • f64539fb76 Compress code passed to new Function if it's a constant. Mihai Bazon 2013-05-14 10:47:06 +03:00
  • d56ebd7d7b Fix a["1_1"] Mihai Bazon 2013-05-14 10:41:28 +03:00
  • 3edfe7d0ee Merge pull request #202 from nschonni/add-travis-ci Mihai Bazon 2013-05-10 02:56:24 -07:00
  • 7f77edadb3 v2.3.2 v2.3.2 Mihai Bazon 2013-05-09 08:58:55 +03:00
  • a9511dfbe5 Use the negation hack rather than parens for a toplevel function expression call Mihai Bazon 2013-05-09 08:58:47 +03:00
  • 064e7aa1bb Fix is_assignable Mihai Bazon 2013-05-09 08:44:24 +03:00
  • 46814f88d9 Add Travis build badge to README Nick Schonning 2013-05-08 23:48:12 -04:00
  • 4a19802d0c Add CI build for supported Node versions Nick Schonning 2013-05-08 23:42:06 -04:00
  • 1e9f98aa51 add a test for zero-length string in is_identifier_string, which is used in property compression. Also added a test exercising the change. Trey Griffith 2013-05-08 15:29:46 -04:00
  • 11e24d53a1 Fix property names Mihai Bazon 2013-05-08 22:37:48 +03:00
  • 0f509f8336 v2.3.1 v2.3.1 Mihai Bazon 2013-05-08 16:45:36 +03:00
  • a6ed2c84ac Better fix for equality of typeof ... against "undefined" Mihai Bazon 2013-05-08 16:22:39 +03:00
  • a1958aad56 Fixed typeof undefined optimization and updated related test case to accomodates the sort behaviour changes made in commit mishoo/UglifyJS2@aebafad41e. Signed-off-by: Justin Lau <justin@tclau.com> Justin Lau 2013-05-05 20:38:32 +08:00
  • 672699613e Added test cases for #104. Signed-off-by: Justin Lau <justin@tclau.com> Justin Lau 2013-05-05 19:54:27 +08:00
  • 645d5bdbc5 Merge pull request #195 from kjbekkelund/typo Mihai Bazon 2013-05-08 05:51:52 -07:00
  • 9af2bbffde Fixed dot properties not optimizing unicode identifiers. Signed-off-by: Justin Lau <justin@tclau.com> Justin Lau 2013-05-06 02:45:41 +08:00
  • fcd544cc10 Added test scenario with unicode in properties name. Signed-off-by: Justin Lau <justin@tclau.com> Justin Lau 2013-05-06 01:26:33 +08:00
  • 1e3bc0caa0 Fixed dot property issue with invlid identifier names. Signed-off-by: Justin Lau <justin@tclau.com> Justin Lau 2013-05-05 22:27:43 +08:00
  • 8227e8795b 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> Justin Lau 2013-05-05 22:08:13 +08:00
  • 790b3bcdc6 Fix typo in bin and readme Kim Joar Bekkelund 2013-05-02 11:15:33 +02:00
  • d6e6458f68 Merge pull request #194 from ulikoehler/master Mihai Bazon 2013-05-01 07:04:01 -07:00
  • a54b6703c0 Add README syntax highlighting Uli Köhler 2013-05-01 15:56:20 +02:00
  • 8e6266136d Take two. v2.3.0 v2.3.0 Mihai Bazon 2013-05-01 13:15:34 +03:00
  • 5c22a1bdf5 v2.3 v2.3 Mihai Bazon 2013-05-01 13:14:07 +03:00
  • 9794ebf88c Workaround for missing prefix in UnaryExpression generated by Esprima Mihai Bazon 2013-04-29 15:03:52 +03:00
  • 68394eed93 Make compress/mangle disabled by default, as before 5af144522a Mihai Bazon 2013-04-21 11:35:50 +03:00
  • 753b4b6cc8 Merge pull request #191 from michaelficarra/use-es5-member-access-with-screw-ie Mihai Bazon 2013-04-21 01:30:02 -07:00
  • a9c1b9f138 Merge pull request #190 from michaelficarra/patch-1 Mihai Bazon 2013-04-21 01:28:45 -07:00
  • 5af144522a fixes #189: use dotted member access when --screw-ie8 option given Michael Ficarra 2013-04-20 15:11:05 -05:00
  • 483e0cadfb unbalanced parentheses in readme Michael Ficarra 2013-04-20 14:05:52 -05:00
  • 4b818056cf Fix typeof evaluation for regex and function Roman Bataev 2013-04-03 22:34:38 -04:00
  • b956e5f1d9 Add tests for typeof evaluation Roman Bataev 2013-04-03 22:34:19 -04:00
  • 37d7cb8565 Quote objects with numeric keys Vladimir Zhuravlev 2013-03-31 20:55:11 +07:00
  • 2b8e206fec fix package.json Mihai Bazon 2013-03-31 13:38:02 +03:00
  • a869b854fa Don't use \xYY for identifiers Mihai Bazon 2013-03-31 13:35:29 +03:00
  • 81f5efe39a Output, to_ascii: Escape non-ascii chars with \xnn instead of \unnnn whenever possible. Andreas Lind Petersen 2013-03-31 11:07:31 +02:00
  • 69dde0462b uglifyjs binary: Make read_whole_file async and don't attempt to read STDIN synchronously. Andreas Lind Petersen 2013-03-31 11:51:43 +02:00
  • 7628bcac01 Merge pull request #163 from mzgol/screw-oldie Mihai Bazon 2013-03-25 09:05:44 -07:00
  • 75f0bbe6e8 renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it doesn't break IE9+ Michał Gołębiowski 2013-03-25 16:11:07 +01:00
  • 478bf4dbdd Add support for enclose option. Closes #139. Jake Harding 2013-02-28 21:21:14 -08:00
  • e0f67baf2d Don't print the warning on parse error, just throw a JS_Parse_Error. Mihai Bazon 2013-03-24 00:57:35 +02:00
  • b14d3df3d2 Keep legit code working even when --screw-ie is not passed. Mihai Bazon 2013-03-22 18:02:08 +02:00
  • 24e58ee70c Merge pull request #125 from devongovett/master Mihai Bazon 2013-03-13 01:36:55 -07:00
  • 9b1a40dfc3 Support mangling toplevel names Mihai Bazon 2013-03-13 09:44:06 +02:00
  • e4b078cff7 Disable unsafe by default Mihai Bazon 2013-03-11 00:04:31 +02:00
  • 3bd7ca9961 Merge pull request #146 from mbostock/read-all-stdin Mihai Bazon 2013-03-05 22:17:09 -08:00
  • f83aca65b7 Read the entire STDIN. Mike Bostock 2013-03-05 20:35:49 -08:00
  • aebafad41e Fix reordering comparisons Mihai Bazon 2013-03-04 10:06:01 +02:00
  • 26746ce316 Add --screw-ie option Mihai Bazon 2013-03-02 14:28:34 +02:00
  • dac6efb43d Drop last default: if it's the last branch and empty Mihai Bazon 2013-03-01 13:12:03 +02:00
  • 8880f4824c Compress boolean constants after evaluation Mihai Bazon 2013-03-01 10:26:06 +02:00
  • cb0c576bdd Add license Mihai Bazon 2013-02-22 13:58:16 +02:00
  • 3a591c43fe Fix compressing do {...} while (false) Mihai Bazon 2013-02-19 18:12:19 +02:00
  • db66eca958 v2.2.5 v2.2.5 Mihai Bazon 2013-02-14 12:51:13 +02:00
  • f2767452e6 Allow inSourceMap to be a generated JSON source map instead of just a file name Devon Govett 2013-02-10 10:06:13 -08:00
  • 916faf0a48 Force space after literal regexp when used in "instanceof" or "in" Mihai Bazon 2013-02-06 11:57:59 +02:00
  • f36e4e9a78 Give up evaluating (unary-prefix '-' 0) Mihai Bazon 2013-02-06 11:51:09 +02:00
  • fdf8b5eb71 Fix parens for NaN Mihai Bazon 2013-02-06 11:38:29 +02:00
  • de7ec7f1b7 Fix parens for negative numbers Mihai Bazon 2013-02-06 11:36:04 +02:00
  • 3c8a0bdff4 Fix parens for AST_New Mihai Bazon 2013-02-06 11:28:49 +02:00
  • 9e8ba27dcd Fix handling of constants Mihai Bazon 2013-02-06 11:15:31 +02:00
  • 719a8fd102 Ugly hack to print comments before return/throw statements Mihai Bazon 2013-02-05 19:10:33 +02:00
  • 3a22e917de Merge pull request #111 from mattrobenolt/safer-sourcemap Mihai Bazon 2013-02-03 23:44:31 -08:00
  • a9af2c9e62 Wraps sourceMappingURL in a multiline comment. Fixes #108 Matt Robenolt 2013-02-03 16:01:01 -08:00
  • 31e99cebe7 v2.2.4 v2.2.4 Mihai Bazon 2013-02-01 13:31:28 +02:00
  • a5b209470c Fix end token for Assign nodes Mihai Bazon 2013-01-26 14:24:54 +02:00
  • e9a571b2a1 Merge pull request #94 from paulmillr/patch-1 Mihai Bazon 2013-01-31 23:50:59 -08:00
  • 8bf83f42ea Merge pull request #106 from gibson042/105 Mihai Bazon 2013-01-24 05:51:33 -08:00
  • 522566ea80 Fix #105: property comparison to undefined is not always safe Richard Gibson 2013-01-23 23:52:04 -05:00
  • 297af47c89 Add --source-map-url option Mihai Bazon 2013-01-20 12:32:07 +02:00
  • faa354f5ca [AST_Hole] the print function can be a no-op. Mihai Bazon 2013-01-17 11:16:55 +02:00
  • 1529ab965a Fix output for arrays containing undefined values. David Glasser 2013-01-16 14:59:19 -05:00
  • 605f330e69 Merge pull request #98 from ForbesLindesay/patch-1 Mihai Bazon 2013-01-17 01:08:59 -08:00
  • f0909bdc8f Handle String() with no arguments. Mihai Bazon 2013-01-17 11:01:38 +02:00
  • c13e7e621d Update installation instructions re #4 Forbes Lindesay 2013-01-17 00:13:42 +00:00
  • ad071f8017 Add better fromstring docs. Paul Miller 2013-01-13 18:45:43 +02:00
  • c058d8b9cd Merge pull request #90 from jakearchibald/patch-1 Mihai Bazon 2013-01-08 14:21:25 -08:00
  • 1d8871a092 Compressor options use underscores rather than hyphens Jake Archibald 2013-01-08 12:33:58 -08:00
  • 16953c2064 v2.2.3 v2.2.3 Mihai Bazon 2013-01-04 22:50:53 +02:00
  • 6b14f7c224 Fix handling of labels in nested scopes Mihai Bazon 2013-01-04 14:17:33 +02:00
  • 130c623be7 Support output, mangle and compress options to UglifyJS.minify. Mihai Bazon 2013-01-04 11:24:29 +02:00
  • 47c9895d59 Merge pull request #87 from BenoitZugmeyer/master Mihai Bazon 2013-01-03 02:28:35 -08:00
  • ba403331c5 Set --version as a boolean #87 Benoît Zugmeyer 2013-01-03 11:22:37 +01:00
  • e82e89d1b0 --version option Benoît Zugmeyer 2013-01-03 11:06:07 +01:00
  • 83a4ebfedc Implement -m sort=true Mihai Bazon 2013-01-02 12:39:00 +02:00
  • 9916d0e547 Accept string or number as name of an accessor. Mihai Bazon 2012-12-22 01:24:04 +02:00
  • 31c4a37e37 Optimize new Array(1, 2, 3) → [1, 2, 3] Mihai Bazon 2012-12-21 21:04:15 +02:00
  • 08219f0cee Fix output when semicolons is off. Mihai Bazon 2012-12-21 11:57:08 +02:00
  • c4993e1e5c Small cleanup Mihai Bazon 2012-12-12 11:50:03 +02:00
  • 6064bea3db v2.2.2 v2.2.2 Mihai Bazon 2012-12-06 14:25:18 +02:00
  • 98978fc827 Add proper parens in "NoIn" expressions. Mihai Bazon 2012-12-06 12:27:57 +02:00
  • 16430acc1f small improvement on merging assignments into hoisted vars Mihai Bazon 2012-12-05 13:14:49 +02:00
  • 320c110b33 When hoisting variables, try to merge in assignments that follow. Mihai Bazon 2012-12-05 12:30:25 +02:00
  • dbe33bbfc5 Revert "Fixed reading from STDIN." Mihai Bazon 2012-11-30 11:33:50 +02:00
  • b5c3253b49 Add test for issue #59 Mihai Bazon 2012-11-30 11:26:37 +02:00
  • 5cc90db7d0 Don't messup compressor stack while optimizing Switch Mihai Bazon 2012-11-30 11:16:09 +02:00
  • f427e5efc7 Merge pull request #58 from roxeteer/master Mihai Bazon 2012-11-29 01:23:07 -08:00