Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Update deprecation EOL for some items to Spree 5.5 (#13412)
Damian Legawiec8e173dfc7613
diff --git a/admin/app/helpers/spree/admin/base_helper.rb b/admin/app/helpers/spree/admin/base_helper.rbindex b44f47a846..83cfc2715b 100644--- a/admin/app/helpers/spree/admin/base_helper.rb+++ b/admin/app/helpers/spree/admin/base_helper.rb@@ -37,7 +37,7 @@ module Spreeenddef settings_active?- Spree::Deprecation.warn('settings_active? is deprecated and will be removed in Spree 6.0. Please use settings_area? instead')+ Spree::Deprecation.warn('settings_active? is deprecated and will be removed in Spree 5.5. Please use settings_area? instead')@settings_active || %w[admin_users audits custom_domains exports invitations oauth_applicationspayment_methods refund_reasons reimbursement_types return_authorization_reasons rolesshipping_categories shipping_methods stock_locations store_credit_categoriesdiff --git a/admin/app/helpers/spree/admin/modal_helper.rb b/admin/app/helpers/spree/admin/modal_helper.rbindex 97f138971b..a9da471098 100644--- a/admin/app/helpers/spree/admin/modal_helper.rb+++ b/admin/app/helpers/spree/admin/modal_helper.rb@@ -5,7 +5,7 @@ module Spree# @param title [String, Proc] the title of the modal# @return [String]def modal_header(title)- Spree::Deprecation.warn('Bootstrap modals are deprecated and will be removed in Spree 6. Please use native dialogs with `dialog_header` helper.')+ Spree::Deprecation.warn('Bootstrap modals are deprecated and will be removed in Spree 5.5. Please use native dialogs with `dialog_header` helper.')title = capture(&title) if block_given?content_tag(:div, class: 'modal-header') dodiff --git a/admin/app/helpers/spree/admin/turbo_helper.rb b/admin/app/helpers/spree/admin/turbo_helper.rbindex a54a862c4a..c99ac3e7fa 100644--- a/admin/app/helpers/spree/admin/turbo_helper.rb+++ b/admin/app/helpers/spree/admin/turbo_helper.rb@@ -2,7 +2,7 @@ module Spreemodule Adminmodule TurboHelperdef turbo_close_modal(modal_id = nil)- Spree::Deprecation.warn('turbo_close_modal is deprecated and will be removed in Spree 6. Use turbo_close_dialog instead.')+ Spree::Deprecation.warn('turbo_close_modal is deprecated and will be removed in Spree 5.5. Use turbo_close_dialog instead.')modal_id ||= 'modal'diff --git a/api/app/controllers/concerns/spree/api/v2/storefront/order_concern.rb b/api/app/controllers/concerns/spree/api/v2/storefront/order_concern.rbindex 716a8ee1a0..ba35a98e66 100644--- a/api/app/controllers/concerns/spree/api/v2/storefront/order_concern.rb+++ b/api/app/controllers/concerns/spree/api/v2/storefront/order_concern.rb@@ -39,7 +39,7 @@ module Spreeenddef serialize_order(order)- Spree::Deprecation.warn('OrderConcern#serialize_order is deprecated and will be removed in Spree 6.0. Please use `serialize_resource` method')+ Spree::Deprecation.warn('OrderConcern#serialize_order is deprecated and will be removed in Spree 5.5. Please use `serialize_resource` method')serialize_resource(order)endenddiff --git a/core/app/helpers/spree/base_helper.rb b/core/app/helpers/spree/base_helper.rbindex 40319c688f..35fa378034 100644--- a/core/app/helpers/spree/base_helper.rb+++ b/core/app/helpers/spree/base_helper.rb@@ -140,7 +140,7 @@ module Spreedef pretty_time(time)return '' if time.blank?- Spree::Deprecation.warn('BaseHelper#pretty_time is deprecated and will be removed in Spree 6.0. Please add `local_time` gem to your Gemfile and use `local_time(time)` instead')+ Spree::Deprecation.warn('BaseHelper#pretty_time is deprecated and will be removed in Spree 5.5. Please add `local_time` gem to your Gemfile and use `local_time(time)` instead')[I18n.l(time.to_date, format: :long), time.strftime('%l:%M %p %Z')].join(' ')end@@ -148,7 +148,7 @@ module Spreedef pretty_date(date)return '' if date.blank?- Spree::Deprecation.warn('BaseHelper#pretty_date is deprecated and will be removed in Spree 6.0. Please add `local_time` gem to your Gemfile and use `local_date(date)` instead')+ Spree::Deprecation.warn('BaseHelper#pretty_date is deprecated and will be removed in Spree 5.5. Please add `local_time` gem to your Gemfile and use `local_date(date)` instead')[I18n.l(date.to_date, format: :long)].join(' ')end@@ -217,19 +217,19 @@ module Spree# we should always try to render image of the default variant# same as it's done on PDPdef default_image_for_product(product)- Spree::Deprecation.warn('BaseHelper#default_image_for_product is deprecated and will be removed in Spree 6.0. Please use product.default_image instead')+ Spree::Deprecation.warn('BaseHelper#default_image_for_product is deprecated and will be removed in Spree 5.5. Please use product.default_image instead')product.default_imageenddef default_image_for_product_or_variant(product_or_variant)- Spree::Deprecation.warn('BaseHelper#default_image_for_product_or_variant is deprecated and will be removed in Spree 6.0. Please use product_or_variant.default_image instead')+ Spree::Deprecation.warn('BaseHelper#default_image_for_product_or_variant is deprecated and will be removed in Spree 5.5. Please use product_or_variant.default_image instead')product_or_variant.default_imageenddef base_cache_key- Spree::Deprecation.warn('`base_cache_key` is deprecated and will be removed in Spree 6. Please use `spree_base_cache_key` instead')+ Spree::Deprecation.warn('`base_cache_key` is deprecated and will be removed in Spree 5.5. Please use `spree_base_cache_key` instead')spree_base_cache_keyenddiff --git a/core/app/helpers/spree/currency_helper.rb b/core/app/helpers/spree/currency_helper.rbindex f8d35a5d1d..e3bf1a4f30 100644--- a/core/app/helpers/spree/currency_helper.rb+++ b/core/app/helpers/spree/currency_helper.rb@@ -45,12 +45,12 @@ module Spree# Returns the list of supported currencies for the current store.# @return [Array<Money::Currency>] the list of supported currenciesdef preferred_currencies- Spree::Deprecation.warn('preferred_currencies is deprecated and will be removed in Spree 6.0. Use current_store.supported_currencies_list instead.')+ Spree::Deprecation.warn('preferred_currencies is deprecated and will be removed in Spree 5.5. Use current_store.supported_currencies_list instead.')@preferred_currencies ||= current_store.supported_currencies_listenddef preferred_currencies_select_options- Spree::Deprecation.warn('preferred_currencies_select_options is deprecated and will be removed in Spree 6.0. Use supported_currency_options instead.')+ Spree::Deprecation.warn('preferred_currencies_select_options is deprecated and will be removed in Spree 5.5. Use supported_currency_options instead.')preferred_currencies.map { |currency| currency_presentation(currency) }enddiff --git a/core/app/helpers/spree/mail_helper.rb b/core/app/helpers/spree/mail_helper.rbindex 0117547a55..524ac311c4 100644--- a/core/app/helpers/spree/mail_helper.rb+++ b/core/app/helpers/spree/mail_helper.rb@@ -17,7 +17,7 @@ module Spreeenddef logo_path- Spree::Deprecation.warn('logo_path is deprecated and will be removed in Spree 6.0. Please use Active Storage URL helpers instead.')+ Spree::Deprecation.warn('logo_path is deprecated and will be removed in Spree 5.5. Please use Active Storage URL helpers instead.')return main_app.cdn_image_url(store_logo.variant(resize_to_limit: [244, 104])) if store_logo&.variable?diff --git a/core/app/helpers/spree/products_helper.rb b/core/app/helpers/spree/products_helper.rbindex b99c616440..327cf8a840 100644--- a/core/app/helpers/spree/products_helper.rb+++ b/core/app/helpers/spree/products_helper.rb@@ -121,7 +121,7 @@ module Spreeenddef related_products- Spree::Deprecation.warn('ProductsHelper#related_products is deprecated and will be removed in Spree 6.0. Please use ProductsHelper#relations from now on.')+ Spree::Deprecation.warn('ProductsHelper#related_products is deprecated and will be removed in Spree 5.5. Please use ProductsHelper#relations from now on.')return [] unless @product.respond_to?(:has_related_products?)diff --git a/core/app/models/spree/option_type.rb b/core/app/models/spree/option_type.rbindex d827c84f01..d5417aac3f 100644--- a/core/app/models/spree/option_type.rb+++ b/core/app/models/spree/option_type.rb@@ -59,7 +59,7 @@ module Spree# legacy, name itself is now parameterized before savingdef filter_param- Spree::Deprecation.warn('Spree::OptionType#filter_param is deprecated and will be removed in Spree 6. Please use Spree::OptionType#name instead.')+ Spree::Deprecation.warn('Spree::OptionType#filter_param is deprecated and will be removed in Spree 5.5. Please use Spree::OptionType#name instead.')name.parameterizeenddiff --git a/core/app/models/spree/order.rb b/core/app/models/spree/order.rbindex 43e0e2221a..b9da2bff6d 100644--- a/core/app/models/spree/order.rb+++ b/core/app/models/spree/order.rb@@ -542,7 +542,7 @@ module Spreeenddef available_payment_methods(store = nil)- Spree::Deprecation.warn('`Order#available_payment_methods` is deprecated and will be removed in Spree 6. Use `collect_frontend_payment_methods` instead.')+ Spree::Deprecation.warn('`Order#available_payment_methods` is deprecated and will be removed in Spree 5.5. Use `collect_frontend_payment_methods` instead.')if store.present?Spree::Deprecation.warn('The `store` parameter is deprecated and will be removed in Spree 5. Order is already associated with Store')end@@ -967,12 +967,8 @@ module Spreeself.currency ||= store&.default_currencyend- def collect_payment_methods(store = nil)- Spree::Deprecation.warn('`Order#collect_payment_methods` is deprecated and will be removed in Spree 6. Use `collect_frontend_payment_methods` instead.')- if store.present?- Spree::Deprecation.warn('The `store` parameter is deprecated and will be removed in Spree 5. Order is already associated with Store')- end- store ||= self.store+ def collect_payment_methods+ Spree::Deprecation.warn('`Order#collect_payment_methods` is deprecated and will be removed in Spree 5.5. Use `collect_frontend_payment_methods` instead.')store.payment_methods.available_on_front_end.select { |pm| pm.available_for_order?(self) }enddiff --git a/core/app/models/spree/order/emails.rb b/core/app/models/spree/order/emails.rbindex 60e3202251..e74bf3245f 100644--- a/core/app/models/spree/order/emails.rb+++ b/core/app/models/spree/order/emails.rb@@ -4,7 +4,7 @@ module Spreeextend ActiveSupport::Concerndef deliver_order_confirmation_email- Spree::Deprecation.warn('Spree::Order#deliver_order_confirmation_email is deprecated and will be removed in Spree 6.0. Please create a Subscriber for order.completed event.')+ Spree::Deprecation.warn('Spree::Order#deliver_order_confirmation_email is deprecated and will be removed in Spree 5.5. Please create a Subscriber for order.completed event.')end# If you would like to also send confirmation email to store owner(s)@@ -13,11 +13,11 @@ module Spreeenddef deliver_store_owner_order_notification_email- Spree::Deprecation.warn('Spree::Order#deliver_store_owner_order_notification_email is deprecated and will be removed in Spree 6.0. Please create a Subscriber for order.completed event.')+ Spree::Deprecation.warn('Spree::Order#deliver_store_owner_order_notification_email is deprecated and will be removed in Spree 5.5. Please create a Subscriber for order.completed event.')enddef send_cancel_email- Spree::Deprecation.warn('Spree::Order#send_cancel_email is deprecated and will be removed in Spree 6.0. Please create a Subscriber for order.canceled event.')+ Spree::Deprecation.warn('Spree::Order#send_cancel_email is deprecated and will be removed in Spree 5.5. Please create a Subscriber for order.canceled event.')endendenddiff --git a/core/app/models/spree/product.rb b/core/app/models/spree/product.rbindex c4c5df100d..13b785a7ce 100644--- a/core/app/models/spree/product.rb+++ b/core/app/models/spree/product.rb@@ -557,7 +557,7 @@ module Spreeif self.class.reflect_on_association(:brand)superelse- Spree::Deprecation.warn('Spree::Product#brand is deprecated and will be removed in Spree 6. Please use Spree::Product#brand_taxon instead.')+ Spree::Deprecation.warn('Spree::Product#brand is deprecated and will be removed in Spree 5.5. Please use Spree::Product#brand_taxon instead.')brand_taxonendend@@ -592,7 +592,7 @@ module Spreeif self.class.reflect_on_association(:category)superelse- Spree::Deprecation.warn('Spree::Product#category is deprecated and will be removed in Spree 6. Please use Spree::Product#category_taxon instead.')+ Spree::Deprecation.warn('Spree::Product#category is deprecated and will be removed in Spree 5.5. Please use Spree::Product#category_taxon instead.')category_taxonendend@@ -721,7 +721,7 @@ module Spreeenddef default_variant_cache_key- Spree::Deprecation.warn('Spree::Product#default_variant_cache_key is deprecated and will be removed in Spree 6. Please remove any occurrences of it.')+ Spree::Deprecation.warn('Spree::Product#default_variant_cache_key is deprecated and will be removed in Spree 5.5. Please remove any occurrences of it.')"spree/default-variant/#{cache_key_with_version}/#{Spree::Config[:track_inventory_levels]}"enddiff --git a/core/app/models/spree/promotion/rules/user.rb b/core/app/models/spree/promotion/rules/user.rbindex ba71bba311..e99cfaeb00 100644--- a/core/app/models/spree/promotion/rules/user.rb+++ b/core/app/models/spree/promotion/rules/user.rb@@ -34,7 +34,7 @@ module Spreedef user_ids_stringActiveSupport::Deprecation.warn(- 'Spree::Promotion::Rules::User#user_ids_string is deprecated and will be removed in Spree 6.0. ' \+ 'Spree::Promotion::Rules::User#user_ids_string is deprecated and will be removed in Spree 5.5. ' \'Please use `user_ids` instead.')user_ids.join(',')@@ -42,7 +42,7 @@ module Spreedef user_ids_string=(s)ActiveSupport::Deprecation.warn(- 'Spree::Promotion::Rules::User#user_ids_string= is deprecated and will be removed in Spree 6.0. ' \+ 'Spree::Promotion::Rules::User#user_ids_string= is deprecated and will be removed in Spree 5.5. ' \'Please use `user_ids=` instead.')self.user_ids = sdiff --git a/core/app/models/spree/store.rb b/core/app/models/spree/store.rbindex 0949572260..993808d5e6 100644--- a/core/app/models/spree/store.rb+++ b/core/app/models/spree/store.rb@@ -355,7 +355,7 @@ module Spreeenddef admin_users- Spree::Deprecation.warn('Store#admin_users is deprecated and will be removed in Spree 6.0. Please use Store#users instead.')+ Spree::Deprecation.warn('Store#admin_users is deprecated and will be removed in Spree 5.5. Please use Store#users instead.')usersend@@ -402,7 +402,7 @@ module Spree%w[customer_terms_of_service customer_privacy_policy customer_returns_policy customer_shipping_policy].each do |policy_method|define_method policy_method do- Spree::Deprecation.warn("Store##{policy_method} is deprecated and will be removed in Spree 6.0. Please use Store#policies instead.")+ Spree::Deprecation.warn("Store##{policy_method} is deprecated and will be removed in Spree 5.5. Please use Store#policies instead.")ActionText::RichText.find_by(name: policy_method, record: self)enddiff --git a/core/app/models/spree/store_credit.rb b/core/app/models/spree/store_credit.rbindex 8a3fc43f42..1d5f701bd9 100644--- a/core/app/models/spree/store_credit.rb+++ b/core/app/models/spree/store_credit.rb@@ -183,7 +183,7 @@ module Spreeclass << selfdef default_created_by- Spree::Deprecation.warn('StoreCredit#default_created_by is deprecated and will be removed in Spree 6.0. Please use store.users.first instead.')+ Spree::Deprecation.warn('StoreCredit#default_created_by is deprecated and will be removed in Spree 5.5. Please use store.users.first instead.')Spree::Store.current.users.firstenddiff --git a/core/app/models/spree/taxon.rb b/core/app/models/spree/taxon.rbindex 89b36da914..1c652c963a 100644--- a/core/app/models/spree/taxon.rb+++ b/core/app/models/spree/taxon.rb@@ -312,7 +312,7 @@ module Spree# indicate which filters should be used for a taxon# this method should be customized to your own sitedef applicable_filters- Spree::Deprecation.warn('applicable_filters is deprecated and will be removed in Spree 6.0')+ Spree::Deprecation.warn('applicable_filters is deprecated and will be removed in Spree 5.5')fs = []# fs << ProductFilters.taxons_below(self)## unless it's a root taxon? left open for demo purposesdiff --git a/core/app/services/spree/addresses/update.rb b/core/app/services/spree/addresses/update.rbindex 7240afc2b3..17f0fc4f32 100644--- a/core/app/services/spree/addresses/update.rb+++ b/core/app/services/spree/addresses/update.rb@@ -12,7 +12,7 @@ module Spreedefault_shipping = opts.fetch(:default_shipping, false)address_changes_except = opts.fetch(:address_changes_except, [])create_new_address_on_update = opts.fetch(:create_new_address_on_update, false)- Spree::Deprecation.warn('Spree::Addresses::Update create_new_address_on_update parameter is deprecated and will be removed in Spree 6.') if create_new_address_on_update+ Spree::Deprecation.warn('Spree::Addresses::Update create_new_address_on_update parameter is deprecated and will be removed in Spree 5.5.') if create_new_address_on_updateprepare_address_params!(address, address_params)address.assign_attributes(address_params)diff --git a/core/lib/spree/core/controller_helpers/search.rb b/core/lib/spree/core/controller_helpers/search.rbindex d4c9d7197b..ba55237253 100644--- a/core/lib/spree/core/controller_helpers/search.rb+++ b/core/lib/spree/core/controller_helpers/search.rb@@ -3,7 +3,7 @@ module Spreemodule ControllerHelpersmodule Searchdef build_searcher(params)- Spree::Deprecation.warn("Spree::Core::ControllerHelpers::Search is deprecated and will be removed in Spree 6.")+ Spree::Deprecation.warn("Spree::Core::ControllerHelpers::Search is deprecated and will be removed in Spree 5.5.")Spree.searcher_class.new(params).tap do |searcher|searcher.current_user = try_spree_current_userdiff --git a/core/lib/spree/core/importer/order.rb b/core/lib/spree/core/importer/order.rbindex 40a9d28dde..4f2bd768ef 100644--- a/core/lib/spree/core/importer/order.rb+++ b/core/lib/spree/core/importer/order.rb@@ -3,7 +3,7 @@ module Spreemodule Importerclass Orderdef self.import(user, params)- Spree::Deprecation.warn('Spree::Core::Importer::Order is deprecated and will be removed in Spree 6.0. Please use `Spree::Imports::Order` instead.')+ Spree::Deprecation.warn('Spree::Core::Importer::Order is deprecated and will be removed in Spree 5.5. Please use `Spree::Imports::Order` instead.')ensure_country_id_from_params params[:ship_address_attributes]ensure_state_id_from_params params[:ship_address_attributes]diff --git a/core/lib/spree/core/importer/product.rb b/core/lib/spree/core/importer/product.rbindex 64396facf5..8003196c51 100644--- a/core/lib/spree/core/importer/product.rb+++ b/core/lib/spree/core/importer/product.rb@@ -5,7 +5,7 @@ module Spreeattr_reader :product, :product_attrs, :variants_attrs, :options_attrs, :storedef initialize(product, product_params, options = {})- Spree::Deprecation.warn('Spree::Core::Importer::Product is deprecated and will be removed in Spree 6.0. Please use `Spree::Imports::Product` instead.')+ Spree::Deprecation.warn('Spree::Core::Importer::Product is deprecated and will be removed in Spree 5.5. Please use `Spree::Imports::Product` instead.')@store = options[:store] || Spree::Store.default@product = product || Spree::Product.new(product_params)diff --git a/core/lib/spree/core/search/base.rb b/core/lib/spree/core/search/base.rbindex 03a26ca998..dfefbd541b 100644--- a/core/lib/spree/core/search/base.rb+++ b/core/lib/spree/core/search/base.rb@@ -5,7 +5,7 @@ module Spreeattr_accessor :properties, :current_user, :current_currency, :current_store, :taxondef initialize(params)- Spree::Deprecation.warn("Spree::Core::Search::Base is deprecated and will be removed in Spree 6. Please use `Spree::Products::Find` finder instead.")+ Spree::Deprecation.warn("Spree::Core::Search::Base is deprecated and will be removed in Spree 5.5. Please use `Spree::Products::Find` finder instead.")@properties = {}@current_store = params[:current_store] || Spree::Store.defaultdiff --git a/core/lib/spree/core/token_generator.rb b/core/lib/spree/core/token_generator.rbindex e735c9b075..f30131ac3c 100644--- a/core/lib/spree/core/token_generator.rb+++ b/core/lib/spree/core/token_generator.rb@@ -2,7 +2,7 @@ module Spreemodule Coremodule TokenGeneratordef generate_token(model_class = Spree::Order)- Spree::Deprecation.warn('generate_token is deprecated and will be removed in Spree 6.0. Please use Rails secure token generator: https://api.rubyonrails.org/classes/ActiveRecord/SecureToken/ClassMethods.html')+ Spree::Deprecation.warn('generate_token is deprecated and will be removed in Spree 5.5. Please use Rails secure token generator: https://api.rubyonrails.org/classes/ActiveRecord/SecureToken/ClassMethods.html')loop dotoken = "#{random_token}#{unique_ending}"break token unless model_class.exists?(token: token)diff --git a/core/spec/presenters/spree/csv/gift_card_presenter_spec.rb b/core/spec/presenters/spree/csv/gift_card_presenter_spec.rbindex 53d859ae95..afb32acaac 100644--- a/core/spec/presenters/spree/csv/gift_card_presenter_spec.rb+++ b/core/spec/presenters/spree/csv/gift_card_presenter_spec.rb@@ -10,7 +10,7 @@ RSpec.describe Spree::CSV::GiftCardPresenter, type: :model doamount_used: 10.00,currency: 'USD',state: 'active',- expires_at: Date.new(2025, 12, 31),+ expires_at: Date.new(Time.current.year, 12, 31),user: user,store: store)end@@ -24,7 +24,7 @@ RSpec.describe Spree::CSV::GiftCardPresenter, type: :model doexpect(subject[0]).to eq('ABC123') # Codeexpect(subject[4]).to eq('USD') # Currencyexpect(subject[5]).to eq('active') # Status- expect(subject[6]).to eq('2025-12-31') # Expires At+ expect(subject[6]).to eq("#{Time.current.year}-12-31") # Expires Atexpect(subject[7]).to eq('[email protected]') # Customer Emailexpect(subject[8]).to eq('John') # Customer First Nameexpect(subject[9]).to eq('Doe') # Customer Last Name@@ -98,4 +98,4 @@ RSpec.describe Spree::CSV::GiftCardPresenter, type: :model doendendend-end\ No newline at end of file+enddiff --git a/packages/page_builder/app/models/spree/page_sections/featured_taxon.rb b/packages/page_builder/app/models/spree/page_sections/featured_taxon.rbindex 5c60296c8a..ad1262d2f4 100644--- a/packages/page_builder/app/models/spree/page_sections/featured_taxon.rb+++ b/packages/page_builder/app/models/spree/page_sections/featured_taxon.rb@@ -49,7 +49,7 @@ module Spreedef products(currency)Spree::Deprecation.warn(- 'FeaturedTaxon#products is deprecated and will be removed in Spree 6.0. ' \+ 'FeaturedTaxon#products is deprecated and will be removed in Spree 5.5. ' \'Please use taxon_products(featured_taxon.taxon) helper method in views instead')diff --git a/storefront/app/helpers/spree/theme_helper.rb b/storefront/app/helpers/spree/theme_helper.rbindex e1b2f0217a..a4beaf95b3 100644--- a/storefront/app/helpers/spree/theme_helper.rb+++ b/storefront/app/helpers/spree/theme_helper.rb@@ -79,7 +79,7 @@ module Spree## @return [Hash] the theme layout sectionsdef theme_layout_sections- Spree::Deprecation.warn('theme_layout_sections is deprecated and will be removed in Spree 6.0. Please use render_header_sections and render_footer_sections instead.')+ Spree::Deprecation.warn('theme_layout_sections is deprecated and will be removed in Spree 5.5. Please use render_header_sections and render_footer_sections instead.')@theme_layout_sections ||= current_theme_or_preview.sections.includes(section_includes).all.each_with_object({}) do |section, hash|hash[section.type.to_s.demodulize.underscore] = section