Files
medusa-store/packages/medusa/package.json
Carlos R. L. Rodrigues cc73802ab3 chore(order): dml (#10292)
* ../../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

* order dml

* cleanup

* re add foerign key indexes

* wip

* chore: remove unused types

* wip

* changes

* rm raw

* autoincrement

* wip

* rel

* refactor: cleanup

* migration and models configuration adjustments

* cleanup

* number searchable

* 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

* types

* wip

* WIP type improvements

* update order models

* partially fix types temporarely

* rel

* fix: recursive type issue

* improve type inference breaks

* improve type inference breaks

* update models

* rm nullable

* default value

* repository

* update default value handling

* fix unit tests

* WIP

* toMikroORM

* fix relations

* cascades

* fix

* experimental dml hooks

* rm migration

* serial

* nullable autoincrement

* fix model

* model changes

* fix one to one DML

* order test

* fix addresses

* fix unit tests

* Re align dml entity name inference

* update model table name config

* update model table name config

* revert

* update return relation

* WIP

* hasOne

* models

* fix

* model

* initial commit

* cart service

* order module

* utils unit test

* index engine

* changeset

* merge

* fix hasOne with fk

* update

* free text filter per entity

* tests

* prod category

* property string many to many

* fix big number

* link modules migration set names

* merge

* shipping option rules

* serializer

* unit test

* fix test mikro orm init

* fix test mikro orm init

* Maintain merge object properties

* fix test mikro orm init

* prevent unit test from connecting to db

* wip

* fix test

* fix test

* link test

* schema

* models

* auto increment

* hook

* model hooks

* order

* wip

* orm version

* request return field

* fix return configuration on order model

* workflows

* core flows

* unit test

* test

* base repo

* test

* base repo

* test fix

* inventory move

* locking inventory

* test

* free text fix

* rm timeout mock

* migrate fulfillment values

* v6.4.3

* cleanup

* link-modules update sql

* revert test

* remove fake timers

---------

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
Co-authored-by: Harminder Virk <virk.officials@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-01-21 08:04:47 -05:00

145 lines
4.5 KiB
JSON

{
"name": "@medusajs/medusa",
"version": "2.3.1",
"description": "Building blocks for digital commerce",
"main": "dist/index.js",
"exports": {
"./package.json": "./package.json",
".": "./dist/index.js",
"./types": "./dist/types/index.js",
"./utils": "./dist/utils/index.js",
"./api/*": "./dist/api/*.js",
"./subscribers/*": "./dist/subscribers/*.js",
"./jobs/*": "./dist/jobs/*.js",
"./core-flows": "./dist/core-flows/index.js",
"./loaders/*": "./dist/loaders/*.js",
"./commands/*": "./dist/commands/*.js",
"./*": "./dist/modules/*.js"
},
"repository": {
"type": "git",
"url": "https://github.com/medusajs/medusa",
"directory": "packages/medusa"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"oas",
"!dist/**/__tests__",
"!dist/**/__mocks__",
"!dist/**/__fixtures__"
],
"engines": {
"node": ">=20"
},
"author": "Sebastian Rindom",
"license": "MIT",
"scripts": {
"watch": "tsc --build --watch",
"build": "rimraf dist && tsc --build",
"serve": "node dist/app.js",
"test": "jest --runInBand --bail --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts",
"test:integration": "jest --forceExit -- src/**/integration-tests/**/__tests__/**/*.ts"
},
"devDependencies": {
"@medusajs/framework": "^2.3.1",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/instrumentation": "^0.53.0",
"@opentelemetry/instrumentation-pg": "^0.44.0",
"@opentelemetry/resources": "^1.26.0",
"@opentelemetry/sdk-node": "^0.53.0",
"@opentelemetry/sdk-trace-node": "^1.26.0",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/jsonwebtoken": "^8.5.9",
"@types/lodash": "^4.14.191",
"@types/multer": "^1.4.7",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2",
"yalc": "1.0.0-pre.53"
},
"dependencies": {
"@inquirer/checkbox": "^2.3.11",
"@inquirer/input": "^2.2.9",
"@medusajs/admin-bundler": "^2.3.1",
"@medusajs/api-key": "^2.3.1",
"@medusajs/auth": "^2.3.1",
"@medusajs/auth-emailpass": "^2.3.1",
"@medusajs/auth-github": "^2.3.1",
"@medusajs/auth-google": "^2.3.1",
"@medusajs/cache-inmemory": "^2.3.1",
"@medusajs/cache-redis": "^2.3.1",
"@medusajs/cart": "^2.3.1",
"@medusajs/core-flows": "^2.3.1",
"@medusajs/currency": "^2.3.1",
"@medusajs/customer": "^2.3.1",
"@medusajs/event-bus-local": "^2.3.1",
"@medusajs/event-bus-redis": "^2.3.1",
"@medusajs/file": "^2.3.1",
"@medusajs/file-local": "^2.3.1",
"@medusajs/file-s3": "^2.3.1",
"@medusajs/fulfillment": "^2.3.1",
"@medusajs/fulfillment-manual": "^2.3.1",
"@medusajs/index": "^2.3.1",
"@medusajs/inventory": "^2.3.1",
"@medusajs/link-modules": "^2.3.1",
"@medusajs/locking": "^2.3.1",
"@medusajs/locking-postgres": "^2.3.1",
"@medusajs/locking-redis": "^2.3.1",
"@medusajs/notification": "^2.3.1",
"@medusajs/notification-local": "^2.3.1",
"@medusajs/notification-sendgrid": "^2.3.1",
"@medusajs/order": "^2.3.1",
"@medusajs/payment": "^2.3.1",
"@medusajs/payment-stripe": "^2.3.1",
"@medusajs/pricing": "^2.3.1",
"@medusajs/product": "^2.3.1",
"@medusajs/promotion": "^2.3.1",
"@medusajs/region": "^2.3.1",
"@medusajs/sales-channel": "^2.3.1",
"@medusajs/stock-location": "^2.3.1",
"@medusajs/store": "^2.3.1",
"@medusajs/tax": "^2.3.1",
"@medusajs/telemetry": "^2.3.1",
"@medusajs/user": "^2.3.1",
"@medusajs/workflow-engine-inmemory": "^2.3.1",
"@medusajs/workflow-engine-redis": "^2.3.1",
"@swc/core": "1.5.7",
"@swc/helpers": "^0.5.11",
"@types/express": "^4.17.17",
"boxen": "^5.0.1",
"chalk": "^4.0.0",
"chokidar": "^3.4.2",
"compression": "^1.7.4",
"express": "^4.21.0",
"fs-exists-cached": "^1.0.0",
"jsonwebtoken": "^9.0.2",
"lodash": "^4.17.21",
"multer": "^1.4.5-lts.1",
"node-schedule": "^2.1.1",
"qs": "^6.11.2",
"request-ip": "^3.3.0",
"slugify": "^1.6.6",
"uuid": "^9.0.0",
"zod": "3.22.4"
},
"peerDependencies": {
"@medusajs/framework": "^2.0.0",
"@mikro-orm/core": "6.4.3",
"@mikro-orm/knex": "6.4.3",
"@mikro-orm/migrations": "6.4.3",
"@mikro-orm/postgresql": "6.4.3",
"awilix": "^8.0.1",
"yalc": "1.0.0-pre.53"
},
"peerDependenciesMeta": {
"yalc": {
"optional": true
}
},
"gitHead": "cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e"
}