Releases: nvxdm/nestjs-form-data
Releases · nvxdm/nestjs-form-data
Release list
v11.0.1
- FIX: Fixed race condition where file cleanup was not awaited before sending response —
deleteFiles()is now properly awaited in both success and error paths (src/interceptors/FormData.interceptor.ts) - FEATURE: Added
awaitCleanupconfiguration option (default:true). Whentrue, the response waits for file cleanup to complete. Set tofalsefor fire-and-forget cleanup and faster response times.
v11.0.0
- SECURITY: Fixed prototype pollution vulnerability via multipart field names (
__proto__[key]). The form-data result object is now created withObject.create(null)(src/classes/FormReader.ts) - SECURITY: Fixed
HasMimeTypestrictSourceparameter being silently ignored — the constraint was never passed through to the validator (src/decorators/validation/has-mime-type.validator.ts) - FIX: Fixed unhandled stream errors in
MemoryStoredFilethat could cause requests to hang indefinitely on client disconnect (src/classes/storage/MemoryStoredFile.ts) - FIX: Fixed unhandled input stream errors in
FileSystemStoredFilethat could leave partial files on disk (src/classes/storage/FileSystemStoredFile.ts) - FIX: Fixed
TypeErrorcrash when busboy emits events beforehandle()is called —handlePromiseResolve/handlePromiseRejectare now initialized with no-ops (src/classes/FormReader.ts) - FIX: Fixed
TypeErrorcrash in busboy limit event handlers whenconfig.limitsis undefined — added optional chaining (src/classes/FormReader.ts) - FIX: Fixed orphaned files left on disk when
fileSizelimit triggers truncation — truncated files are now deleted immediately (src/classes/FormReader.ts) - Major version now aligns with the supported NestJS major version
v1.9.91
v1.9.9
v1.9.7
autoDeleteFileconfig field separated to two fields:cleanupAfterSuccessHandleandcleanupAfterFailedHandle- Extended
HasMimeTypevalidator, added regex support and asterisk match - Extended tests for cover a new functionality
- Resolved Issue 56
- Resolved Issue 57
- Updated README.md - described additional information about the usage of new config fields and validations