Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dotansimha/graphql-code-generator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.1
Choose a base ref
...
head repository: dotansimha/graphql-code-generator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.0
Choose a head ref

Commits on Aug 16, 2019

  1. Copy the full SHA
    84629a7 View commit details

Commits on Aug 17, 2019

  1. Update dependency netlify-lambda to v1.6.2 (#2391)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 17, 2019
    Copy the full SHA
    5d0154b View commit details
  2. Update dependency lint-staged to v9.2.2 (#2394)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 17, 2019
    Copy the full SHA
    58f14bd View commit details
  3. Update dependency husky to v3.0.4 (#2393)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 17, 2019
    Copy the full SHA
    982f3ac View commit details
  4. Update dependency lint-staged to v9.2.3 (#2395)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 17, 2019
    Copy the full SHA
    7863297 View commit details

Commits on Aug 19, 2019

  1. Copy the full SHA
    f2ff9fe View commit details
  2. Update dependency codemirror to v5.48.4 (#2399)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 19, 2019
    Copy the full SHA
    8e52fa7 View commit details

Commits on Aug 20, 2019

  1. Update dependency @types/react-dom to v16.9.0 (#2405)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 20, 2019
    Copy the full SHA
    14ccade View commit details
  2. Update dependency aws-sdk to v2.513.0 (#2404)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 20, 2019
    Copy the full SHA
    28758ae View commit details
  3. Update dependency @types/jest to v24.0.18 (#2403)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 20, 2019
    Copy the full SHA
    e345dce View commit details
  4. [fix] hook functions don't need a ; at the end

    This change hopefully breaks tests. ;-)
    lookfirst authored Aug 20, 2019
    Copy the full SHA
    ea4cf7a View commit details
  5. test(typescript-operations): do not omit fragment spread nodes (Fix for

    #2407) (#2409)
    
    * test(typescript-operations): add failing test for #2407
    
    * fix(visitor-plugin-common): do not omit fragment spread nodes
    n1ru4l authored and dotansimha committed Aug 20, 2019
    Copy the full SHA
    70d0426 View commit details

Commits on Aug 21, 2019

  1. Copy the full SHA
    fcd5162 View commit details
  2. Copy the full SHA
    bcb0da7 View commit details
  3. Copy the full SHA
    80fd054 View commit details
  4. Copy the full SHA
    877dd62 View commit details
  5. Copy the full SHA
    3a8a58e View commit details
  6. Copy the full SHA
    5c25e46 View commit details
  7. Copy the full SHA
    a1b293c View commit details

Commits on Aug 22, 2019

  1. Copy the full SHA
    8876cbd View commit details
  2. Copy the full SHA
    0bbf649 View commit details
  3. Copy the full SHA
    0731824 View commit details

Commits on Aug 27, 2019

  1. Copy the full SHA
    31d3a6a View commit details
  2. Copy the full SHA
    39a3cb4 View commit details
  3. Copy the full SHA
    fabc55d View commit details
  4. Copy the full SHA
    122445d View commit details
  5. Copy the full SHA
    efc0d24 View commit details
  6. Copy the full SHA
    e3792d7 View commit details
  7. Copy the full SHA
    3c1aa68 View commit details
  8. chore(deps): update dependency graphql to v14.5.3 (#2435)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 27, 2019
    Copy the full SHA
    94eb657 View commit details
  9. Copy the full SHA
    5d59a50 View commit details
  10. feat(type-graphql): allow overriding decorators (#2448)

    * feat(type-graphql): allow overriding decorators
    
    * tests(type-graphql): add tests for custom-decorators
    NickBolles authored and dotansimha committed Aug 27, 2019
    Copy the full SHA
    7ffc934 View commit details
  11. fix(visitor-plugin-common): union/interface types with same selection…

    … set field name but different type (#2436) (#2437)
    
    * test(typescript-operations): add failing test for #2436
    
    * fix(visitor-plugin-common): remove code that caused #2436
    
    * test(typescript-operations): add union test
    n1ru4l authored and dotansimha committed Aug 27, 2019
    Copy the full SHA
    c626daf View commit details
  12. Copy the full SHA
    dcdd6e5 View commit details
  13. Add sub-folder param to near-operation-file (#2429)

    * Add "folder" option
    
    * Update
    fforres authored and dotansimha committed Aug 27, 2019
    Copy the full SHA
    20aa880 View commit details
  14. Make GraphQL operation alias unique from HOC name (#2430)

    * Make graphql operation alias unique from hoc name
    
    * Change alias to use camel case
    
    * Fix specs associated with HOC operation alias
    
    * Address remaining react-apollo alias specs
    uhLeeshUh authored and dotansimha committed Aug 27, 2019
    Copy the full SHA
    531414e View commit details
  15. Copy the full SHA
    d9a9535 View commit details
  16. fix tests

    dotansimha committed Aug 27, 2019
    Copy the full SHA
    06b5248 View commit details
  17. Copy the full SHA
    6fad6d3 View commit details
  18. Fix external mode problem where Operationstions are imported even whe…

    …n they are not used (#2392)
    eddeee888 authored and dotansimha committed Aug 27, 2019
    Copy the full SHA
    42ab136 View commit details
  19. Update README.md (#2451)

    amshalem authored and dotansimha committed Aug 27, 2019
    Copy the full SHA
    ec6ddf9 View commit details

Commits on Aug 29, 2019

  1. Copy the full SHA
    707ab95 View commit details
  2. Copy the full SHA
    aeb597c View commit details
  3. Copy the full SHA
    38deb31 View commit details
  4. Copy the full SHA
    608f1dd View commit details
  5. import-types-preset (#2343)

    veeramarni authored and dotansimha committed Aug 29, 2019
    Copy the full SHA
    3a6e2eb View commit details
  6. chore(deps): update dependency typescript to v3.6.2 (#2457)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 29, 2019
    Copy the full SHA
    e54002f View commit details
  7. Fix missing readonly for __typename with immutableTypes (#2459)

    * Fix missing readonly for __typename with immutableTypes
    
    * Fix test
    ardatan authored and dotansimha committed Aug 29, 2019
    Copy the full SHA
    cdcdebf View commit details
  8. chore(deps): update dependency graphql to v14.5.4 (#2460)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    2 people authored and dotansimha committed Aug 29, 2019
    Copy the full SHA
    8286f3f View commit details
  9. near-operation-file fixes (#2458)

    * fix issues with preResolveType, near-operation-file and enums
    
    * try to fix issues with unused Types import
    
    * fix issues with isUsingTypes
    dotansimha authored Aug 29, 2019
    Copy the full SHA
    4370057 View commit details
Showing with 2,350 additions and 852 deletions.
  1. +1 −1 .circleci/config.yml
  2. +1 −5 README.md
  3. +1 −0 dev-test/codegen.yml
  4. +40 −0 dev-test/githunt/__generated__/comment-added.subscription.stencil-component.tsx
  5. +67 −0 dev-test/githunt/__generated__/comment.query.stencil-component.tsx
  6. +20 −0 dev-test/githunt/__generated__/comments-page-comment.fragment.stencil-component.tsx
  7. +31 −0 dev-test/githunt/__generated__/current-user.query.stencil-component.tsx
  8. +32 −0 dev-test/githunt/__generated__/feed-entry.fragment.stencil-component.tsx
  9. +39 −0 dev-test/githunt/__generated__/feed.query.stencil-component.tsx
  10. +32 −0 dev-test/githunt/__generated__/new-entry.mutation.stencil-component.tsx
  11. +26 −0 dev-test/githunt/__generated__/repo-info.fragment.stencil-component.tsx
  12. +35 −0 dev-test/githunt/__generated__/submit-comment.mutation.stencil-component.tsx
  13. +17 −0 dev-test/githunt/__generated__/vote-buttons.fragment.stencil-component.tsx
  14. +37 −0 dev-test/githunt/__generated__/vote.mutation.stencil-component.tsx
  15. +8 −8 dev-test/githunt/types.immutableTypes.ts
  16. +7 −7 dev-test/githunt/types.reactApollo.customSuffix.tsx
  17. +7 −7 dev-test/githunt/types.reactApollo.hooks.tsx
  18. +7 −7 dev-test/githunt/types.reactApollo.preResolveTypes.tsx
  19. +7 −7 dev-test/githunt/types.reactApollo.tsx
  20. +9 −9 dev-test/star-wars/types.immutableTypes.ts
  21. +1 −1 lerna.json
  22. +10 −10 package.json
  23. +7 −7 packages/graphql-codegen-cli/package.json
  24. +3 −3 packages/graphql-codegen-core/package.json
  25. +2 −1 packages/graphql-codegen-core/src/codegen.ts
  26. +2 −1 packages/graphql-codegen-core/src/execute-plugin.ts
  27. +6 −6 packages/plugins/flow/flow/package.json
  28. +1 −1 packages/plugins/flow/flow/src/visitor.ts
  29. +9 −9 packages/plugins/flow/operations/package.json
  30. +2 −2 packages/plugins/flow/operations/src/flow-selection-set-to-object.ts
  31. +9 −9 packages/plugins/flow/resolvers/package.json
  32. +1 −1 packages/plugins/flow/resolvers/src/visitor.ts
  33. +5 −5 packages/plugins/java/common/package.json
  34. +7 −7 packages/plugins/java/java/package.json
  35. +10 −13 packages/plugins/java/java/src/visitor.ts
  36. +7 −7 packages/plugins/java/resolvers/package.json
  37. +10 −13 packages/plugins/java/resolvers/src/visitor.ts
  38. +4 −4 packages/plugins/other/add/package.json
  39. +4 −4 packages/plugins/other/fragment-matcher/package.json
  40. +4 −4 packages/plugins/other/introspection/package.json
  41. +4 −4 packages/plugins/other/schema-ast/package.json
  42. +4 −4 packages/plugins/other/time/package.json
  43. +6 −6 packages/plugins/other/visitor-plugin-common/package.json
  44. +12 −15 packages/plugins/other/visitor-plugin-common/src/base-documents-visitor.ts
  45. +19 −22 packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts
  46. +54 −25 packages/plugins/other/visitor-plugin-common/src/base-types-visitor.ts
  47. +9 −12 packages/plugins/other/visitor-plugin-common/src/base-visitor.ts
  48. +8 −2 packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts
  49. +1 −1 packages/plugins/other/visitor-plugin-common/src/enum-values.ts
  50. +11 −6 packages/plugins/other/visitor-plugin-common/src/mappers.ts
  51. +2 −14 packages/plugins/other/visitor-plugin-common/src/scalars.ts
  52. +17 −36 packages/plugins/other/visitor-plugin-common/src/selection-set-to-object.ts
  53. +4 −1 packages/plugins/other/visitor-plugin-common/src/types.ts
  54. +51 −13 packages/plugins/other/visitor-plugin-common/src/utils.ts
  55. +2 −2 packages/plugins/other/visitor-plugin-common/src/variables-to-object.ts
  56. +0 −21 packages/plugins/other/visitor-plugin-common/tests/scalars.spec.ts
  57. +6 −6 packages/plugins/typescript/apollo-angular/package.json
  58. +5 −5 packages/plugins/typescript/compatibility/package.json
  59. +2 −1 packages/plugins/typescript/compatibility/src/visitor.ts
  60. +6 −6 packages/plugins/typescript/document-nodes/package.json
  61. +5 −5 packages/plugins/typescript/graphql-files-modules/package.json
  62. +8 −8 packages/plugins/typescript/mongodb/package.json
  63. +5 −2 packages/plugins/typescript/mongodb/src/fields-tree.ts
  64. +3 −2 packages/plugins/typescript/mongodb/src/visitor.ts
  65. +7 −7 packages/plugins/typescript/operations/package.json
  66. +2 −2 packages/plugins/typescript/operations/src/ts-selection-set-to-object.ts
  67. +258 −0 packages/plugins/typescript/operations/tests/ts-documents.spec.ts
  68. +6 −6 packages/plugins/typescript/react-apollo/package.json
  69. +8 −8 packages/plugins/typescript/react-apollo/src/visitor.ts
  70. +113 −48 packages/plugins/typescript/react-apollo/tests/react-apollo.spec.ts
  71. +7 −7 packages/plugins/typescript/resolvers/package.json
  72. +1 −1 packages/plugins/typescript/resolvers/src/visitor.ts
  73. +7 −7 packages/plugins/typescript/stencil-apollo/package.json
  74. +7 −7 packages/plugins/typescript/type-graphql/package.json
  75. +4 −2 packages/plugins/typescript/type-graphql/src/index.ts
  76. +126 −18 packages/plugins/typescript/type-graphql/src/visitor.ts
  77. +186 −2 packages/plugins/typescript/type-graphql/tests/type-graphql.spec.ts
  78. +6 −6 packages/plugins/typescript/typescript/package.json
  79. +1 −1 packages/plugins/typescript/typescript/src/index.ts
  80. +2 −2 packages/plugins/typescript/typescript/src/typescript-variables-to-object.ts
  81. +1 −1 packages/plugins/typescript/typescript/tests/typescript.spec.ts
  82. +6 −6 packages/plugins/typescript/urql/package.json
  83. +2 −2 packages/plugins/typescript/urql/src/visitor.ts
  84. +5 −0 packages/presets/import-types/.gitignore
  85. +4 −0 packages/presets/import-types/.npmignore
  86. +37 −0 packages/presets/import-types/package.json
  87. +87 −0 packages/presets/import-types/src/index.ts
  88. +19 −0 packages/presets/import-types/src/utils.ts
  89. +181 −0 packages/presets/import-types/tests/types-import.spec.ts
  90. +22 −0 packages/presets/import-types/tsconfig.json
  91. +7 −7 packages/presets/near-operation-file/package.json
  92. +29 −6 packages/presets/near-operation-file/src/index.ts
  93. +29 −5 packages/presets/near-operation-file/src/utils.ts
  94. +32 −0 packages/presets/near-operation-file/tests/is-using-types.spec.ts
  95. +27 −2 packages/presets/near-operation-file/tests/near-operation-file.spec.ts
  96. +3 −3 packages/utils/config-md-generator/package.json
  97. +3 −3 packages/utils/graphql-codegen-testing/package.json
  98. +2 −2 packages/utils/plugins-helpers/package.json
  99. +1 −1 packages/utils/plugins-helpers/src/types.ts
  100. +29 −29 website/live-demo/package.json
  101. +3 −3 website/package.json
  102. +308 −280 yarn.lock
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:12.8.1
- image: circleci/node:12.9.1
steps:
- checkout
- restore_cache:
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GraphQL Code Generator
[![CodeGen](https://user-images.githubusercontent.com/25294569/63773131-35f6aa00-c8e3-11e9-8191-fc0ac6f959e4.gif)](https://graphql-code-generator.com)

[![npm version](https://badge.fury.io/js/%40graphql-codegen%2Fcli.svg)](https://badge.fury.io/js/%40graphql-codegen%2Fcli)
[![CircleCI](https://circleci.com/gh/dotansimha/graphql-code-generator/tree/master.svg?style=svg)](https://circleci.com/gh/dotansimha/graphql-code-generator/tree/master)
@@ -11,10 +11,6 @@

[graphql-code-generator.com](https://graphql-code-generator.com)

<p align="center">
<img src="https://github.com/dotansimha/graphql-code-generator/blob/master/logo.png?raw=true" />
</p>

[GraphQL Codegen 1.0 is here!](https://graphql-code-generator.com/docs/migration/from-0-18)

GraphQL Code Generator is a tool that generates code out of your GraphQL schema. Whether you are developing a frontend or backend, you can utilize GraphQL Code Generator to generate output from your GraphQL Schema and GraphQL Documents (query/mutation/subscription/fragment).
1 change: 1 addition & 0 deletions dev-test/codegen.yml
Original file line number Diff line number Diff line change
@@ -183,6 +183,7 @@ generates:
preset: near-operation-file
presetConfig:
extension: .stencil-component.tsx
folder: __generated__
baseTypesPath: types.d.ts
plugins:
- add: // tslint:disable

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions dev-test/githunt/__generated__/comment.query.stencil-component.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions dev-test/githunt/__generated__/feed.query.stencil-component.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading