Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mishoo/UglifyJS
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 83e0939088a26ad8c28bd2c1719f92bdcf17d045
Choose a base ref
...
head repository: mishoo/UglifyJS
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 33b5f3198469f53641172c0702a7f40566325fb0
Choose a head ref

Commits on May 11, 2014

  1. Copy the full SHA
    524a8a4 View commit details

Commits on Jul 8, 2014

  1. Copy the full SHA
    6006dd9 View commit details

Commits on Jul 18, 2014

  1. Fix parens for AST_Undefined

    Do the same as for AST_Unary, since we output undefined as `void 0`.
    
    Reported at #338 (comment)
    mishoo committed Jul 18, 2014
    Copy the full SHA
    62bda71 View commit details

Commits on Jul 28, 2014

  1. Added license

    gdw2 committed Jul 28, 2014
    Copy the full SHA
    ec3e74d View commit details

Commits on Aug 1, 2014

  1. Improved UglifyJS<->SpiderMonkey AST conversions.

    * Added directives recognition in SM AST.
    * Moved semi-standard SM `Property` type to separate handler.
    * Added `const` recognition from SM AST.
    * Removed redundant `this`-as-identifier recognition.
    * Removed redundant rules for abstract SM types.
    * Described `CatchClause` using string syntax.
    * Added support for semi-standard `range` tuple as location source.
    * Added back-conversion support (to be improved).
    RReverser committed Aug 1, 2014
    Copy the full SHA
    0e3ff1f View commit details
  2. Fixes and improvements for UglifyJS->SM AST conversion.

    * Explicitly forbidden multiple catch clauses as SM-specific feature.
    * Simplified describing of UglifyJS->Mozilla AST conversion rules.
    * Moved alias rules to single place.
    * Removed usage of dynamic type bindings in generated code (speed-up).
    RReverser committed Aug 1, 2014
    Copy the full SHA
    87b7236 View commit details

Commits on Aug 2, 2014

  1. Copy the full SHA
    05ba26c View commit details
  2. Copy the full SHA
    5e314bf View commit details

Commits on Aug 3, 2014

  1. Copy the full SHA
    f2d48e9 View commit details
  2. Copy the full SHA
    b467a3c View commit details
  3. Copy the full SHA
    f8ee5a0 View commit details

Commits on Aug 4, 2014

  1. Copy the full SHA
    18ddf2f View commit details
  2. Copy the full SHA
    e391367 View commit details
  3. Merge pull request #529 from RReverser/master

    Added example for usage with SpiderMonkey AST
    mishoo committed Aug 4, 2014
    Copy the full SHA
    e3066f9 View commit details

Commits on Aug 20, 2014

  1. Copy the full SHA
    548beeb View commit details

Commits on Aug 26, 2014

  1. Copy the full SHA
    4c64554 View commit details

Commits on Sep 2, 2014

  1. Compress conditional assignments where all possible outcomes are equi…

    …valant and condition has no side effects
    TalAter committed Sep 2, 2014
    Copy the full SHA
    885835a View commit details
  2. Added a test for else if

    TalAter committed Sep 2, 2014
    Copy the full SHA
    7971ed3 View commit details

Commits on Sep 3, 2014

  1. Copy the full SHA
    fb0ec72 View commit details

Commits on Sep 9, 2014

  1. Copy the full SHA
    21b3c89 View commit details
  2. Merge pull request #541 from TalAter/conditional-improvements

    Conditional assignment of equivalent constants compressed  ( x=y?1:1 --> x=1 )
    mishoo committed Sep 9, 2014
    Copy the full SHA
    57dab1e View commit details

Commits on Sep 13, 2014

  1. Copy the full SHA
    7be680d View commit details
  2. Merge pull request #549 from Arnavion/unreferenced-catch-symbol

    Don't warn for an unreferenced exception symbol in a catch block.
    mishoo committed Sep 13, 2014
    Copy the full SHA
    f0c1a01 View commit details

Commits on Sep 28, 2014

  1. Copy the full SHA
    01d19b4 View commit details
  2. Document keep_fargs. Close #557

    mishoo committed Sep 28, 2014
    Copy the full SHA
    a64bdda View commit details

Commits on Oct 20, 2014

  1. Copy the full SHA
    f36a1ea View commit details

Commits on Dec 1, 2014

  1. fix base54

    clyfish committed Dec 1, 2014
    Copy the full SHA
    fe06fc8 View commit details

Commits on Dec 4, 2014

  1. Merge pull request #546 from jacobk/patch-1

    Use uglify source map token names if missing
    mishoo committed Dec 4, 2014
    Copy the full SHA
    f101d64 View commit details

Commits on Dec 9, 2014

  1. v2.4.16

    mishoo committed Dec 9, 2014
    Copy the full SHA
    5538ec7 View commit details

