Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

fix: update container.resolve type syntax for medusa 2.13.3 compatibility

vholik6578e881e23a
diff --git a/bun.lock b/bun.lock
index 1e27bd1f8..15c5f58e2 100644
--- a/bun.lock
+++ b/bun.lock
@@ -78,7 +78,7 @@
},
"packages/admin": {
"name": "@mercurjs/admin",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"dependencies": {
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
@@ -138,7 +138,7 @@
},
"packages/cli": {
"name": "@mercurjs/cli",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"bin": {
"mercurjs": "./dist/index.js",
},
@@ -178,7 +178,7 @@
},
"packages/client": {
"name": "@mercurjs/client",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"dependencies": {
"@tanstack/react-query": "^5.64.2",
"qs": "^6.12.1",
@@ -195,7 +195,7 @@
},
"packages/core-plugin": {
"name": "@mercurjs/core-plugin",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"devDependencies": {
"@medusajs/cli": "^2.13.3",
"@medusajs/core-flows": "^2.13.3",
@@ -234,7 +234,7 @@
},
"packages/dashboard-sdk": {
"name": "@mercurjs/dashboard-sdk",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"dependencies": {
"esbuild-register": "^3.6.0",
},
@@ -248,7 +248,7 @@
},
"packages/dashboard-shared": {
"name": "@mercurjs/dashboard-shared",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"dependencies": {
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
@@ -338,7 +338,7 @@
},
"packages/types": {
"name": "@mercurjs/types",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"dependencies": {
"@medusajs/types": "2.13.3",
},
@@ -348,7 +348,7 @@
},
"packages/vendor": {
"name": "@mercurjs/vendor",
- "version": "2.0.0-canary.30",
+ "version": "2.0.0-canary.31",
"dependencies": {
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
diff --git a/packages/core-plugin/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.ts b/packages/core-plugin/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.ts
index aa5909c96..3fc07bcb9 100644
--- a/packages/core-plugin/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.ts
+++ b/packages/core-plugin/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.ts
@@ -26,7 +26,7 @@ export const prepareSellerAdjustmentsFromPromotionActionsStep = createStep(
data: PrepareSellerAdjustmentsFromPromotionActionsStepInput,
{ container }
) => {
- const query: Query = container.resolve(ContainerRegistrationKeys.QUERY)
+ const query = container.resolve<Query>(ContainerRegistrationKeys.QUERY)
const { actions = [] } = data
diff --git a/packages/core-plugin/src/workflows/hooks/product-created.ts b/packages/core-plugin/src/workflows/hooks/product-created.ts
index d12ce01a3..92886c4ec 100644
--- a/packages/core-plugin/src/workflows/hooks/product-created.ts
+++ b/packages/core-plugin/src/workflows/hooks/product-created.ts
@@ -15,7 +15,7 @@ createProductsWorkflow.hooks.productsCreated(
}
const link: Link = container.resolve(ContainerRegistrationKeys.LINK)
- const query: Query = container.resolve(ContainerRegistrationKeys.QUERY)
+ const query = container.resolve<Query>(ContainerRegistrationKeys.QUERY)
const links: LinkDefinition[] = []
const inventoryLinks: LinkDefinition[] = []