Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rollup-plugin-terser to the latest version 🚀 #731

Closed
wants to merge 2 commits into from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented May 23, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


The dependency rollup-plugin-terser was updated from 5.3.0 to 6.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: trysound
License: MIT

Find out more about this release.


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request May 23, 2020
@greenkeeper

This comment has been minimized.

greenkeeper bot added a commit that referenced this pull request May 24, 2020
@greenkeeper

This comment has been minimized.

@dclark27
Copy link

We've gotta get this upgraded -- there is now a high vulnerability on 5.3.0.

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Remote Code Execution                                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ serialize-javascript                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.1.0                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ tsdx [dev]                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ tsdx > rollup-plugin-terser > serialize-javascript           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1548                            │
└───────────────┴──────────────────────────────────────────────────────────────┘

@agilgur5 agilgur5 added the topic: Node 10+ requires Node 10+ label Aug 12, 2020
@agilgur5
Copy link
Collaborator

agilgur5 commented Aug 12, 2020

@dclark27 thanks for the note. 6.0 is a breaking change and fails tests here. It also requires both Node 10+ (planned for v0.14.0) and Rollup v2 (not yet planned, that requires updating a lot of Rollup plugins, which wasn't possible a few months ago). That advisory is from today so I would not expect an immediate response on that.

If you need to update immediately, you could probably override the version in tsdx.config.js, but I'm not sure how that'll interact with everything else... the Rollup version is the big blocker

@dclark27
Copy link

@agilgur5 Sounds good! I'll take a look in the morning and see if there is any way to get something out in the meantime.

@Buuntu

This comment has been minimized.

@agilgur5
Copy link
Collaborator

agilgur5 commented Aug 24, 2020

FYI from developit/microbundle#695 (comment):

[serialize-javascript is] only used for Terser's <script> option, which isn't in use here.

Still looking to upgrade Rollup et al to v2 soon, but it'll make v0.14.0 a good bit more breaking, so may hold off on it till v0.15.0

@Yurickh
Copy link

Yurickh commented Sep 7, 2020

FYI, rollup-plugin-terser has released a patch with version 5.3.1 that updates serialize-javascript, which hopefully fixes the vulnerability and doesn't require a breaking change. :)~

edit: in fact, since 5.3.1 is covered by the current version range, consumers can get rid of the warning themselves 🎉

@agilgur5
Copy link
Collaborator

agilgur5 commented Sep 7, 2020

Nice catch @Yurickh, so no need for TSDX to do anything then as this has been resolved upstream and we only pin the major version.

If you want to get rid of this warning (TSDX isn't susceptible to the vulnerability per my previous comment), then update your yarn.lock to set rollup-plugin-terser to 5.3.1 and just re-run yarn. Equivalent for NPM is edit package-lock.json and run `npm install

@Yurickh
Copy link

Yurickh commented Sep 7, 2020

You can also avoid the lock hash conflicts by removing and re-adding tsdx (effectively reinstalling), as this will get you the most up-to-date version matching the version range of its dependencies.

@agilgur5
Copy link
Collaborator

Superseded by #889

@agilgur5 agilgur5 closed this Sep 28, 2020
@agilgur5 agilgur5 added the solution: duplicate This issue or pull request already exists label Sep 28, 2020
@agilgur5 agilgur5 mentioned this pull request Sep 28, 2020
ludofischer added a commit to ludofischer/tsdx that referenced this pull request Sep 29, 2020
 - Update Rollup to 2.28.2. Fixes jaredpalmer#821, closes jaredpalmer#545
 - Update @rollup/plugin-commonjs. Upgrading this required Rollup 2 without any note in the changelog.  Closes jaredpalmer#727
 - Update @rollup/plugin-json to 4.1.0. v4.0.3 is the first to add Rollup 2 in the peerDep range. Older versions are forward-compatible but will produce a peerDep warning
 - Update @rollup/plugin-replace to 2.3.3. v2.3.2 is the first version to add Rollup 2 in the peerDep range.
 - Update rollup-plugin-terser to v7. v6 requires rollup 2 and Node 10+. v7 introduces Terser 5, requires Node >= 10 and supports some new JS syntax. fixes jaredpalmer#803, #fixes 797, closes jaredpalmer#731
 - Update rollup-plugin-postcss to 3.1. Closes jaredpalmer#693.
 - Remove sourcemap option from terser rollup plugin config, as of rollup-plugin-terser v6.0, it’s inferred automatically from Rollup’s output.source config.
@agilgur5 agilgur5 deleted the greenkeeper/rollup-plugin-terser-6.0.0 branch September 30, 2020 20:13
aladdin-add pushed a commit to weiran-zsd/dts-cli that referenced this pull request Aug 30, 2021
 - Update Rollup to 2.28.2. Fixes jaredpalmer#821, closes jaredpalmer#545
 - Update @rollup/plugin-commonjs. Upgrading this required Rollup 2 without any note in the changelog.  Closes jaredpalmer#727
 - Update @rollup/plugin-json to 4.1.0. v4.0.3 is the first to add Rollup 2 in the peerDep range. Older versions are forward-compatible but will produce a peerDep warning
 - Update @rollup/plugin-replace to 2.3.3. v2.3.2 is the first version to add Rollup 2 in the peerDep range.
 - Update rollup-plugin-terser to v7. v6 requires rollup 2 and Node 10+. v7 introduces Terser 5, requires Node >= 10 and supports some new JS syntax. fixes jaredpalmer#803, #fixes 797, closes jaredpalmer#731
 - Update rollup-plugin-postcss to 3.1. Closes jaredpalmer#693.
 - Remove sourcemap option from terser rollup plugin config, as of rollup-plugin-terser v6.0, it’s inferred automatically from Rollup’s output.source config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
greenkeeper progress: blocked solution: duplicate This issue or pull request already exists topic: Node 10+ requires Node 10+ topic: Rollup 2 Related to Rollup 2 upgrade
Projects
None yet
4 participants