zodified-config 1.0.6 → 2.0.0

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ const validate = (schema) => {
18
18
  try {
19
19
  const result = schema.safeParse(config_1.default);
20
20
  if (result.success === false) {
21
- throw new ZodValidationError('INVALID_CONFIG', result.error.errors);
21
+ throw new ZodValidationError('INVALID_CONFIG', result.error.issues);
22
22
  }
23
23
  return true;
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zodified-config",
3
- "version": "1.0.6",
3
+ "version": "2.0.0",
4
4
  "description": "Typesafe config validated by Zod",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "config": "^3.3.12",
26
- "zod": "^3.23.8"
26
+ "zod": "^4.1.5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@eslint/js": "^9.22.0",