Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,60 @@

## 1.10.1

- Fix regression in TypeMap support (thanks [@mikfoo](https://github.com/mikfoo)) [PR #235](https://github.com/avantcredit/gql2ts/pull/235)
- Fix regression in TypeMap support (thanks [@mikfoo](https://github.com/mikfoo)) [PR #235](https://github.com/amount/gql2ts/pull/235)

## 1.10.0

- Fix nullable arrays in `@gql2ts/from-schema` (thanks [@mikfoo](https://github.com/mikfoo)) [Issue #197](https://github.com/avantcredit/gql2ts/issues/197) [PR #230](https://github.com/avantcredit/gql2ts/pull/230)
- Fix nullable arrays in `@gql2ts/from-schema` (thanks [@mikfoo](https://github.com/mikfoo)) [Issue #197](https://github.com/amount/gql2ts/issues/197) [PR #230](https://github.com/amount/gql2ts/pull/230)

## 1.9.0

- Support `graphql@^14` [PR #222](https://github.com/avantcredit/gql2ts/pull/222)
- Support `graphql@^14` [PR #222](https://github.com/amount/gql2ts/pull/222)

## 1.8.2

- Remove dependency on Typescript for `@gql2ts/language-typescript` [PR #209](https://github.com/avantcredit/gql2ts/pull/209)
- Remove dependency on Typescript for `@gql2ts/language-typescript` [PR #209](https://github.com/amount/gql2ts/pull/209)

## 1.8.1

- Export enums as consts in `@gql2ts/from-schema` so they are available to the Typescript compiler. [Issue #179](https://github.com/avantcredit/gql2ts/issues/179) [PR #202](https://github.com/avantcredit/gql2ts/pull/202)
- Export enums as consts in `@gql2ts/from-schema` so they are available to the Typescript compiler. [Issue #179](https://github.com/amount/gql2ts/issues/179) [PR #202](https://github.com/amount/gql2ts/pull/202)

- Only append a semicolon to 'enums' when they are declared as union types and not Typescript `enum` types. [Issue #179](https://github.com/avantcredit/gql2ts/issues/179) [PR #202](https://github.com/avantcredit/gql2ts/pull/202)
- Only append a semicolon to 'enums' when they are declared as union types and not Typescript `enum` types. [Issue #179](https://github.com/amount/gql2ts/issues/179) [PR #202](https://github.com/amount/gql2ts/pull/202)

## 1.8.0

- Add specific `__typename` value for `@gql2ts/from-query` [Issue #165](https://github.com/avantcredit/gql2ts/issues/165) [PR #168](https://github.com/avantcredit/gql2ts/pull/168)
- Add specific `__typename` value for `@gql2ts/from-query` [Issue #165](https://github.com/amount/gql2ts/issues/165) [PR #168](https://github.com/amount/gql2ts/pull/168)

- Import TypeMap from language packages [PR #175](https://github.com/avantcredit/gql2ts/pull/175) [PR #176](https://github.com/avantcredit/gql2ts/pull/176)
- Import TypeMap from language packages [PR #175](https://github.com/amount/gql2ts/pull/175) [PR #176](https://github.com/amount/gql2ts/pull/176)

## 1.7.2

- Fix fragment spread inside of inline fragment for `@gql2ts/from-query` [Issue #76](https://github.com/avantcredit/gql2ts/issues/76) [PR #162](https://github.com/avantcredit/gql2ts/issues/162)
- Fix fragment spread inside of inline fragment for `@gql2ts/from-query` [Issue #76](https://github.com/amount/gql2ts/issues/76) [PR #162](https://github.com/amount/gql2ts/issues/162)

## 1.7.1

- Run default fields (`IGraphQLRootResponse`, etc.) through provided formatters [#159](https://github.com/avantcredit/gql2ts/pull/159)
- Run default fields (`IGraphQLRootResponse`, etc.) through provided formatters [#159](https://github.com/amount/gql2ts/pull/159)

## 1.7.0

- Use native enums in Typescript instead of union type [#116](https://github.com/avantcredit/gql2ts/pull/116)
- Use native enums in Typescript instead of union type [#116](https://github.com/amount/gql2ts/pull/116)

## 1.6.0

- Improve documentation generation [#154](https://github.com/avantcredit/gql2ts/pull/154)
- Add new line in between Argument Interfaces [#157](https://github.com/avantcredit/gql2ts/pull/157)
- Improve documentation generation [#154](https://github.com/amount/gql2ts/pull/154)
- Add new line in between Argument Interfaces [#157](https://github.com/amount/gql2ts/pull/157)

## 1.5.2

- Add graphql as dependency for CLI

## 1.5.1

- Move graphql to peer-dependency [#156](https://github.com/avantcredit/gql2ts/pull/156)
- Move graphql to peer-dependency [#156](https://github.com/amount/gql2ts/pull/156)

## 1.5.0

- Generate Argument Interfaces in `@gql2ts/from-schema` [#148](https://github.com/avantcredit/gql2ts/pull/148)
- Generate Argument Interfaces in `@gql2ts/from-schema` [#148](https://github.com/amount/gql2ts/pull/148)

For example:

Expand All @@ -74,50 +74,50 @@ interface ITestOnQueryArguments {
}
```

- Only warn about prettier once in `@gql2ts/language-typescript` [#147](https://github.com/avantcredit/gql2ts/pull/147)
- Only warn about prettier once in `@gql2ts/language-typescript` [#147](https://github.com/amount/gql2ts/pull/147)

## 1.4.4

- Loosen `graphql` version restriction to `< 1.0.0` [#152](https://github.com/avantcredit/gql2ts/pull/152)
- Loosen `graphql` version restriction to `< 1.0.0` [#152](https://github.com/amount/gql2ts/pull/152)

## 1.4.3

- Fix 1.4.2 release

## 1.4.2

- [#137](https://github.com/avantcredit/gql2ts/pull/137)
- [#137](https://github.com/amount/gql2ts/pull/137)
- Remove Typescript 2.7.0 lock
- Add optional [`prettier`](https://github.com/prettier/prettier) integration to typescript package to pretty-print code
- Remove custom Typescript formatter

## 1.4.1

- Lock Typescript to <2.7.0 [#132](https://github.com/avantcredit/gql2ts/pull/132)
- Lock Typescript to <2.7.0 [#132](https://github.com/amount/gql2ts/pull/132)

## 1.4.0

- Allow custom `TypeMap` in `@gql2ts/from-schema`, similar to `@gql2ts/from-query` [#109](https://github.com/avantcredit/gql2ts/pull/109)
- Allow custom `TypeMap` in `@gql2ts/from-schema`, similar to `@gql2ts/from-query` [#109](https://github.com/amount/gql2ts/pull/109)

## 1.3.0

- Allow GraphQL Schema Language input in CLI

## 1.2.2

- Fix Default Export / CommonJS for `-e` flag on CLI [#99](https://github.com/avantcredit/gql2ts/pull/99)
- Add description JSDoc to individual fields [#96](https://github.com/avantcredit/gql2ts/pull/96)
- Update Some DevDependencies [#94](https://github.com/avantcredit/gql2ts/pull/94)
- Fix Default Export / CommonJS for `-e` flag on CLI [#99](https://github.com/amount/gql2ts/pull/99)
- Add description JSDoc to individual fields [#96](https://github.com/amount/gql2ts/pull/96)
- Update Some DevDependencies [#94](https://github.com/amount/gql2ts/pull/94)

## 1.2.1

- Pin version of `graphql` to `^0.10.5` in all packages [#89](https://github.com/avantcredit/gql2ts/pull/89)
- Pin version of `graphql` to `^0.10.5` in all packages [#89](https://github.com/amount/gql2ts/pull/89)

## 1.2.0

### Breaking Changes

- Use string literal for `__typename` [#87](https://github.com/avantcredit/gql2ts/pull/87), for instance:
- Use string literal for `__typename` [#87](https://github.com/amount/gql2ts/pull/87), for instance:

```ts
interface IWhatever {
Expand All @@ -127,11 +127,11 @@ interface IWhatever {

## 1.1.3

- Fix [Issue #85](https://github.com/avantcredit/gql2ts/issues/85) [#86](https://github.com/avantcredit/gql2ts/pull/86)
- Fix [Issue #85](https://github.com/amount/gql2ts/issues/85) [#86](https://github.com/amount/gql2ts/pull/86)

## 1.1.2

- Expose `ignoreTypeNameDeclaration` in the CLI. Use `--ignore-type-name-declaration` to enable it [#81](https://github.com/avantcredit/gql2ts/pull/81)
- Expose `ignoreTypeNameDeclaration` in the CLI. Use `--ignore-type-name-declaration` to enable it [#81](https://github.com/amount/gql2ts/pull/81)

## 1.1.1

Expand All @@ -141,7 +141,7 @@ interface IWhatever {

### @gql2ts/from-schema

- Add option `ignoreTypeNameDeclaration` to not add `__typename` to all fields (thanks [@epicallan](https://github.com/epicallan)) [#72](https://github.com/avantcredit/gql2ts/pull/72)
- Add option `ignoreTypeNameDeclaration` to not add `__typename` to all fields (thanks [@epicallan](https://github.com/epicallan)) [#72](https://github.com/amount/gql2ts/pull/72)

## 1.0.3

Expand All @@ -153,7 +153,7 @@ interface IWhatever {

## 1.0.1

- Fix `@gql2ts/from-schema` not handling Unions properly [#66](https://github.com/avantcredit/gql2ts/pull/66)
- Fix `@gql2ts/from-schema` not handling Unions properly [#66](https://github.com/amount/gql2ts/pull/66)

## 1.0.0

Expand Down Expand Up @@ -186,33 +186,33 @@ interface IWhatever {

## 0.5.1

- Add `tslint:disable` to generated files - [@AdirAmsalem](https://github.com/AdirAmsalem) [#38](https://github.com/avantcredit/gql2ts/pull/38)
- Update `graphql` dependency [#29](https://github.com/avantcredit/gql2ts/pull/29)
- Add `tslint:disable` to generated files - [@AdirAmsalem](https://github.com/AdirAmsalem) [#38](https://github.com/amount/gql2ts/pull/38)
- Update `graphql` dependency [#29](https://github.com/amount/gql2ts/pull/29)

## 0.5.0

- Adds support for nullability attributes inside derived interfaces - [@neelance](https://github.com/neelance) [@orta](https://github.com/orta) [#34](https://github.com/avantcredit/gql2ts/pull/34).
- Adds support for nullability attributes inside derived interfaces - [@neelance](https://github.com/neelance) [@orta](https://github.com/orta) [#34](https://github.com/amount/gql2ts/pull/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 `GraphQLInterface`s with their possible types. (thanks [@tomaba](https://github.com/tomaba)) [#25](https://github.com/avantcredit/gql2ts/pull/25)
- Stop extending `GraphQLInterface`s with their possible types. (thanks [@tomaba](https://github.com/tomaba)) [#25](https://github.com/amount/gql2ts/pull/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](https://github.com/avantcredit/gql2ts/pull/20)
- Accept `__schema` at the top level [#20](https://github.com/amount/gql2ts/pull/20)

## 0.3.0

### Breaking Changes

- Change from `module` to `namespace` [#14](https://github.com/avantcredit/gql2ts/pull/14)
- Change from `module` to `namespace` [#14](https://github.com/amount/gql2ts/pull/14)
- Removed `-m`/`--module-name` flag in favor of `-n`/`--namespace`

### Patches

- Fix for `Int` Scalar Type (thanks [@valorize](https://github.com/valorize)) [#15](https://github.com/avantcredit/gql2ts/pull/15)
- Fix for `Int` Scalar Type (thanks [@valorize](https://github.com/valorize)) [#15](https://github.com/amount/gql2ts/pull/15)

## 0.2.1

Expand Down
7 changes: 3 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# GQL2TS

[![Greenkeeper badge](https://badges.greenkeeper.io/avantcredit/gql2ts.svg)](https://greenkeeper.io/)
[![Greenkeeper badge](https://badges.greenkeeper.io/amount/gql2ts.svg)](https://greenkeeper.io/)
[![npm version](https://badge.fury.io/js/gql2ts.svg)](https://badge.fury.io/js/gql2ts)
[![TravisCI Build Status](https://travis-ci.org/avantcredit/gql2ts.svg?branch=master)](https://travis-ci.org/avantcredit/gql2ts)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/kfa00svxkiqfb4yh/branch/master?svg=true)](https://ci.appveyor.com/project/brettjurgens/gql2ts/branch/master)
[![Coveralls Coverage](https://coveralls.io/repos/github/avantcredit/gql2ts/badge.svg)](https://coveralls.io/github/avantcredit/gql2ts)
[![TravisCI Build Status](https://travis-ci.org/amount/gql2ts.svg?branch=master)](https://travis-ci.org/amount/gql2ts)
[![Coveralls Coverage](https://coveralls.io/repos/github/amount/gql2ts/badge.svg)](https://coveralls.io/github/amount/gql2ts)
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)

Generate TypeScript and Flow type interfaces from GraphQL types and query definitions.
Expand Down
32 changes: 0 additions & 32 deletions appveyor.yml

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
"graphql"
],
"author": "Brett Jurgens <brett.jurgens@avant.com> (https://www.avant.com)",
"contributors": [
"Brandon Herman <brandon.herman@amount.com> (https://www.amount.com)"
],
"license": "MIT",
"repository": "avantcredit/gql2ts",
"repository": "amount/gql2ts",
"bin": {
"gql2ts": "./index.js"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/from-query/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const doIt: FromQuerySignature = (schema, query, typeMap = {}, providedOptions =
* @TODO need to handle fragments of fragments better
* An example of a previously unsupported fragment can be found in the __tests__ directory
* `fragmentSelections.length` is definitely a hack and a proper solution should be investigated
* See: https://github.com/avantcredit/gql2ts/issues/76
* See: https://github.com/amount/gql2ts/issues/76
*/
if (!fragmentSelections.length && anon) {
let joinSelections: string = filterAndJoinArray(selections.map(s => s.iface), '\n');
Expand Down
8 changes: 4 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/avantcredit/gql2ts.git"
"url": "git+https://github.com/amount/gql2ts.git"
},
"keywords": [
"gql2ts",
"graphql",
"typescript"
],
"author": "Brett Jurgens <brett.jurgens@avant.com> (https://www.avant.com)",
"author": "Brett Jurgens <brett.jurgens@avant.com> (https://www.amount.com)",
"license": "ISC",
"bugs": {
"url": "https://github.com/avantcredit/gql2ts/issues"
"url": "https://github.com/amount/gql2ts/issues"
},
"homepage": "https://github.com/avantcredit/gql2ts#readme",
"homepage": "https://github.com/amount/gql2ts#readme",
"dependencies": {
"@gql2ts/util": "^1.9.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/avantcredit/gql2ts.git"
"url": "git+https://github.com/amount/gql2ts.git"
},
"keywords": [
"gql2ts",
Expand All @@ -24,9 +24,9 @@
"author": "Brett Jurgens <brett.jurgens@avant.com> (https://www.avant.com)",
"license": "ISC",
"bugs": {
"url": "https://github.com/avantcredit/gql2ts/issues"
"url": "https://github.com/amount/gql2ts/issues"
},
"homepage": "https://github.com/avantcredit/gql2ts#readme",
"homepage": "https://github.com/amount/gql2ts#readme",
"devDependencies": {
"graphql": ">= 0.10 <15"
},
Expand Down