gems spree 4.0.0
Version 4.0.0

latest releases: 4.10.1, 4.10.0, 4.9.0...
5 years ago

Major/New Features

Rails 6.0 support 💥 💥 💥

Spree 4.0 is fully compatible with Rails 6.0 and the new default Zeitwerk code autoloader.

Storefront and Admin Panel moved to Bootstrap 4.2 🎨

We've migrated both the default Spree frontend and Admin Panel from Bootstrap 3 to Bootstrap 4.2. This update brings all of the new features and fixes introduced in Bootstrap 4, 4.1 and 4.2. Accessibility and RWD were also improved in the process.

Besides the Spree Frontend and Admin Panel we've also upgraded all extensions that required fixes, that is:

If you use any of those extensions please update them along with the Spree update.

Address Book support 🏠

Previously for multiple addresses support you had to use the Spree Address Book extension. We've decided that this was an inconsistency (user account already supported multiple credit cards) and moved this code into the core Spree and improved it.

Thanks to this signed in customers can manage multiple addresses in the Checkout and Account for both Shipping and Billing.

JSON-LD structured data support 🌐

To support schema.org we've replaced the old Microdata code with the new recommended JSON-LD format. This will make your store more future proof and improve SEO in the coming months.

Installation

Add Spree gems to Gemfile

gem 'spree', '~> 4.0'
gem 'spree_auth_devise', '~> 4.0'
gem 'spree_gateway', '~> 3.6'

Run bundle install

Use the install generators to set up Spree

rails g spree:install --user_class=Spree::User
rails g spree:auth:install
rails g spree_gateway:install

Upgrade

Official Spree 3.7 to 4.0 upgrade guide

Noteworthy changes

Please review each of the noteworthy changes to ensure your customizations or extensions are not affected. If you are affected by a change and have any suggestions please submit a PR to help the next person!

Full Changelog

You can view the full changes using Github Compare.

Don't miss a new spree release

NewReleases is sending notifications on new releases.