zod-conf 1.0.1 → 1.0.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Simon Bobrov
3
+ Copyright (c) 2025-2026 Simon Bobrov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { boolean, number, string, enum as zenum } from 'zod';
2
- import { ZodConfSchema } from './values/define.js';
2
+ export { ZodConfSchema } from './values/define.js';
3
3
  export declare const zc: {
4
- define: <T extends import("zod").ZodRawShape>(shape: T) => ZodConfSchema<T>;
4
+ define: <T extends import("zod").ZodRawShape>(shape: T) => import("./values/define.js").ZodConfSchema<T>;
5
5
  env: (key: string) => {
6
6
  string: () => import("zod").ZodString;
7
7
  number: () => import("zod").ZodCoercedNumber<unknown>;
@@ -12,7 +12,6 @@ export declare const zc: {
12
12
  };
13
13
  };
14
14
  object: <T extends import("zod").ZodRawShape>(shape: T) => import("zod").ZodObject<T>;
15
- ZodConfSchema: typeof ZodConfSchema;
16
15
  string: typeof string;
17
16
  boolean: typeof boolean;
18
17
  number: typeof number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAU,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI3D,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;CAYd,CAAC;AAEF,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAK7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;CAWd,CAAC;AAEF,eAAe,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { boolean, number, string, enum as zenum } from 'zod';
2
- import { define, ZodConfSchema } from './values/define.js';
2
+ import { define } from './values/define.js';
3
3
  import { env } from './values/env.js';
4
4
  import { object } from './values/object.js';
5
+ export { ZodConfSchema } from './values/define.js';
5
6
  export const zc = {
6
7
  // core values
7
8
  define,
8
9
  env,
9
10
  object,
10
- ZodConfSchema,
11
11
  // re-export common zod values for convenience
12
12
  string,
13
13
  boolean,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,CAAC,MAAM,EAAE,GAAG;IAEhB,MAAM;IACN,GAAG;IACH,MAAM;IACN,aAAa;IAGb,MAAM;IACN,OAAO;IACP,MAAM;IACN,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,EAAE,GAAG;IAEhB,MAAM;IACN,GAAG;IACH,MAAM;IAGN,MAAM;IACN,OAAO;IACP,MAAM;IACN,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod-conf",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Type-safe configuration management with Zod schemas and environment variables",
5
5
  "license": "MIT",
6
6
  "author": "smnbbrv",
@@ -57,24 +57,24 @@
57
57
  "zod": "^4.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@commitlint/cli": "^19.8.1",
61
- "@commitlint/config-conventional": "^19.8.1",
60
+ "@commitlint/cli": "^20.4.1",
61
+ "@commitlint/config-conventional": "^20.4.1",
62
62
  "@semantic-release/changelog": "^6.0.3",
63
63
  "@semantic-release/git": "^10.0.1",
64
- "@types/node": "^24.3.1",
65
- "@typescript-eslint/eslint-plugin": "^8.38.0",
66
- "dotenv": "^17.2.2",
67
- "eslint": "^9.32.0",
64
+ "@types/node": "^25.2.0",
65
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
66
+ "dotenv": "^17.2.3",
67
+ "eslint": "^9.39.2",
68
68
  "eslint-config-prettier": "^10.1.8",
69
69
  "eslint-import-resolver-typescript": "^4.4.4",
70
70
  "eslint-plugin-import": "^2.32.0",
71
- "eslint-plugin-prettier": "^5.5.3",
71
+ "eslint-plugin-prettier": "^5.5.5",
72
72
  "husky": "^9.1.7",
73
73
  "npm-run-all": "^4.1.5",
74
- "semantic-release": "^24.2.7",
75
- "tsx": "^4.20.5",
76
- "typescript": "^5.9.2",
77
- "typescript-eslint": "^8.38.0",
78
- "zod": "^4.0.13"
74
+ "semantic-release": "^25.0.3",
75
+ "tsx": "^4.21.0",
76
+ "typescript": "^5.9.3",
77
+ "typescript-eslint": "^8.54.0",
78
+ "zod": "^4.3.6"
79
79
  }
80
80
  }