npm @graphql-codegen/typescript-resolvers 1.3.0
v1.3.0

Core

  • Updated dependencies
  • Fixed issue with init command that didn't add the introspection plugin dependency (#2012)
  • Fixes issue with init - the default location of documents is src/**/*.graphql now (#2012)
  • Use empty array when documents are not specified in programatic usage (#2015)
  • Added support for loading env vars before loading the yml file (#2016)
  • Added support for adding a default value for environment variables (#2016)

Docs & Website

  • Updated documentation for CLI flags
  • Updated documentation for codegen.yml config file
  • Updated documentation regarding dotenv integration
  • Add Search feature to the website

TypeScript

  • Move validateTs and compileTs to testing, make ts visitors public - now you can use it to test and validate your generated TypeScript code easily (#2003)
  • You can now choose to export TypeScript interface instead of TypeScript type Interface Option (#1923)

TypeScript Operations

  • Fix for wrong type for variable with default value (#2018, thanks @n1ru4l)

TypeScript Resolvers

  • Added support for mapper from default export (#2014)
  • Fix issues with mappers and indirection usage of types (#2022)
  • Introduce MaybePromise - allow resolvers to return Promise or Promise[] (#2023)

Flow Resolvers

  • Added support for mapper from default export (#2014)
  • Fix issues with mappers and indirection usage of types (#2022)
  • Introduce MaybePromise - allow resolvers to return Promise or Promise[] (#2023)
latest releases: 2.3.2, 2.3.1, 2.3.1-alpha-143b4bc91.0...
2 years ago