@reactionary/medusa 0.9.3 → 0.9.5

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.
@@ -31,7 +31,7 @@ class MedusaProductCapability extends ProductCapability {
31
31
  config;
32
32
  alwaysIncludedFields = [
33
33
  "+metadata.*",
34
- "+categories.metadata.*",
34
+ "+categories.external_id",
35
35
  "+external_id"
36
36
  ];
37
37
  factory;
@@ -128,7 +128,7 @@ class MedusaProductFactory {
128
128
  const description = data.description || "" || data.subtitle || "";
129
129
  const parentCategories = [];
130
130
  parentCategories.push(
131
- ...data.categories?.map((cat) => cat.metadata?.["external_id"]).map((id) => CategoryIdentifierSchema.parse({ key: id || "" })) || []
131
+ ...data.categories?.map((cat) => cat.external_id).map((id) => CategoryIdentifierSchema.parse({ key: id || "" })) || []
132
132
  );
133
133
  const sharedAttributes = this.parseAttributes(context, data);
134
134
  if (!data.variants) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@reactionary/medusa",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
8
  "@medusajs/js-sdk": "^2.13.3",
9
- "@reactionary/core": "0.9.3",
9
+ "@reactionary/core": "0.9.5",
10
10
  "debug": "^4.4.3",
11
11
  "@medusajs/types": "^2.13.3",
12
12
  "zod": "4.1.9",