From e181a42910416ac24a9d245d921894f26b624fc9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 17 Mar 2023 15:21:07 +0000 Subject: [PATCH] Version Packages --- .changeset/chilled-dingos-call.md | 14 -------------- lib/CHANGELOG.md | 15 +++++++++++++++ lib/package.json | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 .changeset/chilled-dingos-call.md diff --git a/.changeset/chilled-dingos-call.md b/.changeset/chilled-dingos-call.md deleted file mode 100644 index 8f03d077..00000000 --- a/.changeset/chilled-dingos-call.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"openapi-zod-client": minor ---- - -## Feature: Support for Datetime string format - -> **Warning**
-> Upgrade your zod package to version >= 3.2.0 - -Because zod now supports validating strings as proper ISO datetimes with `.datetime()` since [Zod 3.2.0](https://github.com/colinhacks/zod/releases/tag/v3.20), and 'date-time' is one of the supported string `format` values in the OpenAPI and JSON Schema spec. Any string with that datetime format will now be validated as being a ISO UTC datetime string. - -## Fixed: Minimum 0 and MinLength 0 - -Minimum 0 and MinLength 0 were not being converted to `.gte()` and `.min()` because of a type coercion bug. diff --git a/lib/CHANGELOG.md b/lib/CHANGELOG.md index 80d963f7..f61ebc30 100644 --- a/lib/CHANGELOG.md +++ b/lib/CHANGELOG.md @@ -1,5 +1,20 @@ # openapi-zod-client +## 1.6.0 + +### Minor Changes + +- [#98](https://github.com/astahmer/openapi-zod-client/pull/98) [`3e2406d`](https://github.com/astahmer/openapi-zod-client/commit/3e2406d8432e3f1de6edcf635e9946304533e38d) Thanks [@sirtimbly](https://github.com/sirtimbly)! - ## Feature: Support for Datetime string format + + > **Warning**
+ > Upgrade your zod package to version >= 3.2.0 + + Because zod now supports validating strings as proper ISO datetimes with `.datetime()` since [Zod 3.2.0](https://github.com/colinhacks/zod/releases/tag/v3.20), and 'date-time' is one of the supported string `format` values in the OpenAPI and JSON Schema spec. Any string with that datetime format will now be validated as being a ISO UTC datetime string. + + ## Fixed: Minimum 0 and MinLength 0 + + Minimum 0 and MinLength 0 were not being converted to `.gte()` and `.min()` because of a type coercion bug. + ## 1.5.8 ### Patch Changes diff --git a/lib/package.json b/lib/package.json index 386e4738..7cf6327f 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "openapi-zod-client", - "version": "1.5.8", + "version": "1.6.0", "repository": { "type": "git", "url": "https://github.com/astahmer/openapi-zod-client.git"