@medusajs/product 2.11.1-snapshot-20251021125705 → 2.11.1-snapshot-20251022072519
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.
- package/dist/migrations/Migration20251011090511.d.ts +6 -0
- package/dist/migrations/Migration20251011090511.d.ts.map +1 -0
- package/dist/migrations/Migration20251011090511.js +16 -0
- package/dist/migrations/Migration20251011090511.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20251011090511.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251011090511.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAOnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAMrC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20251011090511 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20251011090511 extends migrations_1.Migration {
|
|
6
|
+
// UP: Fixes the bug by dropping the bad index from product_collection.
|
|
7
|
+
async up() {
|
|
8
|
+
this.addSql('DROP INDEX IF EXISTS "IDX_product_category_deleted_at";');
|
|
9
|
+
}
|
|
10
|
+
// DOWN: Reverts the fix by re-creating the original bug.
|
|
11
|
+
async down() {
|
|
12
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_product_category_deleted_at" ON "product_collection" ("deleted_at");');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Migration20251011090511 = Migration20251011090511;
|
|
16
|
+
//# sourceMappingURL=Migration20251011090511.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20251011090511.js","sourceRoot":"","sources":["../../src/migrations/Migration20251011090511.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IACtD,uEAAuE;IAC5D,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,yDAAyD,CAC1D,CAAC;IACJ,CAAC;IAED,yDAAyD;IAChD,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CACT,sGAAsG,CACvG,CAAC;IACJ,CAAC;CAEF;AAfD,0DAeC"}
|
|
@@ -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/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.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.6.2"}
|
|
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/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.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.6.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/product",
|
|
3
|
-
"version": "2.11.1-snapshot-
|
|
3
|
+
"version": "2.11.1-snapshot-20251022072519",
|
|
4
4
|
"description": "Medusa Product module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,8 +36,8 @@
|
|
|
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.11.1-snapshot-
|
|
40
|
-
"@medusajs/test-utils": "2.11.1-snapshot-
|
|
39
|
+
"@medusajs/framework": "2.11.1-snapshot-20251022072519",
|
|
40
|
+
"@medusajs/test-utils": "2.11.1-snapshot-20251022072519",
|
|
41
41
|
"@swc/core": "^1.7.28",
|
|
42
42
|
"@swc/jest": "^0.2.36",
|
|
43
43
|
"faker": "^5.5.3",
|
|
@@ -47,6 +47,6 @@
|
|
|
47
47
|
"typescript": "^5.6.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@medusajs/framework": "2.11.1-snapshot-
|
|
50
|
+
"@medusajs/framework": "2.11.1-snapshot-20251022072519"
|
|
51
51
|
}
|
|
52
52
|
}
|