v2.0.5-preview

medusajs/medusav2.0.5-previewAug 19, 2024by olivermrbl

AI Summary

This preview release sets email-password as the default auth provider, introduces a Workflows Reference, and adds various admin and order flow features.

Key Highlights

  • Email-pass set as default authentication provider
  • Introduced Workflows Reference with visual representation
  • Added Exchange UI and Order Edit endpoints
  • Added Return Reason management API

Breaking Changes

  • Email-pass as default authentication provider (requires installing `@medusajs/auth-emailpass@preview`)

New Features

  • Admin return reason list
  • Filter shipping options by location
  • Add refund reason and note
  • Set shipping methods for claim
  • Create return reason

Full Release Notes

<!-- 
![image](https://github.com/user-attachments/assets/6c747445-badf-404c-a889-36825bb929f2)

# Medusa Preview Release update #5

CMS_BREAK -->

## Highlights

### Product Category organizer component

We've polished the Product Category organizer component for a smoother drag-and-drop experience. As part of the polish, we've also fixed [an issue](https://github.com/medusajs/medusa/issues/8109) with a dependency. 

### Email-pass as default authentication provider

🚧 **Breaking change**

We've updated the default modules config to include email-password as a default authentication provider. This is a breaking change. To ensure your application will continue to run, you should install the preview version of the email-password provider package:
```bash
yarn add @medusajs/auth-emailpass@preview
```

### Workflows Reference

We've introduced a reference of all workflows used in Medusa's core. It includes a visual representation of steps, hooks, and conditionals. 

Explore the reference [here](https://docs.medusajs.com/v2/resources/medusa-workflows-reference).

## Features
* feat: admin return reason list by @christiananese in https://github.com/medusajs/medusa/pull/8482
* feat(medusa): filter shipping options by location by @riqwan in https://github.com/medusajs/medusa/pull/8511
* feat(dashboard,js-sdk,types): ability to add refund reason and note by @riqwan in https://github.com/medusajs/medusa/pull/8466
* feat(types,dashboard): ability to set shipping methods for claim by @riqwan in https://github.com/medusajs/medusa/pull/8533
* feat: create return reason by @christiananese in https://github.com/medusajs/medusa/pull/8516
* feat(create-medusa-app): prompt for database name with credentials by @shahednasser in https://github.com/medusajs/medusa/pull/8552
* feat(core-flows,dashboard,medusa): fixes set of tiny bugs in claims flow by @riqwan in https://github.com/medusajs/medusa/pull/8551
* feat(dashboard): BulkEditor Boolean cell behaviour by @kasperkristensen in https://github.com/medusajs/medusa/pull/8418
* feat: Move userpass default definition to defineConfig instead of a hard-coded value by @sradevski in https://github.com/medusajs/medusa/pull/8557
* feat(core-flows): introduce a generic create entities step by @riqwan in https://github.com/medusajs/medusa/pull/8553
* feat(medusa-oas-cli): automatically fix missing circular references by @shahednasser in https://github.com/medusajs/medusa/pull/8600
* feat(core-flow): order edit endpoints by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8596
* feat(dashboard,core-flows,js-sdk,types,medusa): Add exchange UI + fixes by @riqwan in https://github.com/medusajs/medusa/pull/8606
* feat(medusa,core-flows,types): API to create payment collections for order by @riqwan in https://github.com/medusajs/medusa/pull/8617

## Bugs
* fix(dashboard): Delete product media by @olivermrbl in https://github.com/medusajs/medusa/pull/8506
* fix: Use local notification provider for feed channel by default by @sradevski in https://github.com/medusajs/medusa/pull/8518
* fix(core-flows): fixes duplicate fulfillment issue by @riqwan in https://github.com/medusajs/medusa/pull/8581
* fix(core-flows): fixes build fails by @riqwan in https://github.com/medusajs/medusa/pull/8584
* fix(core-flows): add order transaction on capture by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8591
* fix(chore-flows): update shipping method price by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8592
* feat(core-flows,dashboard): add fixes to allow only outbound or inbound claims by @riqwan in https://github.com/medusajs/medusa/pull/8590
* fix(notification): Disable notification providers by @olivermrbl in https://github.com/medusajs/medusa/pull/8607
* fix(payment): Partial refunds by @olivermrbl in https://github.com/medusajs/medusa/pull/8603
* fix(order): summary original_total by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8616
* fix(pricing): Calculate price sets with amount 0 by @olivermrbl in https://github.com/medusajs/medusa/pull/8622
* fix(order): order summary on order creation by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8624
* fix: Remove the endpoint to create a user by @sradevski in https://github.com/medusajs/medusa/pull/8629
* fix(order): update order summary when transactions change by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8633
* chore: Remove create user tests that are no longer relevant by @sradevski in https://github.com/medusajs/medusa/pull/8638
* fix(dashboard): Replace `react-nestable` with new SortableTree component by @kasperkristensen in https://github.com/medusajs/medusa/pull/8599
* fix(dashboard): Check for displaying placeholder value by @kasperkristensen in https://github.com/medusajs/medusa/pull/8649
* fix(dashboard): disable RMAs if there is no shipped items by @fPolic in https://github.com/medusajs/medusa/pull/8652

## Documentation
* docs-util: add support for workflows in markdown theme by @shahednasser in https://github.com/medusajs/medusa/pull/8485
* docs: fix build errors + update medusa docs link by @shahednasser in https://github.com/medusajs/medusa/pull/8550
* docs: added troubleshooting for using pnpm by @shahednasser in https://github.com/medusajs/medusa/pull/8537
* docs: improve the workflow hooks guide by @shahednasser in https://github.com/medusajs/medusa/pull/8538
* docs-util: associate an API route with the workflow it uses by @shahednasser in https://github.com/medusajs/medusa/pull/8554
* docs: fixes and preparations for workflows reference by @shahednasser in https://github.com/medusajs/medusa/pull/8579
* docs-util: fix OAS generation error by @shahednasser in https://github.com/medusajs/medusa/pull/8577
* docs: redesign sidebar by @shahednasser in https://github.com/medusajs/medusa/pull/8408
* docs: change from showing required to showing optional in types references by @shahednasser in https://github.com/medusajs/medusa/pull/8593
* docs: add a section in the main docs on how to retrieve a relationship by @shahednasser in https://github.com/medusajs/medusa/pull/8594
* docs: fix $lt and $gt in api reference by @shahednasser in https://github.com/medusajs/medusa/pull/8580
* docs: change workflow diagram to list by @shahednasser in https://github.com/medusajs/medusa/pull/8602
* docs: redesign pagination by @shahednasser in https://github.com/medusajs/medusa/pull/8614
* docs: add associated workflow badge in api reference by @shahednasser in https://github.com/medusajs/medusa/pull/8613
* docs: fix expand badge by @shahednasser in https://github.com/medusajs/medusa/pull/8611
* docs: fix scroll top margin by @shahednasser in https://github.com/medusajs/medusa/pull/8605
* docs: update colors and typography by @shahednasser in https://github.com/medusajs/medusa/pull/8604
* docs: fix usage of AdminCreateProduct in validation of digital product recipe by @shahednasser in https://github.com/medusajs/medusa/pull/8601
* docs: collapse sidebar by default in main docs + persist state by @shahednasser in https://github.com/medusajs/medusa/pull/8608
* docs: redesign help button by @shahednasser in https://github.com/medusajs/medusa/pull/8610
* docs-util: fix update OAS schema by @shahednasser in https://github.com/medusajs/medusa/pull/8556
* docs: remove steps from workflows reference overview by @shahednasser in https://github.com/medusajs/medusa/pull/8595
* docs: bug fixes for copy and color mode by @shahednasser in https://github.com/medusajs/medusa/pull/8626
* docs: added edit date by @shahednasser in https://github.com/medusajs/medusa/pull/8623
* docs: update algolia by @shahednasser in https://github.com/medusajs/medusa/pull/8625
* docs: redesign code highlights + add default code titles by @shahednasser in https://github.com/medusajs/medusa/pull/8628

## Chores
* chore: normalize packages version by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8492
* chore(core-flows): [4] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8509
* chore(core-flows): [3] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8507
* chore(core-flows): [2] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8505
* chore(core-flows): [5] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8510
* chore(core-flows): [6] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8512
* chore(core-flows): [7] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8514
* chore(core-flows): [8] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8517
* chore(core-flows): [9] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8519
* chore(core-flows): [11] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8521
* chore(core-flows): [12] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8522
* chore(core-flows): [14] export types and steps, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8524
* chore(core-flows): [16] export types and steps, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8527
* chore(core-flows): [17] export types and steps, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8528
* chore(core-flows): [18/18] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8529
* chore(order): item update quantity by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8513
* chore: rm pg dependency by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8526
* chore(core-flows): [15] export types and steps, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8525
* chore(core-flows): [13] export types and steps, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8523
* chore(core-flows): [10] export types and types, add basic TSDocs by @shahednasser in https://github.com/medusajs/medusa/pull/8520
* chore(core-flows): export used steps / workflows by @shahednasser in https://github.com/medusajs/medusa/pull/8534
* chore(core-flows): favor runAsStep by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8540
* chore(medusa,types): [1] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8558
* chore(core-flows): order transactions by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8568
* chore(medusa,types): [2] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8559
* chore(medusa,types): [3] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8560
* chore(medusa,types): [4] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8561
* chore(medusa,types): [5] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8562
* chore(medusa,types): [6] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8563
* chore(medusa,types): [9] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8566
* chore(medusa,types): [10] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8567
* chore(medusa,types): [7] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8564
* chore(medusa,types): [8] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8565
* feat(core-flows): order edit flows by @carlos-r-l-rodrigues in https://github.com/medusajs/medusa/pull/8555
* chore(medusa,types): [11] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8572
* chore(medusa,types): [12] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8574
* chore(medusa,types): [13] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8575
* chore(medusa,types): [14/14] Add request types to API routes by @shahednasser in https://github.com/medusajs/medusa/pull/8576
* chore: Run migrations and links sync after loading the app by @thetutlage in https://github.com/medusajs/medusa/pull/8582


**Full Changelog**: https://github.com/medusajs/medusa/compare/v2.0.4-preview...v2.0.5-preview