cinecove / defunctr

Browser detection based on feature inspection
BSD 3-Clause "New" or "Revised" License
27 stars 2 forks source link

Update gulp-uglify to the latest version 🚀 #119

Closed greenkeeper[bot] closed 6 years ago

greenkeeper[bot] commented 7 years ago

Version 3.0.0 of gulp-uglify just got published.

Dependency gulp-uglify
Current Version 2.1.2
Type devDependency

The version 3.0.0 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of gulp-uglify. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes v3.0.0

We're now targeting UglifyJS3, if you need to continue to use UglifyJS2, you should stay on v2.1.2.

Breaking Changes

  • The custom option "preserveComments" was removed.

    As a replacement, set the options.output.comments option directly, UglifyJS3 understands the following options:

    • "all", to attempt to keep all comments.
    • "some", to keep comments containing some license text.
    • a RegExp
    • a function that should return true or false.

    While the "some" option works for many cases, it doesn't fully match the behavior of the "license" option. Fortunately, you can pass the exported function from uglify-save-license as the comment option.

  • The "minifier" API, which you could use to provide your own UglifyJS instance has been removed. It has been replaced with the "composer" API.

Commits

The new version differs by 6 commits.

  • 76b5b3a fix(package): update files array
  • 5d4c4c6 chore(all): refactor unit tests
  • f2b779b feat(composer): implement new API for composing deps
  • dbbba30 fix(minify): log warnings to gulplog
  • 4cc8751 feat(uglify): add support for UglifyJS3
  • ad73ab8 chore(pkg): update dependencies, run lint

See the full diff

Not sure how things should work exactly? There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper Bot :palm_tree:


This change is Reviewable