github medusajs/medusa v2.23.2
v2.23.2: Search Module Auto-seeding, Admin HTML Headers

4 hours ago

Medusa MCP users can update their project using the following prompt:

Update my Medusa project to v2.23.2

Highlights

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.

#18077


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.

#18036


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.

#18067


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.

#18066

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

Chores

Full Changelog: v2.23.1...v2.23.2

Don't miss a new medusa release

NewReleases is sending notifications on new releases.