Feat(medusa-test-utils, utils, pricing, product, link-modules): upgrade mikro orm version to latest (#5985)
* update mikro-orm version * add changeset * update product tests * add optional number serializer util * upgrade cart mikro-orm versions * clean up test
This commit is contained in:
@@ -31,9 +31,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/types": "^1.11.9",
|
||||
"@mikro-orm/core": "5.7.12",
|
||||
"@mikro-orm/migrations": "5.7.12",
|
||||
"@mikro-orm/postgresql": "5.7.12",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
"awilix": "^8.0.1",
|
||||
"knex": "2.4.2",
|
||||
"ulid": "^2.3.0"
|
||||
|
||||
@@ -21,6 +21,7 @@ export * from "./map-object-to"
|
||||
export * from "./medusa-container"
|
||||
export * from "./object-from-string-path"
|
||||
export * from "./object-to-string-path"
|
||||
export * from "./optional-numeric-serializer"
|
||||
export * from "./promise-all"
|
||||
export * from "./remote-query-object-from-string"
|
||||
export * from "./remote-query-object-to-string"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { isDefined } from "./is-defined"
|
||||
|
||||
export const optionalNumericSerializer = (value) =>
|
||||
isDefined(value) && value !== null ? Number(value) : value
|
||||
Reference in New Issue
Block a user