v2.0.0-rc.8
medusajs/medusav2.0.0-rc.8Oct 22, 2024by olivermrbl
AI Summary
Release Candidate 8 introduces order events and customer validation on cart updates, alongside numerous bug fixes for the dashboard and SDK.
Key Highlights
- Added order events emission for tracking order lifecycle.
- Implemented customer validation when updating carts.
- Fixed dashboard issues including query keys, grammar, and form navigation.
New Features
- Allow passing `external_id` on product create/update
- Translate all OrderBy filters
- Order events
- Customer validation on cart update
Full Release Notes
<!--

# Medusa v2.0 Release Candidate #8
CMS_BREAK -->
## Get started with a new project
To get started using the RC, run the following command:
```bash
npx create-medusa-app@rc
```
This command will create a new Medusa project with our redesigned admin and a 2.0-compatible Next.js storefront. The Medusa application and the Next.js storefront are separate projects in separate folders.
## Update existing project
Ensure your **Medusa** dependencies in `package.json` are using the `rc` tag:
```json
{
"dependencies": {
"@medusajs/admin-sdk": "rc",
"@medusajs/framework": "rc",
"@medusajs/medusa": "rc",
"@medusajs/medusa-cli": "rc",
...
}
}
```
To ensure an upgrade to a new version is completed correctly, run the following sequence of commands:
```tsx
rm -rf node_modules
rm yarn.lock // or package-lock.json
yarn // If you are using yarn berry, you need to create the lock-file first
```
## Features
* fix(medusa, types): allow to pass `external_id` on product create/update by @fPolic in https://github.com/medusajs/medusa/pull/9694
* feat(dashboard,types): Translate all OrderBy filters by @kasperkristensen in https://github.com/medusajs/medusa/pull/9691
* feat(core-flows): order events by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/9702
* feat(core-flows,medusa): Add customer validation on cart update by @riqwan in https://github.com/medusajs/medusa/pull/9662
* Feat/validate query enhancement by @adrien2p in https://github.com/medusajs/medusa/pull/9705
## Bugs
* fix(dashboard,js-sdk): remove method and hook for deleting claim by @shahednasser in https://github.com/medusajs/medusa/pull/9668
* fix(dashboard, js-sdk): undefined RMA activity items by @fPolic in https://github.com/medusajs/medusa/pull/9649
* fix(core-flows): Emit event in update products workflow by @olivermrbl in https://github.com/medusajs/medusa/pull/9682
* fix(dashboard): wrong queryKey for price preferences list by @fPolic in https://github.com/medusajs/medusa/pull/9685
* fix(dasboard): Grammer issues on invite page by @kasperkristensen in https://github.com/medusajs/medusa/pull/9683
* fix: allow additional_data to be undefined or null by @thetutlage in https://github.com/medusajs/medusa/pull/9687
* fix(product): Category repository missing ontext by @adrien2p in https://github.com/medusajs/medusa/pull/9688
* fix(dashboard,js-sdk): remove methods / hooks to non existing exchange routes by @shahednasser in https://github.com/medusajs/medusa/pull/9697
* fix: Don't store token in SDK by default by @sradevski in https://github.com/medusajs/medusa/pull/9704
* fix(admin-vite-plugin,dashboard): Generate correct UI Route tree by @kasperkristensen in https://github.com/medusajs/medusa/pull/9699
* fix(dashboard): temp hide order column on reservations by @fPolic in https://github.com/medusajs/medusa/pull/9692
* fix(dashboard): broken CustomerGroup create form by @fPolic in https://github.com/medusajs/medusa/pull/9711
* fix(dasbhoard): Revert keybound form for public pages by @kasperkristensen in https://github.com/medusajs/medusa/pull/9710
* fix: API validation management issues by @adrien2p in https://github.com/medusajs/medusa/pull/9693
## Documentation
* docs: rename packages by @shahednasser in https://github.com/medusajs/medusa/pull/9618
* docs-util: fixes to package renames + other options by @shahednasser in https://github.com/medusajs/medusa/pull/9671
* docs: fix scroll + divider issues by @shahednasser in https://github.com/medusajs/medusa/pull/9663
* fix: revise words on docs intro page by @srindom in https://github.com/medusajs/medusa/pull/9588
* docs: update nav items by @shahednasser in https://github.com/medusajs/medusa/pull/9709
## Chores
* chore(utils): update tsdocs for provider identifiers by @shahednasser in https://github.com/medusajs/medusa/pull/9656
* chore(orchestration): modules method context by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/9669
* chore: fix to DML action by @shahednasser in https://github.com/medusajs/medusa/pull/9672
* chore(types,js-sdk,medusa): Add TSDocs for store and auth's JS SDK + small type fixes by @shahednasser in https://github.com/medusajs/medusa/pull/9657
* chore: Correctly assert test by @sradevski in https://github.com/medusajs/medusa/pull/9695
* chore(js-sdk,types): add tsdocs for admin JS SDK methods [1/n] by @shahednasser in https://github.com/medusajs/medusa/pull/9667
* chore(js-sdk,types): add tsdocs for admin JS SDK methods [2/n] by @shahednasser in https://github.com/medusajs/medusa/pull/9696
* chore(js-sdk,types): add tsdocs for admin JS SDK methods [3/n] by @shahednasser in https://github.com/medusajs/medusa/pull/9712
**Full Changelog**: https://github.com/medusajs/medusa/compare/v2.0.0-rc.7...v2.0.0-rc.8