UNPKG

@anatine/zod-nestjs

Version:
197 lines (98 loc) 8.22 kB
# Changelog This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). ### [2.0.12](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.11...zod-nestjs-2.0.12) (2025-04-05) ### Bug Fixes * **zod-nestjs:** typo in @nestjs/swagger peerDep ([e9aa147](https://github.com/anatine/zod-plugins/commit/e9aa1473ade24687edeb6b35d18aa632e1962113)) ### [2.0.11](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.10...zod-nestjs-2.0.11) (2025-04-04) ### [2.0.11](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.10...zod-nestjs-2.0.11) (2025-04-04) ### [2.0.10](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.9...zod-nestjs-2.0.10) (2025-01-20) ### Bug Fixes * Improve array handling not fully functional (misses item type) [#215](https://github.com/anatine/zod-plugins/issues/215) ([deecf7b](https://github.com/anatine/zod-plugins/commit/deecf7b728d5a80a63c7814dd4607d369ebb8667)) ### [2.0.9](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.8...zod-nestjs-2.0.9) (2024-06-21) ### [2.0.8](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.7...zod-nestjs-2.0.8) (2024-03-29) ### [2.0.7](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.6...zod-nestjs-2.0.7) (2024-03-20) ### [2.0.6](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.5...zod-nestjs-2.0.6) (2024-03-19) ### [2.0.5](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.4...zod-nestjs-2.0.5) (2024-01-26) ### [2.0.4](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.3...zod-nestjs-2.0.4) (2024-01-23) ### [2.0.3](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.2...zod-nestjs-2.0.3) (2023-08-03) ### [2.0.2](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.1...zod-nestjs-2.0.2) (2023-07-31) ### Bug Fixes * **zod-nestjs:** resolve conflicting dependencies ([f71d734](https://github.com/anatine/zod-plugins/commit/f71d734669e0e70eeb93e01db08e500cb7e89e84)), closes [anatine/zod-plugins#140](https://github.com/anatine/zod-plugins/issues/140) ### [2.0.1](https://github.com/anatine/zod-plugins/compare/zod-nestjs-2.0.0...zod-nestjs-2.0.1) (2023-06-30) ## [2.0.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.10.1...zod-nestjs-2.0.0) (2023-06-30) ### Bug Fixes * PeerDeps updates ([7812c60](https://github.com/anatine/zod-plugins/commit/7812c6048b19430424b69720bbd98726dc863bf3)) ### [1.10.1](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.10.0...zod-nestjs-1.10.1) (2023-06-16) ## [1.10.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.9.2...zod-nestjs-1.10.0) (2023-05-23) ### Features * Dep updates ([156b026](https://github.com/anatine/zod-plugins/commit/156b026391eba70c00df8b0f96ec402db1ceed4c)) ### [1.9.2](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.9.1...zod-nestjs-1.9.2) (2023-01-17) ### Bug Fixes * **zod-nestjs:** set up nx project the same as zod-openapi ([be67dc4](https://github.com/anatine/zod-plugins/commit/be67dc4503bd62617ebe91f165977cf0e9f3ceff)) ### [1.9.1](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.9.0...zod-nestjs-1.9.1) (2023-01-01) ### Bug Fixes * support unions in class DTO ([ae3dc22](https://github.com/anatine/zod-plugins/commit/ae3dc22f1c481ea159066f86cfe2de060f21a794)) ## [1.9.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.8.0...zod-nestjs-1.9.0) (2022-12-12) ### Features * Updated Dependencies ([ad8cfc8](https://github.com/anatine/zod-plugins/commit/ad8cfc8fa40ca32736dbfb0d8906569d2a626cbe)) ## [1.8.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.4...zod-nestjs-1.8.0) (2022-10-05) ### Features * Support for @Param() in @anatine/zod-nestjs ([ba00144](https://github.com/anatine/zod-plugins/commit/ba001444d3554695fe6db6b0d449f03351d65c48)) ## [1.8.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.4...zod-nestjs-1.8.0) (2022-10-05) ### Features * Support for @Param() in @anatine/zod-nestjs ([ba00144](https://github.com/anatine/zod-plugins/commit/ba001444d3554695fe6db6b0d449f03351d65c48)) ## [1.8.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.4...zod-nestjs-1.8.0) (2022-10-05) ### Features * Support for @Param() in @anatine/zod-nestjs ([ba00144](https://github.com/anatine/zod-plugins/commit/ba001444d3554695fe6db6b0d449f03351d65c48)) ### [1.8.1](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.8.0...zod-nestjs-1.8.1) (2022-10-05) ## [1.8.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.4...zod-nestjs-1.8.0) (2022-10-05) ### Features * Support for @Param() in @anatine/zod-nestjs ([ba00144](https://github.com/anatine/zod-plugins/commit/ba001444d3554695fe6db6b0d449f03351d65c48)) ### [1.7.4](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.3...zod-nestjs-1.7.4) (2022-08-16) ### [1.7.4](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.2...zod-nestjs-1.7.3) (2022-07-26) Remove tslib dep ### [1.7.3](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.2...zod-nestjs-1.7.3) (2022-07-26) ### Bug Fixes * missing readme ([581e371](https://github.com/anatine/zod-plugins/commit/581e37112c223782759635ae34937a0dfa664dc9)) * more readme fixes ([ed36d93](https://github.com/anatine/zod-plugins/commit/ed36d935dc6bb93ab35b5212e966130ff3ba9838)) ## [1.7.2](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.1...zod-nestjs-1.7.2) (2022-07-24) ### Bug Fixes * Missing README after refactor ([00ceb10](https://github.com/anatine/zod-plugins/commit/00ceb10be8251c6be2a83e64a9a8cd6116451938)) ## [1.7.1](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.7.0...zod-nestjs-1.7.1) (2022-07-24) # [1.7.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.6.0...zod-nestjs-1.7.0) (2022-07-24) ### Bug Fixes * release pipeline ([bb0ad83](https://github.com/anatine/zod-plugins/commit/bb0ad836a954659b778f1181dff4fe99daf35447)), closes [PR#46](https://github.com/PR/issues/46) # [1.6.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.5.0...zod-nestjs-1.6.0) (2022-07-24) ### Bug Fixes * remove implicitDependencies ([970f924](https://github.com/anatine/zod-plugins/commit/970f924a044d907007482c14a05c710c02a04032)) # [1.5.0](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.4.1...zod-nestjs-1.5.0) (2022-07-14) ## [1.0.1](https://github.com/anatine/zod-plugins/compare/zod-nestjs-1.0.0...zod-nestjs-1.0.1) (2022-07-14) # 1.0.0 (2022-07-14) ### Bug Fixes * Adding in new release githuib actions ([29a2455](https://github.com/anatine/zod-plugins/commit/29a2455161f7021df9f933d0d8b200a08fe31fde)) * Update to new code deps ([d771c4b](https://github.com/anatine/zod-plugins/commit/d771c4b2b026635a6704eeb1fca80dd2f2e5e8e8)) * zod-nestjs: Allow using the zodSchema field to construct other types ([150843d](https://github.com/anatine/zod-plugins/commit/150843dcdd783d3424323e861d199556826d36ea)) ### BREAKING CHANGES * The "T" in ZodDtoStatic<T> has changed from the output type to the schema type. Code that is using the ZodDtoStatic type directly may need to be updated. No changes are needed if just using the DTOs. Examples: // user.dto.ts import { createZodDto } from '@anatine/zod-nestjs'; import { z } from 'zod'; const schema = z.object({ name: z.string() }); export class UserDto extends createZodDto(schema) {} // users-list.dto.ts (has an array of users) import { createZodDto } from '@anatine/zod-nestjs'; import { z } from 'zod'; import { UserDto } from './user.dto'; // Previously produced a TypeScript error: Property 'array' does not exist on type 'CompatibleZodType'. const schema = z.object({ items: UserDto.zodSchema.array() }); export class UsersListDto extends createZodDto(schema) {} // extended-user.dto.ts (a user with an additional field) import { createZodDto } from '@anatine/zod-nestjs'; import { z } from 'zod'; import { UserDto } from './user.dto'; // Previously produced a TypeScript error: Property 'extend' does not exist on type 'CompatibleZodType'. const schema = UserDto.zodSchema.extend({ group: z.string() }); export class ExtendedUserDto extends createZodDto(schema) {}