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: gruntjs/grunt-contrib-uglify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d7704c4da62b52f3ad9f22767579f7e09842b939
Choose a base ref
...
head repository: gruntjs/grunt-contrib-uglify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a3f3f342331326b42a22a6003df4da305a72cfbd
Choose a head ref

Commits on Jan 22, 2015

  1. Log @ normal for min/gzip && verbose for none/false

    This is a middle ground approach between no output
    and reporting of compression information.  The
    log facility is controlled via the option report.
    meschbach committed Jan 22, 2015
    Copy the full SHA
    1111f01 View commit details
  2. Copy the full SHA
    bbb742b View commit details

Commits on Feb 20, 2015

  1. Copy the full SHA
    eec87eb View commit details

Commits on Apr 26, 2015

  1. Add 'sourceMapUrl' option

    Added an option to override the calcuated sourceMappingUrl value in the
    minified output
    RyanFrench committed Apr 26, 2015
    Copy the full SHA
    e2da335 View commit details

Commits on Aug 17, 2015

  1. add bare_returns option

    PacciniBruno committed Aug 17, 2015
    Copy the full SHA
    1886bfa View commit details

Commits on Feb 2, 2016

  1. Copy the full SHA
    2a08091 View commit details
  2. Merge pull request #390 from joeldenning/define-docs

    Improving docs for global-defs and --define options
    vladikoff committed Feb 2, 2016
    Copy the full SHA
    e2e019d View commit details

Commits on Mar 3, 2016

  1. Copy the full SHA
    f9817e9 View commit details

Commits on Mar 4, 2016

  1. Merge pull request #327 from RyanFrench/master

    Add 'sourceMapUrl' option
    vladikoff committed Mar 4, 2016
    Copy the full SHA
    2c17823 View commit details
  2. Merge pull request #394 from saibotsivad/master

    Use uglify-js ~2.6.2 to fix sourcemap issue
    vladikoff committed Mar 4, 2016
    Copy the full SHA
    5982873 View commit details
  3. Merge pull request #348 from PacciniBruno/master

    add bare_returns option
    vladikoff committed Mar 4, 2016
    Copy the full SHA
    5f6f748 View commit details
  4. Merge pull request #288 from meschbach/master

    Optionally set report verbosity level using report option
    vladikoff committed Mar 4, 2016
    Copy the full SHA
    5107d7d View commit details
  5. v1.0.0

    vladikoff committed Mar 4, 2016
    Copy the full SHA
    a75d773 View commit details

Commits on Mar 16, 2016

  1. Copy the full SHA
    d9d884c View commit details
  2. Merge pull request #397 from paladox/patch-2

    Downgrade maxmin to 1.1.0 since 2.x does not support nodejs 0.10
    vladikoff committed Mar 16, 2016
    Copy the full SHA
    55f56ae View commit details
  3. v1.0.1

    vladikoff committed Mar 16, 2016
    14
    Copy the full SHA
    fe967c8 View commit details

Commits on Mar 18, 2016

  1. Update CHANGELOG.

    [ci skip]
    XhmikosR committed Mar 18, 2016
    Copy the full SHA
    bd4d1e4 View commit details

Commits on Mar 23, 2016

  1. Update docs.

    [ci skip]
    XhmikosR committed Mar 23, 2016
    Copy the full SHA
    7e72c39 View commit details

Commits on Apr 6, 2016

  1. Copy the full SHA
    f680e89 View commit details

Commits on Apr 7, 2016

  1. Copy the full SHA
    a428a24 View commit details

Commits on Jul 13, 2016

  1. Copy the full SHA
    5fc442f View commit details
  2. Copy the full SHA
    5923f5b View commit details

