Commit Graph

  • e48802ad29 Fixed reading from STDIN. Visa Kopu 2012-11-29 10:51:15 +02:00
  • 13c4dfcabd fix #55 Mihai Bazon 2012-11-24 10:02:08 +02:00
  • 1abde9c8b0 v2.2.1 v2.2.1 Mihai Bazon 2012-11-23 10:25:44 +02:00
  • 4f555e2232 fix for https://github.com/mishoo/UglifyJS/issues/474 Mihai Bazon 2012-11-23 10:20:00 +02:00
  • 642ba2e92c rename the npm package to "uglify-js" and cli tool to "uglifyjs" v2.2.0 Mihai Bazon 2012-11-21 13:27:03 +02:00
  • 089ac908b7 fix #51 Mihai Bazon 2012-11-18 17:37:45 +02:00
  • 0d3fd2ef30 retain (1,eval) as is when it's the expression of an AST_Call Mihai Bazon 2012-11-17 12:05:31 +02:00
  • e98119496a Add support for somewhat preserving line numbers. Richard van Velzen 2012-11-14 14:04:47 +01:00
  • bdfcbf496b better solution for the last test in constant switch folding Mihai Bazon 2012-11-14 12:21:43 +02:00
  • dba8da4800 optimize constant switch blocks Mihai Bazon 2012-11-14 12:06:07 +02:00
  • 60c0f40250 Merge branch 'optimize_concat' of https://github.com/rvanvelzen/UglifyJS2 into rvanvelzen-optimize_concat Mihai Bazon 2012-11-13 14:34:38 +02:00
  • e02771a5f2 don't change order in binary expressions if both operands have side effects Mihai Bazon 2012-11-13 14:32:07 +02:00
  • f96f796f71 Add simple optimization for empty-string concats. Richard van Velzen 2012-11-12 15:41:03 +01:00
  • a9fa178f86 v2.1.11 v2.1.11 Mihai Bazon 2012-11-12 13:24:52 +02:00
  • 53355bdb24 fix invalid AST produced by dropping unused variable Mihai Bazon 2012-11-12 13:23:57 +02:00
  • f05c99d89f Merge pull request #41 from Skalman/toString-patch Mihai Bazon 2012-11-12 00:47:56 -08:00
  • b49230ab8d convert x.toString() to ""+x instead of x+"" Dan Wolff 2012-11-11 15:53:34 +02:00
  • 78856a3dab declare dependency versions Mihai Bazon 2012-11-09 16:43:49 +02:00
  • 1e5e13ed81 AST_LabelRef no longer inherits from AST_SymbolRef Mihai Bazon 2012-11-08 15:39:14 +02:00
  • 64270b9778 v2.1.10 v2.1.10 Mihai Bazon 2012-11-08 12:33:27 +02:00
  • e312c5c2a7 fix API breakage Mihai Bazon 2012-11-08 12:31:28 +02:00
  • 1a5fd3e052 optimization for if/break as first statement in a loop body Mihai Bazon 2012-11-07 18:57:51 +02:00
  • 5a7e54cf72 ignore node_modules/ Mihai Bazon 2012-11-07 15:27:12 +02:00
  • 39f8a62703 v2.1.9 v2.1.9 Mihai Bazon 2012-11-07 13:31:58 +02:00
  • 46be3f2bf1 fix another small regression Mihai Bazon 2012-11-07 13:31:43 +02:00
  • 258b46f4dc v2.1.8 v2.1.8 Mihai Bazon 2012-11-07 13:03:11 +02:00
  • 80da21dab4 fix regression from 5346fb94 (shouldn't parenthesize i++ in x[i++]) Mihai Bazon 2012-11-07 13:02:51 +02:00
  • bb0e4d7126 v2.1.7 v2.1.7 Mihai Bazon 2012-11-07 12:45:23 +02:00
  • 5276a4a873 add AST_Accessor and AST_SymbolAccessor node types Mihai Bazon 2012-11-07 12:43:27 +02:00
  • a1ae0c8609 parenthesize property access when it's the expression in New Mihai Bazon 2012-11-07 12:26:33 +02:00
  • a90c1aeafe further fix for parens around New (refs #35) Mihai Bazon 2012-11-07 11:49:06 +02:00
  • ff388a8d2d parenthesize a Call expression when its parent is New Mihai Bazon 2012-11-07 11:36:15 +02:00
  • 5346fb94bb add proper parens around unary expressions Mihai Bazon 2012-11-07 11:23:17 +02:00
  • a4f6d46118 add option to mangle names even if eval/with is in use Mihai Bazon 2012-11-06 11:39:41 +02:00
  • 7f5f4d60b7 discard the hack that worked around the deprecation warning Mihai Bazon 2012-11-05 22:23:51 +02:00
  • ffccb233e5 convert while into for Mihai Bazon 2012-11-05 16:01:20 +02:00
  • fba0c1aafe minor Mihai Bazon 2012-11-05 16:01:09 +02:00
  • 774f2ded94 minor optimization Mihai Bazon 2012-11-05 13:13:06 +02:00
  • 85af942d64 print final semicolon Mihai Bazon 2012-11-05 13:09:39 +02:00
  • 8413787efc use a Dictionary object instead of plain object for hashes Mihai Bazon 2012-11-02 10:58:45 +02:00
  • dde57452aa v2.1.6 Mihai Bazon 2012-11-01 16:55:10 +02:00
  • cf409800be it's safe to negate expression in !EXP only in boolean context v2.1.6 Mihai Bazon 2012-11-01 15:49:05 +02:00
  • 18270dd9f3 added unsafe_comps for negating <= with > Mihai Bazon 2012-11-01 15:14:56 +02:00
  • d4c25c571b fix compressing UnaryPrefix Mihai Bazon 2012-11-01 13:35:08 +02:00
  • 5248b79506 v2.1.5 v2.1.5 Mihai Bazon 2012-10-30 14:51:05 +02:00
  • abe0ebbf02 don't move expressions containing the binary in operator into the for initializer Mihai Bazon 2012-10-30 14:50:47 +02:00
  • 0852f5595e v2.1.4 v2.1.4 Mihai Bazon 2012-10-25 18:52:49 +03:00
  • cb3cafa14d cripple scope to make IE happy :-( Mihai Bazon 2012-10-25 18:52:35 +03:00
  • 202fb93799 test for fs.existsSync Mihai Bazon 2012-10-25 10:58:48 +03:00
  • 7b87d2ef83 v2.1.3 v2.1.3 Mihai Bazon 2012-10-24 09:41:40 +03:00
  • 70fd2b1f33 fix for if (...) return; else return ...; Mihai Bazon 2012-10-24 09:33:32 +03:00
  • 30faaf13ed more sequence optimizations (lift some sequences above binary/unary expressions so that we can avoid parens) Mihai Bazon 2012-10-22 11:49:58 +03:00
  • 41be8632d3 v2.1.2 v2.1.2 Mihai Bazon 2012-10-22 07:57:28 +03:00
  • bee01dc1be Merge branch 'master' of github.com:mishoo/UglifyJS2 Mihai Bazon 2012-10-20 11:14:25 +03:00
  • 12f71e01d0 alternate hack to disable deprecation warning Mihai Bazon 2012-10-20 11:12:21 +03:00
  • 3a72deacab Merge pull request #19 from SevInf/master Mihai Bazon 2012-10-19 04:29:40 -07:00
  • fc8314e810 minor fix for dropping unused definitions. Mihai Bazon 2012-10-19 12:57:29 +03:00
  • 11dffe950e Add sourceRoot option to minify Sergej Tatarincev 2012-10-19 12:35:19 +03:00
  • 6f45928a73 add fromString argument to UglifyJS.minify (allows to pass the source code, instead of file names, as first argument). Mihai Bazon 2012-10-18 15:49:15 +03:00
  • afb7faa6fa more optimizations for some break/continue cases Mihai Bazon 2012-10-18 15:14:57 +03:00
  • 6aa56f92fe v2.1.1 v2.1.1 Mihai Bazon 2012-10-18 10:54:30 +03:00
  • 4fe4257c69 fix --comments (close #16) Mihai Bazon 2012-10-18 10:54:10 +03:00
  • a5e75c5a21 v2.1.0 Mihai Bazon 2012-10-17 22:00:11 +03:00
  • 4482fdd63f added note about API docs and online demo v2.1 Mihai Bazon 2012-10-17 21:59:36 +03:00
  • 253bd8559b more small optimizations Mihai Bazon 2012-10-17 21:57:08 +03:00
  • 6a099fba66 define aborts on AST_If: true if both branches abort Mihai Bazon 2012-10-17 16:17:14 +03:00
  • a21f3c6cdd employ a better parser for command-line arguments Mihai Bazon 2012-10-17 15:56:45 +03:00
  • 8f66458598 the sort option is broken anyway, removed it Mihai Bazon 2012-10-17 15:24:47 +03:00
  • 6472f9410e add semicolons option in the code generator (default: true) Mihai Bazon 2012-10-17 14:51:27 +03:00
  • 8957b3a694 fix small glitches in source map generation Mihai Bazon 2012-10-16 15:54:12 +03:00
  • 1ffd526554 disable warnings in the test suite Mihai Bazon 2012-10-13 15:18:11 +03:00
  • fcc0229087 drop unused function arguments Mihai Bazon 2012-10-13 15:04:44 +03:00
  • b071c9d079 add parens to AST_Seq whose parent is AST_Unary Mihai Bazon 2012-10-13 14:32:08 +03:00
  • 851b48e4a3 fix compressing benchmark.js (it tried to evaluate a statement) Mihai Bazon 2012-10-13 12:56:56 +03:00
  • 708abb1ab1 minor Mihai Bazon 2012-10-13 12:42:01 +03:00
  • 370d3e0917 fix regression from fb5c01c073 Mihai Bazon 2012-10-13 12:24:27 +03:00
  • b51fe0dcc3 fix end tokens in spidermonkey ast import Mihai Bazon 2012-10-13 11:37:58 +03:00
  • 70d205c447 update for acorn Mihai Bazon 2012-10-13 00:35:24 +03:00
  • 8149be551e minor Mihai Bazon 2012-10-12 14:55:54 +03:00
  • ba3df646c0 actually enable the option that drops unused names in the test of issue #12 Mihai Bazon 2012-10-12 11:41:48 +03:00
  • 1b6f8d463f remove the $self hack Mihai Bazon 2012-10-12 11:07:35 +03:00
  • 731fa9c236 add test for issue #12 Mihai Bazon 2012-10-12 10:49:48 +03:00
  • 72cb5328ee fix in_boolean_context() (two tests were broken) Mihai Bazon 2012-10-12 10:49:41 +03:00
  • fc39553714 use AST_Lambda for object setters/getters Mihai Bazon 2012-10-12 10:11:01 +03:00
  • d9d67317b1 fix pos in syntax error exception Mihai Bazon 2012-10-11 15:25:38 +03:00
  • fb5c01c073 stealing more hacks from acorn in the name of speed Mihai Bazon 2012-10-11 13:00:58 +03:00
  • f4584af42c using makeComparator from acorn to generate functions that tests whether a string is keyword, reserved etc. Mihai Bazon 2012-10-11 11:52:05 +03:00
  • 172aa7a93c cleanup Mihai Bazon 2012-10-11 11:07:42 +03:00
  • 5053a29bc0 fix propagation of symbol references Mihai Bazon 2012-10-11 10:28:48 +03:00
  • f322b32e0e disable warnings by default in minify (pass warnings: true to enable) Mihai Bazon 2012-10-11 09:30:22 +03:00
  • 9cdaed9860 fix node name Mihai Bazon 2012-10-10 23:16:40 +03:00
  • dacce1b1fa seems cleaner if AST_Label doesn't inherit from AST_SymbolDeclaration Mihai Bazon 2012-10-10 11:37:51 +03:00
  • f26f3b44bc small improvements in wrap_commonjs: Mihai Bazon 2012-10-10 11:28:05 +03:00
  • c5ecbfc756 drop unused variable Mihai Bazon 2012-10-10 11:27:06 +03:00
  • 3799ac8973 add --lint and display {file} in scope_warnings Mihai Bazon 2012-10-10 11:26:59 +03:00
  • 86182afa7f minor Mihai Bazon 2012-10-09 22:56:59 +03:00
  • 4807c6e756 update on @cc_on Mihai Bazon 2012-10-09 19:09:11 +03:00
  • a84d07e312 add AST_Infinity node Mihai Bazon 2012-10-09 18:35:53 +03:00
  • 88beddfa91 make --comments keep @cc_on too Mihai Bazon 2012-10-09 18:25:00 +03:00
  • 1b0aab2ce9 added $propdoc to AST nodes and some cleanups Mihai Bazon 2012-10-09 16:25:45 +03:00