v2.7.1: Strengthened workflow engine, expanded data for fulfillments, and more robust event handling
LatestHighlights
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:
Features
- feat(core-flows, js-sdk, medusa): draft order shipping removal by @fPolic in #12124
- feat: Add support for dynamoDB for storing sessions and some types cleanup by @thetutlage in #12140
- feat(orchestration): skip on permanent failure by @carlos-r-l-rodrigues in #12027
- feat: Add support for uploading a file directly to the file provider from the client by @sradevski in #12224
Bugs
- fix(dashboard): display null sku by @fPolic in #12155
- fix(types): fix type of application_method_type filter by @shahednasser in #12160
- fix(core-flows): draft order reservations by @fPolic in #12115
- fix(index): Default schema typings by @adrien2p in #12183
- fix(): Event group id propagation and event managements by @adrien2p in #12157
- fix(payment): properly delete refund by @fPolic in #12193
- fix: apply additional data validator using a global middleware by @thetutlage in #12194
- fix(dashboard): properly register settings custom routes by @fPolic in #12198
- fix(): Properly handle workflow as step now that events are fixed entirely by @adrien2p in #12196
- fix(core-flows): export registerOrderDeliveryStep by @shahednasser in #12221
- fix: expose beforeRefreshingPaymentCollection hook by @thetutlage in #12232
- fix(medusa): sales_channel_id middleware manipulation leading to lost of the sc by @adrien2p in #12234
- fix: steps to return undefined and still chain the config method by @thetutlage in #12255
- fix(core-flows, link-modules): return fulfillment creation by @fPolic in #12227
- fix: oas CLI to convert Windows paths to unix by @thetutlage in #12254
Documentation
- docs: changes for next release by @shahednasser in #12098
- docs: fix schema of product category by @shahednasser in #12145
- Update page.mdx by @Sai-Santhan-Dodda in #12141
- docs: fixed POST request in code snippet for quotation acceptance by @valerioXplo in #11983
- docs: more updates after 2.7.0 update by @shahednasser in #12156
- docs: generate OAS manually for 2.7.0 by @shahednasser in #12158
- docs: generate JS SDK reference with fixes by @shahednasser in #12161
- docs(resources): fix express checkout page for missing prop in CartContext Provider component by @relaxedrohan in #12188
- docs: changes to plugins page by @shahednasser in #12190
- docs: add loyalty points guide by @shahednasser in #12130
- docs: add a note to loyalty points guide by @shahednasser in #12201
- docs: hide colon when a note's title has a punctuation by @shahednasser in #12205
- docs: add framework page by @shahednasser in #12162
- docs: add framework to navbar by @shahednasser in #12206
- docs: capitalize use of Framework across docs by @shahednasser in #12207
- docs: update introduction and homepage following Framework changes by @shahednasser in #12211
- docs: rename Architectural Modules to Infrastructure Modules by @shahednasser in #12212
- docs: add new troubleshooting guides for Query and middlewares by @shahednasser in #12214
- docs: document conditional shipping option prices + expand on price rules by @shahednasser in #12217
- docs: fix links in submenu navigation by @shahednasser in #12220
- docs: expand on promotion rules by @shahednasser in #12218
- docs-util: fix examples in workflow reference that have multiple code by @shahednasser in #12223
- docs: fix step name in long-running workflow documentation by @Vallabh-Mahanta in #12215
- docs: updates to link to other modules docs by @shahednasser in #12225
- docs: add some redirects from v1 to v2 docs by @shahednasser in #12229
- dos: add docs on overriding allowed fields in routes by @shahednasser in #12233
- docs: add LLM dropdown menu to documentation pages by @shahednasser in #12235
- docs: fix redirect infrastructure modules by @shahednasser in #12238
- docs: improvements to admin, query, and read-only link docs by @shahednasser in #12239
- docs: fix index.html.md causing 404 by @shahednasser in #12241
- docs: fix revalidate cache guide by @shahednasser in #12243
- docs: Fix typo "documenation" in env vars page.mdx by @Ezequiel-Schejtman in #12247
- docs: fix messy layout bug by @shahednasser in #12248
- docs: Replace api_key_id with publishable_key_id by @Wcdaren in #12242
- docs: added a section on loader execution by @shahednasser in #12260
- docs: fix no lines code block example by @shahednasser in #12259
- docs: fix badges and titles not showing in code tabs by @shahednasser in #12261
Chores
- chore(utils): fix TSDoc example for payment provider by @ynzier in #12012
- chore: fixes to JS SDK TSDocs by @shahednasser in #12159
- chore(core-flows,types): fix links in TSDocs pointing to architectural modules by @shahednasser in #12213
- chore: fixes and updates to promotion and shipping option TSDocs by @shahednasser in #12222
- chore: Pass more data to fulfillment provider by @olivermrbl in #12186
- Chore/orchestration storage improvements by @adrien2p in #12178
- chore(types): small tsdoc change to file service by @shahednasser in #12240
Other Changes
- added dutch translation by @harmvdhorst in #12167
- added hungarian admin translation by @GergoVandor in #12176
- fix: Ensure shipment includes tracking numbers from fulfillment by @ionutgaina in #11775
- feat(cart): emit updated event in update line item workflow by @bqst in #12119
New Contributors
- @ynzier made their first contribution in #12012
- @valerioXplo made their first contribution in #11983
- @harmvdhorst made their first contribution in #12167
- @GergoVandor made their first contribution in #12176
- @relaxedrohan made their first contribution in #12188
- @ionutgaina made their first contribution in #11775
- @Vallabh-Mahanta made their first contribution in #12215
- @Ezequiel-Schejtman made their first contribution in #12247
- @Wcdaren made their first contribution in #12242
Full Changelog: v2.7.0...v2.7.1