Skip to content

v2.2.0

Choose a tag to compare

@maximseshuk maximseshuk released this 12 Jul 22:15

This is the final v2.x release before v3.0.0.

πŸš€ New Features

  • TUS checkAccess Body: The TUS checkAccess callback 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.prefix from a collection hook (for example, per-tenant folders); uploads without it are unchanged (#18 - Thanks to @mengidd)

πŸ› Bug Fixes

  • URL Transform: Fixed applyUrlTransform throwing 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 upload config

πŸ› οΈ Development

  • CI: test-build now runs on push and pull requests; workflow actions updated to their latest versions, pnpm is resolved from the packageManager field, and npm provenance is enabled for publishing

Full Changelog: v2.1.1...v2.2.0