MyGit

v2.0.0-rc.4

medusajs/medusa

版本发布时间: 2024-10-14 23:17:21

medusajs/medusa最新发布版本:v2.0.1(2024-10-25 23:24:21)

Get started with a new project

To get started using the RC, run the following command:

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:

{
  "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:

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

Highlights

Removed deprecated APIs

[!WARNING]
Breaking change

We are still cleaning up in preparation for v2.0 and this release removes a range of deprecated APIs.

Here is a list of everything:

Commands

Config options

Events build

ModelDTO

Models template

Zod validator

Features

Bugs

Documentation

Chores

Full Changelog: https://github.com/medusajs/medusa/compare/v2.0.0-rc.3...v2.0.0-rc.4

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-10-14发行的版本