---
title: "Exciting new features in Spree 3.7.0 release"
description: "3.7 release is our last 3.x line release bridging the gap between 3.x and Spree 4.0. This is a big release packed with several amazing features and a huge number of bug fixes (over 700 commits by 17 contributors!). Upgrading to 3.7 guarantees a smooth and easy migration to Spree 4.0…"
url: https://spreecommerce.org/exciting-new-features-in-spree-3-7-0-release/
---

[Blog home](https://spreecommerce.org/blog.md)

![Spree logo in a white starburst badge on a green background, with a blue "3.7.0" version tag](https://cdn.sanity.io/images/bf8853mr/production/85305bfc78af2cd9c5f02e106d5e98261e9dfaeb-710x600.png?w=1300&auto=format)

[Spree Commerce](https://spreecommerce.org/category/open-source.md)

February 4, 2019

# Exciting new features in Spree 3.7.0 release

_Written in 2019 for Spree Commerce 3.7. For the current version, read the [Spree Commerce 6 announcement](https://spreecommerce.org/announcing-spree-commerce-6.md)._

3.7 release is our last 3.x line release bridging the gap between 3.x and Spree 4.0. This is a big release packed with several amazing features and a huge number of bug fixes ([over 700 commits by 17 contributors](https://github.com/spree/spree/compare/3-6-stable...3-7-stable)!). Upgrading to 3.7 guarantees a smooth and easy migration to [Spree 4.0](https://github.com/spree/spree/milestone/37).

### [Store API v2](https://guides.spreecommerce.org/api/v2)

We’ve worked hard over the last few months to deliver a completely new, easy to work with and lightweight REST API for building amazing customer interfaces with modern JavaScript libraries (React, Vue, Angular) and for native mobile apps. New Store API v2 is fast, easy to use, and extend. It’s also well documented in [OpenAPI 3.0 (Swagger) format](https://raw.githubusercontent.com/spree/spree/4-2-stable/api/docs/v2/storefront/index.yaml) which you can [import into Postman app](https://blog.postman.com/postman-supports-openapi-3-0/).

New API is based on [JSON API](https://jsonapi.org/) spec and uses blazing fast Netflix [fast\_json\_api](https://github.com/Netflix/fast_jsonapi) serializer library. [Authentication](https://guides.spreecommerce.org/api/v2/authentication) is based on Oauth using doorkeeper library. Besides that, there are no additional dependencies making it lightweight and future-proof.

Store API v2 consists of:

- [Cart endpoints](https://guides.spreecommerce.org/api/v2/storefront#tag/Cart) (Create Cart, Add Item, Set Quantity, Remove Item, Empty Cart)
- [Checkout endpoints](https://guides.spreecommerce.org/api/v2/storefront#tag/Checkout) (Update Checkout, Advance Checkout, Complete Checkout, Add/Remove Store Credit, Get Shiping Rates, Get Payment Methods)
- [Products](https://guides.spreecommerce.org/api/v2/storefront/#tag/Products) Catalog
- [Categories](https://guides.spreecommerce.org/api/v2/storefront/#tag/Taxons) Catalog
- [Account endpoints](https://guides.spreecommerce.org/api/v2/storefront#tag/Account) (Account Information, Credit Cards, placed Orders)
- [Order Status](https://guides.spreecommerce.org/api/v2/storefront/#tag/Order-Status)
- [Countries](https://guides.spreecommerce.org/api/v2/storefront/#tag/Countries)
- [Authentication](https://guides.spreecommerce.org/api/v2/authentication)

All of the endpoints support JSON API’s [Sparse Fieldsets](https://jsonapi.org/format/#fetching-sparse-fieldsets) to fix usual Over-Fetching issues and [Related Resources](https://jsonapi.org/format/#fetching-includes) to reduce the number of API queries you need to perform.

### Service Oriented Architecture

While building the API v2 we’ve also refactored a huge portion of Spree internals by introducing modular Service Oriented Architecture to the codebase.

We’re in the process of moving domain-specific code from models to `Service Objects` with a well-defined scope and predictable return values. All service objects include [Service Module](https://github.com/spree/spree/blob/v4.1.0/core/lib/spree/service_module.rb) which unifies how those classes handle arguments and what they return.

Also, we’re moving away from ransack library by introducing `Finders` and `Sorters` classes for simpler fetching resources and collections.

This makes Spree codebase easier to read and learn. It also makes any customizations way easier. At the same time, public APIs won’t change a lot as providing backward compatibility is one of our top priorities.

### Dependencies system

We’re introducing a new painless way of customizing Spree without the need of decorators. With Dependencies you can easily replace parts of Spree internals with your custom classes. You can replace Services, Abilities, and Serializers. More will come in the future. We hope using Dependencies will remove the need for creating decorators at all!

See Documentation

### Removing Coffee Script

CoffeeScript a few years back ago was a really great JavaScript enhancement. Nowadays with ES6 and TypeScript around it became obsolete. That’s why we’ve converted all of the CoffeeScript assets in Spree and extensions to plain JavaScript and removed CoffeeScript dependency.

### Improved MySQL support

A lot of merchants were using Spree with MySQL for years now, but the development of the platform was mainly focused on PostgreSQL support. We’ve changed that and all of our CI builds are tested and verified against both PostgreSQL and MySQL. We’ve also fixed all MySQL-related bugs.

### And hundreds of other fixes and improvements

Feel free to [learn more on GitHub](https://github.com/spree/spree/releases/tag/v3.7.0).

See also:

- [Announcing Spree Commerce 6: Open Source Marketplace and B2B Wholesale With AI Agents](https://spreecommerce.org/announcing-spree-commerce-6.md)
- [Announcing Spree Commerce 5.6: Gated Storefronts, a Wholesale Portal, and a Localized Admin](https://spreecommerce.org/announcing-spree-commerce-5-6.md)
- [Announcing Spree Commerce Sandboxes: Free Cloud Test Stores](https://spreecommerce.org/announcing-spree-commerce-sandbox.md)

**Written by:** [Anna Ambroszkiewicz](https://spreecommerce.org/author/anna.md)
