v2.2.0
This is the final v2.x release before v3.0.0.
π New Features
- TUS
checkAccessBody: The TUScheckAccesscallback now receives the parsed auth request body as a second argument (collection,filename,filetype,filesize), so you can gate uploads before the video is created (#17 - Thanks to @madaxen86) - Dynamic Upload Prefix: The storage prefix can now be set per-document via
data.prefixfrom a collection hook (for example, per-tenant folders); uploads without it are unchanged (#18 - Thanks to @mengidd)
π Bug Fixes
- URL Transform: Fixed
applyUrlTransformthrowing on relative (access-controlled) URLs, and existing query parameters are now preserved - Storage Query Parameters: Request query parameters are now preserved when proxying storage files through Payload (for example, Bunny Image Optimizer parameters with access control enabled)
- TUS Save Detection: Fixed post-upload "saved" detection that compared the document update event by object identity instead of its
updatedAt - Non-Upload Collections: The plugin now fails fast with a clear error when a configured collection has no
uploadconfig
π οΈ Development
- CI:
test-buildnow runs on push and pull requests; workflow actions updated to their latest versions, pnpm is resolved from thepackageManagerfield, and npm provenance is enabled for publishing
Full Changelog: v2.1.1...v2.2.0