Medusa MCP users can update their project using the following prompt:
Update my Medusa project to v2.23.2Highlights
Promotion Not Applied Twice on Re-priced Shipping
Behavior change
Affects stores that use promotions alongside shipping methods that may be re-priced during checkout.
When shipping was re-priced during the checkout flow, promotions were incorrectly applied a second time, inflating the discount amount. After this fix, promotions are applied only once per calculation regardless of shipping re-pricing.
Constant-time Login Refusal for Unknown Emails
Behavior change
The email-password auth provider previously returned faster when a login attempt used an unknown email address than when it used a wrong password. This timing difference allowed enumeration of registered email addresses. The provider now takes the same amount of time to refuse both cases.
Publishable Key Sales Channels Enforced on Cart Updates
Behavior change
Affects storefronts that use publishable API keys with restricted sales channels.
When updating a cart, Medusa now verifies that the publishable API key's allowed sales channels include the cart's sales channel. Carts that belong to a sales channel not covered by the key will be rejected. Make sure every publishable key your storefront uses is associated with the sales channels for the carts it updates.
Return Creation Rejects Non-Return Shipping Options
Behavior change
Affects stores that pass a shipping option ID when creating returns.
When creating a return, Medusa now rejects shipping options that are not configured as return shipping options. If your store creates returns programmatically and passes a shipping option ID, verify that the option is marked as a return shipping option.
Features
- feat(admin-bundler,types): add admin.htmlHeaders for the admin's HTML by @peterlgh7 in #18023
- feat(medusa,cli,framework,admin-bundler,utils,modules-sdk): bundled backend builds with medusa build --bundle by @olivermrbl in #17987
- feat(utils,framework,modules-sdk,orchestration,workflows-sdk,medusa,core-flows): load on first use from a build manifest by @olivermrbl in #17986
- feat(medusa,bundler,types,utils,framework): include files in bundle by @olivermrbl in #18060
- feat(bundler): load the bundle with a code cache made at build time by @olivermrbl in #18115
- feat(medusa,bundler,utils,workflows-sdk,orchestration): read files for the bundle instead of loading them by @olivermrbl in #18122
- feat(utils,medusa): compare the build manifest with what the files export in the bundle's load check by @olivermrbl in #18124
- feat(medusa,utils,bundler,cli): check that everything a bundle deferred can be loaded with --check-bundle by @olivermrbl in #18059
- feat(search,utils,types): add a seed_on_start option to the Search Module by @sradevski in #18116
- feat(medusa,utils): emit auth.credentials_updated after an auth provider update by @peterlgh7 in #18031
- feat(dashboard): show role assignment hint on no-permissions page by @medusa-agents in #18080
Bugs
- fix(auth): accept a password reset token and a verification code only once when used concurrently by @peterlgh7 in #18033
- fix(medusa,bundler): register the CLI's loaders in the bundle's collection pass by @olivermrbl in #18123
- fix(bundler): answer re-entrant requires from the bundle and warn about duplicate Medusa packages by @olivermrbl in #18119
- fix(bundler): bundle a third-party plugin's whole folder and @swc/helpers by @olivermrbl in #18103
- fix(core-flows): return 404 for payment sessions on a missing collection by @medusa-os-bot in #18120
- fix(core-flows): don't apply a promotion twice when shipping is re-priced by @medusa-os-bot in #18077
- fix(core-flows): reject non-return shipping options when creating a return by @shahednasser in #18066
- fix(dashboard): wrap long unbroken words in order customer addresses by @medusa-os-bot in #18083
- fix(api-reference): exclude other intro sections from markdown parity by @shahednasser in #18082
- fix(framework): limit the size of the routes finder match cache by @shahednasser in #18078
- fix(framework,medusa): improve session validation in authenticate middleware by @shahednasser in #18075
- fix(dashboard): ignore invalid keys when parsing table query params by @shahednasser in #18071
- fix(payment-stripe,payment): send UGX amounts to Stripe in two-decimal form by @shahednasser in #18069
- fix(medusa): return a JSON error response from the payment webhook route by @shahednasser in #18068
- fix(medusa): check the publishable key's sales channels when updating a cart by @shahednasser in #18067
- fix(workflows-sdk,utils): allow defining a workflow while another is being composed by @olivermrbl in #17985
- fix(ui): give Drawer and FocusModal close buttons an accessible name by @medusa-os-bot in #18056
- fix(dashboard): give icon-only buttons accessible names by @medusa-os-bot in #18057
- fix(dashboard): don't fetch configurable table data until its columns have loaded by @shahednasser in #18081
- fix(loyalty-plugin): take the cart lock and reject completed carts when adding/removing gift cards and store credits by @shahednasser in #18049
- fix(auth-emailpass): take as long to refuse a login for an unknown email as for a wrong password by @peterlgh7 in #18036
Documentation
- docs: document audit logs in Cloud, resources, and the user guide by @shahednasser in #17998
- docs: doc changes for next release [automated] by @medusa-os-bot in #17957
- docs: update information architecture by @shahednasser in #17810
- docs: resolve relative links from components in markdown output by @shahednasser in #18020
- docs: doc changes for next release [automated] by @medusa-os-bot in #18034
- docs: clarify direct search reindex vs background workflow [automated] by @medusa-os-bot in #18041
- docs: rename the docs retrieval endpoint to /agents/ask by @shahednasser in #18046
- feat(docs): track the source of /agents/ask requests by @shahednasser in #18047
- docs: document managing Medusa Payments payment methods and the Payment Element by @sradevski in #18048
- feat(docs): add /agents/search endpoint and track /agents/ask as medusajs.com by @shahednasser in #18052
- docs: fix lock owner behavior and confirmVariantInventoryWorkflow fields by @shahednasser in #18044
- docs: list machine-readable endpoints in llms.txt as plain URLs by @shahednasser in #18064
- docs: document the custom return shipping price in store returns by @shahednasser in #18065
- docs: document leaked password checks, and payment updates [automated] by @medusa-os-bot in #18079
- docs: document using multiple live payment accounts in environments [automated] by @medusa-os-bot in #18085
- docs: document static write tools in Medusa MCP by @shahednasser in #18043
- docs: show how to get Apple Pay and Google Pay on storefronts hosted outside Cloud by @sradevski in #18104
Chores
- chore(docs): Updated API Reference (automated) by @medusa-os-bot in #18027
- chore(docs): Generated References (automated) by @medusa-os-bot in #18026
- chore(docs): Update version in documentation (automated) by @medusa-os-bot in #18025
- chore(docs): Updated UI Reference (automated) by @medusa-os-bot in #18024
- chore(bundler): make bundled builds faster by @olivermrbl in #18131
- chore(medusa,bundler): install the bundler with @medusajs/medusa by @olivermrbl in #18095
- chore(deps): update patch dependencies by @medusa-os-bot in #18063
- chore(deps): update minor dependencies by @medusa-os-bot in #18062
Full Changelog: v2.23.1...v2.23.2