Releases: chrishoermann/zod-prisma-types
Releases · chrishoermann/zod-prisma-types
2.0.7
What's changed
- fixed mistake in the docs concerning custom imports
- added refinement for
whereUniqueInputs
when multipleunique
fields are present
2.0.6
2.0.5
What's changed
- fixed bug with duplicate imports in the
include schema
files.
Full Changelog: v2.0.4...v2.0.5
2.0.4
2.0.1
2.0.0
2.0.2
What's changed
- updated some leftovers in the docs
2.0.0-beta.4
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 usedPrisma
is imported as type - #49 - Enums do not rely on imported prisma client content anymore
2.0.0-beta.0
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 generatesz.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
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
- @cqh963852 made their first contribution in #58
Full Changelog: v.1.6.7...1.6.8