koa-zod-router
Advanced tools
Comparing version 2.0.1 to 2.1.0
# koa-zod-router | ||
## 2.1.0 | ||
### Minor Changes | ||
- 5995387: Fix incorrect ZodError type for ctx.invalid | ||
## 2.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -10,7 +10,7 @@ import KoaRouter, { LayerOptions, RouterOptions } from '@koa/router'; | ||
interface ZodRouterInvalid { | ||
body?: ZodError[]; | ||
headers?: ZodError[]; | ||
params?: ZodError[]; | ||
query?: ZodError[]; | ||
files?: ZodError[]; | ||
body?: ZodError; | ||
headers?: ZodError; | ||
params?: ZodError; | ||
query?: ZodError; | ||
files?: ZodError; | ||
error?: boolean; | ||
@@ -20,3 +20,3 @@ } | ||
requestParameter: 'body' | 'headers' | 'params' | 'query' | 'files'; | ||
error: ZodError<T>[]; | ||
error: ZodError<T>; | ||
}; | ||
@@ -23,0 +23,0 @@ interface ZodContext<Headers, Params, Query, Body, Files> extends Context { |
{ | ||
"name": "koa-zod-router", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "", | ||
@@ -43,15 +43,15 @@ "main": "dist/index.js", | ||
"koa-bodyparser": "^4.4.1", | ||
"zod": "^3.21.4" | ||
"zod": "^3.22.1" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.26.2", | ||
"@types/koa": "^2.13.6", | ||
"@types/node": "^18.16.19", | ||
"@types/koa": "^2.13.8", | ||
"@types/node": "^18.17.5", | ||
"@types/supertest": "^2.0.12", | ||
"@typescript-eslint/eslint-plugin": "^5.61.0", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"@typescript-eslint/eslint-plugin": "^5.62.0", | ||
"@typescript-eslint/parser": "^5.62.0", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.44.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint": "^8.47.0", | ||
"eslint-config-prettier": "^8.10.0", | ||
"eslint-plugin-import": "^2.28.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
@@ -67,3 +67,3 @@ "husky": "^8.0.3", | ||
"tsup": "^6.7.0", | ||
"turbo": "^1.10.7", | ||
"turbo": "^1.10.12", | ||
"typescript": "5.0.4" | ||
@@ -70,0 +70,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57021
Updatedzod@^3.22.1