Skip to content

v2.1.0

Compare
Choose a tag to compare
@olivermrbl olivermrbl released this 04 Dec 17:55
· 259 commits to develop since this release
a943dfb

Highlights

Improved order management

We've improved our order management with support for updating email, shipping address, and billing address.

New languages

Our admin dashboard has been translated into Italian.

Support for check constraint in Data Model API

We've added support for Postgres check constraints in our Data Model API.

For example:

const shippingMethod = model.define('ShippingMethod', {
  amount: model.bigNumber(),
})
.checks([
  (columns) => `${columns.amount} >= 0`
])

DML Migrations

Warning

Schema changes

We've migrated our Pricing, User, and Auth modules to use our Data Model API. These migrations include minor changes to the database schema:

Pricing module

  • Added column operator to price_rule table (defaults to eq)
  • Created index on (operator) in price_rule table
  • Created index on (price_id) in price_rule table
  • Created unique index on (price_id, attribute, operator) in price_rule table
  • Changed type of max_quantity column in price table from numeric to integer
  • Changed type of min_quantity column in price table from numeric to integer

Auth module

  • Added column deleted_at to auth_identity table
  • Added column deleted_at to provider_identity table
  • Created index on (deleted_at) in auth_identity table
  • Created index on (deleted_at) in provider_identity table

User module

  • Renamed unique index on (email) in invite table
  • Renamed unique index on (email) in user table

Required actions

Run migrations to ensure your server functions as expected after upgrading to v2.1.0:

npx medusa db:migrate

Features

  • feat(pricing,utils,types): add operator field to price rule by @riqwan in #10315
  • feat(pricing, types): add price rule operators to price calculations by @riqwan in #10350
  • feat(core-flows,types,medusa): ability to update/create custom shipping prices by @riqwan in #10368
  • feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context by @riqwan in #10374
  • refactor: migrate pricing entities to DML models by @thetutlage in #10335
  • feature: add support for check constraints in DML by @thetutlage in #10391
  • feat(core-flows,medusa,order,types): update orders by @fPolic in #10373
  • feat(admin, js-sdk, types): update order forms by @fPolic in #10418

Bugs

Documentation

Chores

Other Changes

New Contributors

Full Changelog: v2.0.7...v2.1.0