v2.13.3

medusajs/medusav2.13.3Feb 27, 2026by NicolasGorga

AI Summary

This release fixes a regression introduced in v2.13.2 where req.queryConfig included an entity property with undefined value, causing Service with alias 'undefined' errors. It also prevents exceptions when deleting products or variants with orphaned inventory.

Key Highlights

  • Fixes regression with undefined entity on req.queryConfig
  • Prevents exception when deleting product/variant with orphaned inventory
  • Adds external_id to product list params type

Full Release Notes

## Highlights

### Fixes regression with undefined entity on req.queryConfig

In v2.13.2 `req.queryConfig` started including an entity property even when its value was `undefined`. This caused routes that spread req.queryConfig into query.graph() to have their entity property overwritten by undefined, resulting in the exception: `Service with alias "undefined" was not found error`. This release fixes the issue by only setting the entity property in req.queryConfig when it indeed has a value.

#14815

 ## Bugs

  * fix(core-flows): prevent exception when deleting product/variant with orphaned inventory by @NicolasGorga in https://github.com/medusajs/medusa/pull/14805
  * fix(framework): remoteQueryConfig undefined entity regression by @NicolasGorga in https://github.com/medusajs/medusa/pull/14815
  
  ## Chores

  * chore(types): add external_id to product list params type by @asgerjensen in https://github.com/medusajs/medusa/pull/14802
  
  **Full Changelog**: https://github.com/medusajs/medusa/compare/v2.13.2...v2.13.3