Skip to content

uploadcare-rails 5.0.0

Choose a tag to compare

@vipulnsward vipulnsward released this 18 May 13:50
· 3 commits to main since this release
4785d05

Stable release of the v5 rewrite on uploadcare-ruby 5.0.0.

Highlights:

  • Client-first API through Uploadcare::Rails.client and Uploadcare::Client.
  • Rails model macros: has_uploadcare_file and has_uploadcare_files.
  • Uploader helpers: uploadcare_file_field, uploadcare_files_field, and FormBuilder equivalents.
  • Active Storage service integration via ActiveStorage::Service::UploadcareService.
  • Active Storage preview and remote variant processing for Uploadcare-backed blobs.
  • Rails 7.2, 8.0, and 8.1 support with Ruby 3.3+ baseline.

Breaking changes:

  • Removed mount_uploadcare_file and mount_uploadcare_file_group; use has_uploadcare_file and has_uploadcare_files.
  • Removed uploadcare_uploader_field, uploadcare_uploader_field_tag, and f.uploadcare_file; use the new field helper names.
  • Replaced Uploadcare::Rails::File and Uploadcare::Rails::Group with AttachedFile and AttachedFiles.
  • Manual API wrappers are no longer the public path; use Uploadcare::Rails.client or explicit Uploadcare::Client instances.
  • do_not_store: is replaced by the positive store_files_after_save configuration.

There are no breaking API changes from 5.0.0.rc1. For upgrades from 4.x or older, follow MIGRATING_V5.md.

RubyGems: https://rubygems.org/gems/uploadcare-rails/versions/5.0.0
Changelog: https://github.com/uploadcare/uploadcare-rails/blob/main/CHANGELOG.md
Migration guide: https://github.com/uploadcare/uploadcare-rails/blob/main/MIGRATING_V5.md