Skip to content

v1.2.0

Latest

Choose a tag to compare

@nlvcodes nlvcodes released this 22 Feb 22:46
· 5 commits to main since this release

What's New in v1.2.0

Bug Fixes

  • Fix fields not populating after upload with plugin-cloud-storage 3.70.0+ — handleUpload now returns data correctly (#3)
  • Fix SVG uploads — SVG files are now uploaded as resource_type: 'raw' instead of being misidentified (#2)
  • Fix cloud name resolution in client-side transformations
  • Add clientUploadContext support for newer versions of plugin-cloud-storage

Security

  • Add authentication checks to upload status endpoints
  • Add sanitizeFolderPath() to protect against path traversal attacks
  • Simplify handleDelete by removing fragile stack trace parsing

Reliability

  • Add try-catch to generateURL with filename fallback
  • Add error logging to staticHandler
  • Add .catch() safety to serverHelpers batch operations

Type Safety

  • Add CloudinaryUploadResult and CloudinaryDocumentData typed interfaces
  • Apply typed interfaces across all handlers
  • Add runtime body validation to batch signed URL endpoint

Cleanup

  • Remove leftover console.log/console.warn from handlers
  • Deduplicate commonPresets — single source of truth in clientTransformations
  • Enable noUnusedLocals in tsconfig for stricter compilation
  • Update CI to pnpm 10 and Node 20.x/22.x

Testing

  • 43 unit tests covering uploads, deletions, URL generation, signed URLs, and upload status

Full Changelog: v1.1.3...v1.2.0