eslint-plugin-zod 4.7.0 → 4.7.1

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/README.md CHANGED
@@ -55,7 +55,7 @@ Find out more about [Oxlint's `jsPLugins`](https://oxc.rs/docs/guide/usage/linte
55
55
  | [no-promise-schema](docs/rules/no-promise-schema.md) | Disallow deprecated `z.promise()` schemas. | ✅ | | | |
56
56
  | [no-schema-with-is-nullable](docs/rules/no-schema-with-is-nullable.md) | Disallow deprecated `.isNullable()` on a Zod schema; use `safeParse(null).success` instead. | ✅ | | | |
57
57
  | [no-schema-with-is-optional](docs/rules/no-schema-with-is-optional.md) | Disallow deprecated `.isOptional()` on a Zod schema; use `safeParse(undefined).success` instead. | ✅ | | | |
58
- | [no-string-schema-with-uuid](docs/rules/no-string-schema-with-uuid.md) | Disallow usage of `z.string().uuid()` in favor of the dedicated `z.uuid()` schema || 🔧 | | ❌ |
58
+ | [no-string-schema-with-uuid](docs/rules/no-string-schema-with-uuid.md) | Disallow usage of `z.string().uuid()` in favor of the dedicated `z.uuid()` schema | | 🔧 | | ❌ |
59
59
  | [no-throw-in-refine](docs/rules/no-throw-in-refine.md) | Disallow throwing errors directly inside Zod refine callbacks | ✅ | | | |
60
60
  | [no-transform-in-record-key](docs/rules/no-transform-in-record-key.md) | Disallow transforms in z.record() key schemas, which can cause silent key mutations and data loss through key collisions | | | | |
61
61
  | [no-unknown-schema](docs/rules/no-unknown-schema.md) | Disallow usage of `z.unknown()` in Zod schemas | | | | |
package/dist/index.cjs CHANGED
@@ -99,7 +99,6 @@ const recommendedConfig = {
99
99
  "zod/no-number-schema-with-is-int": "error",
100
100
  "zod/no-number-schema-with-safe": "error",
101
101
  "zod/no-number-schema-with-step": "error",
102
- "zod/no-string-schema-with-uuid": "error",
103
102
  "zod/no-optional-and-default-together": "error",
104
103
  "zod/no-promise-schema": "error",
105
104
  "zod/no-schema-with-is-nullable": "error",
package/dist/index.mjs CHANGED
@@ -99,7 +99,6 @@ const recommendedConfig = {
99
99
  "zod/no-number-schema-with-is-int": "error",
100
100
  "zod/no-number-schema-with-safe": "error",
101
101
  "zod/no-number-schema-with-step": "error",
102
- "zod/no-string-schema-with-uuid": "error",
103
102
  "zod/no-optional-and-default-together": "error",
104
103
  "zod/no-promise-schema": "error",
105
104
  "zod/no-schema-with-is-nullable": "error",
@@ -179,4 +179,5 @@ const preferTopLevelStringFormats = require_create_plugin_rule.createZodPluginRu
179
179
  }
180
180
  });
181
181
  //#endregion
182
+ exports.TOP_LEVEL_STRING_FORMATS = TOP_LEVEL_STRING_FORMATS;
182
183
  exports.preferTopLevelStringFormats = preferTopLevelStringFormats;
@@ -179,4 +179,4 @@ const preferTopLevelStringFormats = createZodPluginRule({
179
179
  }
180
180
  });
181
181
  //#endregion
182
- export { preferTopLevelStringFormats };
182
+ export { TOP_LEVEL_STRING_FORMATS, preferTopLevelStringFormats };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-zod",
3
- "version": "4.7.0",
3
+ "version": "4.7.1",
4
4
  "description": "ESLint plugin that adds custom linting rules to enforce best practices when using Zod",
5
5
  "keywords": [
6
6
  "eslint",
@@ -38,17 +38,18 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@typescript-eslint/utils": "^8.57.0",
41
+ "@typescript-eslint/utils": "^8.62.0",
42
42
  "@eslint-zod/utils": "2.3.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@marcalexiei/prettier-config": "2.0.0",
46
- "@typescript-eslint/rule-tester": "8.60.0",
46
+ "@typescript-eslint/rule-tester": "8.62.1",
47
47
  "dedent": "1.7.2",
48
48
  "eslint-doc-generator": "3.6.0",
49
- "prettier": "3.8.3",
50
- "tsdown": "0.22.1",
51
- "vitest": "4.1.7"
49
+ "prettier": "3.9.4",
50
+ "tsdown": "0.22.3",
51
+ "vitest": "4.1.9",
52
+ "@eslint-zod/test-utils": "0.0.0"
52
53
  },
53
54
  "peerDependencies": {
54
55
  "eslint": "^9 || ^10",