@medusajs/product 2.12.2 → 2.12.3-preview-20251216210141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Migration } from "@mikro-orm/migrations";
1
+ import { Migration } from "@medusajs/framework/mikro-orm/migrations";
2
2
  export declare class Migration20250910154539 extends Migration {
3
3
  up(): Promise<void>;
4
4
  down(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20250910154539.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250910154539.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQrC"}
1
+ {"version":3,"file":"Migration20250910154539.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250910154539.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAEpE,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQrC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Migration20250910154539 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
4
+ const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
5
5
  class Migration20250910154539 extends migrations_1.Migration {
6
6
  async up() {
7
7
  this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_image_product_id" ON "image" (product_id) WHERE deleted_at IS NULL;`);
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20250910154539.js","sourceRoot":"","sources":["../../src/migrations/Migration20250910154539.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,qGAAqG,CACtG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qGAAqG,CACtG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+FAA+F,CAChG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iGAAiG,CAClG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iIAAiI,CAClI,CAAA;QACD,IAAI,CAAC,MAAM,CACT,wHAAwH,CACzH,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAA;QAC3D,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAA;QAC3D,IAAI,CAAC,MAAM,CAAC,+CAA+C,CAAC,CAAA;QAC5D,IAAI,CAAC,MAAM,CAAC,gDAAgD,CAAC,CAAA;QAC7D,IAAI,CAAC,MAAM,CAAC,+DAA+D,CAAC,CAAA;QAC5E,IAAI,CAAC,MAAM,CAAC,2DAA2D,CAAC,CAAA;IAC1E,CAAC;CACF;AA9BD,0DA8BC"}
1
+ {"version":3,"file":"Migration20250910154539.js","sourceRoot":"","sources":["../../src/migrations/Migration20250910154539.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAEpE,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,qGAAqG,CACtG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qGAAqG,CACtG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+FAA+F,CAChG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iGAAiG,CAClG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iIAAiI,CAClI,CAAA;QACD,IAAI,CAAC,MAAM,CACT,wHAAwH,CACzH,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAA;QAC3D,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAA;QAC3D,IAAI,CAAC,MAAM,CAAC,+CAA+C,CAAC,CAAA;QAC5D,IAAI,CAAC,MAAM,CAAC,gDAAgD,CAAC,CAAA;QAC7D,IAAI,CAAC,MAAM,CAAC,+DAA+D,CAAC,CAAA;QAC5E,IAAI,CAAC,MAAM,CAAC,2DAA2D,CAAC,CAAA;IAC1E,CAAC;CACF;AA9BD,0DA8BC"}
@@ -1,4 +1,4 @@
1
- import { Migration } from "@mikro-orm/migrations";
1
+ import { Migration } from "@medusajs/framework/mikro-orm/migrations";
2
2
  export declare class Migration20250929204438 extends Migration {
3
3
  up(): Promise<void>;
4
4
  down(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20250929204438.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250929204438.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
1
+ {"version":3,"file":"Migration20250929204438.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20250929204438.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAEpE,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Migration20250929204438 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
4
+ const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
5
5
  class Migration20250929204438 extends migrations_1.Migration {
6
6
  async up() {
7
7
  this.addSql(`create table if not exists "product_variant_product_image" (
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20250929204438.js","sourceRoot":"","sources":["../../src/migrations/Migration20250929204438.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT;;;;;;;;;;SAUG,CACJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qJAAqJ,CACtJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iJAAiJ,CAClJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qJAAqJ,CACtJ,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,+DAA+D,CAAC,CAAA;IAC9E,CAAC;CACF;AA7BD,0DA6BC"}
1
+ {"version":3,"file":"Migration20250929204438.js","sourceRoot":"","sources":["../../src/migrations/Migration20250929204438.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAEpE,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT;;;;;;;;;;SAUG,CACJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qJAAqJ,CACtJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iJAAiJ,CAClJ,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qJAAqJ,CACtJ,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,+DAA+D,CAAC,CAAA;IAC9E,CAAC;CACF;AA7BD,0DA6BC"}
@@ -1,4 +1,4 @@
1
- import { Migration } from "@mikro-orm/migrations";
1
+ import { Migration } from "@medusajs/framework/mikro-orm/migrations";
2
2
  export declare class Migration20251008132218 extends Migration {
3
3
  up(): Promise<void>;
4
4
  down(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20251008132218.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251008132218.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAKrC"}
1
+ {"version":3,"file":"Migration20251008132218.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251008132218.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAEpE,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAKrC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Migration20251008132218 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
4
+ const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
5
5
  class Migration20251008132218 extends migrations_1.Migration {
6
6
  async up() {
7
7
  this.addSql(`alter table if exists "product_variant" add column if not exists "thumbnail" text null;`);
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20251008132218.js","sourceRoot":"","sources":["../../src/migrations/Migration20251008132218.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,yFAAyF,CAC1F,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CACT,4EAA4E,CAC7E,CAAA;IACH,CAAC;CACF;AAZD,0DAYC"}
1
+ {"version":3,"file":"Migration20251008132218.js","sourceRoot":"","sources":["../../src/migrations/Migration20251008132218.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAEpE,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,yFAAyF,CAC1F,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CACT,4EAA4E,CAC7E,CAAA;IACH,CAAC;CACF;AAZD,0DAYC"}
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/joiner-config.ts","../src/migrations/initialsetup20240401153642.ts","../src/migrations/migration20240601111544.ts","../src/migrations/migration202408271511.ts","../src/migrations/migration20241122120331.ts","../src/migrations/migration20241125090957.ts","../src/migrations/migration20250411073236.ts","../src/migrations/migration20250516081326.ts","../src/migrations/migration20250910154539.ts","../src/migrations/migration20250911092221.ts","../src/migrations/migration20250929204438.ts","../src/migrations/migration20251008132218.ts","../src/migrations/migration20251011090511.ts","../src/models/index.ts","../src/models/product-category.ts","../src/models/product-collection.ts","../src/models/product-image.ts","../src/models/product-option-value.ts","../src/models/product-option.ts","../src/models/product-tag.ts","../src/models/product-type.ts","../src/models/product-variant-product-image.ts","../src/models/product-variant.ts","../src/models/product.ts","../src/repositories/index.ts","../src/repositories/product-category.ts","../src/repositories/product.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/product-category.ts","../src/services/product-module-service.ts","../src/services/__tests__/index.ts","../src/types/index.ts","../src/utils/events.ts","../src/utils/index.ts"],"version":"5.9.3"}
1
+ {"root":["../src/index.ts","../src/joiner-config.ts","../src/migrations/InitialSetup20240401153642.ts","../src/migrations/Migration20240601111544.ts","../src/migrations/Migration202408271511.ts","../src/migrations/Migration20241122120331.ts","../src/migrations/Migration20241125090957.ts","../src/migrations/Migration20250411073236.ts","../src/migrations/Migration20250516081326.ts","../src/migrations/Migration20250910154539.ts","../src/migrations/Migration20250911092221.ts","../src/migrations/Migration20250929204438.ts","../src/migrations/Migration20251008132218.ts","../src/migrations/Migration20251011090511.ts","../src/models/index.ts","../src/models/product-category.ts","../src/models/product-collection.ts","../src/models/product-image.ts","../src/models/product-option-value.ts","../src/models/product-option.ts","../src/models/product-tag.ts","../src/models/product-type.ts","../src/models/product-variant-product-image.ts","../src/models/product-variant.ts","../src/models/product.ts","../src/repositories/index.ts","../src/repositories/product-category.ts","../src/repositories/product.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/product-category.ts","../src/services/product-module-service.ts","../src/services/__tests__/index.ts","../src/types/index.ts","../src/utils/events.ts","../src/utils/index.ts"],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/product",
3
- "version": "2.12.2",
3
+ "version": "2.12.3-preview-20251216210141",
4
4
  "description": "Medusa Product module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,10 +36,10 @@
36
36
  "orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
37
37
  },
38
38
  "devDependencies": {
39
- "@medusajs/framework": "2.12.2",
40
- "@medusajs/test-utils": "2.12.2"
39
+ "@medusajs/framework": "2.12.3-preview-20251216210141",
40
+ "@medusajs/test-utils": "2.12.3-preview-20251216210141"
41
41
  },
42
42
  "peerDependencies": {
43
- "@medusajs/framework": "2.12.2"
43
+ "@medusajs/framework": "2.12.3-preview-20251216210141"
44
44
  }
45
45
  }