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

feat(webpack): migrate to memfs #27652

Merged
merged 1 commit into from
Jun 17, 2024
Merged

feat(webpack): migrate to memfs #27652

merged 1 commit into from
Jun 17, 2024

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Jun 16, 2024

🔗 Linked issue

resolves #26435
related #21804, #20564

📚 Description

This migrates from 'memory-fs' to 'memfs'.

This is necessary because of a breaking change with 'webpack-dev-middleware' in 5.0.0 . But sticking to 5.0.0 would mean that we would have a known security vulnerability with path traversal: GHSA-wr3j-pwj9-hqq6.

Copy link

stackblitz bot commented Jun 16, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 27 lines in your changes missing coverage. Please review.

Project coverage is 65.86%. Comparing base (ef2f6b8) to head (265471a).
Report is 15 commits behind head on 2.x.

Files with missing lines Patch % Lines
packages/webpack/src/utils/async-mfs.js 0.00% 23 Missing and 3 partials ⚠️
packages/webpack/src/builder.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x   #27652       /-   ##
==========================================
- Coverage   66.23%   65.86%   -0.38%     
==========================================
  Files          93       93              
  Lines        4123     4139       16     
  Branches     1170     1172        2     
==========================================
- Hits         2731     2726       -5     
- Misses       1126     1145       19     
- Partials      266      268        2     
Flag Coverage Δ
unittests 65.86% <0.00%> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@danielroe danielroe changed the title fix(webpack): migrate to memfs feat(webpack): migrate to memfs Jun 16, 2024
@danielroe danielroe requested a review from pi0 June 17, 2024 11:23
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ancient history for me to comment haha, i would recommand to fork memfs or even inline it to avoid fs workaround

@danielroe danielroe merged commit 7cec79c into 2.x Jun 17, 2024
18 checks passed
@danielroe danielroe deleted the fix/memfs branch June 17, 2024 11:33
@github-actions github-actions bot mentioned this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants