v1.20.2
Highlights
Improve error messaging
We have improved error messaging for missing exports of custom services. Until now, the following non-descriptive message was logged:
In 1.20.2, the same error will now log to the console:
This change landed in #6240.
Expose option to configure batch size of staged job polling
We have introduced an option jobs_batch_size
in the projectConfig
in medusa-config.js
, allowing users to configure the batch size of staged jobs we poll from the database every 3rd second. By default, we poll 1000 jobs, which has proven to cause issues with some setups. This option aims to resolve those.
Example config:
module.exports = {
projectConfig: {
jobs_batch_size: 10 // poll 10 jobs every 3rd second
},
}
This change landed in #6333.
Support order by queries on GET /admin/orders
We have introduced an order
query param on the GET /admin/orders
endpoint to support ordering orders.
This change landed in #6258.
Admin revamp (status)
Our work on the admin revamp is progressing well. Below is an overview of completed and remaining work:
Completed
- Customers domain
- Customer Groups domain
- Taxes domain
- Currencies domain
- Regions domain
- Stores domain
- Sales Channels domain
- Users domain
- API keys domain
Remaining
- Orders domain
- Draft Orders domain
- Products domain
- Gift Cards domain
- Categories domain
- Inventory domain
- Discounts domain
- Regions domain
- Taxes domain
- Locations domain
Medusa 2.0 (status)
We spend most of our time working on Medusa 2.0 and are seeing great improvements weekly.
You can follow our development in our roadmap.
Here's a high-level overview of completed, WIP, and planned work:
Completed
- Pricing Module
- Product Module
- Sales Channel Module
- Customer Module
- Workflows / long-running workflows
Work-in-progress
- Payment Module
- Cart Module
- Regions Module
- Fulfillment Module
- Regions Module
- Promotions Module
- Authentication Module
- User Module
- Linked Modules
- Admin: Workflows UI
- Admin: Vite build-tooling
- Admin: UI + UX revamp
- Index Engine
- Rest API V2 (using workflows)
Planned (non-exhaustive)
- API keys Module
- Taxes Module
- Store Module
- Notification Module
- Order Module
Features
- feat(customer): list customer by @srindom in #6206
- feat(medusa): Use remote query in get cart API route by @olivermrbl in #6285
- feat(customer): store addresses by @srindom in #6283
- feat(customer): manage default address selection by @srindom in #6295
- feat(modules-sdk): Module provider plugin loader by @olivermrbl in #6286
- feat(customer): add migration file by @srindom in #6205
- feat(authentication, types): split authenticate method into two by @pKorsholm in #6184
- feat(customer): add customer addresses by @srindom in #6224
- feat(cart): JoinerConfig by @olivermrbl in #6157
- feat: sales channel module by @fPolic in #5923
- feat(medusa, stock-location, types): Add q and order params to list-stock-locations by @pKorsholm in #6197
- feat(authentication, types, utils): Add Authentication provider scopes by @pKorsholm in #6228
- feat(auth): Rename authentication to auth by @pKorsholm in #6229
- feat(cart): Migration file by @olivermrbl in #6156
- feat(): added compute actions for buyget promotions by @riqwan in #6255
- feat(customer): admin CRUD endpoints by @srindom in #6232
- feat(cart):
GET /store/carts/:id
by @olivermrbl in #6262 - feat(auth, medusa): Initial auth module middleware by @pKorsholm in #6271
- feat(dashboard): Users domain by @kasperkristensen in #6212
- feat(customer): add customer group management apis by @srindom in #6233
- feat(customer): admin addresses by @srindom in #6235
- feat(customer): add customer group customer management by @srindom in #6276
- feat(customer): Add create and retrieve customer from store side by @srindom in #6267
- feat(types): added computed actions for automatic promotions by @riqwan in #6272
- feat(auth): add authentication endpoints by @pKorsholm in #6265
- feat(): added percentage calculations for all cases by @riqwan in #6300
- feat(dashboard): DataTable component by @kasperkristensen in #6297
- feat(auth): Make token auth default by @pKorsholm in #6305
- feat(medusa-react): Add
medusaClient
as an input toMedusaProvider
by @erikengervall in #6299 - feat(dashboard): Log in, reset password, and accept invite pages by @kasperkristensen in #6310
- feat: event aggregator by @carlos-r-l-rodrigues in #6218
- feat(cart):
POST /store/carts
by @olivermrbl in #6273 - feat: Region Module (basic CRUD) by @olivermrbl in #6315
- feat(user): Init user module by @pKorsholm in #6293
- Feat(auth): Remove auth provider entity by @pKorsholm in #6314
- feat(payment): payment and session methods by @fPolic in #6138
- feat: Fulfillment module basic structure by @adrien2p in #6319
- feat(region): Add migration by @olivermrbl in #6320
- feat(medusa): Allow configuring of staged job polling batch size by @olivermrbl in #6333
Bugs
- fix: improve error message on incorrect service export by @srindom in #6240
- fix(authentication): remove providers loader by @pKorsholm in #6257
- fix(medusa): add support for
order
field on GET /admin/orders by @kasperkristensen in #6258 - fix(admin-ui) Refactor
use-copy-promotion
to map product IDs by @erikengervall in #6306 - fix: load custom modules by path by @carlos-r-l-rodrigues in #6312
- fix(medusa): fix constructor container type for abstract services by @shahednasser in #6259
Documentation
- docs: add a section on custom templates in SendGrid guide by @shahednasser in #6215
- docs: change process for generating docblocks through actions by @shahednasser in #6237
- docs: refactoring of docblock generator tool by @shahednasser in #6261
- docs: fix title of the configuration page by @shahednasser in #6268
- docs: s3 The "images.domains" configuration is deprecated by @xyzones in #6321
- docs: Update all curl documentation examples and references with new x-medusa-access-token header by @irab in #6326
- docs: Typo Cart -> Card by @herawais in #6302
- docs: update link to io-redis options by @sidcool1234 in #6337
Chores
- chore: PR team labeler by @olivermrbl in #6249
- chore(core-flows): reorganize folder structure for promotion workflows by @riqwan in #6243
- chore: Abstract module service by @adrien2p in #6188
- chore: local workflow proxying methods to pass context by @carlos-r-l-rodrigues in #6263
- chore(cart): Clean up data models by @olivermrbl in #6256
New Contributors
- @herawais made their first contribution in #6302
- @xyzones made their first contribution in #6321
- @irab made their first contribution in #6326
Full Changelog: v1.20.1...v1.20.2