Medusa 2.0 Public Preview Release #7955
Replies: 15 comments 21 replies
-
Beta Was this translation helpful? Give feedback.
-
BUG At least in Manjaro Linux with Firefox, after successfully initializing the Medusa project, an Admin Panel tab with an invitation/creating admin user screen is not automatically opened on the browser. |
Beta Was this translation helpful? Give feedback.
-
ecommerce could encourage individual sales to make profit by linking orders related with himself/herself. So, every order could be distinguished who are the sales. Furthermore, ecommerce could also encourage sales to help each other by profit share between sales. |
Beta Was this translation helpful? Give feedback.
-
Does this allow for serverless environments? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Does Medusa 2.0 improve the developer experience (DX) for digital product e-commerce stores? Currently, it is still difficult to create digital products in Medusa. Even when I successfully configure Medusa to accept digital products, there are still UI issues. Many unnecessary fields appear in the UI, which are not relevant to the digital product ecosystem. My only solution so far has been to hide these fields with CSS. This was the main reason I decided to switch back to WooCommerce, as 90% of my clients sell digital products. While Medusa has many advantages over WooCommerce, such as better customization options and a more beautiful UI, the poor DX for digital products outweighs these benefits. This is very disappointing. |
Beta Was this translation helpful? Give feedback.
-
When will Medusa 2.0 be production ready? Is 3 months realistic? |
Beta Was this translation helpful? Give feedback.
-
What is the stage of building marketplaces using Medusa 2.0? |
Beta Was this translation helpful? Give feedback.
-
How hard do you believe upgrading from v1 will be? Considering how much the architecture is changing, how will it be possible to migrate custom implementations (workflows, data models etc.)? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @olivermrbl , Do we or in future will have capability to deploy medusa backend in microservices based architecture, Suppose we need to scale product api's to speed up product view response time, So in this scenario currently will have to scale the entire backend application, Please throw some light on this topic. Thanks & Regards |
Beta Was this translation helpful? Give feedback.
-
Hi @olivermrbl , It would be great too if we can add filters on link, for example in this code, i can only add filters using my_custom fields but it is impossible to add filters using product fields |
Beta Was this translation helpful? Give feedback.
-
@olivermrbl i also tried to query customer with an email, it shoud be case insensitive |
Beta Was this translation helpful? Give feedback.
-
Any updates on when V2 will be production ready? |
Beta Was this translation helpful? Give feedback.
-
Today, we’re excited to share a Preview Release of Medusa 2.0.
The following document covers resources, guides, and things to know about the first preview release of Medusa 2.0. It will help you get started and give you a high-level overview of your new Medusa 2.0 application and what’s still to be done.
The release candidate later this year will include more fully-fledged resources for 2.0, including an overview of breaking changes, migration guides, and much more that will ensure a smoother onboarding.
We advise against upgrading your project to 2.0 at this point, as we are still working on documentating the best possible path.
These release notes are only intended to help you start and introduce you to your new Medusa 2.0 project. For a more in-depth exploration of the major upgrade, refer to our new documentation.
We are publishing this release to solicit early user and community feedback. Please file Issues for bug reports and/or submit Discussions with input or questions.
We thank you all very much in advance.
Get started
To get started using the preview release, run the following command:
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.
The folder structure of Medusa projects has changed:
The
modules
folder replaces a lot of folders from a 1.0 project and will contain most business logic customizations in your Medusa 2.0 application. We highly encourage you to read the section of our docs covering this new concept in detail.The
workflows
folder holds your custom workflows. Workflows are a fundamental concept in cross-module operations and a core element of Medusa 2.0. Read more about workflows here.Additionally,
medusa-config.js
has been cleaned up and improved with a new type-safe utility function for defining the config for your Medusa project. The file can also now live as both a JS and TS file.You are now ready to explore all the new features in the preview release. However, we recommend reading through our documentation to fully understand what is new in 2.0 and how it differs from 1.0.
Additionally, you can find references and code snippets for our tools in our Learning Resources.
Keeping up with preview releases
We release preview versions every three hours. We recommend setting the version of your Medusa dependencies to
preview
, so you can regularly update without knowing specific version numbers.All your Medusa dependencies in
package.json
should look something like this:To ensure an upgrade to a new version is completed correctly, run the following sequence of commands:
What’s new?
Medusa 2.0 is a huge upgrade, in fact, the biggest upgrade since we open-sourced the project four years ago. The upgrade comes with many new features and improvements, some of which are still work-in-progress. In the following sections, we will briefly cover these features and the parts of the product still subject to change. A more detailed changelog will be released as part of the release candidate and, subsequently, the official release later this year.
Admin dashboard
Our admin dashboard has been completely overhauled, improving its overall look and feel to provide end-users with a more cohesive and consistent experience.
Additionally, we have migrated away from Webpack to Vite, which improves the developer experience with features like HMR and allows us and our users to tap into a rich and flourishing community and plugin ecosystem.
Read more about the admin dashboard and its extension capabilities here.
A few admin flows have yet to be built. This is primarily around returns, exchanges, claims, and order edits. We expect to finalize these in the coming weeks.
Modules architecture
Our modules foundation has been re-architected to entirely decouple modules from one another, enabling greater composability, a new standalone usage mode, and a more approachable incremental adoption of Medusa.
Read more about the architecture refactor in our 2.0 announcement from earlier this year.
New commerce features
We saw reworking the module's architecture as an opportunity to rethink the feature set of some of the business domains in Medusa 1.x. As a result, we are excited to introduce a range of advanced capabilities across a series of modules. Here are a few noteworthy improvements:
Many other modules have also seen improvements. Browse through all of them in our learning resources.
Data modeling language
A core feature of Medusa is the ability to extend the default commerce application with additional business logic to cater to a specific use case, natively integrate with third-party providers, replace existing domains, and more.
At the core of extensions in Medusa 2.0 are modules, and at the core of modules are data models. Data models define the concepts living within your application. In our commerce modules, you find orders, products, customers, promotions, etc. By introducing your own data models, you extend this semantic layer of your application, enabling you to build features and custom workflows by integrating existing and new concepts. Because data models are at the core of every customization, we decided to make them easier to work with.
We are excited to announce a new data modeling language in Medusa 2.0 that will improve the experience of defining and working with data in your application. You can read more about the new feature here.
Below is a simple example of what data models will look like in 2.0:
Long-running Workflows
We are excited to extend our existing workflow capabilities with Long-running Workflows for processing long-running operations in the background. Instead of synchronously receiving a workflow's result, Long-running Workflows are subscribed to for status changes and execution progress. Additionally, the Long-running Workflows comes with an API for programmatically moving from one step to the next. These features make Long-running Workflows a great fit for use cases that require a human-in-the-loop or operations with a varying long-running execution time.
For example, we use Long-running Workflows extensively to build the infrastructure provisioning of Medusa Cloud.
Alongside the Long-running Workflows, we are also introducing a new admin section for managing them. Here, you can see currently executing and completed workflows, providing full transparency into your long-running operations.
Medusa 2.0 comes with much more than what is highlighted in this post. We will cover everything in-depth in the official release notes.
These release notes are published as a GitHub Discussion as well for comments and questions on the preview release.
Beta Was this translation helpful? Give feedback.
All reactions