Medusa v1.3.3: BatchJob API, Advanced Next.js Storefront, Feature Flags, and More!
Tags: opensource, news, javascript, webdev
Published: 2022-07-07 10:55:43

This week we released a new version of [Medusa](https://github.com/medusajs/medusa)!

Version `1.3.3` brings new features and enhancements including BatchJob API, Import API, Feature Flags, and more!

Along with this new release, we have released a new version of the Medusa Admin, released an advanced Next.js Starter, and further updated and enhanced our documentation.

This post includes a short version of the release details. You can read the full release in [this post](https://medusajs.com/blog/medusa-v-1-3-3/).

## Features

### BatchJob API

The purpose of this API is to allow users to upload and export batches of data in Medusa asynchronously. For example, users can export products as CSV files or import products from CSV files.

Each Batch Job type is handled through strategies implemented in Medusa’s core. Developers can also override these strategies to use a custom implementation.

### Product & Order Export

Using the BatchJob and Import/Export APIs, you can export products and orders into a CSV file. 

### Feature Flags

Feature flags are used to disable features that are still under development and testing. This will help us increase the frequency of releases of Medusa’s core as we’ll be able to disable any features that are still not ready for use in a production environment.

### How to Update Your Medusa Server?

To update your Medusa server, first, update the Medusa packages in your dependencies:

```bash
npm install @medusajs/medusa@latest medusa-interfaces @medusajs/medusa-cli
```

Then, run migrations with Medusa’s CLI tool:

```bash
medusa migrations run
```

## Medusa Admin New Features

### Product/Order Export

You can create a new export by clicking the “Export Products” button on the Products page, or the “Export Orders” button on the Orders page. This will create a new export batch job to export your products or orders into CSV files.

![Product Export](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9i34j9s4hd9ch7zggpvg.png)

In upcoming releases, we’ll add the UI to filter the products and orders to export.

### Activity Drawer

Clicking the notification bell icon in the top right of the navigation bar now opens an Activity Drawer. This Activity Drawer will contain important notifications for the admin user.

In this release, only the list of batch jobs will be available in the Activity Drawer where users can track the status of export jobs they started or download finished batch jobs.

![Activity Drawer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7lcxeb8588xeaveotfk.png)

### How to Update Medusa Admin

You can update your Medusa admin by pulling new changes from the [Medusa Admin repository](https://github.com/medusajs/admin) into your Medusa Admin.

## New Next.js Storefront

We previously had a starter Next.js storefront with limited functionalities to help developers interested in using Next.js for their storefront get a head start.

This week, we’ve released a new [Next.js storefront](https://github.com/medusajs/nextjs-starter-medusa) with advanced features and a sleek, modern design. The new Next.js storefront includes features that were previously implemented including product listing and a checkout flow.

![Next.js Storefront](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jp2diszaplu40c0hz6cg.gif)

Additionally, this storefront includes full implementation of customer profile, support for payment [Stripe](https://docs.medusajs.com/add-plugins/stripe) and [PayPal](https://docs.medusajs.com/add-plugins/paypal) payment providers, and support for search with either [MeiliSearch](https://docs.medusajs.com/add-plugins/meilisearch) or [Algolia](https://docs.medusajs.com/add-plugins/algolia).

## Upcoming Features

### Sales Channels

In the `1.3.1` release newsletter, we mentioned that we are planning the Sales Channel API feature. In this quarter, we have kickstarted the development of the Sales Channels API.

Sales Channels will allow merchants to sell across multiple channels such as mobile apps or the Amazon marketplace. In the first iteration of the feature, we’ll simply allow merchants to group products in channel. Additionally, carts are assigned a channel upon creation which is reflected on the subsequent order created from said cart allowing you to group order as well. 

### Product Import

After implementing the export feature for this release, we’ll work on the import feature. This will allow users to import products stored in CSV files into their Medusa server. With both Import and Export functionalities available, migrating data from one Medusa server to another will be much easier.

## Did you miss out on?

- [Marketplace Tutorial Part 3: Implement User Management and Permissions](https://medusajs.com/blog/online-marketplace-tutorial-part-3-implement-user-management-and-permissions/)
- [Creating a React Native Ecommerce app with Medusa](https://medusajs.com/blog/creating-react-native-ecommerce-app-with-medusa/)
- [Case study: How Tekla improved conversion by 70% at record speed using Medusa](https://medusajs.com/blog/case-study-tekla-medusa/)
- [Building with Nuxt.js for a Vue Ecommerce Platform Part 3: Ecommerce Checkout Flow with Stripe](https://medusajs.com/blog/nuxt-js-ecommerce-platform-stripe/)

> Should you have any issues or questions related to Medusa, then feel free to reach out to the Medusa team via [Discord](https://discord.gg/F87eGuwkTp).