github medusajs/medusa v2.12.1
v2.12.1: Fix regression in events system

6 hours ago

Highlights

This release fixes a regression in the events system introduced in #14084. That PR added an optimization to emit events only when at least one subscriber is registered for the event.

However, this unintentionally broke instances running in server mode. Historically, server instances have not registered subscribers, only worker instances have. With the new optimization, these instances incorrectly determined that no subscribers existed for all emitted events and therefore skipped emission entirely.

As a result, applications running version 2.12.0 in server mode have effectively emitted no events.

If you have already upgraded to 2.12.0 and are using server instances, we strongly recommend validating whether any critical events have been missed since the upgrade and, if necessary, processing them manually.

This release also contains a migration, so you need to run the migration script after upgrading:

npx medusa db:migrate

Bugs

Documentation

Chores

  • chore(docs): Update version in documentation (automated) by @github-actions[bot] in #14179
  • chore: fixes to TSDocs by @shahednasser in #14186

Full Changelog: v2.12.0...v2.12.1

Don't miss a new medusa release

NewReleases is sending notifications on new releases.