chore(): upgrade mikro orm (#13450)
This commit is contained in:
1 parent
4c1c1dd4c0
commit
8ece06d8ed
64 files changed
+834
-698
No files matched your search
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
"@medusajs/test-utils": patch
|
||||||
|
"@medusajs/api-key": patch
|
||||||
|
"@medusajs/auth": patch
|
||||||
|
"@medusajs/cart": patch
|
||||||
|
"@medusajs/currency": patch
|
||||||
|
"@medusajs/customer": patch
|
||||||
|
"@medusajs/file": patch
|
||||||
|
"@medusajs/fulfillment": patch
|
||||||
|
"@medusajs/index": patch
|
||||||
|
"@medusajs/core-flows": patch
|
||||||
|
"@medusajs/framework": patch
|
||||||
|
"@medusajs/modules-sdk": patch
|
||||||
|
"@medusajs/orchestration": patch
|
||||||
|
"@medusajs/types": patch
|
||||||
|
"@medusajs/utils": patch
|
||||||
|
"@medusajs/workflows-sdk": patch
|
||||||
|
"create-medusa-app": patch
|
||||||
|
"@medusajs/cli": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore(): Upgrade mikro orm 6.5.4
|
||||||
+1
-1
@@ -84,7 +84,7 @@
|
|||||||
"resolutions": {
|
"resolutions": {
|
||||||
"@redocly/cli/react": "^17.0.1",
|
"@redocly/cli/react": "^17.0.1",
|
||||||
"@redocly/cli/react-dom": "^17.0.1",
|
"@redocly/cli/react-dom": "^17.0.1",
|
||||||
"pg": "8.11.3",
|
"pg": "8.16.3",
|
||||||
"@changesets/assemble-release-plan@^6.0.0": "patch:@changesets/assemble-release-plan@npm:^6.0.0#.yarn/patches/changesets.patch"
|
"@changesets/assemble-release-plan@^6.0.0": "patch:@changesets/assemble-release-plan@npm:^6.0.0#.yarn/patches/changesets.patch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"node-fetch": "^3.3.1",
|
"node-fetch": "^3.3.1",
|
||||||
"open": "^9.1.0",
|
"open": "^9.1.0",
|
||||||
"ora": "^6.3.0",
|
"ora": "^6.3.0",
|
||||||
"pg": "^8.11.3",
|
"pg": "^8.16.3",
|
||||||
"slugify": "^1.6.6",
|
"slugify": "^1.6.6",
|
||||||
"uuid": "^9.0.0",
|
"uuid": "^9.0.0",
|
||||||
"validator": "^13.9.0",
|
"validator": "^13.9.0",
|
||||||
|
|||||||
@@ -32,16 +32,16 @@
|
|||||||
"author": "Sebastian Rindom",
|
"author": "Sebastian Rindom",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"@types/yargs": "^15.0.15",
|
"@types/yargs": "^15.0.15",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
},
|
},
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"is-valid-path": "^0.1.1",
|
"is-valid-path": "^0.1.1",
|
||||||
"meant": "^1.0.3",
|
"meant": "^1.0.3",
|
||||||
"ora": "^5.4.1",
|
"ora": "^5.4.1",
|
||||||
"pg": "^8.11.3",
|
"pg": "^8.16.3",
|
||||||
"pg-god": "^1.0.12",
|
"pg-god": "^1.0.12",
|
||||||
"prompts": "^2.4.2",
|
"prompts": "^2.4.2",
|
||||||
"resolve-cwd": "^3.0.0",
|
"resolve-cwd": "^3.0.0",
|
||||||
@@ -72,12 +72,12 @@
|
|||||||
"yargs": "^15.3.1"
|
"yargs": "^15.3.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"pg": "^8.13.0"
|
"pg": "^8.16.3"
|
||||||
},
|
},
|
||||||
"gitHead": "81a7ff73d012fda722f6e9ef0bd9ba0232d37808"
|
"gitHead": "81a7ff73d012fda722f6e9ef0bd9ba0232d37808"
|
||||||
}
|
}
|
||||||
@@ -27,16 +27,16 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"expect-type": "^0.20.0",
|
"expect-type": "^0.20.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -56,10 +56,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aws-sdk/client-dynamodb": "^3.218.0",
|
"@aws-sdk/client-dynamodb": "^3.218.0",
|
||||||
"@medusajs/cli": "2.10.3",
|
"@medusajs/cli": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"@types/cors": "^2.8.17",
|
"@types/cors": "^2.8.17",
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
"connect-dynamodb": "^3.0.5",
|
"connect-dynamodb": "^3.0.5",
|
||||||
"ioredis": "^5.4.1",
|
"ioredis": "^5.4.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"supertest": "^4.0.2",
|
"supertest": "^4.0.2",
|
||||||
"typescript": "^5.6.2",
|
"typescript": "^5.6.2",
|
||||||
@@ -103,15 +103,15 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@aws-sdk/client-dynamodb": "^3.218.0",
|
"@aws-sdk/client-dynamodb": "^3.218.0",
|
||||||
"@medusajs/cli": "2.10.3",
|
"@medusajs/cli": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"connect-dynamodb": "^3.0.5",
|
"connect-dynamodb": "^3.0.5",
|
||||||
"ioredis": "^5.4.1",
|
"ioredis": "^5.4.1",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"vite": "^5.4.14"
|
"vite": "^5.4.14"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
|||||||
@@ -29,13 +29,13 @@
|
|||||||
"author": "Medusa",
|
"author": "Medusa",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@medusajs/types": "2.10.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"msw": "^2.3.0",
|
"msw": "^2.3.0",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@medusajs/types": "2.10.3",
|
|
||||||
"fetch-event-stream": "^0.1.5",
|
"fetch-event-stream": "^0.1.5",
|
||||||
"qs": "^6.12.1"
|
"qs": "^6.12.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -31,31 +31,31 @@
|
|||||||
"watch": "tsc --build --watch"
|
"watch": "tsc --build --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@medusajs/types": "2.10.3",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"cross-env": "^5.2.1",
|
"cross-env": "^5.2.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@medusajs/orchestration": "2.10.3",
|
"@medusajs/orchestration": "2.10.3",
|
||||||
"@medusajs/types": "2.10.3",
|
|
||||||
"@medusajs/utils": "2.10.3"
|
"@medusajs/utils": "2.10.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"express": "^4.21.0",
|
"express": "^4.21.0",
|
||||||
"pg": "^8.13.0"
|
"pg": "^8.16.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@ export function toRemoteQuery<const TEntity extends string>(
|
|||||||
pagination?: Partial<RemoteQueryInput<TEntity>["pagination"]>
|
pagination?: Partial<RemoteQueryInput<TEntity>["pagination"]>
|
||||||
context?: Record<string, any>
|
context?: Record<string, any>
|
||||||
withDeleted?: boolean
|
withDeleted?: boolean
|
||||||
strategy?: "joined" | "select-in"
|
strategy?: "joined" | "select-in" | "balanced"
|
||||||
},
|
},
|
||||||
entitiesMap: Map<string, any>
|
entitiesMap: Map<string, any>
|
||||||
): RemoteQueryGraph<TEntity> {
|
): RemoteQueryGraph<TEntity> {
|
||||||
|
|||||||
@@ -26,31 +26,31 @@
|
|||||||
"author": "Medusa",
|
"author": "Medusa",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@medusajs/types": "2.10.3",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@medusajs/types": "2.10.3",
|
|
||||||
"@medusajs/utils": "2.10.3",
|
"@medusajs/utils": "2.10.3",
|
||||||
"ulid": "^2.3.0"
|
"ulid": "^2.3.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"express": "^4.21.0",
|
"express": "^4.21.0",
|
||||||
"pg": "^8.13.0"
|
"pg": "^8.16.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf dist && tsc --build",
|
"build": "rimraf dist && tsc --build",
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ export class RemoteJoiner {
|
|||||||
if (Object.keys(service_.fieldAlias!).length) {
|
if (Object.keys(service_.fieldAlias!).length) {
|
||||||
const conflictAliases = Array.from(
|
const conflictAliases = Array.from(
|
||||||
service_.relationships!.keys()
|
service_.relationships!.keys()
|
||||||
).filter((alias) => fieldAlias[alias])
|
).filter((alias) => fieldAlias[alias as string])
|
||||||
|
|
||||||
if (conflictAliases.length) {
|
if (conflictAliases.length) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export interface OptionsQuery<T> {
|
|||||||
/**
|
/**
|
||||||
* Load strategy (e.g for mikro orm it accept select-in or joined)
|
* Load strategy (e.g for mikro orm it accept select-in or joined)
|
||||||
*/
|
*/
|
||||||
strategy?: "select-in" | "joined" | (string & {})
|
strategy?: "select-in" | "joined" | "balanced" | (string & {})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ export type RemoteQueryInput<TEntry extends string> =
|
|||||||
/**
|
/**
|
||||||
* Strategy will be send to the entry module called method
|
* Strategy will be send to the entry module called method
|
||||||
*/
|
*/
|
||||||
strategy?: "joined" | "select-in"
|
strategy?: "joined" | "select-in" | "balanced"
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
/**
|
/**
|
||||||
@@ -119,7 +119,7 @@ export type RemoteQueryInput<TEntry extends string> =
|
|||||||
/**
|
/**
|
||||||
* Strategy will be send to the entry module called method
|
* Strategy will be send to the entry module called method
|
||||||
*/
|
*/
|
||||||
strategy?: "joined" | "select-in"
|
strategy?: "joined" | "select-in" | "balanced"
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RemoteQueryGraph<TEntry extends string> = {
|
export type RemoteQueryGraph<TEntry extends string> = {
|
||||||
|
|||||||
@@ -26,10 +26,11 @@
|
|||||||
"author": "Medusa",
|
"author": "Medusa",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@medusajs/types": "2.10.3",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
@@ -37,7 +38,7 @@
|
|||||||
"expect-type": "^0.20.0",
|
"expect-type": "^0.20.0",
|
||||||
"express": "^4.21.0",
|
"express": "^4.21.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"pg-god": "^1.0.12",
|
"pg-god": "^1.0.12",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
@@ -47,7 +48,6 @@
|
|||||||
"@graphql-codegen/typescript": "^4.0.9",
|
"@graphql-codegen/typescript": "^4.0.9",
|
||||||
"@graphql-tools/merge": "^9.0.7",
|
"@graphql-tools/merge": "^9.0.7",
|
||||||
"@graphql-tools/schema": "^10.0.6",
|
"@graphql-tools/schema": "^10.0.6",
|
||||||
"@medusajs/types": "2.10.3",
|
|
||||||
"@types/pluralize": "^0.0.33",
|
"@types/pluralize": "^0.0.33",
|
||||||
"bignumber.js": "^9.1.2",
|
"bignumber.js": "^9.1.2",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
@@ -60,13 +60,13 @@
|
|||||||
"zod": "3.25.76"
|
"zod": "3.25.76"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"express": "^4.21.0",
|
"express": "^4.21.0",
|
||||||
"pg": "^8.13.0"
|
"pg": "^8.16.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf dist && tsc --build",
|
"build": "rimraf dist && tsc --build",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { BigNumberInput } from "@medusajs/types"
|
import { BigNumberInput } from "@medusajs/types"
|
||||||
import { Property } from "@mikro-orm/core"
|
import { EntityProperty, Platform, Property, Type } from "@mikro-orm/core"
|
||||||
import { isDefined, isPresent, trimZeros } from "../../common"
|
import { isDefined, isObject, isPresent, trimZeros } from "../../common"
|
||||||
import { BigNumber } from "../../totals/big-number"
|
import { BigNumber } from "../../totals/big-number"
|
||||||
|
|
||||||
export function MikroOrmBigNumberProperty(
|
export function MikroOrmBigNumberProperty(
|
||||||
@@ -24,6 +24,11 @@ export function MikroOrmBigNumberProperty(
|
|||||||
return value
|
return value
|
||||||
},
|
},
|
||||||
set(value: BigNumberInput) {
|
set(value: BigNumberInput) {
|
||||||
|
// convert 'null' to null
|
||||||
|
if (value === "null") {
|
||||||
|
value = null as unknown as BigNumberInput
|
||||||
|
}
|
||||||
|
|
||||||
if (options?.nullable && !isPresent(value)) {
|
if (options?.nullable && !isPresent(value)) {
|
||||||
this.__helper.__data[columnName] = null
|
this.__helper.__data[columnName] = null
|
||||||
this.__helper.__data[rawColumnName] = null
|
this.__helper.__data[rawColumnName] = null
|
||||||
@@ -89,7 +94,7 @@ export function MikroOrmBigNumberProperty(
|
|||||||
})
|
})
|
||||||
|
|
||||||
Property({
|
Property({
|
||||||
type: "any",
|
type: BigNumberNumeric,
|
||||||
columnType: "numeric",
|
columnType: "numeric",
|
||||||
trackChanges: false,
|
trackChanges: false,
|
||||||
runtimeType: "any",
|
runtimeType: "any",
|
||||||
@@ -97,3 +102,43 @@ export function MikroOrmBigNumberProperty(
|
|||||||
})(target, columnName)
|
})(target, columnName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class BigNumberNumeric extends Type<string | number, string> {
|
||||||
|
constructor(public mode?: "number" | "string") {
|
||||||
|
super()
|
||||||
|
}
|
||||||
|
|
||||||
|
override convertToJSValue(value: string): number | string {
|
||||||
|
if ((this.mode ?? this.prop?.runtimeType) === "number") {
|
||||||
|
return +value
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isObject(value)) {
|
||||||
|
return value // Special case for BigNumberRawValue because the setter will manage the dispatch automatically at a later stage
|
||||||
|
}
|
||||||
|
|
||||||
|
return String(value)
|
||||||
|
}
|
||||||
|
|
||||||
|
override compareValues(a: string, b: string): boolean {
|
||||||
|
return this.format(a) === this.format(b)
|
||||||
|
}
|
||||||
|
|
||||||
|
private format(val: string | number) {
|
||||||
|
/* istanbul ignore next */
|
||||||
|
if (this.prop?.scale == null) {
|
||||||
|
return +val
|
||||||
|
}
|
||||||
|
|
||||||
|
const base = Math.pow(10, this.prop.scale)
|
||||||
|
return Math.round((+val + Number.EPSILON) * base) / base
|
||||||
|
}
|
||||||
|
|
||||||
|
override getColumnType(prop: EntityProperty, platform: Platform) {
|
||||||
|
return platform.getDecimalTypeDeclarationSQL(prop)
|
||||||
|
}
|
||||||
|
|
||||||
|
override compareAsType(): string {
|
||||||
|
return this.mode ?? this.prop?.runtimeType ?? "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -59,15 +59,15 @@ export class MikroOrmBase {
|
|||||||
async transaction<TManager = unknown>(
|
async transaction<TManager = unknown>(
|
||||||
task: (transactionManager: TManager) => Promise<any>,
|
task: (transactionManager: TManager) => Promise<any>,
|
||||||
options: {
|
options: {
|
||||||
|
manager?: TManager
|
||||||
isolationLevel?: string
|
isolationLevel?: string
|
||||||
enableNestedTransactions?: boolean
|
enableNestedTransactions?: boolean
|
||||||
transaction?: TManager
|
transaction?: TManager
|
||||||
} = {}
|
} = {}
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
this.manager_.global = true
|
const manager = this.getFreshManager()
|
||||||
return await transactionWrapper(this.manager_, task, options).catch(
|
|
||||||
dbErrorMapper
|
return await transactionWrapper(manager, task, options).catch(dbErrorMapper)
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async serialize<TOutput extends object | object[]>(
|
async serialize<TOutput extends object | object[]>(
|
||||||
@@ -463,12 +463,9 @@ export function mikroOrmBaseRepositoryFactory<const T extends object>(
|
|||||||
|
|
||||||
if (!("strategy" in findOptions_.options)) {
|
if (!("strategy" in findOptions_.options)) {
|
||||||
if (findOptions_.options.limit != null || findOptions_.options.offset) {
|
if (findOptions_.options.limit != null || findOptions_.options.offset) {
|
||||||
|
// TODO: from 7+ it will be the default strategy
|
||||||
Object.assign(findOptions_.options, {
|
Object.assign(findOptions_.options, {
|
||||||
strategy: LoadStrategy.SELECT_IN,
|
strategy: LoadStrategy.BALANCED,
|
||||||
})
|
|
||||||
} else {
|
|
||||||
Object.assign(findOptions_.options, {
|
|
||||||
strategy: LoadStrategy.JOINED,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ describe("Entity builder", () => {
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
setter: true,
|
setter: true,
|
||||||
trackChanges: false,
|
trackChanges: false,
|
||||||
type: "any",
|
type: expect.any(Function),
|
||||||
runtimeType: "any",
|
runtimeType: "any",
|
||||||
},
|
},
|
||||||
raw_spend_limit: {
|
raw_spend_limit: {
|
||||||
@@ -306,7 +306,7 @@ describe("Entity builder", () => {
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
setter: true,
|
setter: true,
|
||||||
trackChanges: false,
|
trackChanges: false,
|
||||||
type: "any",
|
type: expect.any(Function),
|
||||||
runtimeType: "any",
|
runtimeType: "any",
|
||||||
},
|
},
|
||||||
raw_spend_limit: {
|
raw_spend_limit: {
|
||||||
@@ -441,7 +441,7 @@ describe("Entity builder", () => {
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
setter: true,
|
setter: true,
|
||||||
trackChanges: false,
|
trackChanges: false,
|
||||||
type: "any",
|
type: expect.any(Function),
|
||||||
runtimeType: "any",
|
runtimeType: "any",
|
||||||
},
|
},
|
||||||
raw_spend_limit: {
|
raw_spend_limit: {
|
||||||
@@ -555,7 +555,7 @@ describe("Entity builder", () => {
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
setter: true,
|
setter: true,
|
||||||
trackChanges: false,
|
trackChanges: false,
|
||||||
type: "any",
|
type: expect.any(Function),
|
||||||
runtimeType: "any",
|
runtimeType: "any",
|
||||||
},
|
},
|
||||||
raw_spend_limit: {
|
raw_spend_limit: {
|
||||||
@@ -701,7 +701,7 @@ describe("Entity builder", () => {
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
setter: true,
|
setter: true,
|
||||||
trackChanges: false,
|
trackChanges: false,
|
||||||
type: "any",
|
type: expect.any(Function),
|
||||||
runtimeType: "any",
|
runtimeType: "any",
|
||||||
},
|
},
|
||||||
raw_spend_limit: {
|
raw_spend_limit: {
|
||||||
@@ -858,7 +858,7 @@ describe("Entity builder", () => {
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
setter: true,
|
setter: true,
|
||||||
trackChanges: false,
|
trackChanges: false,
|
||||||
type: "any",
|
type: expect.any(Function),
|
||||||
runtimeType: "any",
|
runtimeType: "any",
|
||||||
},
|
},
|
||||||
created_at: {
|
created_at: {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type {
|
|||||||
Infer,
|
Infer,
|
||||||
PropertyType,
|
PropertyType,
|
||||||
} from "@medusajs/types"
|
} from "@medusajs/types"
|
||||||
import { Entity, Filter } from "@mikro-orm/core"
|
import { Entity, Filter, MetadataStorage } from "@mikro-orm/core"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
mikroOrmFreeTextSearchFilterOptionsFactory,
|
mikroOrmFreeTextSearchFilterOptionsFactory,
|
||||||
@@ -116,12 +116,16 @@ function createMikrORMEntity() {
|
|||||||
Filter(mikroOrmFreeTextSearchFilterOptionsFactory(modelName))(
|
Filter(mikroOrmFreeTextSearchFilterOptionsFactory(modelName))(
|
||||||
MikroORMEntity
|
MikroORMEntity
|
||||||
)
|
)
|
||||||
const RegisteredEntity = Entity({ tableName })(
|
|
||||||
Filter(mikroOrmSoftDeletableFilterOptions)(MikroORMEntity)
|
|
||||||
) as Infer<T>
|
|
||||||
|
|
||||||
ENTITIES[modelName] = RegisteredEntity
|
Entity({ tableName })(
|
||||||
return RegisteredEntity
|
Filter(mikroOrmSoftDeletableFilterOptions)(MikroORMEntity)
|
||||||
|
) as any
|
||||||
|
|
||||||
|
const entityMetadata =
|
||||||
|
MetadataStorage.getMetadataFromDecorator(MikroORMEntity)
|
||||||
|
|
||||||
|
ENTITIES[modelName] = entityMetadata.class as Constructor<any>
|
||||||
|
return entityMetadata.class as Infer<T>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ describe("Internal Module Service Factory", () => {
|
|||||||
[modelRepositoryName]: {
|
[modelRepositoryName]: {
|
||||||
transaction: (task) => task(),
|
transaction: (task) => task(),
|
||||||
getFreshManager: jest.fn().mockReturnThis(),
|
getFreshManager: jest.fn().mockReturnThis(),
|
||||||
|
getActiveManager: jest.fn().mockReturnThis(),
|
||||||
find: jest.fn(),
|
find: jest.fn(),
|
||||||
findAndCount: jest.fn(),
|
findAndCount: jest.fn(),
|
||||||
create: jest.fn(),
|
create: jest.fn(),
|
||||||
@@ -28,6 +29,7 @@ describe("Internal Module Service Factory", () => {
|
|||||||
[`composite${Model.name}Repository`]: {
|
[`composite${Model.name}Repository`]: {
|
||||||
transaction: (task) => task(),
|
transaction: (task) => task(),
|
||||||
getFreshManager: jest.fn().mockReturnThis(),
|
getFreshManager: jest.fn().mockReturnThis(),
|
||||||
|
getActiveManager: jest.fn().mockReturnThis(),
|
||||||
find: jest.fn(),
|
find: jest.fn(),
|
||||||
findAndCount: jest.fn(),
|
findAndCount: jest.fn(),
|
||||||
create: jest.fn(),
|
create: jest.fn(),
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ const baseRepoMock = {
|
|||||||
serialize: jest.fn().mockImplementation((item) => item),
|
serialize: jest.fn().mockImplementation((item) => item),
|
||||||
transaction: (task) => task("transactionManager"),
|
transaction: (task) => task("transactionManager"),
|
||||||
getFreshManager: jest.fn().mockReturnThis(),
|
getFreshManager: jest.fn().mockReturnThis(),
|
||||||
|
getActiveManager: jest.fn().mockReturnThis(),
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultContext = {
|
const defaultContext = {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export function InjectManager(managerProperty?: string): MethodDecorator {
|
|||||||
const originalContext = args[argIndex] ?? {}
|
const originalContext = args[argIndex] ?? {}
|
||||||
const copiedContext = {} as Context
|
const copiedContext = {} as Context
|
||||||
for (const key in originalContext) {
|
for (const key in originalContext) {
|
||||||
if (key === "manager" || key === "transactionManager") {
|
if (key === "transactionManager") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,8 +51,8 @@ export function InjectManager(managerProperty?: string): MethodDecorator {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
copiedContext.manager =
|
copiedContext.manager ??=
|
||||||
originalContext.manager ?? resourceWithManager.getFreshManager()
|
resourceWithManager.getFreshManager(originalContext)
|
||||||
|
|
||||||
if (originalContext?.transactionManager) {
|
if (originalContext?.transactionManager) {
|
||||||
copiedContext.transactionManager = originalContext?.transactionManager
|
copiedContext.transactionManager = originalContext?.transactionManager
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export function InjectTransactionManager(
|
|||||||
async (transactionManager) => {
|
async (transactionManager) => {
|
||||||
const copiedContext = {} as Context
|
const copiedContext = {} as Context
|
||||||
for (const key in originalContext) {
|
for (const key in originalContext) {
|
||||||
if (key === "manager" || key === "transactionManager") {
|
if (key === "transactionManager") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,10 +52,6 @@ export function InjectTransactionManager(
|
|||||||
|
|
||||||
copiedContext.transactionManager = transactionManager
|
copiedContext.transactionManager = transactionManager
|
||||||
|
|
||||||
if (originalContext?.manager) {
|
|
||||||
copiedContext.manager = originalContext?.manager
|
|
||||||
}
|
|
||||||
|
|
||||||
copiedContext.__type = MedusaContextType
|
copiedContext.__type = MedusaContextType
|
||||||
|
|
||||||
args[argIndex] = copiedContext
|
args[argIndex] = copiedContext
|
||||||
@@ -63,6 +59,7 @@ export function InjectTransactionManager(
|
|||||||
return await originalMethod.apply(this, args)
|
return await originalMethod.apply(this, args)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
manager: originalContext?.manager,
|
||||||
transaction: originalContext?.transactionManager,
|
transaction: originalContext?.transactionManager,
|
||||||
isolationLevel: (originalContext as Context)?.isolationLevel,
|
isolationLevel: (originalContext as Context)?.isolationLevel,
|
||||||
enableNestedTransactions:
|
enableNestedTransactions:
|
||||||
|
|||||||
@@ -27,16 +27,17 @@
|
|||||||
"author": "Medusa",
|
"author": "Medusa",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@medusajs/types": "2.10.3",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"expect-type": "^0.20.0",
|
"expect-type": "^0.20.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"rimraf": "^5.0.1",
|
"rimraf": "^5.0.1",
|
||||||
"typescript": "^5.6.2",
|
"typescript": "^5.6.2",
|
||||||
"zod": "3.25.76"
|
"zod": "3.25.76"
|
||||||
@@ -44,18 +45,17 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@medusajs/modules-sdk": "2.10.3",
|
"@medusajs/modules-sdk": "2.10.3",
|
||||||
"@medusajs/orchestration": "2.10.3",
|
"@medusajs/orchestration": "2.10.3",
|
||||||
"@medusajs/types": "2.10.3",
|
|
||||||
"@medusajs/utils": "2.10.3",
|
"@medusajs/utils": "2.10.3",
|
||||||
"ulid": "^2.3.0"
|
"ulid": "^2.3.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"express": "^4.21.0",
|
"express": "^4.21.0",
|
||||||
"pg": "^8.13.0"
|
"pg": "^8.16.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf dist && tsc --build",
|
"build": "rimraf dist && tsc --build",
|
||||||
|
|||||||
@@ -26,13 +26,13 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"pg-god": "^1.0.12",
|
"pg-god": "^1.0.12",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/medusa": "2.10.3",
|
"@medusajs/medusa": "2.10.3",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Modules } from "@medusajs/framework/utils"
|
import { Modules } from "@medusajs/framework/utils"
|
||||||
import { MedusaContainer } from "@medusajs/types"
|
import { MedusaContainer } from "@medusajs/framework/types"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Waits for all workflow executions to finish. When relying on workflows but not necessarily
|
* Waits for all workflow executions to finish. When relying on workflows but not necessarily
|
||||||
|
|||||||
@@ -136,10 +136,10 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@opentelemetry/instrumentation-pg": "^0.52.0",
|
"@opentelemetry/instrumentation-pg": "^0.52.0",
|
||||||
"@opentelemetry/resources": "^2.0.0",
|
"@opentelemetry/resources": "^2.0.0",
|
||||||
"@opentelemetry/sdk-node": "^0.200.0",
|
"@opentelemetry/sdk-node": "^0.200.0",
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -48,9 +48,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,10 +39,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -52,9 +52,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,11 +38,11 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -52,10 +52,10 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,10 +25,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -38,9 +38,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -35,9 +35,9 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"cross-env": "^5.2.1",
|
"cross-env": "^5.2.1",
|
||||||
@@ -48,9 +48,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,10 +34,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -47,9 +47,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
ILockingModule,
|
ILockingModule,
|
||||||
InternalModuleDeclaration,
|
InternalModuleDeclaration,
|
||||||
Logger,
|
Logger,
|
||||||
} from "@medusajs/types"
|
} from "@medusajs/framework/types"
|
||||||
import { EntityManager } from "@mikro-orm/core"
|
import { EntityManager } from "@mikro-orm/core"
|
||||||
import { LockingDefaultProvider } from "@types"
|
import { LockingDefaultProvider } from "@types"
|
||||||
import LockingProviderService from "./locking-provider"
|
import LockingProviderService from "./locking-provider"
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
|
"resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
|
||||||
"build": "rimraf dist && tsc --build && npm run resolve:aliases",
|
"build": "rimraf dist && tsc --build && npm run resolve:aliases",
|
||||||
"test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts",
|
"test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts",
|
||||||
"test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts",
|
"test:integration": "jest --forceExit -- integration-tests/__tests__/**/*.spec.ts",
|
||||||
"migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial",
|
"migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial",
|
||||||
"migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create",
|
"migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create",
|
||||||
"migration:up": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:up",
|
"migration:up": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:up",
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,11 +20,7 @@ export function setFindMethods<T>(klass: Constructor<T>, entity: any) {
|
|||||||
if (!("strategy" in findOptions_.options)) {
|
if (!("strategy" in findOptions_.options)) {
|
||||||
if (findOptions_.options.limit != null || findOptions_.options.offset) {
|
if (findOptions_.options.limit != null || findOptions_.options.offset) {
|
||||||
Object.assign(findOptions_.options, {
|
Object.assign(findOptions_.options, {
|
||||||
strategy: LoadStrategy.SELECT_IN,
|
strategy: LoadStrategy.BALANCED,
|
||||||
})
|
|
||||||
} else {
|
|
||||||
Object.assign(findOptions_.options, {
|
|
||||||
strategy: LoadStrategy.JOINED,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -103,7 +99,7 @@ export function setFindMethods<T>(klass: Constructor<T>, entity: any) {
|
|||||||
|
|
||||||
if (!("strategy" in findOptions_.options)) {
|
if (!("strategy" in findOptions_.options)) {
|
||||||
Object.assign(findOptions_.options, {
|
Object.assign(findOptions_.options, {
|
||||||
strategy: LoadStrategy.SELECT_IN,
|
strategy: LoadStrategy.BALANCED,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -264,7 +264,7 @@ export default class PaymentModuleService
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@InjectManager()
|
@InjectTransactionManager()
|
||||||
async updatePaymentCollections_(
|
async updatePaymentCollections_(
|
||||||
data: UpdatePaymentCollectionDTO[],
|
data: UpdatePaymentCollectionDTO[],
|
||||||
@MedusaContext() sharedContext?: Context
|
@MedusaContext() sharedContext?: Context
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -868,7 +868,8 @@ export default class PricingModuleService
|
|||||||
return {
|
return {
|
||||||
attribute,
|
attribute,
|
||||||
operator: customRule.operator,
|
operator: customRule.operator,
|
||||||
value: customRule.value,
|
// TODO: we throw above if value is not a number, but the model expect the value to be a string
|
||||||
|
value: customRule.value.toString(),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-1
@@ -826,7 +826,12 @@ moduleIntegrationTestRunner<IProductModuleService>({
|
|||||||
await service.upsertProducts([updateData])
|
await service.upsertProducts([updateData])
|
||||||
|
|
||||||
const product = await service.retrieveProduct(productTwo.id, {
|
const product = await service.retrieveProduct(productTwo.id, {
|
||||||
relations: ["*"],
|
relations: [
|
||||||
|
"options",
|
||||||
|
"options.values",
|
||||||
|
"variants",
|
||||||
|
"variants.options",
|
||||||
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(product.options).toHaveLength(1)
|
expect(product.options).toHaveLength(1)
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"faker": "^5.5.3",
|
"faker": "^5.5.3",
|
||||||
@@ -52,9 +52,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -61,7 +61,7 @@ export class ProductCategoryRepository extends DALUtils.MikroOrmBaseTreeReposito
|
|||||||
}
|
}
|
||||||
|
|
||||||
Object.assign(findOptions_.options, {
|
Object.assign(findOptions_.options, {
|
||||||
strategy: LoadStrategy.SELECT_IN,
|
strategy: LoadStrategy.BALANCED,
|
||||||
})
|
})
|
||||||
|
|
||||||
return findOptions_
|
return findOptions_
|
||||||
|
|||||||
@@ -1879,6 +1879,21 @@ export default class ProductModuleService
|
|||||||
productData.thumbnail = productData.images[0].url
|
productData.thumbnail = productData.images[0].url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: these props are typed as number, the model expect a string, the API expect number etc
|
||||||
|
// There is some inconsistency here, we should fix it
|
||||||
|
if ("weight" in productData) {
|
||||||
|
productData.weight = productData.weight?.toString() as any
|
||||||
|
}
|
||||||
|
if ("length" in productData) {
|
||||||
|
productData.length = productData.length?.toString() as any
|
||||||
|
}
|
||||||
|
if ("height" in productData) {
|
||||||
|
productData.height = productData.height?.toString() as any
|
||||||
|
}
|
||||||
|
if ("width" in productData) {
|
||||||
|
productData.width = productData.width?.toString() as any
|
||||||
|
}
|
||||||
|
|
||||||
if (productData.images?.length) {
|
if (productData.images?.length) {
|
||||||
productData.images = productData.images.map((image, index) =>
|
productData.images = productData.images.map((image, index) =>
|
||||||
(image as { rank?: number }).rank != null
|
(image as { rank?: number }).rank != null
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export async function createCampaigns(
|
|||||||
campaignsData?: CreateCampaignDTO[]
|
campaignsData?: CreateCampaignDTO[]
|
||||||
): Promise<Campaign[]> {
|
): Promise<Campaign[]> {
|
||||||
if (!campaignsData) {
|
if (!campaignsData) {
|
||||||
const cp = JSON.parse(JSON.stringify(defaultCampaignsData))
|
const cp = structuredClone(defaultCampaignsData)
|
||||||
|
|
||||||
const starts_at = new Date(TODAY)
|
const starts_at = new Date(TODAY)
|
||||||
starts_at.setDate(starts_at.getDate() - 1)
|
starts_at.setDate(starts_at.getDate() - 1)
|
||||||
|
|||||||
@@ -39,10 +39,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -52,9 +52,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -690,7 +690,9 @@ export default class PromotionModuleService
|
|||||||
sharedContext
|
sharedContext
|
||||||
)
|
)
|
||||||
|
|
||||||
return Array.isArray(data) ? promotions : promotions[0]
|
return await this.baseRepository_.serialize<
|
||||||
|
PromotionTypes.PromotionDTO | PromotionTypes.PromotionDTO[]
|
||||||
|
>(Array.isArray(data) ? promotions : promotions[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
@InjectTransactionManager()
|
@InjectTransactionManager()
|
||||||
@@ -949,6 +951,7 @@ export default class PromotionModuleService
|
|||||||
): Promise<PromotionTypes.PromotionDTO[]>
|
): Promise<PromotionTypes.PromotionDTO[]>
|
||||||
|
|
||||||
@InjectManager()
|
@InjectManager()
|
||||||
|
@EmitEvents()
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
async updatePromotions(
|
async updatePromotions(
|
||||||
data:
|
data:
|
||||||
@@ -1165,6 +1168,7 @@ export default class PromotionModuleService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@InjectManager()
|
@InjectManager()
|
||||||
|
@EmitEvents()
|
||||||
async addPromotionRules(
|
async addPromotionRules(
|
||||||
promotionId: string,
|
promotionId: string,
|
||||||
rulesData: PromotionTypes.CreatePromotionRuleDTO[],
|
rulesData: PromotionTypes.CreatePromotionRuleDTO[],
|
||||||
@@ -1288,6 +1292,8 @@ export default class PromotionModuleService
|
|||||||
|
|
||||||
validatePromotionRuleAttributes(rulesData)
|
validatePromotionRuleAttributes(rulesData)
|
||||||
|
|
||||||
|
const promotionRuleValuesDataToCreate: CreatePromotionRuleValueDTO[] = []
|
||||||
|
|
||||||
for (const ruleData of rulesData) {
|
for (const ruleData of rulesData) {
|
||||||
const { values, ...rest } = ruleData
|
const { values, ...rest } = ruleData
|
||||||
const promotionRuleData: CreatePromotionRuleDTO = {
|
const promotionRuleData: CreatePromotionRuleDTO = {
|
||||||
@@ -1308,11 +1314,13 @@ export default class PromotionModuleService
|
|||||||
promotion_rule: createdPromotionRule,
|
promotion_rule: createdPromotionRule,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
promotionRuleValuesDataToCreate.push(...promotionRuleValuesData)
|
||||||
|
}
|
||||||
|
|
||||||
await this.promotionRuleValueService_.create(
|
await this.promotionRuleValueService_.create(
|
||||||
promotionRuleValuesData,
|
promotionRuleValuesDataToCreate,
|
||||||
sharedContext
|
sharedContext
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
return createdPromotionRules
|
return createdPromotionRules
|
||||||
}
|
}
|
||||||
@@ -1630,7 +1638,7 @@ export default class PromotionModuleService
|
|||||||
@EmitEvents()
|
@EmitEvents()
|
||||||
async addPromotionsToCampaign(
|
async addPromotionsToCampaign(
|
||||||
data: PromotionTypes.AddPromotionsToCampaignDTO,
|
data: PromotionTypes.AddPromotionsToCampaignDTO,
|
||||||
@MedusaContext() sharedContext?: Context
|
@MedusaContext() sharedContext: Context = {}
|
||||||
): Promise<{ ids: string[] }> {
|
): Promise<{ ids: string[] }> {
|
||||||
const ids = await this.addPromotionsToCampaign_(data, sharedContext)
|
const ids = await this.addPromotionsToCampaign_(data, sharedContext)
|
||||||
|
|
||||||
|
|||||||
@@ -21,10 +21,10 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,10 +25,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -38,9 +38,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -51,9 +51,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -54,9 +54,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -55,9 +55,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,10 +38,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "^1.7.28",
|
"@swc/core": "^1.7.28",
|
||||||
"@swc/jest": "^0.2.36",
|
"@swc/jest": "^0.2.36",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
@@ -56,9 +56,9 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1"
|
"awilix": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -51,13 +51,13 @@
|
|||||||
"@medusajs/icons": "2.10.3",
|
"@medusajs/icons": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@medusajs/types": "2.10.3",
|
"@medusajs/types": "2.10.3",
|
||||||
"@medusajs/ui": "4.0.23",
|
"@medusajs/ui": "4.0.21",
|
||||||
"@medusajs/ui-preset": "2.10.3",
|
"@medusajs/ui-preset": "2.10.3",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"@swc/core": "1.5.7",
|
"@swc/core": "1.5.7",
|
||||||
"@types/lodash": "^4.17.15",
|
"@types/lodash": "^4.17.15",
|
||||||
"@types/node": "^20.0.0",
|
"@types/node": "^20.0.0",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
"@types/react-dom": "^18.2.25",
|
"@types/react-dom": "^18.2.25",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-router-dom": "6.20.1",
|
"react-router-dom": "6.20.1",
|
||||||
@@ -81,15 +81,15 @@
|
|||||||
"@medusajs/framework": "2.10.3",
|
"@medusajs/framework": "2.10.3",
|
||||||
"@medusajs/icons": "2.10.3",
|
"@medusajs/icons": "2.10.3",
|
||||||
"@medusajs/test-utils": "2.10.3",
|
"@medusajs/test-utils": "2.10.3",
|
||||||
"@medusajs/ui": "4.0.23",
|
"@medusajs/ui": "4.0.21",
|
||||||
"@mikro-orm/cli": "6.4.3",
|
"@mikro-orm/cli": "6.5.4",
|
||||||
"@mikro-orm/core": "6.4.3",
|
"@mikro-orm/core": "6.5.4",
|
||||||
"@mikro-orm/knex": "6.4.3",
|
"@mikro-orm/knex": "6.5.4",
|
||||||
"@mikro-orm/migrations": "6.4.3",
|
"@mikro-orm/migrations": "6.5.4",
|
||||||
"@mikro-orm/postgresql": "6.4.3",
|
"@mikro-orm/postgresql": "6.5.4",
|
||||||
"awilix": "^8.0.1",
|
"awilix": "^8.0.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.16.3",
|
||||||
"react-router-dom": "6.20.1"
|
"react-router-dom": "6.20.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
Reference in new issue
Block a user