- Fix nullable arrays in
@gql2ts/from-schema
(thanks @mikfoo) Issue #197 PR #230
- Support
graphql@^14
PR #222
- Remove dependency on Typescript for
@gql2ts/language-typescript
PR #209
-
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
-
Add specific
__typename
value for@gql2ts/from-query
Issue #165 PR #168
- Run default fields (
IGraphQLRootResponse
, etc.) through provided formatters #159
- Use native enums in Typescript instead of union type #116
- Add graphql as dependency for CLI
- Move graphql to peer-dependency #156
- 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
- Loosen
graphql
version restriction to< 1.0.0
#152
- Fix 1.4.2 release
- #137
- Remove Typescript 2.7.0 lock
- Add optional
prettier
integration to typescript package to pretty-print code - Remove custom Typescript formatter
- Lock Typescript to <2.7.0 #132
- Allow custom
TypeMap
in@gql2ts/from-schema
, similar to@gql2ts/from-query
#109
- Allow GraphQL Schema Language input in CLI
- Fix Default Export / CommonJS for
-e
flag on CLI #99 - Add description JSDoc to individual fields #96
- Update Some DevDependencies #94
- Pin version of
graphql
to^0.10.5
in all packages #89
- Use string literal for
__typename
#87, for instance:
interface IWhatever {
__typename: "Whatever";
}
- Expose
ignoreTypeNameDeclaration
in the CLI. Use--ignore-type-name-declaration
to enable it #81
- Merge back changes from
1.0.3
- Add option
ignoreTypeNameDeclaration
to not add__typename
to all fields (thanks @epicallan) #72
- Update
graphql
dependency to0.10.1
- Fix the fix for unions from
1.0.1
- Fix
@gql2ts/from-schema
not handling Unions properly #66
- 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
- Drop support for node v4/v5
- Fix bug where the help was outputted when
stdin
andstdout
are used with no options
- Can now accept input from
stdin
- Can now write to
stdout
- Output will now default to
stdout
, must specify-o
to write to a file
- Add
tslint:disable
to generated files - @AdirAmsalem #38 - Update
graphql
dependency #29
- 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.
- Note that for older versions of TypeScript, you can use the CLI flag
- Stop extending
GraphQLInterface
s 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
- Accept
__schema
at the top level #20
- Change from
module
tonamespace
#14 - Removed
-m
/--module-name
flag in favor of-n
/--namespace
- Fix Version number in command line
- Add support for Enums
- Add Root Entry Points & Error Map
- Add
__typename
to the generated interfaces
- Include polyfill
Array.prototype.includes
for node v4/v5 compatibility - Add test suite
- Fix for node v5 strict mode
- Add information to npm
- Initial Release