Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Switch to audit resolver to ignore requirejs vulnerability #5573

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

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

  • requirejs now has an "unfixable" vulnerability
  • npm audit can not ignore single dependencies but only e.g. all devDependencies
  • we want to keep auditing devDependencies as some are bundled into rollup
  • requirejs is only used in tests where the vulnerability does not matter, and we definitely DO want to keep testing it as it is the standard AMD runtime

Therefore, I am switching from npm audit to audit-resolver which does allow to ignore single dependencies. To handle audit vulnerabilities, you should now run npm run resolve-audit.

Copy link

vercel bot commented Jul 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 7:01am

Copy link

github-actions bot commented Jul 11, 2024

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#resolve-audit

Notice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust.

or load it into the REPL:
https://rollup-4gg764wpg-rollup-js.vercel.app/repl/?pr=5573

Copy link

Performance report!

Rough benchmark

Command Mean [s] Min [s] Max [s] Relative
node _benchmark/previous/bin/rollup -i ./perf/entry.js -o _benchmark/result/previous.js 9.270 ± 0.077 9.182 9.323 1.01 ± 0.01
node _benchmark/current/bin/rollup -i ./perf/entry.js -o _benchmark/result/current.js 9.204 ± 0.011 9.193 9.215 1.00

Internal benchmark

  • BUILD: 8264ms, 752 MB
    • initialize: 0ms, 26 MB
    • generate module graph: 3195ms, 575 MB
      • generate ast: 1521ms, 568 MB
    • sort and bind modules: 453ms, 616 MB
    • mark included statements: 4606ms, 752 MB
      • treeshaking pass 1: 1575ms, 717 MB
      • treeshaking pass 2: 756ms, 737 MB
      • treeshaking pass 3: 292ms, 747 MB
      • treeshaking pass 4: 270ms, 745 MB
      • treeshaking pass 5: 314ms, 750 MB
      • treeshaking pass 6: 260ms, 748 MB
      • treeshaking pass 7: 241ms, 751 MB
      • treeshaking pass 8: 233ms, 751 MB
      • treeshaking pass 9: 211ms, 753 MB
      • treeshaking pass 10: 213ms, 754 MB
      • treeshaking pass 11: 209ms, 752 MB
  • GENERATE: 886ms, 1.02 GB
    • initialize render: 0ms, 914 MB
    • generate chunks: 86ms, 920 MB
      • optimize chunks: 0ms, 917 MB
    • render chunks: 785ms, 1 GB
    • transform chunks: 18ms, 1.02 GB
    • generate bundle: 0ms, 1.02 GB

Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.04%. Comparing base (13cdab5) to head (f55e04d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5573   +/-   ##
=======================================
  Coverage   99.04%   99.04%           
=======================================
  Files         238      238           
  Lines        9256     9256           
  Branches     2441     2441           
=======================================
  Hits         9168     9168           
  Misses         58       58           
  Partials       30       30           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lukastaegert lukastaegert merged commit ce8f83c into master Jul 12, 2024
39 checks passed
@lukastaegert lukastaegert deleted the resolve-audit branch July 12, 2024 16:00
Copy link

This PR has been released as part of rollup@4.19.0. You can test it via npm install rollup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.