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
Spree 4.1 to 4.2 upgrade guide added
Damian Legawiec66fc4b8a7997
diff --git a/guides/src/content/developer/upgrades/four-dot-oh-to-four-dot-one.md b/guides/src/content/developer/upgrades/four-dot-oh-to-four-dot-one.mdindex 411591e63a..9b1921cac3 100644--- a/guides/src/content/developer/upgrades/four-dot-oh-to-four-dot-one.md+++ b/guides/src/content/developer/upgrades/four-dot-oh-to-four-dot-one.md@@ -1,7 +1,7 @@---title: Upgrading Spree 4.0 to 4.1section: upgrades-order: 0+order: 1---This guide covers upgrading a **4.0 Spree application** to **Spree 4.1**.diff --git a/guides/src/content/developer/upgrades/four-dot-one-to-four-dot-two.md b/guides/src/content/developer/upgrades/four-dot-one-to-four-dot-two.mdnew file mode 100644index 0000000000..7dc4f9a3ee--- /dev/null+++ b/guides/src/content/developer/upgrades/four-dot-one-to-four-dot-two.md@@ -0,0 +1,56 @@+---+title: Upgrading Spree 4.1 to 4.2+section: upgrades+order: 0+---++This guide covers upgrading a **4.1 Spree application** to **Spree 4.2**.++If you have any questions or suggestions feel free to reach out through [Spree slack channels](http://slack.spreecommerce.org/)++**If you're on an older version than 4.1 please follow previous upgrade guides and perform those upgrades incrementally**, eg.++1. [upgrade 3.7 to 4.0](/developer/upgrades/three-dot-seven-to-four-dot-oh.html)+2. [upgrade 4.0 to 4.1](/developer/upgrades/four-dot-oh-to-four-dot-one.html)++This is the safest and recommended method.++## Update Gemfile++```ruby+gem 'spree', '~> 4.2.0.rc3'+gem 'spree_auth_devise', '~> 4.3'+gem 'spree_gateway', '~> 3.9'+```++## Run `bundle update`++## Install missing migrations++```bash+rails spree:install:migrations+```++## Run migrations++```bash+rails db:migrate+```++## Other things to remember++### Replace `fast_json` with `jsonapi-serializer`++Please follow [this guide to migrate your custom serializers](https://github.com/jsonapi-serializer/jsonapi-serializer#migrating-from-netflixfast_jsonapi).++### Migrate select2 3.5 to 4.x++Only if you've added new Admin Panel pages with Select2 dropdown - [this guide will help](https://select2.org/upgrading/migrating-from-35)++## Read the release notes++For information about changes contained within this release, please read the [4.2.0 Release Notes](https://guides.spreecommerce.org/release_notes/spree_4_2_0.html).++## More info++If you have any questions or suggestions feel free to reach out through [Spree slack channels](http://slack.spreecommerce.org/)diff --git a/guides/src/content/developer/upgrades/one-dot-oh-to-one-dot-one.md b/guides/src/content/developer/upgrades/one-dot-oh-to-one-dot-one.mdindex f7151695ce..6d20e52591 100644--- a/guides/src/content/developer/upgrades/one-dot-oh-to-one-dot-one.md+++ b/guides/src/content/developer/upgrades/one-dot-oh-to-one-dot-one.md@@ -1,7 +1,7 @@---title: Upgrading Spree from 1.0.x to 1.1.xsection: upgrades-hidden: false+hidden: trueorder: 16---diff --git a/guides/src/content/developer/upgrades/one-dot-one-to-one-dot-two.md b/guides/src/content/developer/upgrades/one-dot-one-to-one-dot-two.mdindex 3e8dd815b4..20c8f0e74a 100644--- a/guides/src/content/developer/upgrades/one-dot-one-to-one-dot-two.md+++ b/guides/src/content/developer/upgrades/one-dot-one-to-one-dot-two.md@@ -2,6 +2,7 @@title: Upgrading Spree from 1.1.x to 1.2.xsection: upgradesorder: 15+hidden: true---## Overviewdiff --git a/guides/src/content/developer/upgrades/one-dot-three-to-two-dot-oh.md b/guides/src/content/developer/upgrades/one-dot-three-to-two-dot-oh.mdindex ea180328c8..7eb3698724 100644--- a/guides/src/content/developer/upgrades/one-dot-three-to-two-dot-oh.md+++ b/guides/src/content/developer/upgrades/one-dot-three-to-two-dot-oh.md@@ -2,6 +2,7 @@title: Upgrading Spree from 1.3.x to 2.0.xsection: upgradesorder: 13+hidden: true---## Overviewdiff --git a/guides/src/content/developer/upgrades/one-dot-two-to-one-dot-three.md b/guides/src/content/developer/upgrades/one-dot-two-to-one-dot-three.mdindex e9c7f50e58..50963dccaa 100644--- a/guides/src/content/developer/upgrades/one-dot-two-to-one-dot-three.md+++ b/guides/src/content/developer/upgrades/one-dot-two-to-one-dot-three.md@@ -2,6 +2,7 @@title: Upgrading Spree from 1.2.x to 1.3.xsection: upgradesorder: 14+hidden: true---## Overviewdiff --git a/guides/src/content/developer/upgrades/point-seventy-to-one-dot-oh.md b/guides/src/content/developer/upgrades/point-seventy-to-one-dot-oh.mdindex 4948f5f51c..d4c2f555ce 100644--- a/guides/src/content/developer/upgrades/point-seventy-to-one-dot-oh.md+++ b/guides/src/content/developer/upgrades/point-seventy-to-one-dot-oh.md@@ -2,6 +2,7 @@title: Upgrading Spree from 0.70.x to 1.0.xsection: upgradesorder: 17+hidden: true---## Overviewdiff --git a/guides/src/content/developer/upgrades/point-sixty-to-point-seventy.md b/guides/src/content/developer/upgrades/point-sixty-to-point-seventy.mdindex ed1fff34fc..f30c82dbbb 100644--- a/guides/src/content/developer/upgrades/point-sixty-to-point-seventy.md+++ b/guides/src/content/developer/upgrades/point-sixty-to-point-seventy.md@@ -2,6 +2,7 @@title: Upgrading Spree from 0.60.x to 0.70.xsection: upgradesorder: 18+hidden: true---## Overviewdiff --git a/guides/src/content/developer/upgrades/three-dot-five-to-three-dot-six.md b/guides/src/content/developer/upgrades/three-dot-five-to-three-dot-six.mdindex 52257b00fc..26a036c09e 100644--- a/guides/src/content/developer/upgrades/three-dot-five-to-three-dot-six.md+++ b/guides/src/content/developer/upgrades/three-dot-five-to-three-dot-six.md@@ -1,7 +1,7 @@----title: Upgrading Spree from 3.5.x to 3.6.x+title: Upgrading Spree from 3.5 to 3.6section: upgrades-order: 3+order: 4---This guide covers upgrading a 3.5 Spree application, to a 3.6 application.diff --git a/guides/src/content/developer/upgrades/three-dot-four-to-three-dot-five.md b/guides/src/content/developer/upgrades/three-dot-four-to-three-dot-five.mdindex de7c8caaf4..5ed638845f 100644--- a/guides/src/content/developer/upgrades/three-dot-four-to-three-dot-five.md+++ b/guides/src/content/developer/upgrades/three-dot-four-to-three-dot-five.md@@ -1,7 +1,7 @@----title: Upgrading Spree from 3.4.x to 3.5.x+title: Upgrading Spree from 3.4 to 3.5section: upgrades-order: 4+order: 5---This guide covers upgrading a 3.4 Spree store, to a 3.5 store.diff --git a/guides/src/content/developer/upgrades/three-dot-oh-to-three-dot-one.md b/guides/src/content/developer/upgrades/three-dot-oh-to-three-dot-one.mdindex db41c550be..e0656d2138 100644--- a/guides/src/content/developer/upgrades/three-dot-oh-to-three-dot-one.md+++ b/guides/src/content/developer/upgrades/three-dot-oh-to-three-dot-one.md@@ -1,7 +1,7 @@----title: Upgrading Spree from 3.0.x to 3.1.x+title: Upgrading Spree from 3.0 to 3.1section: upgrades-order: 8+order: 9---This guide covers upgrading a 3.0.x Spree store, to a 3.1.x store. Thisdiff --git a/guides/src/content/developer/upgrades/three-dot-one-to-three-dot-two.md b/guides/src/content/developer/upgrades/three-dot-one-to-three-dot-two.mdindex 9a0bbc7cb4..09883ceea4 100644--- a/guides/src/content/developer/upgrades/three-dot-one-to-three-dot-two.md+++ b/guides/src/content/developer/upgrades/three-dot-one-to-three-dot-two.md@@ -1,7 +1,7 @@----title: Upgrading Spree from 3.1.x to 3.2.x+title: Upgrading Spree from 3.1 to 3.2section: upgrades-order: 7+order: 8---This guide covers upgrading a 3.1.x Spree store, to a 3.2.x store.diff --git a/guides/src/content/developer/upgrades/three-dot-seven-to-four-dot-oh.md b/guides/src/content/developer/upgrades/three-dot-seven-to-four-dot-oh.mdindex 557cff91ef..abe97bcffe 100644--- a/guides/src/content/developer/upgrades/three-dot-seven-to-four-dot-oh.md+++ b/guides/src/content/developer/upgrades/three-dot-seven-to-four-dot-oh.md@@ -1,7 +1,7 @@---title: Upgrading Spree 3.7 to 4.0section: upgrades-order: 1+order: 2---This guide covers upgrading a **3.7 Spree application** to **Spree 4.0**.diff --git a/guides/src/content/developer/upgrades/three-dot-six-to-three-dot-seven.md b/guides/src/content/developer/upgrades/three-dot-six-to-three-dot-seven.mdindex 71bb1b5df5..84ea3f5f86 100644--- a/guides/src/content/developer/upgrades/three-dot-six-to-three-dot-seven.md+++ b/guides/src/content/developer/upgrades/three-dot-six-to-three-dot-seven.md@@ -1,7 +1,7 @@---title: Upgrading Spree from 3.6 to 3.7section: upgrades-order: 2+order: 3---This guide covers upgrading a 3.6 Spree application, to version 3.7.diff --git a/guides/src/content/developer/upgrades/three-dot-three-to-three-dot-four.md b/guides/src/content/developer/upgrades/three-dot-three-to-three-dot-four.mdindex c0bf34e627..8af56a21b7 100644--- a/guides/src/content/developer/upgrades/three-dot-three-to-three-dot-four.md+++ b/guides/src/content/developer/upgrades/three-dot-three-to-three-dot-four.md@@ -1,7 +1,7 @@----title: Upgrading Spree from 3.3.x to 3.4.x+title: Upgrading Spree from 3.3 to 3.4section: upgrades-order: 5+order: 6---This guide covers upgrading a 3.3 Spree store, to a 3.4 store.diff --git a/guides/src/content/developer/upgrades/three-dot-two-to-three-dot-three.md b/guides/src/content/developer/upgrades/three-dot-two-to-three-dot-three.mdindex 2858bb4b25..6de3c0698a 100644--- a/guides/src/content/developer/upgrades/three-dot-two-to-three-dot-three.md+++ b/guides/src/content/developer/upgrades/three-dot-two-to-three-dot-three.md@@ -1,7 +1,7 @@----title: Upgrading Spree from 3.2.x to 3.3.x+title: Upgrading Spree from 3.2 to 3.3section: upgrades-order: 6+order: 7---This guide covers upgrading a 3.2.x Spree store, to a 3.3.x store.diff --git a/guides/src/content/developer/upgrades/two-dot-oh-to-two-dot-one.md b/guides/src/content/developer/upgrades/two-dot-oh-to-two-dot-one.mdindex f54a248e8a..6819d2a033 100644--- a/guides/src/content/developer/upgrades/two-dot-oh-to-two-dot-one.md+++ b/guides/src/content/developer/upgrades/two-dot-oh-to-two-dot-one.md@@ -2,6 +2,7 @@title: Upgrading Spree from 2.0.x to 2.1.xsection: upgradesorder: 12+hidden: true---## Overviewdiff --git a/guides/src/content/developer/upgrades/two-dot-one-to-two-dot-two.md b/guides/src/content/developer/upgrades/two-dot-one-to-two-dot-two.mdindex 0a44f0f27b..8f99de77cf 100644--- a/guides/src/content/developer/upgrades/two-dot-one-to-two-dot-two.md+++ b/guides/src/content/developer/upgrades/two-dot-one-to-two-dot-two.md@@ -2,6 +2,7 @@title: Upgrading Spree from 2.1.x to 2.2.xsection: upgradesorder: 11+hidden: true---## Overviewdiff --git a/guides/src/content/developer/upgrades/two-dot-three-to-two-dot-four.md b/guides/src/content/developer/upgrades/two-dot-three-to-two-dot-four.mdindex 9a385b9fdf..ab78b86c26 100644--- a/guides/src/content/developer/upgrades/two-dot-three-to-two-dot-four.md+++ b/guides/src/content/developer/upgrades/two-dot-three-to-two-dot-four.md@@ -1,6 +1,7 @@---title: Upgrading Spree from 2.3.x to 2.4.xsection: upgrades+hidden: trueorder: 9---diff --git a/guides/src/content/developer/upgrades/two-dot-two-to-two-dot-three.md b/guides/src/content/developer/upgrades/two-dot-two-to-two-dot-three.mdindex b77ab752f7..dbac1f8490 100644--- a/guides/src/content/developer/upgrades/two-dot-two-to-two-dot-three.md+++ b/guides/src/content/developer/upgrades/two-dot-two-to-two-dot-three.md@@ -1,6 +1,7 @@---title: Upgrading Spree from 2.2.x to 2.3.xsection: upgrades+hidden: trueorder: 10---diff --git a/guides/src/content/developer/upgrades/upgrade_guides.md b/guides/src/content/developer/upgrades/upgrade_guides.mdindex 7063015c2b..ca2e7c79ea 100644--- a/guides/src/content/developer/upgrades/upgrade_guides.md+++ b/guides/src/content/developer/upgrades/upgrade_guides.md@@ -1,5 +1,5 @@----title: "Upgrade Guides"+title: "All Upgrade Guides"section: upgrades---@@ -9,6 +9,7 @@ We strongly advise upgrading Spree incrementally, rather than in one big go. ForIf there are any issues with these guides, please let us know by [filing an issue](https://github.com/spree/spree/issues/new).+* [4.1 to 4.2](/developer/upgrades/four-dot-one-to-four-dot-two.html)* [4.0 to 4.1](/developer/upgrades/four-dot-oh-to-four-dot-one.html)* [3.7 to 4.0](/developer/upgrades/three-dot-seven-to-four-dot-oh.html)* [3.6 to 3.7](/developer/upgrades/three-dot-six-to-three-dot-seven.html)