Commits on Jul 19, 2016

  1. Merge pull request #418 from gruntjs/beautify-obj

    Fix `beautify` when passed as an object.
    XhmikosR authored Jul 19, 2016
    Copy the full SHA
    3150ca2 View commit details
  2. Report option: false value is not supported.

    Closes #399.
    vsn4ik authored and XhmikosR committed Jul 19, 2016
    Copy the full SHA
    c2d695f View commit details
  3. v1.0.2. (#423) r=vladikoff

    XhmikosR authored and vladikoff committed Jul 19, 2016
    Copy the full SHA
    c3dae35 View commit details
  4. Used grunt.verbose to show detailed logging (#419) r=vladikoff

    Used grunt.verbose to show detailed logging only for verbose mode.
    
    Added a note about quiet run
    
    Fixed incorrect commit
    
    Added the same for source maps
    
    Fix for jsHint errors
    
    Removed unused function
    
    Removed newline
    The Half Blood Prince authored and vladikoff committed Jul 19, 2016
    Copy the full SHA
    0d2f331 View commit details
  5. Reduce lodash usage. (#422)

    Use `lodash.assign` directly; this is needed for node.js < 4, otherwise we can completely get rid of lodash.
    XhmikosR authored and vladikoff committed Jul 19, 2016
    Copy the full SHA
    48285c9 View commit details
  6. Update uglify to v2.7.0. (#416)

    * bump uglify-js to 2.7
    
    * Update files for `screw_ie8` being true in uglify 2.7.0.
    
    * Minor lint tweaks.
    
    * v2.0.0.
    XhmikosR authored and vladikoff committed Jul 19, 2016
    Copy the full SHA
    2d04f24 View commit details

Commits on Aug 11, 2016

  1. Copy the full SHA
    dc7c015 View commit details

Commits on Aug 14, 2016

  1. Merge pull request #428 from gruntjs/revert-419-master

    Revert "Used grunt.verbose to show detailed logging"
    XhmikosR authored Aug 14, 2016
    Copy the full SHA
    fdef3a8 View commit details

Commits on Aug 15, 2016

  1. Update docs.

    [ci skip]
    XhmikosR committed Aug 15, 2016
    Copy the full SHA
    aaa5cc9 View commit details

Commits on Sep 25, 2016

  1. Copy the full SHA
    60824c1 View commit details

Commits on Oct 26, 2016

  1. 2
    Copy the full SHA
    cc846ac View commit details

Commits on Oct 31, 2016

  1. Copy the full SHA
    0511085 View commit details

Commits on Feb 8, 2017

  1. Minor lint tweaks.

    XhmikosR committed Feb 8, 2017
    Copy the full SHA
    3736268 View commit details
  2. 2.1.0.

    XhmikosR committed Feb 8, 2017
    Copy the full SHA
    90db406 View commit details

Commits on Feb 10, 2017

  1. Update uglify-examples.md (#449)

    omidraha authored and XhmikosR committed Feb 10, 2017
    Copy the full SHA
    d85adc7 View commit details

Commits on Feb 28, 2017

  1. Update docs.

    XhmikosR committed Feb 28, 2017
    Copy the full SHA
    463d4d3 View commit details

Commits on Mar 1, 2017

  1. Update uglify-js to v2.8.3.

    XhmikosR committed Mar 1, 2017
    Copy the full SHA
    0f638cf View commit details
  2. v2.2.0.

    XhmikosR committed Mar 1, 2017
    Copy the full SHA
    48247f6 View commit details
  3. Merge pull request #453 from gruntjs/update-uglify

    Update uglify
    XhmikosR authored Mar 1, 2017
    Copy the full SHA
    a34af0d View commit details
  4. Update uglify-overview.md

    Remove upgrade instructions that never applied since v3.x is a version from the future.
    XhmikosR authored Mar 1, 2017
    Copy the full SHA
    3a718cf View commit details

Commits on Mar 31, 2017

  1. Update test files.

    XhmikosR committed Mar 31, 2017
    Copy the full SHA
    bbe1da0 View commit details
  2. Clean up banner option.

    XhmikosR committed Mar 31, 2017
    Copy the full SHA
    f161c6d View commit details
  3. v2.2.1.

    XhmikosR committed Mar 31, 2017
    Copy the full SHA
    48fab36 View commit details

Commits on Apr 4, 2017

  1. Log fixes. (#454) r=vladikoff

    Now the output is similar to grunt-contrib-cssmin.
    XhmikosR authored and vladikoff committed Apr 4, 2017
    Copy the full SHA
    7dc5e1d View commit details
  2. v2.3.0.

    XhmikosR committed Apr 4, 2017
    Copy the full SHA
    f3086c1 View commit details

Commits on May 12, 2017

  1. Upgrade to uglify-js 3.0.4. (#472)

    Upgrade to uglify-js 3.0.4
    alexlamsl authored and XhmikosR committed May 12, 2017
    Copy the full SHA
    ccd7ad0 View commit details
  2. v3.0.0.

    XhmikosR committed May 12, 2017
    Copy the full SHA
    0f45e4e View commit details

Commits on May 15, 2017

  1. Move require() up

    alexlamsl committed May 15, 2017
    Copy the full SHA
    755360b View commit details
Showing with 5,209 additions and 748 deletions.
  1. +39 −0 .github/workflows/test.yml
  2. +1 −0 .mailmap
  3. +0 −6 .travis.yml
  4. +122 −40 CHANGELOG
  5. +1 −1 CONTRIBUTING.md
  6. +130 −83 Gruntfile.js
  7. +152 −119 README.md
  8. +0 −28 appveyor.yml
  9. +54 −23 docs/uglify-examples.md
  10. +48 −43 docs/uglify-options.md
  11. +1 −22 docs/uglify-overview.md
  12. +4,393 −0 package-lock.json
  13. +12 −14 package.json
  14. +103 −224 tasks/lib/uglify.js
  15. +67 −57 tasks/uglify.js
  16. +7 −0 test/fixtures/expected/beautify.js
  17. +3 −9 test/fixtures/expected/comments.js
  18. +13 −0 test/fixtures/expected/commentsWithImportant.js
  19. +1 −1 test/fixtures/expected/compress.js
  20. +1 −1 test/fixtures/expected/compress_explicit.js
  21. +1 −1 test/fixtures/expected/compress_mangle.js
  22. +1 −1 test/fixtures/expected/compress_mangle_banner.js
  23. +5 −3 test/fixtures/expected/compress_mangle_beautify.js
  24. +1 −1 test/fixtures/expected/compress_mangle_except.js
  25. +1 −1 test/fixtures/expected/deep/directory/location/source_map.js.map
  26. +0 −8 test/fixtures/expected/enclose.js
  27. +0 −1 test/fixtures/expected/exportAll.js
  28. +1 −1 test/fixtures/expected/mangle.js
  29. +1 −1 test/fixtures/expected/mangleprops.js
  30. +1 −1 test/fixtures/expected/mangleprops_withExcept.js
  31. +1 −1 test/fixtures/expected/mangleprops_withExceptAndExceptionsFiles.js
  32. +1 −1 test/fixtures/expected/mangleprops_withExceptionsFiles.js
  33. +1 −1 test/fixtures/expected/mangleprops_withNameCacheFile1.js
  34. +1 −1 test/fixtures/expected/mangleprops_withNameCacheFile2.js
  35. +4 −5 test/fixtures/expected/maxLineLen.js
  36. +1 −1 test/fixtures/expected/multifile.js
  37. +1 −1 test/fixtures/expected/quotes_double.js
  38. +1 −1 test/fixtures/expected/quotes_original.js
  39. +1 −1 test/fixtures/expected/quotes_single.js
  40. +1 −1 test/fixtures/expected/screwIE8.js
  41. +1 −1 test/fixtures/expected/source_map_custom_name
  42. +1 −1 test/fixtures/expected/sourcemap_basic.js
  43. +1 −1 test/fixtures/expected/sourcemap_basic.js.map
  44. +1 −1 test/fixtures/expected/sourcemap_customDir.js
  45. +1 −1 test/fixtures/expected/sourcemap_customName.js
  46. +1 −1 test/fixtures/expected/sourcemap_customRoot.js
  47. +1 −1 test/fixtures/expected/sourcemap_customRoot.js.map
  48. +2 −0 test/fixtures/expected/sourcemap_customUrl.js
  49. +1 −0 test/fixtures/expected/sourcemap_customUrl.js.map
  50. +1 −1 test/fixtures/expected/sourcemap_functionName.js
  51. +1 −1 test/fixtures/expected/sourcemap_functionName.js.fn.map
  52. +1 −1 test/fixtures/expected/sourcemap_sources.js.map
  53. +1 −2 test/fixtures/expected/sourcemapin.js
  54. +1 −1 test/fixtures/expected/sourcemapin.js.map
  55. +2 −0 test/fixtures/expected/sourcemapin_customUrl.js
  56. +1 −0 test/fixtures/expected/sourcemapin_customUrl.js.map
  57. +1 −1 test/fixtures/expected/sourcemapin_sources.js
  58. +1 −1 test/fixtures/expected/sourcemapin_sources.js.map
  59. +1 −1 test/fixtures/expected/sourcemaps_multiple1.js
  60. +1 −1 test/fixtures/expected/sourcemaps_multiple1.js.map
  61. +1 −1 test/fixtures/expected/sourcemaps_multiple1_fnName.js
  62. +1 −1 test/fixtures/expected/sourcemaps_multiple1_fnName.js.fn.map
  63. +1 −1 test/fixtures/expected/sourcemaps_multiple2.js.map
  64. +1 −1 test/fixtures/expected/sourcemaps_multiple2_fnName.js.fn.map
  65. +1 −19 test/fixtures/expected/uglify_name_cache.json
  66. +1 −1 test/fixtures/expected/wrap.js
  67. +1 −1 test/fixtures/src/screwIE8.js
  68. +7 −2 test/uglify_test.js
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on: [push, pull_request]

env:
FORCE_COLOR: 2

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [12, 14, 16]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm test

# We test multiple Windows shells because of prior stdout buffering issues
# filed against Grunt. https://github.com/joyent/node/issues/3584
- name: Run PowerShell tests
run: "npm test # PowerShell" # Pass comment to PS for easier debugging
shell: powershell
if: startsWith(matrix.os, 'windows')
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

162 changes: 122 additions & 40 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,112 +1,194 @@
v5.1.0:
date: 2022-03-27
changes:
- Update dependencies. uglify-js ^3.15.2.
- Requires node 12+.
v5.0.0:
date: 2020-07-16
changes:
- Requires node 10+.
- Update dependencies.
v4.0.1:
date: 2019-03-21
changes:
- Update uglify-js to v3.5.0.
- Update dependencies.
v4.0.0:
date: 2018-08-26
changes:
- Update dependencies.
- Requires Node.js >= 6.
v3.4.0:
date: 2018-07-29
changes:
- Update uglify-js to v3.4.0.
v3.3.0:
date: 2017-12-24
changes:
- Update uglify-js to v3.3.0.
v3.2.1:
date: 2017-11-26
changes:
- Update uglify-js to v3.2.0.
v3.1.0:
date: 2017-09-11
changes:
- Update uglify-js to v3.1.0.
v3.0.1:
date: 2017-05-20
changes:
- Fix toplevel option.
v3.0.0:
date: 2017-05-12
changes:
- Update uglify-js to v3.0.4.
v2.3.0:
date: 2017-04-05
changes:
- Make CLI output less verbose.
v2.2.1:
date: 2017-03-31
changes:
- Fix banner option.
v2.2.0:
date: 2017-03-01
changes:
- Update uglify-js to v2.8.3.
v2.1.0:
date: 2017-02-08
changes:
- Show size changes in output. Switch to `object.assign`.
v2.0.0:
date: 2016-07-19
changes:
- Update uglify-js to v2.7.0. `screwIE8` is enabled by default.
v1.0.2:
date: 2016-07-19
changes:
- Update grunt to ^1.0.0.
- Fix `beautify` when passed as an object.
- Fix docs about `report` values.
v1.0.1:
date: 2016-03-16
changes:
- Downgrade maxmin for Node.js 0.10.
v1.0.0:
date: 2016-03-04
changes:
- Use uglify-js ~2.6.2 to fix sourcemap issue.
- Improve docs for `global-defs` and `--define` options.
- Add `sourceMapUrl` option.
- Add `bare_returns` option.
- Optionally set report verbosity level using report option.
v0.11.1:
date: 2016-01-29
changes:
- switch to lodash ^4.0.1
- switch to grunt-contrib-clean ^0.7.0
- switch to grunt-contrib-jshint ^0.12.0
- Update lodash to ^4.0.1.
- Update grunt-contrib-clean to ^0.7.0.
- Update grunt-contrib-jshint to ^0.12.0.
v0.11.0:
date: 2015-11-20
changes:
- switch to uglify ~2.6.0
- Update uglify-js to ~2.6.0.
v0.10.1:
date: 2015-11-12
changes:
- switch to uglify ~2.5
- Update uglify-js to ~2.5.
v0.10.0:
date: 2015-10-27
changes:
- bump to uglify ^2.5
- Update uglify-js to ^2.5.
v0.9.2:
date: 2015-08-24
changes:
- bump to uglify ^2.4.24
- Update uglify-js to ^2.4.24
v0.9.1:
date: 2015-04-07
changes:
- more fixes for mangle options
- More fixes for `mangle` options.
v0.9.0:
date: 2015-04-07
changes:
- added hook into uglify's mangling functionality
- Add hook into uglify-js's mangling functionality.
v0.8.1:
date: 2015-03-30
changes:
- lock uglify to 2.4.17 due to breaking changes
- Lock uglify-js to 2.4.17 due to breaking changes.
v0.8.0:
date: 2015-02-19
changes:
- Add `screwIE8` option.
- Fix issue with explicit `compress` in node 0.12.0.
- Fix issue with explicit `compress` in Node.js 0.12.0.
v0.7.0:
date: 2014-12-23
changes:
- Adds sourceMapRoot options.
- Updates readme descriptions.
- Removes reference to cleancss.
- Add `sourceMapRoot` options.
- Update readme descriptions.
- Remove reference to clean-css.
v0.6.0:
date: 2014-09-17
changes:
- Output fixes.
- ASCIIOnly option.
- 'Add `ASCIIOnly` option.'
- Other fixes.
v0.5.1:
date: 2014-07-25
changes:
- Chalk updates.
- Update chalk to ^0.5.1.
- Output updates.
v0.4.0:
date: 2014-03-01
changes:
- remove grunt-lib-contrib dependency and add more colors
- Remove grunt-lib-contrib dependency and add more colors.
v0.3.3:
date: 2014-02-27
changes:
- remove unnecessary calls to `grunt.template.process`
- Remove unnecessary calls to `grunt.template.process`.
v0.3.2:
date: 2014-01-22
changes:
- fix handling of `sourceMapIncludeSources` option.
- Fix handling of `sourceMapIncludeSources` option.
v0.3.1:
date: 2014-01-20
changes:
- fix relative path issue in sourcemaps
- Fix relative path issue in sourcemaps.
v0.3.0:
date: 2014-01-16
changes:
- refactor sourcemap support
- Refactor sourcemap support.
v0.2.7:
date: 2013-11-09
changes:
- prepending banner if sourceMap option not set, addresses #109
- 'Prepend banner if `sourceMap` option not set, addresses #109.'
v0.2.6:
date: 2013-11-08
changes:
- merged 45, 53, 85 (105 by way of duping 53)
- Added support for banners in uglified files with sourcemaps
- Updated docs
- 'Merge #45, #53, #85 (#105 by way of duping #53).'
- Add support for banners in uglified files with sourcemaps.
- Update docs.
v0.2.5:
date: 2013-10-28
changes:
- Added warning for banners when using sourcemaps
- Add warning for banners when using sourcemaps.
v0.2.4:
date: 2013-09-02
changes:
- updated sourcemap format via /83
- 'Update sourcemap format via #83.'
v0.2.3:
date: 2013-06-10
changes:
- added footer option
- Add `footer` option.
v0.2.2:
date: 2013-05-31
changes:
- Reverted /56 due to /58 until [chrome/239660](https://code.google.com/p/chromium/issues/detail?id=239660&q=sourcemappingurl&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified) [firefox/870361](https://bugzilla.mozilla.org/show_bug.cgi?id=870361) drop
- 'Revert #56 due to #58 until [chrome/239660](https://code.google.com/p/chromium/issues/detail?id=239660&q=sourcemappingurl&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified) [firefox/870361](https://bugzilla.mozilla.org/show_bug.cgi?id=870361) drop.'
v0.2.1:
date: 2013-05-22
changes:
- Bumped uglify to ~2.3.5 /55 /40
- Changed sourcemappingUrl syntax /56
- Disabled sorting of names for consistent mangling /44
- Updated docs for sourceMapRoot /47 /25
- 'Update uglify-js to ~2.3.5 #55 #40.'
- 'Change `sourcemappingUrl` syntax #56.'
- 'Disable sorting of names for consistent mangling #44.'
- 'Update docs for `sourceMapRoot` #47 #25.'
v0.2.0:
date: 2013-03-14
changes:
@@ -115,23 +197,23 @@ v0.2.0:
v0.1.2:
date: 2013-01-30
changes:
- Added better error reporting
- Support for dynamic names of multiple sourcemaps
- Add better error reporting.
- Support for dynamic names of multiple sourcemaps.
v0.1.1:
date: 2013-02-15
changes:
- First official release for Grunt 0.4.0.
v0.1.1rc6:
date: 2013-01-18
changes:
- Updating grunt/gruntplugin dependencies to rc6.
- Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.
- Update grunt/gruntplugin dependencies to rc6.
- Change in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.
v0.1.1rc5:
date: 2013-01-09
changes:
- Updating to work with grunt v0.4.0rc5.
- Switching back to this.files api.
- Update to work with grunt v0.4.0rc5.
- Switch back to `this.files` API.
v0.1.0:
date: 2012-11-28
changes:
- Work in progress, not yet officially released.
- Work in progress, not officially released yet.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Please see the [Contributing to grunt](http://gruntjs.com/contributing) guide for information on contributing to this project.
Please see the [Contributing to grunt](https://gruntjs.com/contributing) guide for information on contributing to this project.
Loading