Breaking change
Medusa: v2.23.0: Express 5, React 19, Vite 8, Tailwind CSS 4
What changed
- Medusa v2.23.0 is a minor release whose breaking changes are concentrated in major-version updates of dependencies installed alongside its own packages.
- The release moves Medusa's server to Express 5 (^5.3.0), which matches routes with path-to-regexp 8.
- Other Express 4 string matcher syntax such as regex groups, optional params and + now throws at startup.
- Bare * in string matchers is rewritten to numbered wildcards and keeps matching the same paths.
- Wildcard captures moved from req.params[0] and are now arrays of path segments in Express 5.
- Admin customizations must use Tailwind CSS 4 class names, such as outline-hidden instead of outline-none.
- The admin now builds with Vite 8, which replaces Rollup and esbuild with Rolldown and Oxc.
- The release lists React and React DOM at ^19.3.1 as the required version for the admin and its peer packages.
- The admin build no longer loads a project postcss.config file, and PostCSS plugins are added through admin.vite configuration.
Who it affects
- Projects with custom API route matchers in src/api/middlewares.ts are affected by the Express 5 change.
- Projects with admin customizations in src/admin/ are affected by the React 19 type changes.
- Projects with admin extensions are affected by the Tailwind CSS 4 class name change.
What to do now
- Bump every @medusajs package to its v2.23.0-aligned version, verifying versions against the npm registry first.
- Pin React and React DOM to ^19.3.1 exactly, since a widened range is not supported.
- Rewrite Express 4 string matchers to Express 5 syntax or RegExp matchers, for example /custom/:id? becomes /custom{/:id}.
- Present the migration plan for user approval before making any edits.
- Learn about vigilant mode
Your users need to hear about your changes too
FoxPlug writes the changelog entry, the heads-up email draft and the social posts from what you ship.
Try it on your projectYour changelog, written for you
FoxPlug writes your changelog from your releases and commits in plain English and publishes it as a page and a feed your users can follow. The page above shows what that looks like for a product people really use.
Write my changelog See the changelog FoxPlug wrote from its own commits
Free to start. Pro is a month.
FoxPlug Pro
- A public changelog page and feed for each project
- Written from your releases and commits, in plain English your users read
- Connect GitHub and new releases become new entries