TypeGraphQL v1.0.0-rc.1 Release Notes
Release Date: 2020-05-03 // almost 4 years ago-
๐ Features
- ๐ฅ Breaking Change : emit in schema only types actually used by provided resolvers classes (#415)
- ๐ฅ Breaking Change : update
graphql-js
peer dependency to^15.0.0
- ๐ฅ Breaking Change : update
graphql-query-complexity
dependency to^0.5.0
and drop support forfieldConfigEstimator
(usefieldExtensionsEstimator
instead) - ๐ฅ Breaking Change : introduce
sortedSchema
option inPrintSchemaOptions
and emit sorted schema file by default - ๐ฅ Breaking Change : make
class-validator
an optional, peer dependency of version>=0.12.0
(#366) - ๐ฅ Breaking Change : remove
CannotDetermineTypeError
and make other error messages more detailed and specific - โก๏ธ update
TypeResolver
interface to match withGraphQLTypeResolver
fromgraphql-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
@Extensions
decorator 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
GraphQLTimestamp
andGraphQLISODateTime
scalars when returned value is not aDate
instance - 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
name
option on interface fields (#567) - ๐ fix not calling
authChecker
during 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
resolveType
is used
Others
- ๐ฅ Breaking Change : change build config to ES2018 - drop support for Node.js < 10.3
- ๐ฅ Breaking Change : remove deprecated
DepreciationOptions
interface - ๐ฅ Breaking Change : remove deprecated direct array syntax for declaring union types