What's New in v1.2.0
Bug Fixes
- Fix fields not populating after upload with
plugin-cloud-storage3.70.0+ —handleUploadnow 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
clientUploadContextsupport for newer versions ofplugin-cloud-storage
Security
- Add authentication checks to upload status endpoints
- Add
sanitizeFolderPath()to protect against path traversal attacks - Simplify
handleDeleteby removing fragile stack trace parsing
Reliability
- Add try-catch to
generateURLwith filename fallback - Add error logging to
staticHandler - Add
.catch()safety toserverHelpersbatch operations
Type Safety
- Add
CloudinaryUploadResultandCloudinaryDocumentDatatyped interfaces - Apply typed interfaces across all handlers
- Add runtime body validation to batch signed URL endpoint
Cleanup
- Remove leftover
console.log/console.warnfrom handlers - Deduplicate
commonPresets— single source of truth inclientTransformations - Enable
noUnusedLocalsin 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