@jsdev_ninja/core 0.12.10 → 0.12.11

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.
@@ -47,7 +47,7 @@ export const ProductSchema = z.object({
47
47
  categoryIds: z.array(z.string().nonempty()),
48
48
 
49
49
  // @deprecated
50
- categoryList: z.array(CategorySchema),
50
+ categoryList: z.array(CategorySchema).optional(),
51
51
  // @deprecated
52
52
  categories: z.object({
53
53
  lvl0: z.array(z.string()),
@@ -55,9 +55,9 @@ export const ProductSchema = z.object({
55
55
  lvl2: z.array(z.string()),
56
56
  lvl3: z.array(z.string()),
57
57
  lvl4: z.array(z.string()),
58
- }),
58
+ }).optional(),
59
59
  // @deprecated
60
- categoryNames: z.array(z.string()),
60
+ categoryNames: z.array(z.string()).optional(),
61
61
  });
62
62
  export type TProduct = z.infer<typeof ProductSchema>;
63
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.12.10",
3
+ "version": "0.12.11",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",