Commit Graph

7925 Commits

Author SHA1 Message Date
Frane Polić
70eaaa9196 fix(core-flows): fulfillment reservation check (#11735) 2025-03-09 13:47:10 +01:00
Carlos R. L. Rodrigues
b7678983a9 chore(cart, core-flows): Improve tax lines algo management (#11715)
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2025-03-09 12:43:18 +00:00
Stevche Radevski
4b3869ef2c fix: Add created at and updated at dates to payment session (#11774) 2025-03-07 19:58:37 +00:00
Shahed Nasser
c3ec1b2ef7 docs: update UI docs to latest version (#11770) 2025-03-07 16:39:35 +02:00
Shahed Nasser
5deb8eaf50 docs: support multiple sidebars in a project (#11768)
* changed to new sidebar across projects except resources

* finalize multi sidebar support

* clean up

* remove redundant property

* small changes

* fixes

* generate

* fix error

* fix initial open
2025-03-07 15:47:38 +02:00
Harminder Virk
2a0bd86204 chore: pin swc to 1.5.7 (#11759)
Fixes https://github.com/medusajs/medusa/issues/11681
2025-03-07 11:01:30 +00:00
Adrien de Peretti
20cd59e622 Fix(framework): http cors middleware order and options (#11765)
FIXES SUP-1101
also fixes https://github.com/medusajs/medusa/issues/11743

**What**
The store cors is currently applied after the ensure publishable API key middleware, in this pr the order is fixed and the cors will be applied first.
2025-03-07 10:45:00 +00:00
Riqwan Thamir
f00bb8efcf fix(core-flows): conditionally create, update or delete products when input is present (#11758)
what:

- runs create / update /delete workflows for bulk workflow conditionally

FIXES https://github.com/medusajs/medusa/issues/11749
depends on https://github.com/medusajs/medusa/pull/11756
2025-03-06 13:41:20 +00:00
Adrien de Peretti
84f991192e feat(workflows-sdk): Allow when then in parallelize (#11756)
**What**
Update typings to allow using when then inside parallelize
2025-03-06 13:23:37 +00:00
Oli Juhl
3b470f4142 chore: remove ranges on medusa packages (#11738) 2025-03-06 14:17:05 +01:00
Adrien de Peretti
cc8422d3a1 fix(workflow-engine-redis): Split the queues and respect worker mode for job executions (#11740)
**What**
Currently, the workflow engine redis does not make any distinction between worker modes, when starting as server, the engine listen to the queue which contains everything and try to execute the corresponding workflow which does not exists since job workflows are not loaded in server mode. Now, a dedicated queue is created for jobs and the worker is only started if the instance is not in server mode. In order to clean up the old queue, if the old queue trigger a scheduled job then it gets removed from the queue since it will get re added to the new queue by the new worker instances
2025-03-06 11:52:52 +00:00
Shahed Nasser
4f23901fcf docs: change link to cloud pricing (#11753)
* docs: change link to cloud pricing

* generate
2025-03-06 13:06:12 +02:00
Shahed Nasser
08ce70a368 docs-util: add exceptions for routes with custom auth middleware (#11755) 2025-03-06 13:05:50 +02:00
Shahed Nasser
3616003145 docs: add sidebar sorting logic (#11751)
* docs: add sidebar sorting logic

* generate sidebar
2025-03-06 12:20:03 +02:00
Shahed Nasser
ecc3deb362 docs: changes to main docs sidebar (#11750)
* docs: changes to main docs sidebar

* fix links

* fix vale test

* fix vale errors
2025-03-06 11:55:56 +02:00
Nicklas Gellner
eba3172d88 Merge pull request #11752 from medusajs/MedusaNick-patch-2
Update page.mdx
2025-03-06 09:55:04 +01:00
Nicklas Gellner
a50ab4c341 Update page.mdx 2025-03-06 09:54:49 +01:00
Shahed Nasser
3256a1f740 chore(js-sdk): fix tsdocs for properties and methods (#11748) 2025-03-06 09:12:05 +02:00
Shahed Nasser
9194385999 docs: fix tag for JS SDK draft order + other fixes (#11747) 2025-03-06 09:11:47 +02:00
Carlos R. L. Rodrigues
16d7294de8 fix(pricing): events (#11742) 2025-03-05 15:35:23 -03:00
Adrien de Peretti
cc1309d370 chore(product): Improve product normalization and fix http router with tracing (#11724)
**What**
- Improve product normalization and prevent over fetching data
- Fix HTTP router wrap handler with tracing enabled
2025-03-05 13:04:25 +00:00
Shahed Nasser
e81deb49f8 docs-util: fix freshness check script (#11737)
* docs-util: fix freshness check script

* Update freshness-check.ts
2025-03-05 13:35:28 +02:00
github-actions[bot]
af613bbc4e chore(docs): Generated References (automated) (#11718)
Generated the following references:
- `cart`
- `cart_models`
- `core_flows`
- `fulfillment`
- `js_sdk`
- `medusa`
- `modules`
- `order`
- `payment`
- `payment_provider`
- `types`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-03-04 14:14:00 +00:00
github-actions[bot]
6294a71296 chore(docs): Updated API Reference (automated) (#11719)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2025-03-04 14:10:22 +00:00
github-actions[bot]
8a36bd4034 chore(docs): Generated DML JSON files (automated) (#11717)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-03-04 15:51:20 +02:00
github-actions[bot]
52d3c89ee9 chore(docs): Update version in documentation (automated) (#11716)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-03-04 15:50:55 +02:00
Shahed Nasser
c29a709dd1 docs: changes for next release (#11708)
* docs: changes for next release

* small fixes

* fix lint error

* small fix
2025-03-04 15:23:50 +02:00
olivermrbl
9e410be04a chore: Release 2025-03-04 14:12:26 +01:00
olivermrbl
5d74ac3cc3 chore: Version packages 2025-03-04 14:11:37 +01:00
Adrien de Peretti
cad8b40c13 fix(inventory): Wrong event emitted on reservation update (#11714)
* fix(inventory): Wrong event emitted on reservation update

* fix(inventory): Wrong event emitted on reservation update

* Create tall-mice-smile.md
2025-03-04 14:10:11 +01:00
olivermrbl
d172ad8ebc chore: Add missing changeset 2025-03-04 13:30:02 +01:00
Adrien de Peretti
5d184ba0c8 chore(framework): Unified resource loading and exclude non js/ts files (#11707)
* chore(framework): Unified resource loading and exclude non js/ts files

* chore(framework): Unified resource loading and exclude non js/ts files

* chore(framework): Unified resource loading and exclude non js/ts files

* chore(framework): Unified resource loading and exclude non js/ts files

* chore(framework): Unified resource loading and exclude non js/ts files

* Create six-parrots-shave.md
2025-03-04 13:21:37 +01:00
Harminder Virk
aabbbb7292 feat: Replace existing router with the new implementation (#11646) 2025-03-04 17:22:20 +05:30
Shahed Nasser
c2e24b6cfd docs: update OAS of reset password routes (#11711) 2025-03-04 13:28:41 +02:00
Carlos R. L. Rodrigues
7dbec10b3b fix(order): summary raw totals (#11712) 2025-03-04 11:01:12 +00:00
Avia-Code
cc829185f4 feat: added hook for createStockLocationsWorkflow (#11491)
What
This commit introduces the `stockLocationsCreated` hook to the `createStockLocationsWorkflow`.

Why
The hook was missing and necessary to improve the workflow's extensibility.

How
Added the `stockLocationsCreated` hook and updated related logic within the workflow.

Testing

1. Create new medusa project via create-medusa-app
2. Connect this custom branch of medusa to it
3. Create `src/workflows/hooks/stock-locations-created.ts` file with the following content:

```
import { createStockLocationsWorkflow } from "@medusajs/medusa/core-flows"

createStockLocationsWorkflow.hooks.stockLocationsCreated(
  (async ({ stockLocations, additional_data }, { container }) => {
    console.log({stockLocations})
  })
)
```
4. Create new admin account and create there a new stock location
5. The log should be displayed in terminal
2025-03-04 10:53:39 +00:00
Shahed Nasser
07e39609d9 docs: open prerequisite links in new tab (#11701) 2025-03-04 09:05:38 +02:00
Ismail Sabet
a39830e269 docs: fix Sanity example (#11697) 2025-03-04 07:04:53 +00:00
Sai-Santhan-Dodda
783f96439a docs: Added a missing "/" (#11696) 2025-03-04 07:01:13 +00:00
Frane Polić
e23f204b7c fix(dashboard, core-flows, medusa): prevent creation of empty fulfillments (#11664) 2025-03-03 16:54:20 +00:00
Shahed Nasser
40a9cffb34 docs: add more clarification to reset password in API reference (#11695) 2025-03-03 18:09:03 +02:00
Shahed Nasser
92514885e4 docs: add section on row click in DataTable (#11694)
* docs: add section on row click in DataTable

* update subscriptions example
2025-03-03 18:08:06 +02:00
Riqwan Thamir
ab96ad3b82 feat(utils): add error message when manager is not found in context (#11693) 2025-03-03 15:50:34 +01:00
Kasper Fabricius Kristensen
c28ae573e5 fix(dashboard): Use derived state in DataTable (#11487)
**What**
- Uses derived state in DataTable, to prevent the state in the URL and component from going out of sync.
- Introduces a way for RouteModals to restore URL params on close.

Resolves CMRC-936
2025-03-03 14:18:19 +00:00
Riqwan Thamir
51b0af193c fix(types,medusa): calculate taxes for original price (#11692) 2025-03-03 14:20:48 +01:00
Riqwan Thamir
954136f13a fix(dashboard): bust variant inventory cache on inventory update (#11690) 2025-03-03 12:53:34 +01:00
Frane Polić
7465604ae5 fix(dashboard): variant inventory section (#11669)
**What**
- fix fetching data need to display the info properly
- display condition

---

CLOES SUP-996
2025-03-03 10:46:10 +00:00
Shahed Nasser
82bcdc6271 docs: fix examples in workflows reference (#11688) 2025-03-03 12:20:40 +02:00
Shahed Nasser
61a0e4f3cf chore(workflows-sdk): fix examples in TSDocs (#11689) 2025-03-03 12:20:21 +02:00
Adrien de Peretti
d1efad9bf0 chore(): Improve cart update line items (#11666)
**What**
Currently, we are potentially providing an array of selector/data leading to fetching data sequentially before running on update which will fetch data again in batch and perform the update. Now we can pass the data directly which includes the id already and only perform one bulk fetch + one bulk update.

This pr also include a fix on the inventory validation, currently, only the item to update inventory is being checked, with this pr we also check the inventory for the items that needs to be created
2025-03-03 10:06:40 +00:00