Skip to content

Releases: nvxdm/nestjs-form-data

v11.0.1

Choose a tag to compare

@nvxdm nvxdm released this 05 Mar 11:54
  • 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 awaitCleanup configuration option (default: true). When true, the response waits for file cleanup to complete. Set to false for fire-and-forget cleanup and faster response times.

v11.0.0

Choose a tag to compare

@nvxdm nvxdm released this 05 Mar 11:09
  • SECURITY: Fixed prototype pollution vulnerability via multipart field names (__proto__[key]). The form-data result object is now created with Object.create(null) (src/classes/FormReader.ts)
  • SECURITY: Fixed HasMimeType strictSource parameter 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 MemoryStoredFile that could cause requests to hang indefinitely on client disconnect (src/classes/storage/MemoryStoredFile.ts)
  • FIX: Fixed unhandled input stream errors in FileSystemStoredFile that could leave partial files on disk (src/classes/storage/FileSystemStoredFile.ts)
  • FIX: Fixed TypeError crash when busboy emits events before handle() is called — handlePromiseResolve/handlePromiseReject are now initialized with no-ops (src/classes/FormReader.ts)
  • FIX: Fixed TypeError crash in busboy limit event handlers when config.limits is undefined — added optional chaining (src/classes/FormReader.ts)
  • FIX: Fixed orphaned files left on disk when fileSize limit 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

Choose a tag to compare

@nvxdm nvxdm released this 23 Jun 20:46
- Resolved [Issue 55](https://github.com/dmitriy-nz/nestjs-form-data/…

v1.9.9

Choose a tag to compare

@nvxdm nvxdm released this 23 Jun 09:54
  • Resolved Issue 60
  • Added test cases for enableImplicitConversion field in the class-validator transform options
  • Modified IsFile validator to handle enableImplicitConversion param
  • Some other test cases were improved

v1.9.7

Choose a tag to compare

@nvxdm nvxdm released this 01 Apr 20:30
  • autoDeleteFile config field separated to two fields: cleanupAfterSuccessHandle and cleanupAfterFailedHandle
  • Extended HasMimeType validator, 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

v1.9.6

Choose a tag to compare

@nvxdm nvxdm released this 29 Feb 20:56
  • Updated peer deps: reflect-metadata^0.2.0
  • Resolved Issue 58

v1.9.2

Choose a tag to compare

@nvxdm nvxdm released this 19 Nov 19:59

v1.9.1

Choose a tag to compare

@nvxdm nvxdm released this 07 Oct 14:18

Resolved #41
Added tests for reproduce #49
Fixed issue with mappings files to same field
Removed node-append-field library from dependencies and placed in the project (for modification)