Medusa v2.22.4 introduces support for TypeScript 7 alongside several dashboard bug fixes and security documentation updates. Developers utilizing TypeScript 7 must also ensure `@typescript/typescript6` is installed.
Upgrade your applications and plugins to take advantage of TypeScript 7 support by installing the required compatibility packages.
📊 Product & Engineering Leads
Enjoy an improved dashboard user experience with better breadcrumb filtering and resolved order extension route visibility.
⚙️ DevOps & Security
No special infrastructure or deployment changes are required for this release.
✨ New Features & Capabilities (2)
Added support for TypeScript 7 in Medusa applications and plugins
Added a Jest preset for Medusa applications and plugins
⚡ Performance & Enhancements (3)
Keep list filters and page state when navigating back through breadcrumbs in the dashboard
Show extension routes nested under orders in the sidebar
Show receive return, allocate, and mark as paid buttons in the dashboard
🔧 Bug Fixes & Patches (2)
Ask signed-in users to sign out before accepting an invite in the dashboard
Fixed OAS and UI reference generation and generated RBAC docs
📄 View Raw Release Notes (Original Developer Log)
<!--

# v2.22.4: TypeScript 7 Support, Dashboard Fixes, Security Updates
Medusa applications and plugins can now use TypeScript 7. This release also includes several dashboard bug fixes and security-focused dependency updates.
CMS_BREAK -->
## Highlights
### TypeScript 7 Support
Medusa's framework and CLI now support TypeScript 7 in applications and plugins. If you use TypeScript 7, make sure to also install `@typescript/typescript6` as TypeScript 7 still doesn't support JavaScript APIs:
```bash
yarn add -D typescript@7 @typescript/typescript6
```
[#17660](https://github.com/medusajs/medusa/pull/17660)
---
## Features
* feat(test-utils): add a Jest preset for Medusa applications and plugins by [@shahednasser](https://github.com/shahednasser) in [#17673](https://github.com/medusajs/medusa/pull/17673)
* feat(framework,cli): support TypeScript 7 in Medusa applications and plugins by [@shahednasser](https://github.com/shahednasser) in [#17660](https://github.com/medusajs/medusa/pull/17660)
## Bugs
* fix(dashboard): keep list filters and page when going back through breadcrumbs by [@medusa-agents](https://github.com/apps/medusa-agents) in [#17674](https://github.com/medusajs/medusa/pull/17674)
* fix(dashboard): show extension routes nested under orders in the sidebar by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17667](https://github.com/medusajs/medusa/pull/17667)
* fix(dashboard): ask signed-in users to sign out before accepting an invite by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17662](https://github.com/medusajs/medusa/pull/17662)
* fix(dashboard): show receive return, allocate, and mark as paid buttons by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17665](https://github.com/medusajs/medusa/pull/17665)
* fix(docs): fix OAS and UI reference generation, generate RBAC docs by [@shahednasser](https://github.com/shahednasser) in [#17656](https://github.com/medusajs/medusa/pull/17656)
## Documentation
* docs: RBAC docs by [@shahednasser](https://github.com/shahednasser) in [#15741](https://github.com/medusajs/medusa/pull/15741)
* docs: medusa security by [@shahednasser](https://github.com/shahednasser) in [#17176](https://github.com/medusajs/medusa/pull/17176)
* docs: remove beta labels from RBAC and SSO docs by [@shahednasser](https://github.com/shahednasser) in [#17654](https://github.com/medusajs/medusa/pull/17654)
* docs: doc changes for next release [automated] by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17585](https://github.com/medusajs/medusa/pull/17585)
## Chores
* chore: upgrade TypeScript to 6.0.3 by [@shahednasser](https://github.com/shahednasser) in [#17647](https://github.com/medusajs/medusa/pull/17647)
* chore: build with TypeScript 7 side by side with TypeScript 6 by [@shahednasser](https://github.com/shahednasser) in [#17657](https://github.com/medusajs/medusa/pull/17657)
* chore: upgrade Yarn to 4.18.1 and dedupe the lockfile by [@shahednasser](https://github.com/shahednasser) in [#17675](https://github.com/medusajs/medusa/pull/17675)
* chore(auth,auth-emailpass,test-utils): update scrypt-kdf to 4.0.0 by [@shahednasser](https://github.com/shahednasser) in [#17679](https://github.com/medusajs/medusa/pull/17679)
* chore(framework,test-utils): upgrade path-to-regexp to v9 by [@shahednasser](https://github.com/shahednasser) in [#17678](https://github.com/medusajs/medusa/pull/17678)
* chore(core-flows,medusa): document RBAC workflows and API routes by [@shahednasser](https://github.com/shahednasser) in [#17655](https://github.com/medusajs/medusa/pull/17655)
* chore(deps): bump postcss-selector-parser by [@dependabot](https://github.com/apps/dependabot) in [#17642](https://github.com/medusajs/medusa/pull/17642)
* chore(docs): upgrade www/utils to TypeScript 6 by [@shahednasser](https://github.com/shahednasser) in [#17651](https://github.com/medusajs/medusa/pull/17651)
* chore(docs): upgrade www docs workspace to TypeScript 6 by [@shahednasser](https://github.com/shahednasser) in [#17658](https://github.com/medusajs/medusa/pull/17658)
* chore(docs): build www packages with TypeScript 7 side by side with TypeScript 6 by [@shahednasser](https://github.com/shahednasser) in [#17670](https://github.com/medusajs/medusa/pull/17670)
* chore(docs): add v2.22.2 OAS snapshot, dispatch specs to cloud, install docs with Yarn 4 by [@shahednasser](https://github.com/shahednasser) in [#17677](https://github.com/medusajs/medusa/pull/17677)
* chore(docs): Generated References (automated) by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17650](https://github.com/medusajs/medusa/pull/17650)
* chore(docs): Generated DML JSON files (automated) by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17649](https://github.com/medusajs/medusa/pull/17649)
* chore(docs): Update version in documentation (automated) by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17648](https://github.com/medusajs/medusa/pull/17648)
* chore(docs-util): build www/utils with TypeScript 7 side by side with TypeScript 6 by [@shahednasser](https://github.com/shahednasser) in [#17659](https://github.com/medusajs/medusa/pull/17659)
## Other Changes
* chore(dashboard): add missing translations [automated] by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17668](https://github.com/medusajs/medusa/pull/17668)
* chore(dashboard): add missing translations [automated] by [@medusa-os-bot](https://github.com/apps/medusa-os-bot) in [#17683](https://github.com/medusajs/medusa/pull/17683)
**Full Changelog**: [v2.22.3...v2.22.4](https://github.com/medusajs/medusa/compare/v2.22.3...v2.22.4)