v0.17.0
版本发布时间: 2019-03-05 03:28:22
MichalLytek/type-graphql最新发布版本:v2.0.0-rc.2(2024-06-07 20:27:54)
Features
-
Breaking Change: make
graphql-js
packages a peer dependencies, bumpgraphql
to^14.1.1
and@types/graphql
to^14.0.7
(#239) -
Breaking Change: remove
useContainer
function and allow to register container bybuildSchema
options (#241) -
Breaking Change: change the default
PrintSchemaOptions
optioncommentDescriptions
to false (no more#
comments in SDL) - add support for passing
PrintSchemaOptions
inbuildSchema.emitSchemaFile
(e.g.commentDescriptions: true
to restore previous behavior) - add
buildTypeDefsAndResolvers
utils function for generating apollo-liketypeDefs
andresolvers
pair (#233) - add support for generic types (#255)
Fixes
-
Breaking Change: remove the
formatArgumentValidationError
helper as it's not compatible and not needed in new Apollo Server (#258) - fix calling return type getter function
@Field(type => Foo)
before finishing module evaluation (allow for extending circular classes usingrequire
) - fix nullifying other custom method decorators - call the method on target instance, not the stored reference to original function (#247)
- fix throwing error when extending non args class in the
@ArgsType()
class - prevent unnecessary conversion of an object that is already an instance of the requested type (avoid constructor side-effects)