Skip to content

Latest commit

 

History

History
120 lines (73 loc) · 4.49 KB

changelog.md

File metadata and controls

120 lines (73 loc) · 4.49 KB

Changelog

0.7.1

  • Chore: Update pothos packages of peerDependencies to v4

0.7.0

  • Upgrade: Support to new versions of Pothos and Pothos Prisma Plugin (v4+) Thanks to hayes
  • Chore: Update prisma to latest version 5.17.0

0.6.5

  • Fix: Enables multiline comments and quotes in comments. It fixes: #69 and fixes #70.
  • Chore: Update prisma to latest version 5.15.1
  • Chore: remove global.builderImporter config from types and docs due to global.builderLocation. Fixes #68

0.6.4

  • Feature: From now: new generations uses new version of @pothos/core to disable input normalization: hayes/pothos#1111. It fixes: #57.
  • Chore/Example-Update: Update Pothos/Prisma/Others to latest versions
  • Chore/Peer-deps: Remove @pothos/core exact version restriction
  • Chore/Deps: Removing useless deps

0.6.3

  • Upgrade: Update prisma to latest version
  • Remove distinct from count prisma/prisma#4228
  • Improve: Remove tokenizr dep
  • Add tests for comments parser
  • Upgrade: Update dependancies and peerDependancies
  • Improve: Update prettier and eslint (to remove some conflicts)
  • Chore: Eslint remove semicolon
  • Feature: New option config.crud.underscoreBetweenObjectVariableNames change the generated variables from object.base.ts from something like UserName to User_Name. This avoids generated duplicated names in some cases. Fixes #58

0.6.2

  • Fix: The builder path is incorrect in Windows #55

0.6.1

  • Upgrade: Expand supports to new Prisma Version 5.1.1. Fixes #53 -Ignore fieldRefTypes at "generate inputs" to enable support of new prisma version

0.6.0

  • Fix: Fix Typescript errors for non Pothos exposable fields ('String', 'Int', 'Float', 'Boolean'), like "BigInt" used as @id. Fixes: #45
  • Replace exposes in generated object.base files with unified t.field
  • Feature(Breaking Change): It is no longer necessary to define multiple "builderImporter". Now define in config.global.builderLocation the location of the builder, and all imports will be defined automatically.
  • Feature: Break args apart to make code spliting better. Fixes #49

0.5.9

  • Improve: Add config config.crud.mapIdFieldsToGraphqlId to allow disable Objects ID fields from being parsed to Graphql ID scalar.
  • Improve: Add config config.inputs.mapIdFieldsToGraphqlId to allow parsing WhereUniqueInput ID fields to Graphql ID scalar.

0.5.8

  • Improve: Input scalar some improves at parseValue
  • Docs: Some docs improves based on #45

0.5.7

  • Fix: correctly priorize list on inputs (generated again, code changes serves as an example)

0.5.6

  • Fix: autocrud generating buggy updateMany mutations #37

0.5.5

  • Added: Add simple mode to input generator #30
  • Changed: Add modify permission step after build #34

0.5.4

  • Changed: Objects now exports everything from CRUD, optionally disable on crud options.

0.5.3

  • Changed: Augment/derive generated input types

0.5.2

  • Changed: Fixed autocrud generating buggy deleteOne mutations #24

0.5.1

  • Added: Global handle resolvers generated by crud. Wrap all queries/mutations to override args, run extra code in resolve function (ie: throw errors, logs), apply plugins, etc. #17 #18

0.5.0

  • Added: Delete Output Dir Before Generate option to crud
  • Added: Before/After option to global. Handle DMMF before and after generation.
  • Changed: (Crud) possibility to exclude some files from generation #14
  • Changed: (Autocrud) now can only run generated files (before can run not generated files)
  • Changed: (Autocrud) now works by running only generated files (i.e. files excluded from generation don't need to be excluded from autocrud)
  • Changed: (Crud) Named exports in all indexes (Support for Nextjs) #15
  • Changed: (Crud) objects.ts no longer exports everything from within models. This will avoid growing the object file too much when changing to export variables named in model indexes.
  • Changed: Support newer version of @pothos/plugin-prisma and add disclaimer. Thanks to saphewilliam

0.4.5

  • Changed: Object field scalar array as pothos array #12
  • Changed: Distinct at queries is always uppercase #11

Changelog

0.4.4

  • Changed: Now writing files is asynchronous

Changelog

0.4.3

  • Changed: Now TS compiler uses "newLine": "lf"