Skip to content

Releases: chrishoermann/zod-prisma-types

2.0.7

03 Feb 19:21
Compare
Choose a tag to compare

What's changed

  • fixed mistake in the docs concerning custom imports
  • added refinement for whereUniqueInputs when multiple unique fields are present

2.0.6

02 Feb 07:33
Compare
Choose a tag to compare

What's changed

  • fixed bug in select imports - #49

Full Changelog: v2.0.5...v2.0.6

2.0.5

01 Feb 21:05
Compare
Choose a tag to compare

What's changed

  • fixed bug with duplicate imports in the include schema files.

Full Changelog: v2.0.4...v2.0.5

2.0.4

01 Feb 19:00
Compare
Choose a tag to compare

What's changed

  • fixed issue with empty files when runnting the generator - #49
  • fixed wrong prisma client path when using custom path - #49

2.0.1

31 Jan 15:36
Compare
Choose a tag to compare

What's changed

  • removed ts-morph and decimal.js as dependencies

Full Changelog: v2.0.0...v2.0.1

2.0.0

31 Jan 15:20
Compare
Choose a tag to compare

What's changed

  • Fixed problems with generation of include fields - #59
  • see beta releases for further changes

2.0.2

31 Jan 16:08
Compare
Choose a tag to compare

What's changed

  • updated some leftovers in the docs

2.0.0-beta.4

30 Jan 19:20
Compare
Choose a tag to compare
2.0.0-beta.4 Pre-release
Pre-release

What's Changed

  • Model types now generate .nullable() instead of .nullish() on nullable fields - #65
  • Fixed problems when using MongoDb - #54
  • Only Prisma namespace is imported insead of the whole prisma client content - #49
  • If no json fields are used Prisma is imported as type - #49
  • Enums do not rely on imported prisma client content anymore

2.0.0-beta.0

27 Jan 22:07
Compare
Choose a tag to compare
2.0.0-beta.0 Pre-release
Pre-release

Breaking changes

  • custom imports are now provided via rich-comments on the model definition
  • tsConfigFilePath got removed because ts-morph is no longer used to generate files
  • useInstanceOfForDecimal got removed because of an implementation for Decimal that covers all use cases

Enhancements

  • the generator can now generate multiple files
  • a separate model containing all scalar, enum and relation fields can now be generated.
  • DateTime now generates z.coerce.date() by default
  • for custom enums a union type of the enum values is generated in addition to the enum schema
  • added a short migration guide from zod-prisma to the docs

1.6.8

25 Jan 10:51
Compare
Choose a tag to compare

What's Changed

  • The generator can now be run with ts-node in usage directory without building step. PR from @cqh963852 in #58
  • Generator can now be used as library. PR from @cqh963852 in #60

New Contributors

Full Changelog: v.1.6.7...1.6.8