Releases: arthurfiorette/prisma-json-types-generator
Releases · arthurfiorette/prisma-json-types-generator
v3.0.4
What's Changed
- fix: find client generator by provider instead of the name by @Cauen in #240
- fix: make nots optional by @kenny-stevens in #255
New Contributors
- @Cauen made their first contribution in #240
- @kenny-stevens made their first contribution in #255
Full Changelog: v3.0.3...v3.0.4
v3.0.3
v3.0.2
Important Changes
- Correct generation when dealing with dots in the path in #166.
Full Changelog: v3.0.1...v3.0.2
v3.0.1
v3.0.0
Breaking changes!
- Removed support for prisma v4 and added support for prisma v5. (#131)
Important changes
- Added typescript to peer dependencies. (#106) Thanks @thibaultleouay
- Prisma V5 support (#131) Thanks @janpio, @cpojer, @stonexer, @elijaholmos and @OmarBish
- Added multiple test suites to catch multiple edge cases
- Added
allowAny
to convert untyped json fromany
tounknown
. - Added literal type annotations with
/// ![T]
syntax - Migrated to partial generation to keep this generator useful even if some types errors out.
- Oficial support to all databases.
v3.0.0-beta.1
Tracking: #131
- Better testing with tsd
- #103
- Normal usage
- Preview features
- Strings for type literals
- Enum support
- More types?
- #112
- Added
allowAny
option
- Added
- #117
- Support with
![<literal>]
syntax - Testing with
Json?
andJson[]
types.
- Support with
- Removed unused async code.
- Better error handling & support to partial generation.
- README rewrite (Help wanted here 😅)
- Normal usage
- Arrays and optional
- Literal types
- Configuration example
- Fix types
v2.5.0
Important Changes
- Add docs to clarify usage and monorepo setup (#72). Thanks @AndrewSouthpaw
- Added
prisma-json-types-generator:
prefix to all errors to clarify where the error happened. (177a4f0) - Added prisma to peer dependencies to prevent unwanted versions being used. (c737349)
- Fixed type reference errors (#75).
- Native support to
clientExtensions
and Prisma 4.16.0. (#91) - Added ts-ignore to supress warnings when types aren't used. (7c01c36)
New Contributors
- @AndrewSouthpaw made their first contribution in #72
Full Changelog: v2.4.0...v2.5.0
v2.4.0
Features
- Added
useType
(#64)
What's Changed
- build(deps-dev): bump @types/node from 18.15.11 to 18.15.13 by @dependabot in #56
- build(deps-dev): bump typescript from 4.9.5 to 5.0.4 by @dependabot in #52
- build(deps-dev): bump prettier from 2.8.7 to 2.8.8 by @dependabot in #57
- build(deps-dev): bump @types/node from 18.15.13 to 18.16.2 by @dependabot in #61
- build(deps-dev): bump @types/node from 18.16.2 to 18.16.3 by @dependabot in #63
Full Changelog: v2.3.1...v2.4.0
v2.3.1
What's Changed
- fix: support deeper relative paths by @jackall3n in #46
- build(deps-dev): bump prettier from 2.8.4 to 2.8.7 by @dependabot in #48
- build(deps-dev): bump @types/node from 18.15.3 to 18.15.11 by @dependabot in #50
New Contributors
- @jackall3n made their first contribution in #46
Full Changelog: v2.3.0...v2.3.1
v2.3.0
Important Changes
- Support for converting string fields to discriminated unions/enums (#34) (Suuuper thanks @noahsark769)
What's Changed
- build(deps-dev): bump @types/node from 18.13.0 to 18.15.1 by @dependabot in #33
- build(deps-dev): bump @types/node from 18.15.1 to 18.15.3 by @dependabot in #35
Full Changelog: v2.2.3...v2.3.0