multipart-parser@0.15.0
Breaking Changes📦 remixView on GitHub →
⚠ 1 breaking✨ 1 features🔧 5 symbols
Summary
This release introduces breaking changes to multipart parsing functions by enforcing default finite limits on parts and total size, requiring explicit configuration for large requests.
⚠️ Breaking Changes
- The default behavior of `parseMultipart()`, `parseMultipartStream()`, and `parseMultipartRequest()` has changed to enforce finite `maxParts` and `maxTotalSize` limits. Apps accepting large multipart requests must now explicitly set higher values for `maxParts` or `maxTotalSize` to avoid `MaxPartsExceededError` or `MaxTotalSizeExceededError`.
Migration Steps
- If your application relies on accepting large multipart requests without explicit limits, raise `maxParts` or `maxTotalSize` in calls to `parseMultipart()`, `parseMultipartStream()`, or `parseMultipartRequest()`.
✨ New Features
- Added `MaxPartsExceededError` and `MaxTotalSizeExceededError` for handling multipart envelope limit failures.