Commits on Dec 17, 2014

  1. 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 committed Dec 17, 2014
    Copy the full SHA
    39d8880 View commit details

Commits on Dec 31, 2014

  1. 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.
    rvanvelzen committed Dec 31, 2014
    Copy the full SHA
    c75f5a1 View commit details
  2. Copy the full SHA
    73cc050 View commit details

Commits on Jan 1, 2015

  1. Copy the full SHA
    6d1c3e1 View commit details

Commits on Jan 4, 2015

  1. Fix #569

    When no arguments are given to `new Function()`, it should be treated as
    a regular anonymous function (http://es5.github.io/#x15.3.2.1)
    rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    f4d36a5 View commit details
  2. Merge pull request #600 from KenPowers/master

    Use yargs instead of optimist.
    rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    f7447ef View commit details
  3. Merge pull request #592 from micschro/patch-1

    Fix max_line_len not working for JSON files
    rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    66e6f0c View commit details
  4. Merge pull request #584 from clyfish/fix-base54

    fix base54
    rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    120948f View commit details
  5. Copy the full SHA
    37c17d5 View commit details
  6. 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.
    rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    24bc09b View commit details
  7. Copy the full SHA
    5bff65c View commit details
  8. Update README.md

    otions => options
    thataustin authored and rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    aa5dd15 View commit details
  9. Copy the full SHA
    718e475 View commit details
  10. 1
    Copy the full SHA
    4613644 View commit details
  11. Add a "keep_fnames" option to the compressor to retain function expre…

    …ssion names
    
    See #552. This is useful for stack traces.
    rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    0d48af3 View commit details
  12. 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.
    truiken authored and rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    0f80b10 View commit details
  13. using the original sourcemap as the base

    * Creates a new SourceMapGenerator based on a SourceMapConsumer:
      https://github.com/mozilla/source-map#sourcemapgeneratorfromsourcemapsourcemapconsumer
    caridy authored and rvanvelzen committed Jan 4, 2015
    2
    Copy the full SHA
    ad18689 View commit details
  14. Add an option to prevent function names from being mangled

    See #552. This is mostly useful for having the actual function names in traces.
    rvanvelzen committed Jan 4, 2015
    Copy the full SHA
    e37b67d View commit details

Commits on Jan 5, 2015

  1. 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.
    mishoo committed Jan 5, 2015
    Copy the full SHA
    e1f0747 View commit details
  2. Copy the full SHA
    fe55e0d View commit details
  3. Copy the full SHA
    93a6e57 View commit details
Showing with 22,617 additions and 1,175 deletions.
  1. +1 −0 .gitattributes
  2. +2 −1 .gitignore
  3. +7 −2 .travis.yml
  4. +440 −88 README.md
  5. +24 −0 appveyor.yml
  6. +77 −0 bin/extract-props.js
  7. +283 −106 bin/uglifyjs
  8. +89 −47 lib/ast.js
  9. +1,722 −376 lib/compress.js
  10. +417 −75 lib/mozilla-ast.js
  11. +292 −144 lib/output.js
  12. +222 −98 lib/parse.js
  13. +257 −0 lib/propmangle.js
  14. +143 −67 lib/scope.js
  15. +12 −2 lib/sourcemap.js
  16. +2 −2 lib/transform.js
  17. +74 −16 lib/utils.js
  18. +51 −28 package.json
  19. +49 −0 test/benchmark.js
  20. +67 −0 test/compress/angular-inject.js
  21. +103 −0 test/compress/arrays.js
  22. +36 −0 test/compress/ascii.js
  23. +106 −0 test/compress/asm.js
  24. +238 −0 test/compress/assignment.js
  25. +1,331 −0 test/compress/collapse_vars.js
  26. +76 −0 test/compress/comparing.js
  27. +194 −0 test/compress/concat-strings.js
  28. +567 −2 test/compress/conditionals.js
  29. +165 −0 test/compress/const.js
  30. +123 −3 test/compress/dead-code.js
  31. +24 −0 test/compress/drop-console.js
  32. +539 −2 test/compress/drop-unused.js
  33. +703 −0 test/compress/evaluate.js
  34. +93 −0 test/compress/functions.js
  35. +147 −0 test/compress/global_defs.js
  36. +90 −0 test/compress/hoist_vars.js
  37. +71 −0 test/compress/html_comments.js
  38. +304 −0 test/compress/if_return.js
  39. +121 −0 test/compress/issue-1034.js
  40. +41 −0 test/compress/issue-1041.js
  41. +0 −25 test/compress/issue-105.js
  42. +96 −0 test/compress/issue-1052.js
  43. +240 −0 test/compress/issue-1105.js
  44. +47 −0 test/compress/issue-12.js
  45. +52 −0 test/compress/issue-1202.js
  46. +176 −0 test/compress/issue-1261.js
  47. +49 −0 test/compress/issue-1275.js
  48. +54 −0 test/compress/issue-1321.js
  49. +151 −0 test/compress/issue-1431.js
  50. +61 −0 test/compress/issue-1443.js
  51. +71 −0 test/compress/issue-1446.js
  52. +45 −0 test/compress/issue-1447.js
  53. +70 −0 test/compress/issue-208.js
  54. +41 −0 test/compress/issue-368.js
  55. +25 −0 test/compress/issue-597.js
  56. +21 −0 test/compress/issue-611.js
  57. +22 −0 test/compress/issue-637.js
  58. +317 −0 test/compress/issue-640.js
  59. +37 −0 test/compress/issue-747.js
  60. +29 −0 test/compress/issue-751.js
  61. +27 −0 test/compress/issue-782.js
  62. +32 −0 test/compress/issue-892.js
  63. +20 −0 test/compress/issue-913.js
  64. +96 −0 test/compress/issue-973.js
  65. +88 −0 test/compress/issue-976.js
  66. +89 −0 test/compress/issue-979.js
  67. +119 −0 test/compress/loops.js
  68. +28 −0 test/compress/max_line_len.js
  69. +340 −7 test/compress/negate-iife.js
  70. +84 −0 test/compress/new.js
  71. +155 −0 test/compress/numbers.js
  72. +485 −2 test/compress/properties.js
  73. +295 −0 test/compress/pure_funcs.js
  74. +665 −0 test/compress/reduce_vars.js
  75. +124 −0 test/compress/return_undefined.js
  76. +184 −0 test/compress/screw-ie8.js
  77. +123 −0 test/compress/sequences.js
  78. +10 −0 test/compress/string-literal.js
  79. +25 −0 test/compress/typeof.js
  80. +17 −0 test/compress/unicode.js
  81. +48 −0 test/compress/wrap_iife.js
  82. +3 −0 test/input/comments/filter.js
  83. +1 −0 test/input/global_defs/nested.js
  84. +1 −0 test/input/global_defs/simple.js
  85. +1 −0 test/input/invalid/eof.js
  86. +1 −0 test/input/invalid/simple.js
  87. +1 −0 test/input/invalid/tab.js
  88. +8 −0 test/input/issue-1236/simple.js
  89. +8 −0 test/input/issue-1236/simple.js.map
  90. +4 −0 test/input/issue-1242/bar.es5
  91. +4 −0 test/input/issue-1242/baz.es5
  92. +5 −0 test/input/issue-1242/foo.es5
  93. +4 −0 test/input/issue-1242/qux.js
  94. +7 −0 test/input/issue-1323/sample.js
  95. +14 −0 test/input/issue-1431/sample.js
  96. +73 −0 test/input/issue-1482/bracketize.js
  97. +17 −0 test/input/issue-1482/default.js
  98. +12 −0 test/input/issue-1482/input.js
  99. +3 −0 test/input/issue-520/input.js
  100. +2 −0 test/input/issue-520/output.js
  101. +87 −0 test/jetstream.js
  102. +29 −0 test/mocha.js
  103. +32 −0 test/mocha/accessorTokens-1492.js
  104. +30 −0 test/mocha/arguments.js
  105. +241 −0 test/mocha/cli.js
  106. +83 −0 test/mocha/comment-filter.js
  107. +50 −0 test/mocha/comment.js
  108. +27 −0 test/mocha/comment_before_constant.js
  109. +370 −0 test/mocha/directives.js
  110. +89 −0 test/mocha/getter-setter.js
  111. +28 −0 test/mocha/glob.js
  112. +19 −0 test/mocha/huge-number-of-comments.js
  113. +66 −0 test/mocha/input-sourcemaps.js
  114. +30 −0 test/mocha/let.js
  115. +60 −0 test/mocha/line-endings.js
  116. +48 −0 test/mocha/minify-file-map.js
  117. +194 −0 test/mocha/minify.js
  118. +88 −0 test/mocha/new.js
  119. +24 −0 test/mocha/number-literal.js
  120. +489 −0 test/mocha/operator.js
  121. +23 −0 test/mocha/screw-ie8.js
  122. +124 −0 test/mocha/spidermonkey.js
  123. +81 −0 test/mocha/string-literal.js
  124. +23 −0 test/mocha/with.js
  125. +103 −0 test/mozilla-ast.js
  126. +114 −22 test/run-tests.js
  127. +40 −0 test/sourcemaps.js
  128. +5,603 −0 tools/domprops.json
  129. +23 −0 tools/exports.js
  130. +208 −60 tools/node.js
  131. +61 −0 tools/props.html
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js text eol=lf
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/npm-debug.log
tmp/
node_modules/
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
language: node_js
before_install: "npm install -g npm"
node_js:
- "0.8"
- "0.12"
- "0.10"
- "0.11"
- "4"
- "6"
matrix:
fast_finish: true
sudo: false
Loading