docs/developer/upgrades/4.1-to-4.2.mdx
Run the following command to update your gems to 4.2:
bundle update
If you used that gem in the past you need to remove it. Multi-Currency is now incorporated into Spree core and you cannot use that gem anymore.
Remove spree_multi_currency from your Gemfile
bundle remove spree_multi_currency
Remove these preferences from your Spree initializer config/initializers/spree.rb:
allow_currency_changeshow_currency_selectorsupported_currenciesRemove //= require spree/frontend/spree_multi_currency from vendor/assets/javascripts/spree/frontend/all.js
Remove //= require spree/backend/spree_multi_currency from vendor/assets/javascripts/spree/backend/all.js
All international configuration is now kept on the Store model in the database rather than in initializer files.
If you used spree_i18n gem before please remove any SpreeI18n::Configreferences from your config/initializers/spree.rb file.
deface gemIf you used Deface overrides you will need to include deface in your Gemfile as it was removed from Spree / Spree Auth Devise / Spree Gateway dependencies.
bundle add deface
Please find a add_stock_location_to_rma migration in your db/migrate directory and change:
class AddStockLocationToRma < ActiveRecord::Migration[4.2]
to
class AddStockLocationToRMA < ActiveRecord::Migration[4.2]
bin/rake spree:install:migrations
bin/rails db:migrate
fast_json with jsonapi-serializerPlease follow this guide to migrate your custom serializers.
Only if you've added new Admin Panel pages with Select2 dropdown - this guide will help
If you're using Spree default Storefront spree_frontend gem make sure to update your templates, especially:
Or simply run bin/rails g spree:frontend:copy_storefront
For information about changes contained within this release, please read the 4.2.0 Release Notes.