Releases: MichalLytek/type-graphql
Releases · MichalLytek/type-graphql
1.1.0
Features
- allow passing custom validation function as
validateoption tobuildSchema - support defining deprecation reason and description of enum members (#714)
Fixes
- Breaking Change: throw error when wrong type of value provided as arg or input for
GraphQLISODateTimeandGraphQLTimestampscalars - don't include in schema the fields declared as
@FieldResolverwhen that resolvers classes aren't provided inresolversarray - fix grammar in
CannotDetermineGraphQLTypeErrorerror message - properly inherit extensions from parent class and its fields
1.0.0
Features
- Breaking Change: emit in schema only types actually used by provided resolvers classes (#415)
- Breaking Change: update
graphql-jspeer dependency to^15.3.0 - Breaking Change: update
graphql-query-complexitydependency to^0.7.0and drop support forfieldConfigEstimator(usefieldExtensionsEstimatorinstead) - Breaking Change: introduce
sortedSchemaoption inPrintSchemaOptionsand emit sorted schema file by default - Breaking Change: make
class-validatora peer dependency of version>=0.12.0that needs to be installed manually (#366) - Breaking Change: remove
CannotDetermineTypeErrorand make other error messages more detailed and specific - Breaking Change: remove legacy array inference - now explicit array syntax (
[Item]) is required - update
TypeResolverinterface to match withGraphQLTypeResolverfromgraphql-js - add basic support for directives with
@Directive()decorator (#369) - add possibility to tune up the performance and disable auth & middlewares stack for simple field resolvers (#479)
- optimize resolvers execution paths to speed up a lot basic scenarios (#488)
- add
@Extensionsdecorator for putting metadata into GraphQL types config (#521) - add support for defining arguments and implementing resolvers for interface types fields (#579)
- add
{ autoRegisterImplementations: false }option to prevent automatic emitting in schema all the object types that implements used interface type (#595) - allow interfaces to implement other interfaces (#602)
- expose
createResolversMaputility that generates apollo-like resolvers object - support IoC containers which
.get()method returns aPromiseof resolver instance - update deps to newest major versions (
tslib,graphql-query-complexity)
Fixes
- Breaking Change: stop returning null for
GraphQLTimestampandGraphQLISODateTimescalars when returned value is not aDateinstance - now it throws explicit error instead - Breaking Change: fix transforming and validating nested inputs and arrays (#462)
- refactor union types function syntax handling to prevent possible errors with circular refs
- remove duplicated entries for resolver classes that use inheritance (#499)
- fix using
nameoption on interface fields (#567) - fix not calling
authCheckerduring subscribe phase for subscriptions (#578) - fix using shared union type in multiple schemas
- fix using shared interface type in multiple schemas
- fix calling field resolver without providing resolver class to
buildSchema - fix generated TS union type for union type of object type classes extending themselves (#587)
- fix using shared union and interface types in multiple schemas when
resolveTypeis used - properly inherit directives while extending
@InputTypeor@ObjectTypeclasses (#626) - skip transforming empty array items into input classes
Others
- Breaking Change: change build config to ES2018 - drop support for Node.js < 10.3
- Breaking Change: remove deprecated
DepreciationOptionsinterface - Breaking Change: remove deprecated direct array syntax for declaring union types
1.0.0-rc.3
Features
- Breaking Change: remove legacy array inference - now explicit array syntax (
[Item]) is required - Breaking Change: update
graphql-jspeer dependency to^15.1.0 - update deps to newest major versions (
tslib,graphql-query-complexity)
1.0.0-rc.2
Features
- expose
createResolversMaputility that generates apollo-like resolvers object - support IoC containers which
.get()method returns aPromiseof resolver instance
Fixes
- properly inherit directives while extending
@InputTypeor@ObjectTypeclasses (#626) - skip transforming empty array items into input classes
1.0.0-rc.1
Features
- Breaking Change: emit in schema only types actually used by provided resolvers classes (#415)
- Breaking Change: update
graphql-jspeer dependency to^15.0.0 - Breaking Change: update
graphql-query-complexitydependency to^0.5.0and drop support forfieldConfigEstimator(usefieldExtensionsEstimatorinstead) - Breaking Change: introduce
sortedSchemaoption inPrintSchemaOptionsand emit sorted schema file by default - Breaking Change: make
class-validatora peer dependency of version>=0.12.0that needs to be installed manually (#366) - Breaking Change: remove
CannotDetermineTypeErrorand make other error messages more detailed and specific - update
TypeResolverinterface to match withGraphQLTypeResolverfromgraphql-js - add basic support for directives with
@Directive()decorator (#369) - add possibility to tune up the performance and disable auth & middlewares stack for simple field resolvers (#479)
- optimize resolvers execution paths to speed up a lot basic scenarios (#488)
- add
@Extensionsdecorator for putting metadata into GraphQL types config (#521) - add support for defining arguments and implementing resolvers for interface types fields (#579)
- add
{ autoRegisterImplementations: false }option to prevent automatic emitting in schema all the object types that implements used interface type (#595) - allow interfaces to implement other interfaces (#602)
Fixes
- Breaking Change: stop returning null for
GraphQLTimestampandGraphQLISODateTimescalars when returned value is not aDateinstance - now it throws explicit error instead - refactor union types function syntax handling to prevent possible errors with circular refs
- fix transforming and validating nested inputs and arrays (#462)
- remove duplicated entries for resolver classes that use inheritance (#499)
- fix using
nameoption on interface fields (#567) - fix not calling
authCheckerduring subscribe phase for subscriptions (#578) - fix using shared union type in multiple schemas
- fix using shared interface type in multiple schemas
- fix calling field resolver without providing resolver class to
buildSchema - fix generated TS union type for union type of object type classes extending themselves (#587)
- fix using shared union and interface types in multiple schemas when
resolveTypeis used
Others
- Breaking Change: change build config to ES2018 - drop support for Node.js < 10.3
- Breaking Change: remove deprecated
DepreciationOptionsinterface - Breaking Change: remove deprecated direct array syntax for declaring union types
0.17.6
0.17.5
Features
- rename
DepreciationOptionsinterface toDeprecationOptionsand deprecate the old one - update deps to newest minor versions (
tslib,semver,graphql-query-complexityandglob) - support nested array types (
@Field(type => [[Int]])) (#393) - deprecate the direct array syntax for union types
Fixes
- fix errors on circular refs in union types (#364) by adding the function syntax (
() => TClassTypes)
0.17.4
0.17.3
0.17.2
Features
- add support for defining
resolveTypefunction for interfaces and unions (#319) - add support for setting default nullability for fields and return types (#297)
- add
skipCheckoption inbuildSchemato disable checking the correctness of a schema - add postinstall script for printing info on console about supporting the project
Fixes
- fix generating plain resolvers for queries and mutations (compatibility with Apollo client state)