Skip to content

Releases: resident-advisor/prisma-nestjs-graphql

v1.0.2

20 Mar 13:24
Compare
Choose a tag to compare

1.0.2 (2024-03-20)

Bug Fixes

v1.0.0

20 Mar 12:43
Compare
Choose a tag to compare

1.0.0 (2024-03-20)

⚠ BREAKING CHANGES

  • Bump version
  • Update packages
  • Require @prisma/client v4.12+
    Must be used with optional dependency prisma-graphql-type-decimal v3.0.0+
  • Update library to support to Prisma v4
  • @type decorator will be added to all input classes
  • other: defaults input and output in PropertyType to false
  • Configuration useInputType changed underlying library for pattern matching
    https://github.com/axtgr/outmatch, prefix renamed to match:
  • Removed deprecated setting types_*
  • Model is regenerating ignoring existing data, any manual changes will be discarded
  • Enum is regerating now, any manual changes will be discarded
  • compatibility: Possible breaking change aggregation keywords use underscore as prefix to prevent field clashes
  • Adapted to Prisma 2.20
  • Renamed token {feature} to {model} in outputFilePattern template pattern
  • Removed renameZooTypes config option
  • Config option combineScalarFilters is false by default
  • Made all options which mutates/renames types are false
  • Inverted config option atomicNumberOperations to noAtomicNumberOperations
    Replace atomicNumberOperations = false by noAtomicNumberOperations = true
  • Adapt generator to Prisma 2.16
  • Typescript property type now same as graphql type
  • Generated types tries to be compatible with Prisma types,
    nullability (optional/required) changed for input types
  • prisma: Adapt generator to Prisma v2.13
  • Switched to replace mode generation of files, all extra field which are not exists in model will be
    removed
  • Generator options: dasherizedName renamed to name
  • Adapted to prisma 2.12
  • Adapted generator to Prisma 2.8

Features

  • @PropertyType() to replace types_ configuration (4a7313d)
  • useInputType config option allow to choose input type (54eeb1c)
  • Ability to hide field in schema (a222955), closes #8
  • Adapted generator to Prisma 2.14 (26a23c4)
  • Adapted generator to Prisma 2.15 (77b87a6)
  • Add options to generate only selected blocks (cabe9bd)
  • add the prisma client import option (00c81d5)
  • Allow add deprecation reason (432e8f1), closes #104
  • Allow generate compiled files or merged to single file (095f975), closes #15
  • Allow hide property using decorate in config (b83beeb)
  • Allow the use of the generate function without the onGenerate (a566cca), closes #168 #169
  • Allow to configure path to tsconfig.json (ead4411)
  • Alternative default import configuration (4ae1b82)
  • Apply custom decorators on models (34196b3)
  • Combine zoo of nested/nullable filters (20f965b)
  • compatibility: New configuration option unsafeCompatibleWhereUniqueInput (72a3dab), closes #177
  • configuration: Allow purge output folder (a360869), closes #7
  • configuration: Allow to map prisma scalars to custom graphql scalars (59300e1), closes #87
  • configuration: Option to disable ID graphql type (8474da7), closes #44
  • Custom decorators (b14f0fe)
  • custom decorators: Abstract and rename type (eb68ca6), closes #40
  • custom decorators: Allow apply custom decorator on models (52f090a), closes #63
  • custom decorators: Allow attach @Directive() (d6faef0)
  • custom decorators: New decorate generator setting (c5e14b7), closes #48
  • custom decorators: New decorate generator setting (db970f0), closes #48
  • Custom graphql field mapping (10fb039)
  • Custom property mapping (f8cc54d)
  • Duplicate comments in jsdoc (002a055), closes #39
  • Export all classes from one file (92ca651), closes #5
  • Extend reExport option (3d5475b)
  • First release (340a105)
  • Generate aggregate input types (66239bb)
  • Generate args types (5015de7)
  • Generate commented class if re-export found (dc3e268)
  • Generate JSON scalar type (82007d7)
  • Generate other output types (55e5cd5)
  • hide field: Allow hide field in type matching by pattern (6c05123), closes #37
  • match: Allows match expressions in FieldType and PropertyType (#60) (a9b0e46)
  • New option rename zoo types (04cb5af)
  • New token {plural.type} for outputFilePattern generator options (51cc938)
  • Option to disable atomic number operations (3319ff9)
  • require single uniq filter: New requireSingleFieldsInWhereUniqueInput generator setting ([7ee73eb](7ee73eb69f57a55...
Read more