Releases: medusajs/medusa
v2.11.3: Dependency clean-up
Highlights
Dependency clean-up and restructuring
This release comes with a major clean-up of dependencies used across our packages.
The clean-up includes 1) replacing large dependencies with native code to reduce bundle size, 2) ensuring unified dependency versions across packages, and 3) eliminating security vulnerabilities from dependencies.
As a result of these changes, the production node_modules have been reduced from 1GB+ → 837MB (approx. -16%), and we are down to a single low security vulnerability.
You can read more about the changes in #13932, #13910, and #13940.
Features
- feat(dashboard): include missing columns import template by @NicolasGorga in #13958
Bugs
- fix: Updates to medusa payments provider by @sradevski in #13914
- fix(): update Integration test enabling index when not necessary by @adrien2p in #13904
- chore(): Fix dependencies by @adrien2p in #13932
- fix: Update type Providers by @juanzgc in #13927
- fix opentelemetry-resources dependency typo by @peterlgh7 in #13948
- fix(types, medusa): fixes to http types and validators by @shahednasser in #13928
- Remove fetchPreviousPage/fetchNextPage from dependency array of useEf… by @NicolasGorga in #13949
- fix(medusa): priced products region_id regression by @NicolasGorga in #13961
- fix(): Index integration tests flackyness by @adrien2p in #13953
Documentation
- docs: docs for next release by @shahednasser in #13907
- chore(docs): Generated DML JSON files (automated) by @github-actions[bot] in #13919
- docs: document asymmetric encryption by @shahednasser in #13922
- docs: clarify prices are stored in major units by @shahednasser in #13897
- chore(docs): Generated References (automated) by @github-actions[bot] in #13921
- docs: generate OAS for 2.11.2 by @shahednasser in #13925
- docs: fix deployment error by @shahednasser in #13942
- docs: fix broken image in billing docs + clarify billing details by @shahednasser in #13944
- docs: fixes to recipes and examples following latest update by @shahednasser in #13933
- Include expected Sentry opentelemetry 1.x peer deps by @NicolasGorga in #13947
- docs: add keywords to Cloud sign up guide by @shahednasser in #13950
- docs: added product rental tutorial by @shahednasser in #13896
- docs: refactor analytics + remove segment by @shahednasser in #13954
Chores
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #13918
- chore(docs): Updated UI Reference (automated) by @github-actions[bot] in #13920
- chore(modules-sdk): parallel migrations by @carlos-r-l-rodrigues in #13898
- chore: add missing since and featureFlag tags by @shahednasser in #13926
- chore(): Update dependencies usage by @adrien2p in #13910
- chore(medusa): do not use transaction id on cart operations by @carlos-r-l-rodrigues in #13931
- chore(): Cleanup and organize deps by @adrien2p in #13940
- chore(): Update root dev deps and Stabilize package integration tests pipeline by @adrien2p in #13952
- chore(modules-sdk): db migration concurrency as envvar by @carlos-r-l-rodrigues in #13965
Other Changes
- Quote column names in indexes by @peterlgh7 in #13938
- Inject config module in tests by @peterlgh7 in #13937
- Version Packages by @github-actions[bot] in #13923
Full Changelog: v2.11.2...v2.11.3
v2.11.2: Product variant images and Index management API
Highlights
Product variant images
This release introduces images on product variants. It is now possible to assign images to individual product variants, enabling fully scoped variant-specific photos. In addition to this, a variant can have a thumbnail among its associated images.
The behavior of images is as follows:
- Images are added to products
- Variant images are chosen among the product images
- Upon retrieving variants, the variant images will contain:
- Product images that are not associated with any variants
- Images that are associated with the variant
For example, let's imagine you have three product images:
- White t-shirt
- Black t-shirt
- T-shirt on a model
You want to share the third image across variants, and have the white image on the white variants and black image on the black variants. To achieve this, you associate the white t-shirt image with the white variants, and the black t-shirt image with the black variants. The third image should have no associated variants.
This in turn would result in the following response on variants:
{
"id": "prod_1234",
"variants": [
{
"id": "var_1234",
"title": "White t-shirt"
"images": [
{ "id": "img_1234", "url": "http://images.com/white-t-shirt.png" },
{ "id": "img_1234", "url": "http://images.com/t-shirt-on-model.png" }
]
},
{
"id": "var_4321",
"title": "Black t-shirt"
"images": [
{ "id": "img_1234", "url": "http://images.com/black-t-shirt.png" },
{ "id": "img_1234", "url": "http://images.com/t-shirt-on-model.png" }
]
},
]
}Managing variant images
Two endpoints have been added:
POST /admin/products/:id/variants/:variant_id/images/batch— Batch manage image associations for a specific variant.POST /admin/products/:id/images/:image_id/variants/batch— Batch manage variant associations for a specific image.
Admin UI
You can manage product variant images from the product page in the admin dashboard. There are two ways to manage these.
From the root-level product page, you can associate a single image with many variants:
From the variant-specific page, you can associate many images with a single variant:
Data model changes
The following are changes to the data models in the Product Module required to enable this feature:
- ProductVariant now includes a many-to-many relationship with ProductImage.
- A new ProductVariantProductImage pivot entity manages these associations.
Therefore, please make sure to run migrations after upgrading to the new version:
npx medusa db:migrateIndex management API
This release adds a new API for managing the index, enabling you to trigger synchronization and retrieve detailed information about the last sync. The update improves visibility and control over the indexing process.
API
GET /admin/index/details— Retrieve index metadata, including entity type, status, last synced key, and last update timestamp.POST /admin/index/sync— Trigger synchronization from last synced data- Supports optional options:
{ strategy: "full" }— Perform a full sync{ strategy: "reset" }— Truncate tables and perform a fresh sync.
- Supports optional options:
Faster price updates
This release brings performance improvements to the Pricing Module, significantly speeding up price list and price set updates. The changes focus on optimizing database queries, reducing redundant computations, and streamlining price normalization and upsert operations.
Features
- feat(core-flows,product,types): scoped variant images by @fPolic in #13623
- feat(medusa,types): product variant store endpoints by @fPolic in #13730
- feat(product): build variant images when retrieving product by @fPolic in #13731
- feat(index): Add http/module api to interact with the index engine by @adrien2p in #13869
- feat: Implement medusa payments provider by @sradevski in #13772
- feat(dashboard): variant images list thumbnail + refactor form state management by @fPolic in #13905
Bugs
- use truncate in db teardown by @peterlgh7 in #13875
- fix(dashboard): preserve old image ids when deleting a product image by @fPolic in #13881
- fix(pricing): price list prices perf issues by @adrien2p in #13899
- chore(): Generate migrations with correct mikro orm import path by @adrien2p in #13893
- fix: allow controlling hmr bind host by @srindom in #13692
- fix(utils): db migration big number default value by @carlos-r-l-rodrigues in #13913
- chore(): Throw on migration up/down fail by @adrien2p in #13911
Documentation
- docs: fix spelling and grammar by @MBLVD in #13862
- docs: documented admin translations by @shahednasser in #13864
- docs: fix runtime error occuring with code tabs by @shahednasser in #13873
- Add PG_CONNECTION to Medusa Container docs by @NicolasGorga in #13871
- docs: fix mikro-orm imports from framework by @shahednasser in #13885
- docs: category images guide by @shahednasser in #13755
- docs: fix category images guide by @shahednasser in #13908
- docs: serve markdown to AI agents by @shahednasser in #13915
- docs: updated user stories in /learn by @cboeddek in #13866
Chores
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #13854
- chore(docs): Generated DML JSON files (automated) by @github-actions[bot] in #13855
- chore(docs): Updated UI Reference (automated) by @github-actions[bot] in #13856
- chore(docs): Generated References (automated) by @github-actions[bot] in #13857
- chore: fixes to http and request types for products by @shahednasser in #13833
- chore: fixes to HTTP and request types for API Keys by @shahednasser in #13819
- chore: fixes to HTTP and request types for promotions by @shahednasser in #13820
- chore: fixes to HTTP and request types for carts by @shahednasser in #13821
- chore: fixes to http and request types for orders (2) by @shahednasser in #13823
- chore: fixes to http and request types for orders (3) by @shahednasser in #13824
- chore: fixes to http and request types for customers by @shahednasser in #13825
- chore: fixes to http and request types for fulfillment by @shahednasser in #13826
- chore: fixes to http and request types for inventory by @shahednasser in #13827
- chore: fixes to http and request types for users by @shahednasser in #13828
- chore: fixes to http and request types for payments by @shahednasser in #13830
- chore: fixes to http and request types for payment and regions by @shahednasser in #13831
- chore: fixes to http and request types for sales channes, taxes, and store by @shahednasser in #13832
- chore: fixes to http and request types for orders (1) by @shahednasser in #13822
- chore: Inject sandbox handle in cloud config by @olivermrbl in #13879
- chore(types,notification): Make template nullable on emails by @olivermrbl in #13889
Other Changes
- add Medusa Cloud Email provider by @peterlgh7 in #13781
- feat(dashboard): add input field for tracking_url and label_url in shipment form by @kevinresol in #13787
- fix(dashboard): Resolve issue with product attributes input by @siddarthan007 in #13863
- fix(dashboard): tax region override too large payload by @NicolasGorga in #13860
- fix(admin): fix admin promotion list sort by @bqst in #13872
- feat(admin): change admin order list default sort by @bqst in #13874
- fix(dashboar...
v2.11.1
Highlights
Fixes regression with listing price preferences
Adds version to credit lines
This version adds column version to order credit lines and is used for keeping track of credit lines during order edits.
This addition comes with a migration, so after upgrading run the following command to apply it:
npx medusa db:migrate
Features
- feat(order,dashboard): version order credit lines by @willbouch in #13766
Bugs
- fix(test-utils): Duplicated subscribers re insertion by @adrien2p in #13798
- fix: prevent jobId collisions on workflow step retries by @srindom in #13786
- fix(medusa): images recreate on product update by @fPolic in #13813
Documentation
- chore(docs): Updated API Reference (automated) by @github-actions[bot] in #13794
- docs: fixes to API and JS SDK references by @shahednasser in #13795
- docs: fixes to type errors in guides by @shahednasser in #13797
- docs: change Medusa Cache setup information by @shahednasser in #13802
- docs: fix text in payload guide by @shahednasser in #13815
- docs: change binary encoding to base64 in file upload references by @shahednasser in #13811
- docs: add cache to comparison document + pricing fixes by @shahednasser in #13812
- docs: avalara integration tutorial by @shahednasser in #13808
- docs-util: remove inferring of query parameters by @shahednasser in #13834
- docs: clarify how emitEventStep emits an event in a workflow by @shahednasser in #13836
- docs: add error page by @shahednasser in #13839
- docs: improvements to tax related docs by @shahednasser in #13845
- docs: show possible similar pages on 404 page by @shahednasser in #13840
- docs: fixes to docker installation guide by @shahednasser in #13847
- docs: updates to installation doc by @shahednasser in #13848
Chores
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #13791
- chore(docs): Generated References (automated) by @github-actions[bot] in #13793
- chore(docs): Generated DML JSON files (automated) by @github-actions[bot] in #13790
- chore(docs): Updated UI Reference (automated) by @github-actions[bot] in #13792
- chore: fixes to refund reasons tsdocs by @shahednasser in #13796
- chore(workflow-engine-*): cleanup and improvements by @adrien2p in #13789
- chore: update description of emitEventStep by @shahednasser in #13838
- chore: improve TSDocs for tax provider module by @shahednasser in #13846
Other Changes
- fix(): Remove redundant indexes to resolve schema warnings by @DDA1O1 in #13736
- feat(payment-stripe): merge custom metadata along with session_id on payment initiation by @vethan in #13801
- Added shipping method data to tax module context by @pepijn-vanvlaanderen in #13747
- fix(js-sdk): add missing query param to deleteLineItem jsdoc by @andershermansen in #13835
- feat(admin-*,dashboard): add dashboard i18n extensions by @leobenzol in #13763
New Contributors
- @DDA1O1 made their first contribution in #13736
- @andershermansen made their first contribution in #13835
Full Changelog: v2.11.0...v2.11.1
v2.11.0: Caching primitives, manual refunds, and improved promotion limits
Highlights
Caching layer
This release adds new caching primitives to Medusa's toolbox.
1. New caching module, @medusajs/caching
We have added a new caching module in early preview with strong tools to integrate a cache into your Medusa application. The module comprises three key elements:
- Cache service: the main module service with a simple API for interacting with the cache
- Cache provider: the provider service responsible for delegating operations to the configured cache provider
- Cache strategy: the strategy responsible for computing cache keys and invalidation tags
Cache invalidation
Knowing when and how to invalidate cache entries is a challenging task. With the new caching module, we have baked this logic directly into the tooling, so you don't have to manage the complexity yourself.
We plan to share a technical deep dive covering the invalidation mechanism in detail, but here's the short version: whenever entries are inserted, the cache strategy computes tags based on the data. Invalidation of these entries relies on internal module events emitted whenever mutational service methods are called, e.g. service.update({ ... }). The cache strategy intercepts these events, computes the relevant tags using the event data, and instructs the cache provider to clear all entries associated with those tags.
Read more about this in our documentation.
2. New Redis caching provider, @medusajs/caching-redis
As described above, the new caching module follows our existing provider architecture, allowing different technologies to be used interchangeably without affecting the core application. In this release, we’ve introduced a Redis caching provider, which integrates directly with the caching module and serves as the underlying storage layer for the cached data.
3. New cache option on Medusa Query
Finally, to use the cache, we have introduced a new cache option in our query.graph API:
const { data } = await query.graph({
entity: "product",
filters: { id: "prod_1234" },
options: { cache: { enable: true } }
})This new option allows you to leverage the full power of the cache without having to think about computing keys and invalidation tags. These are automatically computed when query.graph is configured to use the cache.
Installation
Since the caching module is still in early preview, you need to enable a feature flag to use it in addition to registering the Redis cache provider in your medusa-config.ts. The new packages come pre-installed in the latest version of @medusajs/medusa.
// medusa-config.ts
module.exports = defineConfig({
projectConfig: { ... },
modules: [
{
resolve: "@medusajs/medusa/caching",
options: {
providers: [
{
id: "caching-redis",
resolve: "@medusajs/caching-redis",
options: {
redisUrl: process.env.REDIS_URL,
},
},
],
},
},
],
featureFlags: {
caching: true,
},
});By default, the cache is integrated across several business-critical APIs to boost performance and throughput. This includes all cart-related operations, where we cache the following data:
- Regions
- Promotion codes
- Variant price sets
- Variants
- Shipping options
- Sales channels
- Customers
With caching enabled, we’ve observed performance improvements of up to 70% across these operations. Read our blog post
for detailed benchmarks across different Medusa versions.
Bear in mind, our new caching tools are in preview, so they should be used with caution.
Bundle core Medusa dependencies
Breaking change
This release restructures the required dependencies of Medusa projects. We are consolidating all non-Medusa dependencies into a new @medusajs/deps package, which is installed internally in @medusajs/medusa. We are making this change to take control over our core dependencies. This will enable us to add new dependencies and do minor/major upgrades of core dependencies without breaking users' applications.
This is a breaking change, and the following steps are required to use versions 2.11.0 and over:
- Remove the following packages from dependencies in your
package.json:
"dependencies": {
"@medusajs/admin-sdk": "2.11.0",
"@medusajs/cli": "2.11.0",
"@medusajs/framework": "2.11.0",
"@medusajs/medusa": "2.11.0",
- "@mikro-orm/core": "6.4.3",
- "@mikro-orm/knex": "6.4.3",
- "@mikro-orm/migrations": "6.4.3",
- "@mikro-orm/postgresql": "6.4.3",
- "awilix": "^8.0.1",
- "pg": "^8.13.0"
},
"devDependencies": {
"@medusajs/test-utils": "2.11.0",
- "@mikro-orm/cli": "6.4.3",
...- Install dependencies using your preferred package manager
- Run the included codemod (see section below)
- Start your application. If you have issues, please open a GitHub Issue and we will help you out as soon as possible
Codemod
By side effect, this update also requires you to update explicit imports from these dependencies in your own project. To help you with this, we have included a codemod that automatically replaces imports throughout your codebase.
To use the codemod, create a file replace-imports.js in the root of your Medusa application with the following content
Codemod
#!/usr/bin/env node
const fs = require("fs")
const path = require("path")
const { execSync } = require("child_process")
/**
* Script to replace imports and require statements from mikro-orm/{subpath}, awilix, and pg
* to their @medusajs/framework equivalents
*/
// Define the replacement mappings
const replacements = [
// MikroORM imports - replace mikro-orm/{subpath} with @medusajs/framework/mikro-orm/{subpath}
{
pattern: /from\s+['"]@?mikro-orm\/([^'"]+)['"]/g,
// eslint-disable-next-line quotes
replacement: 'from "@medusajs/framework/mikro-orm/$1"',
},
// Awilix imports - replace awilix with @medusajs/framework/awilix
{
pattern: /from\s+['"]awilix['"]/g,
// eslint-disable-next-line quotes
replacement: 'from "@medusajs/framework/awilix"',
},
// PG imports - replace pg with @medusajs/framework/pg
{
pattern: /from\s+['"]pg['"]/g,
// eslint-disable-next-line quotes
replacement: 'from "@medusajs/framework/pg"',
},
// OpenTelemetry imports - replace @opentelemetry/instrumentation-pg, @opentelemetry/resources,
// @opentelemetry/sdk-node, and @opentelemetry/sdk-trace-node with @medusajs/framework/opentelemetry/{subpath}
{
pattern: /from\s+['"]@?opentelemetry\/(instrumentation-pg|resources|sdk-node|sdk-trace-node)['"]/g,
// eslint-disable-next-line quotes
replacement: 'from "@medusajs/framework/opentelemetry/$1"',
},
// MikroORM require statements - replace require('@?mikro-orm/{subpath}') with require('@medusajs/framework/mikro-orm/{subpath}')
{
pattern: /require\s*\(\s*['"]@?mikro-orm\/([^'"]+)['"]\s*\)/g,
// eslint-disable-next-line quotes
replacement: 'require("@medusajs/framework/mikro-orm/$1")',
},
// Awilix require statements - replace require('awilix') with require('@medusajs/framework/awilix')
{
pattern: /require\s*\(\s*['"]awilix['"]\s*\)/g,
// eslint-disable-next-line quotes
replacement: 'require("@medusajs/framework/awilix")',
},
// PG require statements - replace require('pg') with require('@medusajs/framework/pg')
{
pattern: /require\s*\(\s*['"]pg['"]\s*\)/g,
// eslint-disable-next-line quotes
replacement: 'require("@medusajs/framework/pg")',
},
// OpenTelemetry require statements - replace require('@opentelemetry/instrumentation-pg'),
// require('@opentelemetry/resources'), require('@opentelemetry/sdk-node'), and
// require('@opentelemetry/sdk-trace-node') with require('@medusajs/framework/opentelemetry/{subpath}')
{
pattern: /require\s*\(\s*['"]@?opentelemetry\/(instrumentation-pg|resources|sdk-node|sdk-trace-node)['"]\s*\)/g,
// eslint-disable-next-line quotes
replacement: 'require("@medusajs/framework/opentelemetry/$1")',
},
]
function processFile(filePath) {
try {
const content = fs.readFileSync(filePath, "utf8")
let modifiedContent = content
let wasModified = false
replacements.forEach(({ pattern, replacement }) => {
const newContent = modifiedContent.replace(pattern, replacement)
if (newContent !== modifiedContent) {
wasModified = true
modifiedContent = newContent
}
})
if (wasModified) {
fs.writeFileSync(filePath, modifiedContent)
console.log(`✓ Updated: ${filePath}`)
return true
}
return false
} catch (error) {
console.error(`✗ Error processing ${filePath}:`, error.message)
return false
}
}
function getTargetFiles() {
try {
// Get the current script's filename to exclude it from processing
const currentScript = path.basename(__filename)
// Find TypeScript/JavaScript files, excluding common directories that typically don't contain target imports
const findCommand = `find . -name node_modules -prune -o -name .git -prune -o -name dist -prune -o -name build -prune -o -name coverage -prune -o -name "*.ts" -print -o -name "*.js" -print -o -name "*.tsx" -print -o -name "*.jsx" -print`
const files = execSync(...v2.10.3: View configurations and Shipping Options context hook
Highlights
[Experimental] Customizable columns in Medusa Admin tables
In previous versions, tables that list Orders, Products, etc., had hard-coded columns that couldn’t be modified. However, columns have different relevance between businesses. The only way to get tables to show additional columns was to introduce admin extensions that duplicated the original table’s behavior. This was tedious and clunky.
In this release, we are rolling out experimental support for View Configurations, which allow you to change which columns are displayed in the Orders and Products tables. Click the columns dropdown to see the available columns and add the ones you want. The available columns are computed using Medusa’s module graph, meaning any custom data models linked to Orders or Products can also be included in your table config.
With the View Configurations feature, we also enable saved views so you can have the right view at hand for your workflow. Saved views hold both your column configurations and any filters you have applied.
To try View Configurations turn on the feature flag in your medusa-config.ts
module.exports = defineConfig({
...
featureFlags: {
view_configurations: true
}
})Shipping options context hook
This release introduces a hook to customize the context used to list shipping options, allowing you to leverage custom rules for shipping options more easily.
The hook can be used like so:
import { listShippingOptionsForCartWithPricingWorkflow } from "@medusajs/medusa/core-flows"
import { StepResponse } from "@medusajs/workflows-sdk"
listShippingOptionsForCartWithPricingWorkflow.hooks.setShippingOptionsContext(
async ({ cart }, { container }) => {
if (cart.customer_id) {
return new StepResponse({
customer_id: cart.customer_id,
})
}
const query = container.resolve("query")
const { data: carts } = await query.graph({
entity: "cart",
filters: {
id: cart.id,
},
fields: ["customer_id"],
})
return new StepResponse({
customer_id: carts[0].customer_id,
})
}
)In the example above, we add customer_id to the context along with the fixed properties is_return and enabled_in_store. This means that if a shipping option rule includes a customer_id attribute, the shipping option will be included in the result set.
The hook has been introduced in the following workflows:
listShippingOptionsForCartWithPricingWorkflowlistShippingOptionsForCartWorkflow
Please make sure to register the hook in both, since they are used for shipping option validation across workflows.
Features
- feat(medusa): allow filtering by id for collections by @willbouch in #13495
- feat(dashboard): reusable config datatable by @srindom in #13389
- feat(core-flows): hook to set shipping opt context when listing by @willbouch in #13468
- Feat(): promo prefilter top level rules in db by @adrien2p in #13524
- feat(dashboard): configurable product views by @srindom in #13408
Bugs
- fix(): pipeline missing suites by @adrien2p in #13457
- fix(types): cart item totals optional by @willbouch in #13509
- fix(types): pluralize words ending in s like status by @willbouch in #13461
- fix(medusa): Use the correct boolean validator by @adrien2p in #13510
- fix(core-flows, medusa): don't allow negative line item quantity by @fPolic in #13508
- fix(utils,core-flows): subtotal calculation and returns location by @carlos-r-l-rodrigues in #13497
Documentation
- chore(docs): Generated References (automated) by @github-actions[bot] in #13492
- docs: add manage promotions in cart storefront guide by @shahednasser in #13483
- chore: update API reference for 2.10.2 by @shahednasser in #13499
- docs: general improvements and updates by @shahednasser in #13485
- docs: regenerate core-flows reference to pick up locking steps by @shahednasser in #13502
- docs: documentation updates for v2.10.2 by @shahednasser in #13500
- docs: fix issues in product builder tutorial by @shahednasser in #13505
- docs: add clarification for set cart's customer API route by @shahednasser in #13506
- docs: add section on retrieve totals for cart items and shipping methods in storefront by @shahednasser in #13513
- docs: general improvements and fixes by @shahednasser in #13515
- docs: small update to invoice generator introduction by @shahednasser in #13519
- docs: add Next.js starter guides to llms-full.txt by @shahednasser in #13523
- docs: fixes to JS SDK + auth provider guides by @shahednasser in #13526
- docs: general improvements by @shahednasser in #13530
- docs: improve third-party auth in storefront guide by @shahednasser in #13534
Chores
- chore(docs): Updated UI Reference (automated) by @github-actions[bot] in #13491
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #13490
- chore(js-sdk): add ignore tag to views by @shahednasser in #13503
- chore: update TSDocs of JS SDK store methods to clarify required auth by @shahednasser in #13507
- chore(core-flows): use directory convention for locking steps by @shahednasser in #13501
- chore: add a link to the storefront docs for cart item totals type by @shahednasser in #13514
- test(): test dynamic max workers and improve CI by @adrien2p in #13516
- chore(): Shard unit tests jobs by @adrien2p in #13525
- fix(core-flows): Lock cart on shipping + taxes update by @olivermrbl in #13535
- chore: add tsdocs for latest changes by @shahednasser in #13539
- fix(): Prevent promotion filtering to exceed psql limits by @adrien2p in #13540
Other Changes
- fix(js-sdk): skip null values in query qs.stringify by @leobenzol in #13460
- feat(dashboard): update display of tracking/label URLs on order details by @docloulou in #11613
- fix(dashboard): added missing currencies by @tehaulp in #13214
- test(): Try to reproduce automatic promotion adjustments being applied twice by @adrien2p in #13533
Full Changelog: v2.10.2...v2.10.3
v2.10.2
Highlights
Indexing of core entities
Medusa Index was built to improve the developer experience of filtering data across modules while improving performance, especially for large data sets.
With this release, all entities in the core Medusa modules are now ingestible into Medusa Index. This unlocks cross-module filtering for all core and custom entities. The ingestion happens automatically, provided a link is defined between the entities, as described in our documentation.
For example, filtering Products by Sales Channels used to require the following steps:
// 🔴 BEFORE
const query = container.resolve("query")
// Sales Channels to filter by
const salesChannels = ["sc_1234"]
// Query the Sales Channel <> Product link table for matching links
const { data: links } = await query.graph({
entity: "product_sales_channel",
fields: ["product_id"],
filters: {
sales_channel_id: salesChannels
}
})
// Construct the products filter using the matched links
const productFilters = {
id: links.map(link => link.product_id)
}
// Finally query the products with the filters
const { data: products } = await query.graph({
entity: "product",
fields: ["id"],
filters: productFilters
})With Index, the same example from above can be done with a single query:
// 🟢 NOW
const query = container.resolve("query")
// Sales Channels to filter by
const salesChannels = ["sc_1234"]
// Query the products with the sales channel filter
const { data: products } = await query.index({
entity: "product",
fields: ["id"],
filters: { sales_channels: { id: salesChannels } },
})Note that in the second code snippet, we use query.index instead of query.graph to query Medusa Index.
For setup and usage details of Medusa Index, see our documentation.
Locking all cart operations
All cart workflows in Medusa's core are now locking the cart during execution to eliminate the risk of concurrent changes.
We would recommend that you introduce the same locking mechanism to your own custom cart workflows.
Here's how you would do it:
export const myCustomAddToCartWorkflow = createWorkflow("my-custom-add-to-cart-workflow",
(input) => {
// Acquire a lock on the cart ID as the first step in the workflow
acquireLockStep({
key: input.cart_id,
timeout: 2, // Attempt to acquire the lock for two seconds before timing out
ttl: 10, // Lock is only held for a maximum of ten seconds
})
// Run all regular cart operations
// Release the lock on the cart ID as the last step in the workflow
releaseLockStep({
key: cart.id,
})
return new WorkflowResponse({ ... })
}
)Features
- feat(promotion): Allow buyget promotion to apply multiple times on cart by @riqwan in #13305
- feat(admin): add view configuration client infrastructure by @srindom in #13186
- Feat/datatable core enhancements by @srindom in #13193
- feat(ui): add column visibility and drag-and-drop reordering support by @srindom in #13198
- feat(admin): add configurable order views by @srindom in #13211
- feat(dashboard,cart,types,utils): refine order details summary by @willbouch in #13313
- chore(orchestration): add support for autoRetry, maxAwaitingRetries, retryStep by @adrien2p in #13391
Bugs
- fix(dashboard): rules form operator change by @fPolic in #13324
- fix(core-flows): handle cacluated shipping options on draft orders gracefully by @fPolic in #13353
- fix(utils): big bumber should give numeric value of 0 for small numbers by @willbouch in #13394
- fix(dashboard, ui): ensure radix deps version by @fPolic in #13392
- fix(dashboard): promotion decimal value definition by @fPolic in #13371
- fix(dashboard): customer
has_acccountflag by @fPolic in #13414 - fix(dashboard): support more decimals for tx rates by @willbouch in #13407
- fix: Missing DB traces in instrumentation by @olivermrbl in #13429
- fix(index): index enum fields by @carlos-r-l-rodrigues in #13428
- fix(medusa): Use default logger in plugin:develop by @olivermrbl in #13375
- fix(medusa): stop loading entry points in exec command by @willbouch in #13438
- fix(dashboard): edit rules clear and reset by @fPolic in #13423
- fix(): Prevent ci to fail if lock file does not exists by @adrien2p in #13456
- fix(): missing events by @adrien2p in #13465
- fix(): product image missing index by @adrien2p in #13466
- fix(): temporary transform cached data by @adrien2p in #13467
- fix(): prepare list query for list by @adrien2p in #13476
- chore(): improve inventory module by @adrien2p in #13463
- fix(): update cart line item route fetching by @adrien2p in #13477
- fix(medusa,product): fix ordering product categories by @willbouch in #13487
Documentation
- docs-util: fix error in references pipeline by @shahednasser in #13343
- docs: generate references for 2.10.1 by @shahednasser in #13344
- docs-util: fix workflows not picked for some routes + generate OAS by @shahednasser in #13342
- docs: document scheduled jobs interval by @shahednasser in #13350
- docs: add troubleshooting guide for pnpm installations by @shahednasser in #13351
- docs: add lockin module provider to deployment guide by @shahednasser in #13361
- docs: document how prices are stored in Medusa by @shahednasser in #13362
- docs: add missing step in product builder guide by @shahednasser in #13370
- docs: added a section on figma mcp + workflows diagram fix by @shahednasser in #13367
- docs: general updates and fixes by @shahednasser in #13374
- docs: change digial products to digital products by @yoreljenkins in #13379
- docs: document feature flags by @shahednasser in #13388
- docs: add more examples for API route responses by @shahednasser in #13399
- docs: show the source code link in order models reference by @shahednasser in #13398
- docs: change text in Cloud homepage by @MedusaNick in #13401
- docs: fix scrollbar not clickable by @shahednasser in #13409
- docs: added a note about payload version by @shahednasser in #13410
- docs: general fixes and improvements by @shahednasser in #13417
- docs: add plan cancelation details by @shahednasser in #13416
- docs: fixes and improvements to price calculation guide by @shahednasser in #13419
- docs: update project creation steps by @shahednasser in #13436
- docs: add graphql dependency to payload guide by @shahednasser in #13440
- chore(): Upgrade mikro orm by @adrien2p in #13390
- docs: add product feed tutorial by @shahednasser in #13366
- docs: fix cancel order information in user guide by @shahednasser in #13447
- docs: fix relations missing from data model reference diagrams by @shahednasser in #13474
- docs: improvements to Cloud homepage by @shahednasser in #13479
- docs: fix saved payment method guide by @shahednasser in #13480
- docs: fix same page link not resolved correctly by @shahednasser in #13481
- docs: add cloud plans & pricing page by @shahednasser in #13420
- docs: ticket booking system guide by @shahednasser in #13471
Chores
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #13340
- chore(docs): Updat...
v2.10.1: Fixes regression in performance for cart operations
Highlights
We identified a performance regression affecting cart operations in the latest release. This issue resulted in slower response times for cart-related HTTP requests. The regression was caused by a change introduced to control concurrency in cart operations, which inadvertently impacted performance.
To address this issue, we have reverted the change, restoring cart operation performance to its previous state. To prevent similar issues in future releases, we are implementing regression tests as part of our release pipeline. These tests will help detect performance regressions early in the development process, ensuring a more stable and reliable experience.
We apologize for the inconvenience this may have caused for some applications.
Documentation
- docs: docs for next release by @shahednasser in #13303
- chore: fix release action of ui docs by @shahednasser in #13329
- docs: generate API reference for 2.10.0 by @shahednasser in #13330
- docs: added shipping option type injection zones by @shahednasser in #13332
- docs: update UI docs by @shahednasser in #13333
Chores
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #13327
- chore(docs): Generated DML JSON files (automated) by @github-actions[bot] in #13328
- chore: add since tag to shipping option type events by @shahednasser in #13331
- chore(core-flows): revert idempotent cart by @carlos-r-l-rodrigues in #13336
Full Changelog: v2.10.0...v2.10.1
v2.10.0: Draft Orders, Free shipping promotion, and Shipping Option Types
Highlights
This release contains breaking changes, so please read the release notes carefully. The breaking changes are all the result of fixing behavior that has not worked as intended until now.
Idempotency in our Workflow Engine
Warning
Breaking change
The idempotent configuration on workflows no longer retains executions in the database after completion, unless a retention time is specified. Up until now, if the idempotent flag was set, workflow executions were retained indefinitely, which was never the intention. The intention was to make a workflow idempotent for the duration of its execution, and only longer if the retention time was explicitly configured.
As part of this change, we are enabling the idempotent flag on all cart workflows to prevent concurrent mutations on cart operations.
Return type of methods in MedusaService
Warning
Breaking change
The return types of update and create in MedusaService have been corrected to properly handle the different shapes of inputs.
The behavior is now as follows:
createT({ ... }): T
createT([{ ... }]): T[]
updateT({ id: "br_1234", name: "Hermes" }): T
updateT([{ id: "br_1234", name: "Hermes" }, { id: "br_4321", name: "Loewe" }]): T[]
updateT({ selector: { country_of_origin: "France" }, data: { language: "French" }}): T[]Compensating emitEventsStep
Warning
Breaking change
Previously, if the emitEventStep queued an event and the workflow later failed, the compensating flow would emit that queued event instead of removing it. This caused unexpected behavior during rollback.
With this change, when a workflow is compensated, all queued events emitted in the workflow are cleared. This was the intended behavior from the get-go, but the bug was only discovered recently.
If you want to keep the previous behavior, you can create your own version of the emitEventsStep without a compensation step.
Manage Shipping Option Types in Admin
Warning
Breaking change
The admin dashboard now supports managing shipping option types, making it easier to categorize options such as Standard and Express.
Key updates:
- Settings: New "Shipping Option Types" page (accessible from "Locations & Shipping")
- Create and update types with label, description, and code
- Shipping option creation flow: Choose a type from a dropdown
- Shipping option update flow: Change a type from a dropdown
This brings shipping option management to the dashboard, aligning it with existing backend support.
The introduction of Shipping Option Types comes with a migration, cleaning up old dummy types from the database. Up until now, we've created dummy types for Shipping Options as part of their creation flow. These types were placeholders, which is why we are now replacing them.
The migration will do the following:
- Delete all Shipping Option Types with code
type-codefrom the database - Disassociate these types from Shipping Options
- Create a new Shipping Option Type named "Default" with code
default - Associate the default type with Shipping Options
This migration will only affect Shipping Options that reference the type-code type. If you have been using your own types, they will remain as is. On the contrary, if you have been relying on type-code, this is a breaking change.
Draft Orders
The new Draft Order plugin adds flexible order management directly in Medusa Admin. Store admins can create, edit, and finalize orders through a dedicated UI, while developers gain a new primitive for building custom workflows.
Key features:
- Create and manage draft orders from Medusa Admin
- Support for custom pricing, line items, and shipping methods
- Streamlined handling of B2B and complex sales
The Draft Order plugin is installed by default from version >=2.10.0. It is usable for version >=2.4.0 but requires explicit installation and registration.
Read more in our documentation.
Free shipping Promotions
This release introduces support for free shipping promotions available directly from the admin dashboard. You can apply free shipping to specific Shipping Option Types, e.g., "Standard", but not "Express".
Custom Logger Support
You can now replace the default logger with your own implementation by providing a class that follows the Logger interface.
Example:
// medusa-config.ts
import { MyCustomLogger } from "./custom-logger"
export default defineConfig({
// ...
logger: MyCustomLogger,
})The logger should implement the Logger interface.
Shipping Option Tax Rates
You can now create tax rates specifically for shipping options within tax regions, similar to product-specific tax rates.
Metadata for Product Tags
The product tag domain now supports metadata, with a UI for creating and managing metadata values.
Features
- feat(dashboard, js-sdk): shipping option type mngmt dashboard by @willbouch in #13208
- feat: view config feature flag by @srindom in #13171
- feat: add settings module by @srindom in #13175
- feat(api): add view configuration API routes by @srindom in #13177
- feat: add column introspection api by @srindom in #13183
- feat(dashboard, core-flows): associate shipping option to type by @willbouch in #13226
- feat(core-flows): Refresh adjustments when editing orders by @olivermrbl in #13189
- feat(dashboard): shipping option tax rate overrides UI by @fPolic in #13260
- feat(dashboard, core-flows, js-sdk, types, medusa): listing order's shipping options by @fPolic in #13242
- feat(dashboard,core,modules): free shipping promotion in dashboard by @willbouch in #13263
- feat(core, event-bus): Compensate emit event step utility by @adrien2p in #13281
- feat(utils): define file config by @carlos-r-l-rodrigues in #13283
- feat: Add Draft Order plugin by @olivermrbl in #13291
- feat(index): $nin and $not operators by @carlos-r-l-rodrigues in #13289
- fix(orchestration): Use the step definition max retries on set step failure by @adrien2p in #13319
- feat: custom logger by @carlos-r-l-rodrigues in #13156
Bugs
- fix(utils): fix promotion case of each allocation not applying its total amount by @riqwan in #13199
- fix(utils): auto generated update method return by @carlos-r-l-rodrigues in #13225
- fix(dashboard): table inclusive date filter by @fPolic in #13053
- fix(dashboard): create product selected inventory item display by @fPolic in #13111
- fix(core-flows, dashboard, types): improve allocation flows on Admin by @fPolic in #12572
- fix(dashboard): zero in float currency inputs by @fPolic in #13267
- fix(dashboard): show fulfilment option on SO edit by @fPolic in #13269
- fix(fulfillment): Geozone constraints builder by @olivermrbl in #13282
- fix(): Cart operation should calculate item prices accounting for quantity by @adrien2p in #13251
- fix(fulfillment): don't cascade shipping option delete to shipping option type by @fPolic in #13280
- fix: Add created_at to workflow execution filtering typings by @sradevski in #13295
- fix(dashboard): handle large resource count in tax rule override edit form by @fPolic in #13297
- fix(medusa): fetching a product without a category with
categoriesfiled passed by @fPolic in #13020 - fix(core-flows): pass backorder flag when recreating reservations after fulfilment cancelation by @fPolic in #13076
- fix(core-flows): list order shipping options param type by @fPolic in #13316
Documentation
- chore(docs): Generated References (automated) by @github-actions[bot] in #13206
- docs: fix subtotal description in storefront guides by @shahednasser in #13212
- docs: fixes to read-only links + add examples for filtering by relations by @shahednasser in #13218
- docs: add regions supported by Cloud by @shahednasser in #13220
- docs: update create project steps by @shahednasser in #13223
- docs: connect to database updates by @shahednasser in #13224
- docs: fix typos in index modules docs by @tedraykov in #12852
- ...
v2.9.0
Highlights
Throw error on invalid promotions
Warning
Breaking change
This release updates the promotion application logic to throw when applying an invalid promotion code. This change improves the experience for developers building storefronts by allowing them to handle invalid discount codes directly from the API response, rather than checking cart promotions after the API request.
The backend will respond with a 400 and a message like so:
The promotion code HELLOWORLD is invalid
Add support for logical operators on Index
This release introduces support for logical operators on Index queries, such as:
const { data: products } = await query.index({
entity: "product",
filters: {
$and: [
{ status: "published" },
{
$or: [
{ brand: { name: { $ilike: "%adidas%" } } }
]
}
]
}
})In addition to this, this release also fixes a regression related to indexing custom module entities.
Resolve issue with promotion calculations in a tax-inclusive context
This release resolves an issue with the calculation of adjustments in a tax-inclusive calculation context.
When calculating the applicableTotal (the maximum amount a promotion can apply to an item), it was incorrectly based on the line item’s subtotal (excluding tax), while the promotion value was based on the total (including tax), causing incorrect adjustment calculations.
Bugs
- fix(core-flows): guest customer updates email to another guest account by @fPolic in #13037
- fix(create-medusa-app): Don't allow dot in project name by @olivermrbl in #13042
- fix(promotion): check currency when computing actions for promotions by @riqwan in #13084
- fix(core-flows): refresh payment collection by @carlos-r-l-rodrigues in #13103
- chore(ui): sync Figma resources by @fPolic in #13088
- fix(pricing): Calculate prices with multiple rule values by @olivermrbl in #13079
- fix(dashboard): variants disappearing when removing an option on product creation by @willbouch in #13150
- fix(workflow-engine-inmemory): fix cron job schedule by @carlos-r-l-rodrigues in #13151
- fix(index): logical operators by @carlos-r-l-rodrigues in #13137
- fix(dashboard,promotion): Fix regression on applying percentage promotions by @riqwan in #13161
- fix: Allow getting the token from the SDK client by @sradevski in #13164
- fix(types): remove order_id in apis that do not handle it by @willbouch in #13185
- fix(tax): Use correct rule reference for shipping by @olivermrbl in #13195
Documentation
- docs: update order promotion link details by @shahednasser in #13023
- docs: fix vale lint errors by @shahednasser in #13024
- chore(docs): Updated UI Reference (automated) by @github-actions[bot] in #13026
- docs: fix to OAS generator following Zod update + generate API reference by @shahednasser in #13030
- docs: fix bug in layout change when using some chrome extensions by @shahednasser in #13031
- docs: document UI route breadcrumbs by @shahednasser in #13035
- docs: fix passing linkable for inverse read-only links by @shahednasser in #13041
- docs: add section on customer account deletion by @shahednasser in #13048
- docs: add how-to guides for retrieving cart and order totals by @shahednasser in #13044
- docs: improvements and additions to admin customization chapters by @shahednasser in #13049
- docs: document checks examples + migrations naming convention by @shahednasser in #13052
- docs: document auto-generated types by @shahednasser in #13050
- docs: added examples to DatePicker component by @shahednasser in #13054
- docs: general updates to documentation pages by @shahednasser in #13055
- docs: migration guide from v1 to v2 by @shahednasser in #12597
- docs: open AI assistant based on search query by @shahednasser in #13063
- docs: handle recaptcha loading before submitting AI assistant queries by @shahednasser in #13065
- Fix spelling error in documentation by @benwrk in #13061
- docs: document debugging workflows by @shahednasser in #13087
- docs: improved workflows integration tests guide by @shahednasser in #13090
- docs: document JSON properties by @shahednasser in #13099
- docs: add link to manage metadata section in OAS and API reference by @shahednasser in #13102
- docs: improve instructions to install Medusa UI in standalone projects by @shahednasser in #13104
- docs: add links to technical guides in user guides by @shahednasser in #13108
- docs: update list of resources in module containers + conventions on loaders by @shahednasser in #13107
- docs: add more totals to retrieve cart and totals guides by @shahednasser in #13110
- docs: updates to nested workflow docs by @shahednasser in #13117
- docs: fix search not opening sometimes by @shahednasser in #13118
- docs: fix code block titles not showing in UI docs by @shahednasser in #13119
- docs: added guide on sending invite user emails + updates to reset password guide by @shahednasser in #13122
- docs: add buffer example in workflows + tip for type error in admin global variables by @shahednasser in #13124
- docs: document the fetchStream method of the JS SDK by @shahednasser in #13125
- docs: change from detecting version to since tag by @shahednasser in #13127
- docs: general updates to documentation pages by @shahednasser in #13128
- feat: Add MCP instructions for Claude Code by @aldo-roman in #13134
- docs: generate invoice tutorial by @shahednasser in #13077
- Update page.mdx by @concaveinc in #13180
- docs: integrate reo.dev by @shahednasser in #13192
Chores
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #13025
- chore(docs): Generated References (automated) by @github-actions[bot] in #13027
- chore: fix example in createProductsWorkflow TSDocs by @shahednasser in #13112
- chore: add links to package.json by @shahednasser in #13100
- chore: use since instead of version tag in TSDocs by @shahednasser in #13126
- chore(dashboard): add missing US states by @fPolic in #13094
- chore: add willbouch to teams.yml by @willbouch in #13141
- chore(core-flows): throw error on invalid promo code by @willbouch in #13140
- chore(util): avoid promotion value precision limit by @carlos-r-l-rodrigues in #13145
- chore(core-flows): import zod by @carlos-r-l-rodrigues in #13197
Other Changes
- fix(dashboard): correct overflow in a few settings edit forms by @SteelRazor47 in #11982
- fix: createCustomerGroupsStep rollback, delete created customer groups… by @jbrigbyjs in #13056
- This fixes the discount_ calculation logic and promotion tax inclusiveness calculation by @scherddel in #12960
- feat: added pacific franc currency by @tehaulp in #13086
- fix(types,utils,promotion): Move from total to original_total to resolve edge case for adjustments calculation by @scherddel in #13106
- fix(utils):Fix on precision for high quantities for items when promotion is applied by @scherddel in #13131
- Made in operator work as In insted of equal logic by @mikkel-lindstrom in #13078
New Contributors
...
v2.8.8: Improved error logging and overall robustness of core operations
Highlights
Carry over cart promotions to order
The cart-completion workflow has been updated to transfer promotions from carts to orders upon completion. This means you can now access promotions on the order like so:
const { data } = await query.graph({
entity: "order",
fields: ["id", "promotions.*"]
})
const order = data[0]
console.log(order.promotions)
// [{
// "id": "promo_1234",
// "code": "10OFF",
// "is_automatic": false,
// "is_tax_inclusive": false,
// "type": "standard",
// "status": "active",
// "campaign_id": null,
// "campaign": null,
// }]Previously, promotions had to be accessed via the line item adjustments on the order.
Align accepted values in product import template
The CSV product import functionality has been updated to correctly handle unexpected columns. These columns are now ignored during import, ensuring a smoother process for creating and updating products.
Improved error logging
Client-side 4xx responses (such as 404s) are no longer logged as errors. These responses typically indicate expected conditions. Only 5xx responses, which indicate server-side issues, are now logged as errors. This reduces unnecessary noise in logs, making it easier to focus on actual server problems.
Expanded order methods in the JS SDK
Added archive and complete methods to the admin.order module of the JS SDK. These methods provide support for the POST /admin/orders/{id}/archive and POST /admin/orders/{id}/complete endpoints, giving developers full access to the order lifecycle directly from the SDK.
The methods are used like so:
await sdk.admin.order.archive("order_123");
await sdk.admin.order.complete("order_123");Bugs
- fix(link-modules,core-flows): Carry over cart promotions to order promotions by @riqwan in #12920
- fix(core-flows): updating tax lines when draft order shipping is removed by @fPolic in #12919
- fix(types): add attachments to CreateNotificationDTO type by @shahednasser in #12936
- fix(dashboard): combobox multiitem clear by @fPolic in #12939
- fix(core-flows): useQueryGraph util return type by @adrien2p in #12962
- chore(workflow-engine-*): Align event subscribers management by @adrien2p in #12976
- fix(orchestration): Prevent workf. cancellation to execute while rescheduling by @adrien2p in #12903
- fix: accepted values in import with template by @juanzgc in #12969
- fix(core-flows): properly delete variant inventory item by @fPolic in #12958
- chore(link-modules): keep promotion alias by @riqwan in #12928
- fix(wfe): should notify when finished + add state info by @adrien2p in #12982
- fix(wfe): add missing state in inmemory notify on run finished by @adrien2p in #12987
- fix(dashboard): allocation UI for orders with more than 20 reservation items by @fPolic in #12989
- fix(pricing): fix pricing query when max_quantity is null by @riqwan in #12981
- fix: fix script migrations order by @peterlgh7 in #13007
- fix(workflows-sdk): fix step name config used before default by @carlos-r-l-rodrigues in #12926
- fix(modules-sdk): Entity types by @olivermrbl in #13002
- fix(dashboard, product): product attributes update with a relation update by @fPolic in #13019
Documentation
- docs: add missing prop to kapa by @shahednasser in #12934
- chore(docs): fix generate OAS for gift card by @shahednasser in #12937
- chore(docs): Updated UI Reference (automated) by @github-actions[bot] in #12941
- docs: changes for new releases + fixes by @shahednasser in #12945
- chore(docs): Generated References (automated) by @github-actions[bot] in #12942
- docs: fix overlap between input and clear button in search by @shahednasser in #12949
- docs: updates to long-lived environment and billing docs by @shahednasser in #12948
- docs: fix example of updatePayment method by @shahednasser in #12947
- docs: added a note linking to create-medusa-app reference by @shahednasser in #12950
- docs: update next.js to 15.3.5 by @shahednasser in #12952
- docs: fix complete cart workflow in marketplace vendors recipe by @shahednasser in #12953
- docs: update customize stripe in next.js storefront guide by @shahednasser in #12963
- docs: add a troubleshooting section on creating a payment session with zero total by @shahednasser in #12974
- docs: use mappedBy property for all relationship types by @shahednasser in #12973
- docs: add examples to price rules and tiers by @shahednasser in #12700
- docs: improvements to the "Expose a Workflow Hook" documentation by @shahednasser in #12992
- docs: add a section on shipping options and requirement + improvements by @shahednasser in #12990
- chore: Fix freshness check script + update Linear SDK by @shahednasser in #12991
- docs: add inject dependencies section in module tests + improvements by @shahednasser in #12993
- docs: fix spacing between workflow steps and tooltip by @shahednasser in #12994
- docs: fix input type of some hooks in workflow reference by @shahednasser in #12995
- docs: add section on type aliases in admin + note for removing items from orders by @shahednasser in #12996
- docs: fix jest.config.js by @SteelRazor47 in #12999
- docs: improve alt of images by @shahednasser in #12998
- docs: freshness check for some guides by @shahednasser in #13000
- docs: remove non-existing sidebar items by @shahednasser in #13013
- docs: fix typos in learn and recipes by @mathieuh in #13017
- docs: add MCP server by @shahednasser in #13018
- docs: added pre-orders guide by @shahednasser in #12984
- docs: added personalized products guide by @shahednasser in #13012
- docs: added Docker local installation guide by @shahednasser in #13022
Chores
- chore(docs): Update version in documentation (automated) by @github-actions[bot] in #12935
- chore(docs): Generated DML JSON files (automated) by @github-actions[bot] in #12940
- chore(docs): Updated API Reference (automated) by @github-actions[bot] in #12943
- chore: fix tsdocs of updatePayment method by @shahednasser in #12946
- chore: upgrade to latest zod v3 by @riqwan in #12938
- chore(orchestration): improve transaction errors by @carlos-r-l-rodrigues in #12951
- chore: remove codegen action by @shahednasser in #12954
- chore: add to TSDocs note about removing item from order edit by @shahednasser in #12997
- chore(payment): use generate schema by @carlos-r-l-rodrigues in #13004
Other Changes
- chore(medusa): fix typo by @OnlyWick in #12907
- chore(docs): Update worker_mode description as environment by @DanSilva41 in #12894
- feat(i18n): update translation for Vietnamese by @NuxTijNhaX in #12931
- fix: only log server errors by @peterlgh7 in #12957
- feat: Added Malawi kwacha to currency list by @sevenreup in #12440
- docs: add data migration scripts section by @SteelRazor47 in #12975
- chore: Expose Awilix resolution errors by @trevster344 in #13008
- fix(js-sdk): add missing admin order archive and complete methods by @anteprimorac in #12944
New Contributors
- @OnlyWick made their first contribution in https://git...