* feat: convert MikroORM entities to DML entities * feat: wip on repository changes * continue repositories and types rework * fix order repository usage * continue to update product category repository * Add foreign key as part of the inferred DML type * ../../core/types/src/dml/index.ts * ../../core/types/src/dml/index.ts * fix: relationships mapping * handle nullable foreign keys types * handle nullable foreign keys types * handle nullable foreign keys types * continue to update product category repository * fix all product category repositories issues * fix product category service types * fix product module service types * fix product module service types * fix repository template type * refactor: use a singleton DMLToMikroORM factory instance Since the MikroORM MetadataStorage is global, we will also have to turn DML to MikroORM entities conversion use a global bucket as well * refactor: update product module to use DML in tests * wip: tests * WIP product linkable fixes * continue type fixing and start test fixing * test: fix more tests * fix repository * fix pivot table computaion + fix mikro orm repository * fix many to many management and configuration * fix many to many management and configuration * fix many to many management and configuration * update product tag relation configuration * Introduce experimental dml hooks to fix some issues with categories * more fixes * fix product tests * add missing id prefixes * fix product category handle management * test: fix more failing tests * test: make it all green * test: fix breaking tests * fix: build issues * fix: build issues * fix: more breaking tests * refactor: fix issues after merge * refactor: fix issues after merge * refactor: surpress types error * test: fix DML failing tests * improve many to many inference + tests * Wip fix columns from product entity * remove product model before create hook and manage handle validation and transformation at the service level * test: fix breaking unit tests * fix: product module service to not update handle on product update * fix define link and joiner config * test: fix joiner config test * test: fix joiner config test * fix joiner config primary keys * Fix joiner config builder * Fix joiner config builder * test: remove only modifier from test * refactor: remove hooks usage from product collection * refactor: remove hooks usage from product-option * refactor: remove hooks usage for computing category handle * refactor: remove hooks usage from productCategory model * refactor: remove hooks from DML * refactor: remove cruft * cleanup * re add foerign key indexes * chore: remove unused types * refactor: cleanup * migration and models configuration adjustments * cleanup * fix random ordering * fix * test: fix product-category tests * test: update breaking DML tests * test: array assertion to not care about ordering * fix: temporarily apply id ordering for products * fix ordering * fix ordering remove logs --------- Co-authored-by: adrien2p <adrien.deperetti@gmail.com> Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
76 lines
2.0 KiB
JSON
76 lines
2.0 KiB
JSON
{
|
|
"name": "@medusajs/utils",
|
|
"version": "2.0.6",
|
|
"description": "Medusa utilities functions shared by Medusa core and Modules",
|
|
"main": "dist/index.js",
|
|
"exports": {
|
|
".": "./dist/index.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/medusajs/medusa",
|
|
"directory": "packages/utils"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"!dist/**/__tests__",
|
|
"!dist/**/__mocks__",
|
|
"!dist/**/__fixtures__"
|
|
],
|
|
"author": "Medusa",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@mikro-orm/core": "5.9.7",
|
|
"@mikro-orm/knex": "5.9.7",
|
|
"@mikro-orm/migrations": "5.9.7",
|
|
"@mikro-orm/postgresql": "5.9.7",
|
|
"@swc/core": "^1.7.28",
|
|
"@swc/jest": "^0.2.36",
|
|
"@types/express": "^4.17.21",
|
|
"awilix": "^8.0.1",
|
|
"expect-type": "^0.20.0",
|
|
"express": "^4.21.0",
|
|
"jest": "^29.7.0",
|
|
"pg": "^8.13.0",
|
|
"pg-god": "^1.0.12",
|
|
"rimraf": "^5.0.1",
|
|
"typescript": "^5.6.2"
|
|
},
|
|
"dependencies": {
|
|
"@graphql-codegen/core": "^4.0.2",
|
|
"@graphql-codegen/typescript": "^4.0.9",
|
|
"@graphql-tools/merge": "^9.0.7",
|
|
"@graphql-tools/schema": "^10.0.6",
|
|
"@medusajs/types": "^2.0.6",
|
|
"bignumber.js": "^9.1.2",
|
|
"dotenv": "^16.4.5",
|
|
"dotenv-expand": "^11.0.6",
|
|
"graphql": "^16.9.0",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"pg-connection-string": "^2.7.0",
|
|
"pluralize": "^8.0.0",
|
|
"ulid": "^2.3.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@mikro-orm/core": "5.9.7",
|
|
"@mikro-orm/knex": "5.9.7",
|
|
"@mikro-orm/migrations": "5.9.7",
|
|
"@mikro-orm/postgresql": "5.9.7",
|
|
"awilix": "^8.0.1",
|
|
"express": "^4.21.0",
|
|
"pg": "^8.13.0"
|
|
},
|
|
"scripts": {
|
|
"build": "rimraf dist && tsc --build",
|
|
"watch": "tsc --build --watch",
|
|
"test": "jest --silent --bail --maxWorkers=50% --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts",
|
|
"test:integration": "jest --silent --bail --runInBand --forceExit -- src/**/integration-tests/__tests__/**/*.ts"
|
|
}
|
|
}
|