Skip to content

Releases: MichalLytek/type-graphql

0.17.1

30 Mar 15:24

Choose a tag to compare

Features

  • add support for emitting schema file in not existing directory (#269)
  • drop support for Node.js v6 (end of LTS in April 2019)

Fixes

  • fix typings discovery support for WebStorm (#276)
  • allow for returning plain objects when using ObjectTypes that implements InterfaceTypes or extends other classes (#160)

0.17.0

04 Mar 19:28

Choose a tag to compare

Features

  • Breaking Change: make graphql-js packages a peer dependencies, bump graphql to ^14.1.1 and @types/graphql to ^14.0.7 (#239)
  • Breaking Change: remove useContainer function and allow to register container by buildSchema options (#241)
  • Breaking Change: change the default PrintSchemaOptions option commentDescriptions to false (no more # comments in SDL)
  • add support for passing PrintSchemaOptions in buildSchema.emitSchemaFile (e.g. commentDescriptions: true to restore previous behavior)
  • add buildTypeDefsAndResolvers utils function for generating apollo-like typeDefs and resolvers 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 using require)
  • 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)

0.16.0

22 Dec 16:21

Choose a tag to compare

Features

  • add support for default values in schema (#203)
  • add support for lists with nullable items (#211)

Fixes

  • fix browser shim (compatibility with polyfills for decorator support)

0.15.0

17 Oct 19:19

Choose a tag to compare

Features

  • Breaking Change: upgrade graphql to ^14.0.2, graphql-subscriptions to ^1.0.0 and @types/graphql to ^14.0.2
  • update all other dependencies
  • drop support for Node.js v9
  • add capability to emit the schema definition file (*.gql) as a buildSchema option
  • add emitSchemaDefinitionFile helper function for emitting the schema SDL

0.14.0

08 Sep 12:25

Choose a tag to compare

Features

  • Breaking Change: change ClassType type and export it in package index
  • Breaking Change: refactor generic createUnionType to remove the 10 types limit (note: requires TypeScript >=3.0.1)
  • add support for subscribing to dynamic topics - based on args/ctx/root (#137)
  • add support for query complexity analysis - integration with graphql-query-complexity (#139)

0.13.1

14 Aug 17:32

Choose a tag to compare

Fixes

  • fix missing loosely typed overload signature for createUnionType (remove the 10 types limit)

0.13.0

07 Aug 17:42

Choose a tag to compare

Features

  • make class-validator a virtual peer dependency and update it to newest 0.9.1 version
  • add support for creating scoped containers (#113)

0.12.3

10 Jul 12:47

Choose a tag to compare

0.12.3 Pre-release
Pre-release

Features

  • add reflect-metadata checks and informative error if no polyfill provided
  • update @types/graphql to latest version (^0.13.3)

Fixes

  • fix throwing error when of => objectType wasn't provided in abstract resolver class
  • fix calling Object.assign with boolean arguments (#111)

0.12.2

23 Jun 10:43

Choose a tag to compare

0.12.2 Pre-release
Pre-release

Features

  • add support for using type classes in browser (configure webpack to use decorators shim)

Fixes

  • fix swallowing false argument value (#101)

0.12.1

06 Jun 19:10

Choose a tag to compare

0.12.1 Pre-release
Pre-release

Fixes

  • fix bug with overriding methods from parent resolver class (#95)