Migrations & Upgrades
Overview
In the last couple of releases, we've started to roll out Product Categories. The API layer is guarded by a feature flag, but the changes/additions to the database schema are not. This release introduces another migration for Product Categories so you are required to run migrations to ensure your server works as expected.
Actions Required
After updating your Medusa server and before running it, run the following command to run the latest migrations:
medusa migrations run
Features
- feat(medusa): Include name in session options (#3186) @pevey
- feat(medusa): Preserve custom adjustments when refreshing adjustments (#3085) @fPolic
- feat(medusa): Decorate OrderEdit LineItems with totals (#3108) @fPolic
- feat(medusa): Include rolling in session options config (#3184) @pevey
- feat(medusa-payment-stripe): Avoid unnecessary customer update if the stripe id already exists (#3046) @adrien2p
- feat(medusa): Option to override existing cron job (#2989) @olivermrbl
- feat(medusa): Expose session options (#3162) @olivermrbl
- feat(medusa): TransactionOrchestrator variant creation (#3097) @carlos-r-l-rodrigues
- feat(medusa): Run shared module migrations (#3109) @carlos-r-l-rodrigues
- feat(medusa): batch remove products from a category (#3141) @riqwan
- feat(medusa): Products can be added to categories in batch request (#3123) @riqwan
- feat(medusa): add or remove categories from products (#3114) @riqwan
- feat(medusa): Added models + repo for products in multiple categories (#3083) @riqwan
- feat(medusa): Add inventory for variants (#2970) @pKorsholm
- feat(oas): accurate model OAS representation - A to D (#3203) @patrick-medusajs
- feat(oas): sanitize circular reference for Redocly (#3198) @patrick-medusajs
- feat(oas): declare x-codegen on Store routes (#3074) @patrick-medusajs
- feat(oas): declare x-codegen on Admin routes - A to D (#3090) @patrick-medusajs
- feat(oas): Improve OAS by adding missing type object to schemas (#3177) @patrick-medusajs
- feat(oas): declare x-codegen on Admin routes - D to PRI (#3092) @patrick-medusajs
- feat(oas): declare x-codegen on Admin routes - PRO to R (#3093) @patrick-medusajs
- feat(oas): declare x-codegen on Admin routes - S to V (#3102) @patrick-medusajs
- feat(oas): declare x-codegen on Admin routes - S to V (#3102) @patrick-medusajs
- feat(medusa): Filter products by category params in store/admin (#3155) @riqwan
- feat(medusa-js): added resources for product categories (#3157) @riqwan
- feat(medusa,stock-location,inventory): Integration tests (#3149) @carlos-r-l-rodrigues
Bugs
- fix(medusa): Applying Discounts (with Conditions) on DraftOrders and Carts (#3197) @adrien2p
- fix(medusa): Allow
method.data
to be passed when creating/updating ShippingMethods in ClaimService (#3205) @kasperkristensen - fix(medusa): Deleting product prices (#3152) @kasperkristensen
- fix(medusa): Shipping profile CRUD (#3154) @kasperkristensen
- fix(medusa): fields params usage in the storefront endpoints (#2980) @fPolic
- fix(stock-location): Stock location address required (#3065) @carlos-r-l-rodrigues
- fix(medusa-payment-stripe): Resend capture event to ensure auto-capture (#3100) @olivermrbl
- fix(medusa-plugin-sendgrid): Inject GiftCardService to eliminate
undefined
error (#2941) @RegisHubelia - fix(medusa): Upsert addresses on Orders (#3153) @olivermrbl
- fix(medusa-react): Fix production.min.js causing invalid hook usage error in CJS environments (#3144) @kasperkristensen
- fix(medusa-payment-stripe): Prevent Stripe events from retrying (#3160) @olivermrbl
- fix(medusa): ShippingOption type on listAndCount (#2040) @adrien2p
Chores
- chore: chore: Patch bump all dependencies + minor bumps winston (#3185) @olivermrbl
- chore(-payment-): Cleanup PaymentProvider plugins (#3011) @adrien2p
- chore(integration-tests): Flaky tests (#3126) @adrien2p
- chore: fixed OAS using incorrect store resource (#3138) @shahednasser
- chore: fixed OAS using incorrect store resource (#3140) @shahednasser
- chore: recommended meaningful oas fixes (#3159) @riqwan
- chore(medusa): refactor service test for product categories (#3161) @riqwan
Docs
- docs: improved SEO of documentation (#3117) @shahednasser
- docs: added product category events to reference (#3118) @shahednasser
- docs: added user guide for order editing (#3120) @shahednasser
- docs: fixed mobile usability of tooltips (#3124) @shahednasser
- docs: added publish plugin documentation (#3137) @shahednasser
- docs: added information about metadata attribute (#3139) @shahednasser
- chore(docs): updated docusaurus to v2.3.0 (#3145) @shahednasser
- docs: fix type in Spaces documentation (#3150) @rafalfortunski
- docs: add and use react-tooltip (#3176) @danielbarion
- docs: updated docusaurus to the latest version 2.3.1 (#3181) @shahednasser