drizzle-zod 0.8.2 → 0.8.3-e8ab855

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/column.d.cts CHANGED
@@ -2,7 +2,7 @@ import type { Column } from 'drizzle-orm';
2
2
  import { z as zod } from 'zod/v4';
3
3
  import type { CreateSchemaFactoryOptions } from "./schema.types.cjs";
4
4
  import type { Json } from "./utils.cjs";
5
- export declare const literalSchema: any;
5
+ export declare const literalSchema: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodNull]>;
6
6
  export declare const jsonSchema: zod.ZodType<Json>;
7
7
  export declare const bufferSchema: zod.ZodType<Buffer>;
8
8
  export declare function columnToSchema(column: Column, factory: CreateSchemaFactoryOptions<Partial<Record<'bigint' | 'boolean' | 'date' | 'number' | 'string', true>> | true | undefined> | undefined): zod.ZodType;
package/column.d.mts CHANGED
@@ -2,7 +2,7 @@ import type { Column } from 'drizzle-orm';
2
2
  import { z as zod } from 'zod/v4';
3
3
  import type { CreateSchemaFactoryOptions } from "./schema.types.mjs";
4
4
  import type { Json } from "./utils.mjs";
5
- export declare const literalSchema: any;
5
+ export declare const literalSchema: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodNull]>;
6
6
  export declare const jsonSchema: zod.ZodType<Json>;
7
7
  export declare const bufferSchema: zod.ZodType<Buffer>;
8
8
  export declare function columnToSchema(column: Column, factory: CreateSchemaFactoryOptions<Partial<Record<'bigint' | 'boolean' | 'date' | 'number' | 'string', true>> | true | undefined> | undefined): zod.ZodType;
package/column.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { Column } from 'drizzle-orm';
2
2
  import { z as zod } from 'zod/v4';
3
3
  import type { CreateSchemaFactoryOptions } from './schema.types.js';
4
4
  import type { Json } from './utils.js';
5
- export declare const literalSchema: any;
5
+ export declare const literalSchema: zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodNull]>;
6
6
  export declare const jsonSchema: zod.ZodType<Json>;
7
7
  export declare const bufferSchema: zod.ZodType<Buffer>;
8
8
  export declare function columnToSchema(column: Column, factory: CreateSchemaFactoryOptions<Partial<Record<'bigint' | 'boolean' | 'date' | 'number' | 'string', true>> | true | undefined> | undefined): zod.ZodType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-zod",
3
- "version": "0.8.2",
3
+ "version": "0.8.3-e8ab855",
4
4
  "description": "Generate Zod schemas from Drizzle ORM schemas",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -65,7 +65,7 @@
65
65
  "license": "Apache-2.0",
66
66
  "peerDependencies": {
67
67
  "drizzle-orm": ">=0.36.0",
68
- "zod": "^3.25.1"
68
+ "zod": "^3.25.0 || ^4.0.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^11.1.0",