Files
medusa-store/packages/core/framework/package.json
Oli Juhl 78842af1c3 fix: Compute "virtual" adjustments for order previews (#13306)
* wip

* add wip

* wip

* reuse action

* finish first draft

* fix tests

* cleanup

* Only compute adjustments when necessary

* Create hot-carrots-look.md

* address comments

* minor tweaks

* fix pay col

* fix test

* wip

* Dwip

* wip

* fix: adjustment typo

* fix: import

* fix: workflow imports

* wip: update test

* feat: upsert versioned  adjustments when previewing order

* fix: revert unique codes change

* fix: order spec test with versioning

* wip: save

* feat: make adjustments work for preview and confirm flow, wip base repo filtering of older version adjustments

* fix: missing populate where

* wip: populate where loading versioned adjustments

* fix: filter out older adjustment versions

* temp: comment adjustments in repo

* test: add adjustment if no version

* wip: configure populate where in order base repository

* fix: rm manual filtering

* fix: revert base repo changes

* fix: revert

* fix: use order item version instead of order version

* fix: rm only in test

* fix: update case spec

* fix: remove sceanrio, wip test with draft promotion

* feat: test correct adjustments when disabling promotion

* feat: complex test case

* feat: test consecutive order edits

* feat: 2 promotions test case with a fixed promo

* feat: migrate existing order line item adjustments to order items latest version

* feat: update dep after merge

* wip: load adjustments separatley

* feat: adjustments collections

* fix: spread result, handle related entity case

* fix: update lock

* feat: make sure version is loaded, refactor, handle related entity case

* fix: check fields

* feat: loading adjustments for list and count

* fix: correct items version field

* fix: rm empty array

* fix: wip order modules spec

* fix: order module specs

* feat: preinit items adjustments

* fix: rm only

* fix: rm only

* chore: cleanup

* fix: migration files

* fix: dont change formatting

* fix: core package build

* chore: more cleanup

* fix: item update util

* fix: duplicate import

* fix: refresh adjustments for exchanges (#13992)

* wip: exchange adjustments

* feat: test - receive items

* feat: finish test case

* fix: casing

* fix(draft-orders, core-flows, orders) refresh adjustments for draft orders (#14025)

* wip: draft orders adjustments refresh

* feat: rewrite to use REPLACE action + test

* fix: rm only

* feat: cleanup old REPLACE actions

* feat: cleanup adjustemnts when 0 promotions

* wip: canceling draft order

* fix: make version arg optional

* fix: restore promotion links

* feat: test reverting on cancelation

* fix: address comments in tests

* wip: fix summary on preview

* fix: get pending diff on preview summary from total

* fix: revert pending diff change

---------

Co-authored-by: fPolic <mainacc.polic@gmail.com>
Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
2025-11-25 10:41:14 +01:00

120 lines
3.7 KiB
JSON

{
"name": "@medusajs/framework",
"version": "2.11.3",
"description": "Framework",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"!dist/**/__tests__",
"!dist/**/__mocks__",
"!dist/**/__fixtures__"
],
"bin": {
"medusa-mikro-orm": "./dist/mikro-orm-cli/bin.js"
},
"exports": {
".": "./dist/index.js",
"./config": "./dist/config/index.js",
"./caching": "./dist/caching/index.js",
"./logger": "./dist/logger/index.js",
"./database": "./dist/database/index.js",
"./subscribers": "./dist/subscribers/index.js",
"./workflows": "./dist/workflows/index.js",
"./links": "./dist/links/index.js",
"./jobs": "./dist/jobs/index.js",
"./http": "./dist/http/index.js",
"./telemetry": "./dist/telemetry/index.js",
"./feature-flags": "./dist/feature-flags/index.js",
"./utils": "./dist/utils/index.js",
"./types": "./dist/types/index.js",
"./build-tools": "./dist/build-tools/index.js",
"./orchestration": "./dist/orchestration/index.js",
"./workflows-sdk": "./dist/workflows-sdk/index.js",
"./workflows-sdk/composer": "./dist/workflows-sdk/composer.js",
"./modules-sdk": "./dist/modules-sdk/index.js",
"./migrations": "./dist/migrations/index.js",
"./mikro-orm/cli": "./dist/deps/mikro-orm-cli.js",
"./mikro-orm/core": "./dist/deps/mikro-orm-core.js",
"./mikro-orm/knex": "./dist/deps/mikro-orm-knex.js",
"./mikro-orm/migrations": "./dist/deps/mikro-orm-migrations.js",
"./mikro-orm/postgresql": "./dist/deps/mikro-orm-postgresql.js",
"./opentelemetry/instrumentation-pg": "./dist/deps/opentelemetry-instrumentation-pg.js",
"./opentelemetry/sdk-node": "./dist/deps/opentelemetry-sdk-node.js",
"./opentelemetry/sdk-trace-node": "./dist/deps/opentelemetry-sdk-trace-node.js",
"./opentelemetry/resources": "./dist/deps/opentelemetry-resources.js",
"./opentelemetry/api": "./dist/deps/opentelemetry-api.js",
"./awilix": "./dist/deps/awilix.js",
"./pg": "./dist/deps/pg.js"
},
"engines": {
"node": ">=20"
},
"repository": {
"type": "git",
"url": "https://github.com/medusajs/medusa",
"directory": "packages/core/framework"
},
"publishConfig": {
"access": "public"
},
"author": "Medusa",
"license": "MIT",
"scripts": {
"watch": "yarn run -T tsc --watch ",
"watch:test": "yarn run -T tsc --watch",
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"test": "../../../node_modules/.bin/jest --bail --forceExit --testPathPattern=src"
},
"devDependencies": {
"@medusajs/cli": "2.11.3"
},
"dependencies": {
"@jercle/yargonaut": "^1.1.5",
"@medusajs/deps": "2.11.3",
"@medusajs/modules-sdk": "2.11.3",
"@medusajs/orchestration": "2.11.3",
"@medusajs/telemetry": "2.11.3",
"@medusajs/types": "2.11.3",
"@medusajs/utils": "2.11.3",
"@medusajs/workflows-sdk": "2.11.3",
"@types/express": "^4.17.21",
"chokidar": "^3.5.3",
"compression": "^1.8.1",
"connect-redis": "5.2.0",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"express": "^4.21.0",
"express-session": "^1.17.3",
"glob": "11.1.0",
"jsonwebtoken": "^9.0.2",
"lodash.memoize": "^4.1.2",
"morgan": "^1.9.1",
"path-to-regexp": "^8.2.0",
"tsconfig-paths": "^4.2.0",
"zod": "3.25.76",
"zod-validation-error": "3.5.1"
},
"peerDependencies": {
"@aws-sdk/client-dynamodb": "^3.218.0",
"@medusajs/cli": "2.11.3",
"connect-dynamodb": "^3.0.5",
"ioredis": "^5.4.1",
"vite": "^5.4.21"
},
"peerDependenciesMeta": {
"@aws-sdk/client-dynamodb": {
"optional": true
},
"connect-dynamodb": {
"optional": true
},
"ioredis": {
"optional": true
},
"vite": {
"optional": true
}
}
}