Highlights
Workflows (beta)
This release introduces Workflows to Medusa's toolbox for creating digital commerce applications.
Our new Workflows tooling is published under @medusajs/workflows-sdk
.
Workflows is in beta. Please help us improve the product and squash bugs by filing issues for the errors you encounter.
A workflow is a series of queries and actions that complete a task. You can think of Medusa as being made up of many workflows. For example, when adding line items to carts, we perform several actions:
- Get the product’s title
- Calculate the price of the product
- Create a line item
- Add the line item to a cart
All these actions are steps in a workflow.
Workflows can also be more advanced - like managing a return or processing an inbound purchase order.
You can explore and try our new Workflow tooling in our documentation.
Read more about Workflows on our blog.
Pricing Module
This release marks the completion of the first iteration of our Pricing Module - a standalone pricing service that enables granular pricing configurations.
The Pricing Module is published under @medusajs/pricing
.
You can use the Pricing Module separately from Medusa to enable advanced pricing logic for any resource specific to your needs.
The module is integrated into our core @medusajs/medusa
behind the feature flag medusa_v2
. All features behind this flag are deemed highly experimental as we move toward Medusa 2.0, so please use it with caution.
The feature flag medusa_v2
is not stable for production environments.
Read more about the Pricing Module and our plans for Medusa 2.0.
Product Variant pricing updates
The introduction of the Bulk Editor made it easy to update product variant prices.
With this release, we are centralizing product variant pricing in the Bulk Editor and removing all other entry points for operations related to pricing.
As a result, you can no longer modify prices of product variants in the following flows:
- Creating a product
- Adding a variant to a product
- Editing a variant of a product
You should use the "Edit Prices" option in the dropdown of the variants section:
Features
- feat(medusa,types,workflows,utils,product): PricingModule Integration of PriceLists into Core by @pKorsholm in #5536
- feat(workflows): Workflow DX by @carlos-r-l-rodrigues in #5607
- feat(admin-ui): Delete pricing forms from edit + create variant modals by @pKorsholm in #5676
- feat(workflows-sdk): get name method by @carlos-r-l-rodrigues in #5714
Bugs
- fix(pricing,types): remove is_dynamic from model + types by @riqwan in #5664
- fix(workflows): compensation handling by @adrien2p in #5691
- fix(ui): code block styles in @kasperkristensen in #5692
- fix(product, types, workflows): Update product variant workflow by @pKorsholm in #5668
- fix(medusa): Normalize subscriber paths by @kasperkristensen in #5703
- fix(pricing, medusa): resolve minor pricing-module bugs by @riqwan in #5685
- fix(medusa): Update default relations in admin for list-product from module by @pKorsholm in #5708
- fix(admin-ui): Fix issue with null product categories by @kasperkristensen in #5707
- fix(admin-ui): Edit prices requires at least one product by @kasperkristensen in #5710
- fix(medusa,pricing,types): rules only gets updated/deleted upon passing an explicit object by @riqwan in #5711
- fix(pricing, types): update calculatePrices return type to match actual type by @pKorsholm in #5709
- fix(medusa): pricing module list prices return type by @pKorsholm in #5715
- fix(admin-ui): Fix Y-axis scroll in bulk editor by @kasperkristensen in #5726
- fix(medusa,pricing): Fix migrations for existing databases by @riqwan in #5730
- fix(admin-ui): inventory item deletion when removing product by @pKorsholm in #5727
- fix(link-modules, utils): remove limits on queries when primary-key is provided by @pKorsholm in #5732
- fix(admin-ui): fix height of Bulk Editor cells to always be 40px by @kasperkristensen in #5737
Chores
- chore: update tsdocs of pricing module by @shahednasser in #5648
- chore: added TSDoc for workflow utility functions by @shahednasser in #5674
- chore(workflows, core-flows): Split workflows tooling and definitions by @adrien2p in #5705
Documentation
- docs: Add missing link to admin-guide on translations by @MedusaNick in #5665
- docs: added migration action to upgrade guide by @shahednasser in #5669
- docs: updated medusa develop command by @OmarMHawash in #5698
- docs: redesign tabs by @shahednasser in #5687
- docs: redesigned admonitions by @shahednasser in #5689
- docs: added a new document for available languages by @shahednasser in #5667
- docs: update Next.js starter main image by @shahednasser in #5702
New Contributors
- @OmarMHawash made their first contribution in #5698
Full Changelog: v1.18.0...v1.18.1