eslint-plugin-zod-v4 0.3.0 → 0.4.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.
- package/README.md +17 -3
- package/dist/index.cjs +3808 -3431
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -31
- package/dist/index.d.ts +97 -31
- package/dist/index.js +3808 -3431
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -22,12 +22,12 @@ npm install --save-dev eslint-plugin-zod-v4
|
|
|
22
22
|
|
|
23
23
|
## Requirements
|
|
24
24
|
|
|
25
|
-
- ESLint >= 9.0.0
|
|
26
|
-
- Node.js >=
|
|
25
|
+
- ESLint >= 9.0.0 (supports ESLint 9.x and 10.x)
|
|
26
|
+
- Node.js >= 20.19.0 (ESLint 10 requires Node 20.19+, 22.13+, or 24+)
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
30
|
-
### ESLint 9+ (Flat Config)
|
|
30
|
+
### ESLint 9+ / 10+ (Flat Config)
|
|
31
31
|
|
|
32
32
|
```javascript
|
|
33
33
|
// eslint.config.js
|
|
@@ -303,6 +303,20 @@ schema.partial() // shallow only
|
|
|
303
303
|
|
|
304
304
|
## Changelog
|
|
305
305
|
|
|
306
|
+
### v0.4.0 (2026-06-21)
|
|
307
|
+
|
|
308
|
+
**ESLint 10 Compatibility:**
|
|
309
|
+
- Peer dependency updated to support both ESLint 9.x and 10.x (`"eslint": "^9.0.0 || ^10.0.0"`).
|
|
310
|
+
- Minimum Node.js bumped to `20.19.0` to match ESLint 10's engine requirements.
|
|
311
|
+
- Plugin `meta` now exposes `namespace: "zod-v4"` so the plugin resolves correctly under flat config (`--cache`, `--print-config`).
|
|
312
|
+
- Plugin `meta.version` is now in sync with the published package version.
|
|
313
|
+
- `eslint.config.js` rewritten to use `parserOptions.projectService` (recommended by `@typescript-eslint` v8) so tests and config files lint cleanly without polluting the type-aware scope.
|
|
314
|
+
- Resolved 10 transitive vulnerabilities (`npm audit fix`) in dev dependencies.
|
|
315
|
+
|
|
316
|
+
**Notes:**
|
|
317
|
+
- No rule code changes required — the plugin already used the modern flat config APIs and does not rely on any `context`/`SourceCode` methods removed in ESLint 10.
|
|
318
|
+
- Fixes a pre-existing TypeScript inference bug in `src/utils/zod-helpers.ts` (`findRootZodCall`) that surfaced under `strict` + `noUncheckedIndexedAccess`.
|
|
319
|
+
|
|
306
320
|
### v0.3.0 (2025-02-21)
|
|
307
321
|
|
|
308
322
|
**New Rules:**
|