fuma 0.3.19 → 0.3.20

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.
@@ -140,9 +140,8 @@ export declare const z: {
140
140
  start?: Date | undefined;
141
141
  end?: Date | undefined;
142
142
  }>>]>>;
143
- boolean: zod.ZodEffects<zod.ZodOptional<zod.ZodString>, boolean, string | undefined>;
143
+ boolean: zod.ZodOptional<zod.ZodEffects<zod.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
144
144
  };
145
- booleanAsString: zod.ZodEffects<zod.ZodEnum<["true", "false"]>, boolean, "true" | "false">;
146
145
  z: typeof zod.z;
147
146
  setErrorMap(map: zod.ZodErrorMap): void;
148
147
  getErrorMap(): zod.ZodErrorMap;
@@ -67,9 +67,9 @@ const filter = {
67
67
  end: zod.date().optional()
68
68
  }).optional(),
69
69
  boolean: zod
70
- .string()
70
+ .enum(['true', 'false'])
71
+ .transform((value) => value === 'true')
71
72
  .optional()
72
- .transform((v) => v === 'true')
73
73
  };
74
74
  export const z = {
75
75
  ...zod,
@@ -78,7 +78,6 @@ export const z = {
78
78
  arrayRaw: zod.array, // TODO: remove
79
79
  relation,
80
80
  relations,
81
- filter,
82
- booleanAsString: zod.enum(['true', 'false']).transform((value) => value === 'true')
81
+ filter
83
82
  };
84
83
  export const toTuple = Object.keys;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",