v2.6.1
medusajs/medusav2.6.1Mar 10, 2025by olivermrbl
AI Summary
This release focuses on improving Scheduled Jobs execution by ensuring they only run in worker or shared mode, alongside various bug fixes for the workflow engine and dashboard.
Key Highlights
- Scheduled Jobs execution restricted to worker and shared server modes.
- Fixed event grouping not working correctly for async workflows.
- Fixed pricing events and workflow engine Redis queues.
- Improved dashboard UI for displaying dates and inventory details.
New Features
- Allow when then in parallelize
Full Release Notes
<!--  # v2.6.1: Improve Scheduled Jobs execution CMS_BREAK --> ## Highlights ### Scheduled Jobs execution Ensure Scheduled Jobs are only executed by server instances running in **worker** or **shared** mode. Our workflow engine powers scheduled jobs, and we create a workflow for every job. Scheduled Jobs (i.e. workflows) are not registered in servers that run in **server** mode. Consequently, if a **server** instance tries to pick up a Scheduled Job, it will fail, as it cannot find the underlying workflow. This change ensures that only **worker** and **shared** server instances execute Scheduled Jobs. ## Features * feat(workflows-sdk): Allow when then in parallelize by @adrien2p in https://github.com/medusajs/medusa/pull/11756 ## Bugs * fix(pricing): events by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/11742 * fix(workflow-engine-redis): Split the queues and respect worker mode for job executions by @adrien2p in https://github.com/medusajs/medusa/pull/11740 * fix(core-flows): conditionally create, update or delete products when input is present by @riqwan in https://github.com/medusajs/medusa/pull/11758 * Fix(framework): http cors middleware order and options by @adrien2p in https://github.com/medusajs/medusa/pull/11765 * chore: pin swc to 1.5.7 by @thetutlage in https://github.com/medusajs/medusa/pull/11759 * fix: Add created at and updated at dates to payment session by @sradevski in https://github.com/medusajs/medusa/pull/11774 * fix(core-flows): fulfillment reservation check by @fPolic in https://github.com/medusajs/medusa/pull/11735 * fix(dashboard): allow creating fulfillment for items without shipping profile by @fPolic in https://github.com/medusajs/medusa/pull/11733 * fix(dashboard): display minute instead of month by @fPolic in https://github.com/medusajs/medusa/pull/11731 * fix(medusa): Apply middleware to GET customers/:id/addresses/:address_id by @kasperkristensen in https://github.com/medusajs/medusa/pull/11788 * fix(medusa): Use correct query config by @kasperkristensen in https://github.com/medusajs/medusa/pull/11789 ## Documentation * docs: changes for next release by @shahednasser in https://github.com/medusajs/medusa/pull/11708 * docs-util: fix freshness check script by @shahednasser in https://github.com/medusajs/medusa/pull/11737 * docs: fix tag for JS SDK draft order + other fixes by @shahednasser in https://github.com/medusajs/medusa/pull/11747 * Update page.mdx by @MedusaNick in https://github.com/medusajs/medusa/pull/11752 * docs: changes to main docs sidebar by @shahednasser in https://github.com/medusajs/medusa/pull/11750 * docs: add sidebar sorting logic by @shahednasser in https://github.com/medusajs/medusa/pull/11751 * docs-util: add exceptions for routes with custom auth middleware by @shahednasser in https://github.com/medusajs/medusa/pull/11755 * docs: change link to cloud pricing by @shahednasser in https://github.com/medusajs/medusa/pull/11753 * chore: remove ranges on medusa packages by @olivermrbl in https://github.com/medusajs/medusa/pull/11738 * docs: support multiple sidebars in a project by @shahednasser in https://github.com/medusajs/medusa/pull/11768 * docs: update UI docs to latest version by @shahednasser in https://github.com/medusajs/medusa/pull/11770 * docs: fix duplicate footer in user guide by @shahednasser in https://github.com/medusajs/medusa/pull/11785 ## Chores * chore(product): Improve product normalization and fix http router with tracing by @adrien2p in https://github.com/medusajs/medusa/pull/11724 * chore(js-sdk): fix tsdocs for properties and methods by @shahednasser in https://github.com/medusajs/medusa/pull/11748 * chore(cart, core-flows): Improve tax lines algo management by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/11715 **Full Changelog**: https://github.com/medusajs/medusa/compare/v2.6.0...v2.6.1