Skip to content

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

Closed
greenkeeper[bot] wants to merge 2 commits into
masterfrom
greenkeeper/rollup-plugin-terser-6.0.0
Closed

Update rollup-plugin-terser to the latest version 🚀#731
greenkeeper[bot] wants to merge 2 commits into
masterfrom
greenkeeper/rollup-plugin-terser-6.0.0

Conversation

@greenkeeper

@greenkeeper greenkeeper Bot commented May 23, 2020

Copy link
Copy Markdown
Contributor

🚨 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
Copy Markdown

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

agilgur5 commented Aug 12, 2020

Copy link
Copy Markdown
Collaborator

@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
Copy Markdown

@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

agilgur5 commented Aug 24, 2020

Copy link
Copy Markdown
Collaborator

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

Yurickh commented Sep 7, 2020

Copy link
Copy Markdown

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

agilgur5 commented Sep 7, 2020

Copy link
Copy Markdown
Collaborator

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

Yurickh commented Sep 7, 2020

Copy link
Copy Markdown

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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

Upgrade ts-jest and rollup-plugin-terser to fix vulnerabilities Update rollup-plugin-terser to fix vulnerability

4 participants