v2.0.0-rc.6

medusajs/medusav2.0.0-rc.6Oct 16, 2024by olivermrbl

AI Summary

RC 6 focuses on resolving module provider loading issues and updating documentation to ensure smooth integration of the new package structure.

Key Highlights

  • Fixed module provider loading issues, particularly regarding Windows path handling.
  • Documentation updates for package names and resolve paths.

Full Release Notes

<!-- 
![image](https://github.com/user-attachments/assets/2cc71619-1e6f-44bf-becb-350d6a767bae)

# Medusa v2.0 Release Candidate #6

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
```

## Highlight

### Resolved issue with module provider loading

See https://github.com/medusajs/medusa/pull/9601 for more.

### Bugs
* fix(admin-vite-plugin): Replace slashes for Windows by @kasperkristensen in https://github.com/medusajs/medusa/pull/9602
* fix: resolve provider path before requiring it by @thetutlage in https://github.com/medusajs/medusa/pull/9601
* fix(types): logger by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/9581

### Documentation
* docs: fix package names in module registration by @shahednasser in https://github.com/medusajs/medusa/pull/9590
* docs: update resolve path to use src by @shahednasser in https://github.com/medusajs/medusa/pull/9605
* docs-util: fixes for OAS docs generator + framework typedoc config by @shahednasser in 

**Full Changelog**: https://github.com/medusajs/medusa/compare/v2.0.0-rc.5...v2.0.0-rc.6