- Provide correct type for
part.arrayBuffer()
part.isFile
now correctly detectspart.mediaType === 'application/octet-stream'
- More small performance improvements
- BREAKING: Removed some low-level API (
parser.push()
andparser.reset()
) that was duplicating higher-level API. Useparser.parse()
instead. - Added
parser.maxHeaderSize
andparser.maxFileSize
properties - Small performance improvements when parsing large files
- Change default
maxFileSize
from 10 MB toInfinity
- Simplify internal buffer management and search, which leads to more consistent chunk flow when handling large file uploads
- Fix bug where max file size exceeded error would crash Node.js servers (#8)
- Add
type
keyword toMultipartParserOptions
export for Deno (#11)
- Switch dependency from
fetch-super-headers
to@mjackson/headers
- Use
for await...of
to iterate overReadableStream
internally. This will also cancel the stream when the loop exits from e.g. an error in a user-definedpart
handler.