v2.7.1
medusajs/medusav2.7.1Apr 23, 2025by olivermrbl
AI Summary
This release strengthens the workflow engine and expands the data passed to fulfillment providers. It also introduces support for DynamoDB sessions and improves the robustness of payment workflows.
Key Highlights
- Expanded fulfillment data includes display_id, region, customer details, and variant attributes.
- Strengthened workflow engine with fixes for event grouping in async workflows.
- Added support for uploading files directly to the file provider from the client.
- Improved robustness of payment workflows and fixed dashboard UI issues.
New Features
- Draft order shipping removal
- Add support for dynamoDB for storing sessions
- Skip on permanent failure in orchestration
- Add support for uploading a file directly to the file provider from the client
Full Release Notes
<!--  # v2.7.1: Strengthened workflow engine This release strengthens the workflow engine by resolving issues in its core foundation and improves fulfillment capabilities by expanding the data passed to providers. CMS_BREAK --> ## Highlights ### Expanded fulfillment data This release extends fulfillment capabilities by exposing more core order data to fulfillment providers–that is, data passed upon creating fulfillments in Medusa. The additional data included on orders passed to providers are: - `display_id` - `region` - `customer_id` - `customer` - `sales_channel_id` - `sales_channel` - `items.variant.upc` - `items.variant.sku` - `items.variant.barcode` - `items.variant.hs_code` - `items.variant.origin_country` - `items.variant.product.origin_country` - `items.variant.product.hs_code` - `items.variant.product.mid_code` - `items.variant.product.material` - `items.tax_lines.rate` - `subtotal` - `discount_total` - `tax_total` - `item_total` - `shipping_total` - `total` - `created_at` ### Strengthened workflow engine We have improved the core internals of our workflow engine, including fixing an issue with events grouping not working correctly for async workflows. Read more in the PRs below: - https://github.com/medusajs/medusa/pull/12157 - https://github.com/medusajs/medusa/pull/12027 - https://github.com/medusajs/medusa/pull/12196 - https://github.com/medusajs/medusa/pull/12178 ## Features * feat(core-flows, js-sdk, medusa): draft order shipping removal by @fPolic in https://github.com/medusajs/medusa/pull/12124 * feat: Add support for dynamoDB for storing sessions and some types cleanup by @thetutlage in https://github.com/medusajs/medusa/pull/12140 * feat(orchestration): skip on permanent failure by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/12027 * feat: Add support for uploading a file directly to the file provider from the client by @sradevski in https://github.com/medusajs/medusa/pull/12224 ## Bugs * fix(dashboard): display null sku by @fPolic in https://github.com/medusajs/medusa/pull/12155 * fix(types): fix type of application_method_type filter by @shahednasser in https://github.com/medusajs/medusa/pull/12160 * fix(core-flows): draft order reservations by @fPolic in https://github.com/medusajs/medusa/pull/12115 * fix(index): Default schema typings by @adrien2p in https://github.com/medusajs/medusa/pull/12183 * fix(): Event group id propagation and event managements by @adrien2p in https://github.com/medusajs/medusa/pull/12157 * fix(payment): properly delete refund by @fPolic in https://github.com/medusajs/medusa/pull/12193 * fix: apply additional data validator using a global middleware by @thetutlage in https://github.com/medusajs/medusa/pull/12194 * fix(dashboard): properly register settings custom routes by @fPolic in https://github.com/medusajs/medusa/pull/12198 * fix(): Properly handle workflow as step now that events are fixed entirely by @adrien2p in https://github.com/medusajs/medusa/pull/12196 * fix(core-flows): export registerOrderDeliveryStep by @shahednasser in https://github.com/medusajs/medusa/pull/12221 * fix: expose beforeRefreshingPaymentCollection hook by @thetutlage in https://github.com/medusajs/medusa/pull/12232 * fix(medusa): sales_channel_id middleware manipulation leading to lost of the sc by @adrien2p in https://github.com/medusajs/medusa/pull/12234 * fix: steps to return undefined and still chain the config method by @thetutlage in https://github.com/medusajs/medusa/pull/12255 * fix(core-flows, link-modules): return fulfillment creation by @fPolic in https://github.com/medusajs/medusa/pull/12227 * fix: oas CLI to convert Windows paths to unix by @thetutlage in https://github.com/medusajs/medusa/pull/12254 ## Documentation * docs: changes for next release by @shahednasser in https://github.com/medusajs/medusa/pull/12098 * docs: fix schema of product category by @shahednasser in https://github.com/medusajs/medusa/pull/12145 * Update page.mdx by @Sai-Santhan-Dodda in https://github.com/medusajs/medusa/pull/12141 * docs: fixed POST request in code snippet for quotation acceptance by @valerioXplo in https://github.com/medusajs/medusa/pull/11983 * docs: more updates after 2.7.0 update by @shahednasser in https://github.com/medusajs/medusa/pull/12156 * docs: generate OAS manually for 2.7.0 by @shahednasser in https://github.com/medusajs/medusa/pull/12158 * docs: generate JS SDK reference with fixes by @shahednasser in https://github.com/medusajs/medusa/pull/12161 * docs(resources): fix express checkout page for missing prop in CartContext Provider component by @relaxedrohan in https://github.com/medusajs/medusa/pull/12188 * docs: changes to plugins page by @shahednasser in https://github.com/medusajs/medusa/pull/12190 * docs: add loyalty points guide by @shahednasser in https://github.com/medusajs/medusa/pull/12130 * docs: add a note to loyalty points guide by @shahednasser in https://github.com/medusajs/medusa/pull/12201 * docs: hide colon when a note's title has a punctuation by @shahednasser in https://github.com/medusajs/medusa/pull/12205 * docs: add framework page by @shahednasser in https://github.com/medusajs/medusa/pull/12162 * docs: add framework to navbar by @shahednasser in https://github.com/medusajs/medusa/pull/12206 * docs: capitalize use of Framework across docs by @shahednasser in https://github.com/medusajs/medusa/pull/12207 * docs: update introduction and homepage following Framework changes by @shahednasser in https://github.com/medusajs/medusa/pull/12211 * docs: rename Architectural Modules to Infrastructure Modules by @shahednasser in https://github.com/medusajs/medusa/pull/12212 * docs: add new troubleshooting guides for Query and middlewares by @shahednasser in https://github.com/medusajs/medusa/pull/12214 * docs: document conditional shipping option prices + expand on price rules by @shahednasser in https://github.com/medusajs/medusa/pull/12217 * docs: fix links in submenu navigation by @shahednasser in https://github.com/medusajs/medusa/pull/12220 * docs: expand on promotion rules by @shahednasser in https://github.com/medusajs/medusa/pull/12218 * docs-util: fix examples in workflow reference that have multiple code by @shahednasser in https://github.com/medusajs/medusa/pull/12223 * docs: fix step name in long-running workflow documentation by @Vallabh-Mahanta in https://github.com/medusajs/medusa/pull/12215 * docs: updates to link to other modules docs by @shahednasser in https://github.com/medusajs/medusa/pull/12225 * docs: add some redirects from v1 to v2 docs by @shahednasser in https://github.com/medusajs/medusa/pull/12229 * dos: add docs on overriding allowed fields in routes by @shahednasser in https://github.com/medusajs/medusa/pull/12233 * docs: add LLM dropdown menu to documentation pages by @shahednasser in https://github.com/medusajs/medusa/pull/12235 * docs: fix redirect infrastructure modules by @shahednasser in https://github.com/medusajs/medusa/pull/12238 * docs: improvements to admin, query, and read-only link docs by @shahednasser in https://github.com/medusajs/medusa/pull/12239 * docs: fix index.html.md causing 404 by @shahednasser in https://github.com/medusajs/medusa/pull/12241 * docs: fix revalidate cache guide by @shahednasser in https://github.com/medusajs/medusa/pull/12243 * docs: Fix typo "documenation" in env vars page.mdx by @Ezequiel-Schejtman in https://github.com/medusajs/medusa/pull/12247 * docs: fix messy layout bug by @shahednasser in https://github.com/medusajs/medusa/pull/12248 * docs: Replace api_key_id with publishable_key_id by @Wcdaren in https://github.com/medusajs/medusa/pull/12242 * docs: added a section on loader execution by @shahednasser in https://github.com/medusajs/medusa/pull/12260 * docs: fix no lines code block example by @shahednasser in https://github.com/medusajs/medusa/pull/12259 * docs: fix badges and titles not showing in code tabs by @shahednasser in https://github.com/medusajs/medusa/pull/12261 ## Chores * chore(utils): fix TSDoc example for payment provider by @ynzier in https://github.com/medusajs/medusa/pull/12012 * chore: fixes to JS SDK TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/12159 * chore(core-flows,types): fix links in TSDocs pointing to architectural modules by @shahednasser in https://github.com/medusajs/medusa/pull/12213 * chore: fixes and updates to promotion and shipping option TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/12222 * chore: Pass more data to fulfillment provider by @olivermrbl in https://github.com/medusajs/medusa/pull/12186 * Chore/orchestration storage improvements by @adrien2p in https://github.com/medusajs/medusa/pull/12178 * chore(types): small tsdoc change to file service by @shahednasser in https://github.com/medusajs/medusa/pull/12240 ## Other Changes * added dutch translation by @harmvdhorst in https://github.com/medusajs/medusa/pull/12167 * added hungarian admin translation by @GergoVandor in https://github.com/medusajs/medusa/pull/12176 * fix: Ensure shipment includes tracking numbers from fulfillment by @ionutgaina in https://github.com/medusajs/medusa/pull/11775 * feat(cart): emit updated event in update line item workflow by @bqst in https://github.com/medusajs/medusa/pull/12119 ## New Contributors * @ynzier made their first contribution in https://github.com/medusajs/medusa/pull/12012 * @valerioXplo made their first contribution in https://github.com/medusajs/medusa/pull/11983 * @harmvdhorst made their first contribution in https://github.com/medusajs/medusa/pull/12167 * @GergoVandor made their first contribution in https://github.com/medusajs/medusa/pull/12176 * @relaxedrohan made their first contribution in https://github.com/medusajs/medusa/pull/12188 * @ionutgaina made their first contribution in https://github.com/medusajs/medusa/pull/11775 * @Vallabh-Mahanta made their first contribution in https://github.com/medusajs/medusa/pull/12215 * @Ezequiel-Schejtman made their first contribution in https://github.com/medusajs/medusa/pull/12247 * @Wcdaren made their first contribution in https://github.com/medusajs/medusa/pull/12242 **Full Changelog**: https://github.com/medusajs/medusa/compare/v2.7.0...v2.7.1