This release ships Worker Mode, a new runtime mode for Medusa instances.
Worker Mode allows you to start a Medusa instance in a process separate from the main application process. An instance running in Worker Mode is useful for executing long-running or resource-heavy tasks in the background. Those tasks are offloaded to a separate process and will not affect the performance of the main application. Examples of tasks are importing data or updating a search index. While Worker Mode is especially good for resource-intensive tasks, we recommend always starting an instance in this mode if possible.
Worker Mode introduces three new runtime modes for your Medusa instance:
server: API Routes are registered, and no workers are started.
worker: API Routes are not registered, and workers are started.
shared: API routes are registered, and workers are started (the regular runtime mode + default).
The worker mode is configured in medusa-config.js:
In this release, the Redis Event Bus has been updated to leverage the worker architecture. Instantiating a Medusa instance with worker_mode: "server" and a different one with worker_mode: "worker" will separate background job processing from the public-facing main application, given that the Redis Event Bus module is installed.
#6771205573f5e3 Thanks @srindom! - fix(medusa): ensure feature flags are loaded properly in migrate command
#668026531c5a38 Thanks @kasperkristensen! - feat(ui-preset): Pull latest styles from Figma.
fix(ui): Fix invalid state styling of Select, so it correctly shows when aria-invalid is true.
fix(medusa): Align query params between /admin/products/:id/variants and /admin/variants.
chore(client-types): Update medusa client types to reflect changes to the API.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the medusa group with 1 update: @medusajs/medusa.
Updates
@medusajs/medusa
from 1.19.0 to 1.20.4Release notes
Sourced from
@medusajs/medusa
's releases.... (truncated)
Changelog
Sourced from
@medusajs/medusa
's changelog.... (truncated)
Commits
74e17ee
chore: Version Packages (#6757)7bc7ade
feat: Create user account (#6819)509ddf9
feat(medusa): migrate medusa unit tests / plugins integration tests to swc je...26531c5
feat(dashboard): Draft orders create (#6680)20132d7
feat(medusa, core-flows): add retrieve stock location endpoint to api-v2 (#6791)deab12e
feat(types, medusa, core-flows): add delete-stock-location endpoint to api-v2...9073d7a
feat(core-flows,medusa,types,utils): rename psma to prices (#6796)68b9812
feat(core-flows, medusa): add create stock location endpoint for api-v2 (#6787)0deb277
feat: AddsuccessRedirectUrl
to auth options (#6792)aa15466
feat(core-flows, types, medusa): Add Update location level endpoint for api-v...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show