multipart-parser@0.16.0
Breaking Changes📦 remixView on GitHub →
⚠ 1 breaking🔧 1 symbols
Summary
This release introduces a breaking change where `MultipartPart.headers` is now a standard dictionary-like object, requiring users to switch from method access to bracket notation for header retrieval.
⚠️ Breaking Changes
- The `MultipartPart.headers` attribute is now a plain decoded object keyed by lower-case header name instead of a native `Headers` instance. Fix: Access part headers using bracket notation, e.g., `part.headers['content-type']`, instead of method calls like `part.headers.get('content-type')`.
Migration Steps
- Change access to `MultipartPart.headers` from method calls (e.g., `.get()`) to bracket notation using lower-case keys (e.g., `part.headers['header-name']`).