fix(dev): fix simple-zstd v2 API breakage in webpack proxy config#39138
fix(dev): fix simple-zstd v2 API breakage in webpack proxy config#39138michael-s-molina wants to merge 1 commit intoapache:masterfrom
Conversation
Code Review Agent Run #754863Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
simple-zstd v2 renamed ZSTDDecompress to decompress and made it async. Update the import and await the call in processHTML to get a proper stream. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18a5c02 to
d76ed19
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #39138 +/- ##
=======================================
Coverage 64.52% 64.52%
=======================================
Files 2536 2536
Lines 131208 131208
Branches 30457 30457
=======================================
Hits 84661 84661
Misses 45084 45084
Partials 1463 1463
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…t-frontend Reverts apache#38662. The v2 bump introduced breaking API changes that caused npm run dev-server to stop working. Even with the fixes in apache#39138 the application was still freezing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Closing in favor of #39139 |
Code Review Agent Run #2ee983Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
SUMMARY
#38662 bumped
simple-zstdfrom 1.4.2 to 2.1.0. That version is a breaking release that renamedZSTDDecompresstodecompressand made it async (returns aPromise<stream>instead of a stream directly).This caused the webpack dev proxy to crash when the backend responds with
content-encoding: zstd:TypeError: ZSTDDecompress is not a functionTypeError: dest.on is not a function(when trying to pipe into a Promise)Fix:
ZSTDDecompresstodecompressprocessHTMLasync andawaitthedecompress()call so a proper stream is returned before pipingCaused by: #38662
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TESTING INSTRUCTIONS
npm run devinsuperset-frontend/http://localhost:9000/login/— should load without proxy errors in the consoleADDITIONAL INFORMATION