Skip to content

Latest commit

 

History

History
245 lines (140 loc) · 7.01 KB

Changelog.md

File metadata and controls

245 lines (140 loc) · 7.01 KB

Changelog

1.10.1

1.10.0

1.9.0

1.8.2

  • Remove dependency on Typescript for @gql2ts/language-typescript PR #209

1.8.1

  • Export enums as consts in @gql2ts/from-schema so they are available to the Typescript compiler. Issue #179 PR #202

  • Only append a semicolon to 'enums' when they are declared as union types and not Typescript enum types. Issue #179 PR #202

1.8.0

1.7.2

  • Fix fragment spread inside of inline fragment for @gql2ts/from-query Issue #76 PR #162

1.7.1

  • Run default fields (IGraphQLRootResponse, etc.) through provided formatters #159

1.7.0

  • Use native enums in Typescript instead of union type #116

1.6.0

  • Improve documentation generation #154
  • Add new line in between Argument Interfaces #157

1.5.2

  • Add graphql as dependency for CLI

1.5.1

  • Move graphql to peer-dependency #156

1.5.0

  • Generate Argument Interfaces in @gql2ts/from-schema #148

For example:

type Query {
  test(arg1: String!, arg2: Boolean): String
}

will output

interface ITestOnQueryArguments {
  arg1: string;
  arg2?: boolean;
}
  • Only warn about prettier once in @gql2ts/language-typescript #147

1.4.4

  • Loosen graphql version restriction to < 1.0.0 #152

1.4.3

  • Fix 1.4.2 release

1.4.2

  • #137
    • Remove Typescript 2.7.0 lock
    • Add optional prettier integration to typescript package to pretty-print code
    • Remove custom Typescript formatter

1.4.1

  • Lock Typescript to <2.7.0 #132

1.4.0

  • Allow custom TypeMap in @gql2ts/from-schema, similar to @gql2ts/from-query #109

1.3.0

  • Allow GraphQL Schema Language input in CLI

1.2.2

  • Fix Default Export / CommonJS for -e flag on CLI #99
  • Add description JSDoc to individual fields #96
  • Update Some DevDependencies #94

1.2.1

  • Pin version of graphql to ^0.10.5 in all packages #89

1.2.0

Breaking Changes

  • Use string literal for __typename #87, for instance:
interface IWhatever {
  __typename: "Whatever";
}

1.1.3

1.1.2

  • Expose ignoreTypeNameDeclaration in the CLI. Use --ignore-type-name-declaration to enable it #81

1.1.1

  • Merge back changes from 1.0.3

1.1.0 (botched)

@gql2ts/from-schema

  • Add option ignoreTypeNameDeclaration to not add __typename to all fields (thanks @epicallan) #72

1.0.3

  • Update graphql dependency to 0.10.1

1.0.2

  • Fix the fix for unions from 1.0.1

1.0.1

  • Fix @gql2ts/from-schema not handling Unions properly #66

1.0.0

  • Use lerna to manage multiple packages
  • Rewrite in Typescript
  • Introduce @gql2ts/from-query which generates definitions from a schema and a query
  • Extract common code to @gql2ts/util
  • Accept more objects from a schema
    • { data: IntrospectionQuery }
    • IntrospectionQuery
    • GraphQLSchema object
    • GraphQL Language Schema

Breaking Changes

  • Drop support for node v4/v5

0.6.1

  • Fix bug where the help was outputted when stdin and stdout are used with no options

0.6.0

  • Can now accept input from stdin
  • Can now write to stdout

Breaking Changes

  • Output will now default to stdout, must specify -o to write to a file

0.5.1

0.5.0

  • Adds support for nullability attributes inside derived interfaces - @neelance @orta #34.
    • Note that for older versions of TypeScript, you can use the CLI flag --legacy to get output without nullability references.

0.4.0

  • Stop extending GraphQLInterfaces with their possible types. (thanks @tomaba) #25
    • Previously, if two possible types implement a similar field, but with a different type it will cause an error

0.3.1

  • Accept __schema at the top level #20

0.3.0

Breaking Changes

  • Change from module to namespace #14
  • Removed -m/--module-name flag in favor of -n/--namespace

Patches

0.2.1

  • Fix Version number in command line

0.2.0

  • Add support for Enums

0.1.0

  • Add Root Entry Points & Error Map
  • Add __typename to the generated interfaces

0.0.4

  • Include polyfill Array.prototype.includes for node v4/v5 compatibility
  • Add test suite

0.0.3

  • Fix for node v5 strict mode

0.0.2

  • Add information to npm

0.0.1

  • Initial Release