Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
Unreleased
----------

- Fix deprecation warnings for Rails 7.1+ [#2041](https://github.com/Shopify/shopify_app/pull/2041)

23.0.0 (December 11, 2025)
----------
- ⚠️ [Breaking] Bumps minimum supported Rails version to 7.1 & Ruby version to 3.2; moves jobs from `lib` to `app` to fix loading issues with modern rails versions. [#2020](https://github.com/Shopify/shopify_app/pull/2020)
- ActiveJob classes moved from `lib/shopify_app/jobs/` to `app/jobs/shopify_app/` to follow Rails conventions and fix timing issues with ActiveJob initialization
- Jobs are now autoloaded by Rails instead of explicitly required during gem initialization
Expand Down
6 changes: 5 additions & 1 deletion lib/shopify_app/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ def deprecated(message, version)

raise ShopifyAPI::Errors::FeatureDeprecatedError unless valid_version(version)

ActiveSupport::Deprecation.warn("[#{version}] #{context(:warn)} #{message}")
deprecator.warn("[#{version}] #{context(:warn)} #{message}")
end

def deprecator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's mark this as private for consistency with the other helper methods

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated

@deprecator ||= ActiveSupport::Deprecation.new(ShopifyApp::VERSION, "ShopifyApp")
end

private
Expand Down