Skip to content

armgit / spree

Public Imported from GitHub
0

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.

[skip CI] updated 4.3 release notes with multi store changes

Damian Legawiece97bd00e8cc2
diff --git a/guides/src/content/release_notes/4_3_0.md b/guides/src/content/release_notes/4_3_0.md
index 7615fa2bc3..03839f23d9 100644
--- a/guides/src/content/release_notes/4_3_0.md
+++ b/guides/src/content/release_notes/4_3_0.md
@@ -38,18 +38,35 @@ Please review each of the noteworthy changes to ensure your customizations or ex
### Storefront
* Upgraded **Sprockets** to **v4** and added support for **ES6**, **Source Maps** and **Manifest.js** [Spark Solutions](https://github.com/spree/spree/pull/10852)
+* **Multi-Store** Only Store Orders are returned [Spark Solutions](https://github.com/spree/spree/pull/11126/commits/a694445a99a41f36825666fe04f73f020951fa2e)
+* **Multi-Store** Only Store Products are returned [Spark Solutions](https://github.com/spree/spree/pull/11126/commits/e72ced9330e371211027d7a3371792d8fd5ed6e1)
### API
* Added caching to API v2 serialized increasing API responsivenes 3-5 times [Spark Solutions](https://github.com/spree/spree/pull/10875)
This also includes new confirmation option `Spree::Api::Config[:api_v2_cache_ttl]` for the cache expiration period. Defualt value is `3600` (1 hour). Cache auto-expires when record is updated, more on this topic: https://github.com/jsonapi-serializer/jsonapi-serializer#caching
-*
+
+* **Multi-Store** Storefront Products API returns Products from the current Store [Spark Solutions](https://github.com/spree/spree/pull/11126)
+* **Multi-Store** Storefront Account Orders API returns Orders from the current Store [Spark Solutions](https://github.com/spree/spree/pull/11126)
+* **Multi-Store** Storefront Order Status API returns Order from the current Store [Spark Solutions](https://github.com/spree/spree/pull/11126)
### Admin Panel
### Core
+* **Multi-Store** `Order#available_payment_methods` by default will return only Payment Methods available in Order's Store [Spark Solutions](https://github.com/spree/spree/pull/11126/commits/8f52301c8178e04bb1aa6a03cde5ebb9f0063cbb)
+
+ Passing `store` argument to that method will result in deprecation warning
+* **Multi-Store** Deprecated `Store.current` in favour of ` Stores::FindCurrent` [Spark Solutions](https://github.com/spree/spree/pull/11126/commits/f3414d67b92a2b1d2eb920abab95ff48ab8afd72)
+
+ Also this finder class can be repleced by custom one by setting
+
+ ```ruby
+ Spree::Dependencies.current_store_finder = YourCustomStoreFinder
+ ```
+ in `config/initializers/spree.rb` (please check [documentation](https://guides.spreecommerce.org/developer/customization/dependencies.html))
+
## Full Changelog
You can view the full changes using [Github Compare](https://github.com/spree/spree/compare/4-2-stable...4-3-stable).