medusa v2.22.1

v2.22.1

v2.22.1: Payment Session Client Data Updates, Promotion Ranking Fix, Dashboard Improvements

Added 1
  • Payment sessions can now be updated with new client data after creation, without recreating the session
Fixed 17
  • Removed optional chaining from processPaymentWorkflow constructor
  • Fixed count query for paginated cross-module filters in order
  • Import only declared dependencies at runtime in core-flows
  • Product media edit no longer proceeds on failed upload, and the error is shown in the dashboard
  • Buy-get eligible items are ranked by unit price in promotions behavior changed · inferred, marked in the notes below
  • Admin index routes respond with 404 when the index is off
Security 3

2 changes to check, marked in the notes below

From medusa

Highlights
Update Payment Session Client Data

Payment sessions can now be updated with new client data after creation. This enables payment flows where client-side metadata -- such as a browser fingerprint or 3D Secure result -- needs to be attached to an existing session without tearing it down and recreating it.

#17432

Bugs
  • fix(core-flows): remove optional chaining from processPaymentWorkflow constructor by @shahednasser in #17479
  • fix(order): fix count query for paginated cross-module filters by @medusa-os-bot in #17471
  • fix(core-flows): import only declared dependencies at runtime by @medusa-os-bot in #17470
  • fix(dashboard): stop product media edit on failed upload and show the error by @medusa-os-bot in #17445
  • fix(promotion): rank buy-get eligible items by unit price by @medusa-os-bot in #17444 behavior changed · inferred
  • fix(medusa): respond with 404 on /admin/index routes when index is off by @medusa-os-bot in #17442
  • fix(utils): skip running migrations for modules without a migrations folder by @medusa-os-bot in #17441
  • fix(utils): copy null-prototype objects in parseStringifyIfNecessary by @medusa-os-bot in #17440
  • fix(pricing): don't drop price list updates that carry explicit ids by @medusa-os-bot in #17439
  • fix(dashboard): let Enter activate buttons inside modal and drawer forms by @medusa-os-bot in #17438
  • fix(search-postgres): apply min_score to facet counts for keyword search by @medusa-os-bot in #17437
  • fix(index): don't skip the index data sync when types generation fails by @medusa-agents in #17419
  • fix(types): allow filtering price rules by attribute, value and operator by @medusa-agents in #17428
  • fix: validate cart customer ownership checks by @medusa-agents in #17402
  • fix(core-flows): validate customer account email matches the authenticated identity by @medusa-agents in #17415
  • fix(promotion): enforce and track spend_by_attribute campaign budgets by @medusa-os-bot in #17446
  • fix(promotion): respect is_tax_inclusive on buy-get promotions by @medusa-os-bot in #17447
  • fix(medusa): reject deleting a variant through a product it doesn't belong to by @medusa-os-bot in #17449 behavior changed · inferred
  • fix(core-flows): persist refund_amount when creating and completing a return by @medusa-os-bot in #17448
  • fix(core-flows): set is_custom_amount when updating a draft order shipping method price by @medusa-os-bot in #17450
  • fix(utils): ignore non-string ids when applying translations by @medusa-os-bot in #17451
  • fix(payment): round to currency precision regardless of server locale by @medusa-os-bot in #17452
  • fix(build-scripts): make the docs edited-dates step work on Windows by @medusa-os-bot in #17455
  • fix(ui): respect the dismissable prop in toast.loading by @medusa-os-bot in #17456
  • fix(caching): don't throw on numeric entity ids when computing cache tags by @medusa-os-bot in #17457
  • fix(dashboard): define missing build-time constants for yarn dev by @medusa-os-bot in #17458
  • fix(utils,dashboard,loyalty-plugin): add the Haitian Gourde (HTG) currency by @medusa-os-bot in #17459
  • fix(locking,locking-redis): close the Redis client on shutdown by @medusa-os-bot in #17460
  • fix(test-utils): read database credentials when connecting, not at import by @medusa-os-bot in #17461
  • fix(core-flows): cascade delete custom records linked to deleted variants by @medusa-os-bot in #17462
  • fix(utils,core-flows): import region price columns from product export by @medusa-os-bot in #17464
  • fix(dashboard): apply the product list filters to product exports by @medusa-os-bot in #17469
  • fix(order,dashboard): stop returns exceeding the returnable quantity by @vethan in #17431
Documentation
Chores
Other Changes
New Contributors
  • @prairiewriter made their first contribution in #17214
  • @vethan made their first contribution in #17431
  • @soroush2025 made their first contribution in #17198

Full Changelog: v2.22.0...v2.22.1

View original

Upgraded? How did it go?

Discussion