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.17.7
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: @graphql-codegen/cli@1.17.8
Choose a head ref

Commits on Aug 3, 2020

  1. Copy the full SHA
    b600144 View commit details
  2. Update dependency @graphql-typed-document-node/core to v2 (#4473)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 3, 2020
    Copy the full SHA
    6926084 View commit details
  3. Create Dependabot config file (#4476)

    * Create Dependabot config file
    
    * Update dependabot.yml
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    Co-authored-by: Dotan Simha <dotansimha@gmail.com>
    dependabot-preview[bot] and dotansimha authored Aug 3, 2020
    Copy the full SHA
    bc20b4c View commit details
  4. Copy the full SHA
    aad1598 View commit details
  5. Bump @graphql-typed-document-node/core from 1.0.0 to 2.1.0 (#4481)

    Bumps [@graphql-typed-document-node/core](https://github.com/dotansimha/graphql-typed-document-node) from 1.0.0 to 2.1.0.
    - [Release notes](https://github.com/dotansimha/graphql-typed-document-node/releases)
    - [Commits](dotansimha/graphql-typed-document-node@v1.0.0...v2.1.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] authored Aug 3, 2020
    Copy the full SHA
    9d8c1e4 View commit details
  6. Bump @apollo/react-hoc from 3.1.5 to 4.0.0 (#4477)

    Bumps [@apollo/react-hoc](https://github.com/apollographql/react-apollo) from 3.1.5 to 4.0.0.
    - [Release notes](https://github.com/apollographql/react-apollo/releases)
    - [Changelog](https://github.com/apollographql/react-apollo/blob/master/Changelog.md)
    - [Commits](https://github.com/apollographql/react-apollo/compare/@apollo/react-hoc@3.1.5...@apollo/react-hoc@4.0.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] authored Aug 3, 2020
    Copy the full SHA
    cfed087 View commit details
  7. Bump @types/log-symbols from 2.0.0 to 3.0.0 (#4478)

    Bumps [@types/log-symbols](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/log-symbols) from 2.0.0 to 3.0.0.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/log-symbols)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] authored Aug 3, 2020
    Copy the full SHA
    3400080 View commit details
  8. Bump @apollo/react-components from 3.1.5 to 4.0.0 (#4480)

    Bumps [@apollo/react-components](https://github.com/apollographql/react-apollo) from 3.1.5 to 4.0.0.
    - [Release notes](https://github.com/apollographql/react-apollo/releases)
    - [Changelog](https://github.com/apollographql/react-apollo/blob/master/Changelog.md)
    - [Commits](https://github.com/apollographql/react-apollo/compare/@apollo/react-components@3.1.5...@apollo/react-components@4.0.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] authored Aug 3, 2020
    Copy the full SHA
    efb9935 View commit details
  9. Bump @types/chokidar from 1.7.5 to 2.1.3 (#4479)

    Bumps [@types/chokidar](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chokidar) from 1.7.5 to 2.1.3.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chokidar)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] authored Aug 3, 2020
    Copy the full SHA
    84dc4d0 View commit details
  10. cleanup old files

    dotansimha committed Aug 3, 2020
    Copy the full SHA
    6977049 View commit details
  11. Copy the full SHA
    6914ad4 View commit details
  12. Copy the full SHA
    aab7f8d View commit details
  13. Add operation export name (#4020)

    * Add operation export name
    
    * Add semicolon to output
    
    * Add more info to jsdoc
    
    * Fix typos
    aspirisen authored Aug 3, 2020
    Copy the full SHA
    36cbf18 View commit details
  14. Bump @types/detect-indent from 5.0.0 to 6.0.0 (#4483)

    Bumps [@types/detect-indent](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/detect-indent) from 5.0.0 to 6.0.0.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/detect-indent)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 3, 2020
    Copy the full SHA
    74b5106 View commit details
  15. Support apollo-client v3 and it's hooks by default, deprecate hoc and…

    … components. Updated all imports to latest (#4487)
    
    * support apollo-client v3 andi t's hooks by default, deprecate hoc and components. Updated all imports to latest
    
    * added changeset with migration notes
    
    * fixed for grouping all apollo related imports under the same namespace
    dotansimha authored Aug 3, 2020
    Copy the full SHA
    091dfea View commit details
  16. Test new releases flow (#4488)

    * test for new release flow
    
    * fix scripts
    dotansimha authored Aug 3, 2020
    Copy the full SHA
    6c2f8f3 View commit details
  17. Copy the full SHA
    adb268c View commit details

Commits on Aug 4, 2020

  1. Bump @typescript-eslint/parser from 3.7.1 to 3.8.0 (#4489)

    Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 3.7.1 to 3.8.0.
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v3.8.0/packages/parser)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 4, 2020
    Copy the full SHA
    9589f6a View commit details
  2. Bump @apollo/client from 3.1.1 to 3.1.2 (#4491)

    Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.1.1 to 3.1.2.
    - [Release notes](https://github.com/apollographql/apollo-client/releases)
    - [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md)
    - [Commits](apollographql/apollo-client@v3.1.1...v3.1.2)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 4, 2020
    Copy the full SHA
    777412c View commit details
  3. fixes (#4496)

    dotansimha authored Aug 4, 2020
    Copy the full SHA
    ce3a579 View commit details
  4. Copy the full SHA
    3bb47af View commit details
  5. Bump @oclif/command from 1.7.0 to 1.8.0 (#4497)

    Bumps [@oclif/command](https://github.com/oclif/command) from 1.7.0 to 1.8.0.
    - [Release notes](https://github.com/oclif/command/releases)
    - [Changelog](https://github.com/oclif/command/blob/master/CHANGELOG.md)
    - [Commits](oclif/command@v1.7.0...v1.8.0)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 4, 2020
    Copy the full SHA
    8f31a9a View commit details
  6. Copy the full SHA
    e6ad539 View commit details
  7. Update release and canary pipeline and some minor bug fixes (#4498)

    * update release pipeline to use changesets
    
    * wip
    
    * fixes
    
    * fixes
    
    * fix issues with time plugin and .graphql files
    
    * fix for canary
    
    * fixes
    
    * fix for ts-react-apollo and file extension validation
    
    * update note
    
    * fixes
    
    * fixes for graphql-tag issues in IDEs/prettier
    
    * fixes for tests
    
    * trigger ci test
    
    * try to limit npm request count with patch-package
    dotansimha authored Aug 4, 2020
    Copy the full SHA
    bccfd28 View commit details
  8. fixes

    dotansimha committed Aug 4, 2020
    Copy the full SHA
    3dc2993 View commit details
  9. Copy the full SHA
    d7e0b7b View commit details
  10. chore(release): update monorepo packages versions (#4503)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Aug 4, 2020
    Copy the full SHA
    49759f7 View commit details
  11. bump fix

    dotansimha committed Aug 4, 2020
    Copy the full SHA
    6cb9c96 View commit details
  12. chore(release): update monorepo packages versions (#4505)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Aug 4, 2020
    Copy the full SHA
    564615e View commit details
  13. fixes

    dotansimha committed Aug 4, 2020
    Copy the full SHA
    ee2b01a View commit details
  14. Copy the full SHA
    dae89cf View commit details
  15. chore(release): update monorepo packages versions (#4506)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Aug 4, 2020
    Copy the full SHA
    1f79251 View commit details
  16. Copy the full SHA
    96bf008 View commit details
  17. Copy the full SHA
    5df2c20 View commit details
  18. Remove the option to use string config in plugins (add / time plu…

    …gins) (#4509)
    
    * fixes for docs
    fixes for time plugin
    fixes for add plugin
    fixes for website docs generation
    
    * added changeset
    
    * test and usage fixes, updated generated docs
    dotansimha authored Aug 4, 2020
    Copy the full SHA
    bc6e5c0 View commit details
  19. Copy the full SHA
    b9113da View commit details

Commits on Aug 5, 2020

  1. Bump @graphql-typed-document-node/core from 2.1.0 to 3.0.0 (#4514)

    * Bump @graphql-typed-document-node/core from 2.1.0 to 3.0.0
    
    Bumps [@graphql-typed-document-node/core](https://github.com/dotansimha/graphql-typed-document-node) from 2.1.0 to 3.0.0.
    - [Release notes](https://github.com/dotansimha/graphql-typed-document-node/releases)
    - [Commits](dotansimha/graphql-typed-document-node@v2.1.0...v3.0.0)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * fix canary publish script
    
    * fixes
    
    * fixes for canary publishing
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Dotan Simha <dotansimha@gmail.com>
    dependabot[bot] and dotansimha authored Aug 5, 2020
    Copy the full SHA
    cff7274 View commit details
  2. Support Apollo Angular 2.0 and add serviceProvidedIn option (#4507)

    * Support Apollo Angular 2.0
    
    * Change defaults
    
    * Update test
    
    * Add serviceProvidedInRoot option to Apollo Angular plugin
    
    * fix canary publish script
    
    Co-authored-by: Dotan Simha <dotansimha@gmail.com>
    kamilkisiela and dotansimha authored Aug 5, 2020
    Copy the full SHA
    bf29f13 View commit details
  3. Copy the full SHA
    c5e0336 View commit details
  4. typescript-react-apollo: prevent adding gql alias when `documentMod…

    …e` is `external` (#4516)
    
    * prevent adding gql alias when documentMode is external
    
    * added changeset
    dotansimha authored Aug 5, 2020
    Copy the full SHA
    2c3f072 View commit details
  5. Copy the full SHA
    7f2bf15 View commit details
  6. [typed-document-node] allow documentMode: graphqlTag (#4518)

    * allow `documentMode: graphqlTag` in typed-document-node plugin
    
    * fixes, update example
    dotansimha authored Aug 5, 2020
    Copy the full SHA
    4266a15 View commit details
  7. chore(release): update monorepo packages versions (#4510)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Aug 5, 2020
    Copy the full SHA
    aea1ca9 View commit details
  8. repo cleanup

    dotansimha committed Aug 5, 2020
    Copy the full SHA
    13bb4a0 View commit details
  9. Copy the full SHA
    de42174 View commit details
  10. 🐛: double quotes gql queries are not correctly escaped in c-sharp ope…

    …rations plugin (#4520)
    
    * 🐛: double quotes in constants in graphql queries are not correctly escaped in c-sharp operations plugin
    
    If a double quotes for a constant string are used in a graphql
    query these are escaped in c-sharp code as `"""` in the
    verbatim string, but in a verbatim string the escape sequence
    for a `"` is `""`.
    
    Change-type: patch
    Signed-off-by: Andreas Fitzek <andreas.fitzek@gmail.com>
    
    * Update many-owls-bathe.md
    
    Co-authored-by: Dotan Simha <dotansimha@gmail.com>
    afitzek and dotansimha authored Aug 5, 2020
    Copy the full SHA
    1980230 View commit details

Commits on Aug 6, 2020

  1. try to fix canary issues

    dotansimha committed Aug 6, 2020
    Copy the full SHA
    92a1399 View commit details
  2. Copy the full SHA
    563c9dc View commit details

Commits on Aug 11, 2020

  1. Bump chokidar from 3.4.1 to 3.4.2 (#4550)

    Bumps [chokidar](https://github.com/paulmillr/chokidar) from 3.4.1 to 3.4.2.
    - [Release notes](https://github.com/paulmillr/chokidar/releases)
    - [Commits](paulmillr/chokidar@3.4.1...3.4.2)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 11, 2020
    Copy the full SHA
    6834c25 View commit details
  2. Bump flow-parser from 0.130.0 to 0.131.0 (#4547)

    Bumps [flow-parser](https://github.com/facebook/flow) from 0.130.0 to 0.131.0.
    - [Release notes](https://github.com/facebook/flow/releases)
    - [Changelog](https://github.com/facebook/flow/blob/master/Changelog.md)
    - [Commits](facebook/flow@v0.130.0...v0.131.0)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 11, 2020
    Copy the full SHA
    6b5f15f View commit details
Showing with 7,072 additions and 3,984 deletions.
  1. +8 −0 .changeset/README.md
  2. +13 −0 .changeset/config.json
  3. +1 −1 .github/ISSUE_TEMPLATE/config.yml
  4. +7 −0 .github/dependabot.yml
  5. +0 −7 .github/release-drafter.yml
  6. +26 −13 .github/workflows/canary.yml
  7. +14 −9 .github/workflows/release.yml
  8. +1 −3 .github/workflows/website.yml
  9. +0 −1 CHANGELOG.md
  10. +9 −5 dev-test/codegen.yml
  11. +30 −2 dev-test/githunt/types.apolloAngular.sdk.ts
  12. +29 −1 dev-test/githunt/types.apolloAngular.ts
  13. +193 −250 dev-test/githunt/types.reactApollo.customSuffix.tsx
  14. +35 −278 dev-test/githunt/types.reactApollo.hooks.tsx
  15. +188 −231 dev-test/githunt/types.reactApollo.preResolveTypes.tsx
  16. +188 −231 dev-test/githunt/types.reactApollo.tsx
  17. +635 −0 dev-test/githunt/types.reactApollo.v2.tsx
  18. +29 −37 dev-test/githunt/types.urql.tsx
  19. +30 −47 dev-test/star-wars/__generated__/CreateReviewForEpisode.tsx
  20. +35 −39 dev-test/star-wars/__generated__/HeroAndFriendsNames.tsx
  21. +28 −39 dev-test/star-wars/__generated__/HeroAppearsIn.tsx
  22. +29 −36 dev-test/star-wars/__generated__/HeroDetails.tsx
  23. +1 −2 dev-test/star-wars/__generated__/HeroDetailsFragment.tsx
  24. +35 −39 dev-test/star-wars/__generated__/HeroDetailsWithFragment.tsx
  25. +26 −35 dev-test/star-wars/__generated__/HeroName.tsx
  26. +74 −79 dev-test/star-wars/__generated__/HeroNameConditional.tsx
  27. +37 −42 dev-test/star-wars/__generated__/HeroParentTypeDependentField.tsx
  28. +37 −42 dev-test/star-wars/__generated__/HeroTypeDependentAliasedField.tsx
  29. +1 −2 dev-test/star-wars/__generated__/HumanFields.tsx
  30. +34 −39 dev-test/star-wars/__generated__/HumanWithNullWeight.tsx
  31. +26 −36 dev-test/star-wars/__generated__/TwoHeroes.tsx
  32. +384 −415 dev-test/star-wars/types.refetchFn.tsx
  33. +22 −29 dev-test/test-message/types.tsx
  34. +6 −1 dev-test/test-schema/schema-federation.graphql
  35. +0 −1 dev-test/test-schema/typings.wrapped.ts
  36. +36 −30 package.json
  37. +10 −0 packages/graphql-cli-codegen-plugin/CHANGELOG.md
  38. +3 −2 packages/graphql-cli-codegen-plugin/package.json
  39. +12 −0 packages/graphql-codegen-cli/CHANGELOG.md
  40. +47 −46 packages/graphql-codegen-cli/package.json
  41. +3 −0 packages/graphql-codegen-cli/src/codegen.ts
  42. +7 −1 packages/graphql-codegen-cli/src/config.ts
  43. +20 −0 packages/graphql-codegen-cli/tests/codegen.spec.ts
  44. +8 −0 packages/graphql-codegen-cli/tests/custom-loaders/custom-schema-loader-with-context.js
  45. +5 −0 packages/graphql-codegen-cli/tests/custom-plugins/context.js
  46. +4 −4 packages/graphql-codegen-cli/tests/generate-and-save.spec.ts
  47. +11 −0 packages/graphql-codegen-core/CHANGELOG.md
  48. +5 −4 packages/graphql-codegen-core/package.json
  49. +10 −3 packages/graphql-codegen-core/src/codegen.ts
  50. +12 −1 packages/graphql-codegen-core/src/execute-plugin.ts
  51. +12 −0 packages/plugins/c-sharp/c-sharp-operations/CHANGELOG.md
  52. +7 −6 packages/plugins/c-sharp/c-sharp-operations/package.json
  53. +1 −1 packages/plugins/c-sharp/c-sharp-operations/src/visitor.ts
  54. +21 −0 packages/plugins/c-sharp/c-sharp-operations/test/c-sharp-operations.spec.ts
  55. +11 −0 packages/plugins/c-sharp/c-sharp/CHANGELOG.md
  56. +7 −6 packages/plugins/c-sharp/c-sharp/package.json
  57. +33 −33 packages/plugins/c-sharp/common/c-sharp-field-types.ts
  58. +83 −83 packages/plugins/c-sharp/common/keywords.ts
  59. +1 −4 packages/plugins/c-sharp/common/utils.ts
  60. +15 −0 packages/plugins/flow/flow/CHANGELOG.md
  61. +4 −3 packages/plugins/flow/flow/package.json
  62. +27 −0 packages/plugins/flow/flow/tests/__snapshots__/flow.spec.ts.snap
  63. +10 −0 packages/plugins/flow/flow/tests/flow.spec.ts
  64. +13 −0 packages/plugins/flow/operations/CHANGELOG.md
  65. +5 −4 packages/plugins/flow/operations/package.json
  66. +3 −1 packages/plugins/flow/operations/src/flow-selection-set-processor.ts
  67. +13 −0 packages/plugins/flow/resolvers/CHANGELOG.md
  68. +6 −5 packages/plugins/flow/resolvers/package.json
  69. +12 −0 packages/plugins/java/apollo-android/CHANGELOG.md
  70. +8 −7 packages/plugins/java/apollo-android/package.json
  71. +11 −0 packages/plugins/java/common/CHANGELOG.md
  72. +6 −5 packages/plugins/java/common/package.json
  73. +12 −0 packages/plugins/java/java/CHANGELOG.md
  74. +5 −4 packages/plugins/java/java/package.json
  75. +12 −0 packages/plugins/java/kotlin/CHANGELOG.md
  76. +5 −4 packages/plugins/java/kotlin/package.json
  77. +12 −0 packages/plugins/java/resolvers/CHANGELOG.md
  78. +5 −4 packages/plugins/java/resolvers/package.json
  79. +35 −0 packages/plugins/other/add/CHANGELOG.md
  80. +3 −2 packages/plugins/other/add/package.json
  81. +14 −0 packages/plugins/other/add/src/config.ts
  82. +10 −29 packages/plugins/other/add/src/index.ts
  83. +10 −0 packages/plugins/other/fragment-matcher/CHANGELOG.md
  84. +3 −2 packages/plugins/other/fragment-matcher/package.json
  85. +10 −0 packages/plugins/other/introspection/CHANGELOG.md
  86. +3 −2 packages/plugins/other/introspection/package.json
  87. +12 −0 packages/plugins/other/jsdoc/CHANGELOG.md
  88. +4 −3 packages/plugins/other/jsdoc/package.json
  89. +7 −7 packages/plugins/other/jsdoc/src/index.ts
  90. +14 −14 packages/plugins/other/jsdoc/tests/jsdoc-schema-types.spec.ts
  91. +10 −0 packages/plugins/other/schema-ast/CHANGELOG.md
  92. +4 −3 packages/plugins/other/schema-ast/package.json
  93. +54 −0 packages/plugins/other/time/CHANGELOG.md
  94. +3 −2 packages/plugins/other/time/package.json
  95. +30 −0 packages/plugins/other/time/src/config.ts
  96. +14 −39 packages/plugins/other/time/src/index.ts
  97. +13 −0 packages/plugins/other/time/tests/time.spec.ts
  98. +41 −0 packages/plugins/other/visitor-plugin-common/CHANGELOG.md
  99. +9 −8 packages/plugins/other/visitor-plugin-common/package.json
  100. +4 −1 packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts
  101. +1 −0 packages/plugins/other/visitor-plugin-common/src/base-types-visitor.ts
  102. +28 −1 packages/plugins/other/visitor-plugin-common/src/base-visitor.ts
  103. +72 −31 packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts
  104. +1 −4 packages/plugins/other/visitor-plugin-common/src/selection-set-to-object.ts
  105. +1 −1 packages/plugins/other/visitor-plugin-common/src/types.ts
  106. +40 −0 packages/plugins/typescript/apollo-angular/CHANGELOG.md
  107. +5 −4 packages/plugins/typescript/apollo-angular/package.json
  108. +21 −0 packages/plugins/typescript/apollo-angular/src/config.ts
  109. +30 −4 packages/plugins/typescript/apollo-angular/src/visitor.ts
  110. +78 −2 packages/plugins/typescript/apollo-angular/tests/apollo-angular.spec.ts
  111. +11 −0 packages/plugins/typescript/compatibility/CHANGELOG.md
  112. +5 −4 packages/plugins/typescript/compatibility/package.json
  113. +11 −0 packages/plugins/typescript/document-nodes/CHANGELOG.md
  114. +4 −3 packages/plugins/typescript/document-nodes/package.json
  115. +11 −0 packages/plugins/typescript/generic-sdk/CHANGELOG.md
  116. +4 −3 packages/plugins/typescript/generic-sdk/package.json
  117. +10 −0 packages/plugins/typescript/graphql-files-modules/CHANGELOG.md
  118. +3 −2 packages/plugins/typescript/graphql-files-modules/package.json
  119. +24 −0 packages/plugins/typescript/graphql-request/CHANGELOG.md
  120. +6 −7 packages/plugins/typescript/graphql-request/package.json
  121. +4 −5 packages/plugins/typescript/graphql-request/src/visitor.ts
  122. +12 −0 packages/plugins/typescript/mongodb/CHANGELOG.md
  123. +7 −6 packages/plugins/typescript/mongodb/package.json
  124. +10 −0 packages/plugins/typescript/named-operations-object/CHANGELOG.md
  125. +4 −3 packages/plugins/typescript/named-operations-object/package.json
  126. +11 −0 packages/plugins/typescript/oclif/CHANGELOG.md
  127. +5 −4 packages/plugins/typescript/oclif/package.json
  128. +12 −0 packages/plugins/typescript/operations/CHANGELOG.md
  129. +5 −4 packages/plugins/typescript/operations/package.json
  130. +27 −0 packages/plugins/typescript/operations/src/config.ts
  131. +12 −0 packages/plugins/typescript/operations/src/index.ts
  132. +59 −0 packages/plugins/typescript/operations/tests/ts-documents.spec.ts
  133. +11 −0 packages/plugins/typescript/react-apollo-offix/CHANGELOG.md
  134. +5 −4 packages/plugins/typescript/react-apollo-offix/package.json
  135. +97 −0 packages/plugins/typescript/react-apollo/CHANGELOG.md
  136. +6 −5 packages/plugins/typescript/react-apollo/package.json
  137. +13 −11 packages/plugins/typescript/react-apollo/src/config.ts
  138. +7 −5 packages/plugins/typescript/react-apollo/src/index.ts
  139. +50 −23 packages/plugins/typescript/react-apollo/src/visitor.ts
  140. +29 −33 packages/plugins/typescript/react-apollo/tests/__snapshots__/react-apollo.spec.ts.snap
  141. +161 −112 packages/plugins/typescript/react-apollo/tests/react-apollo.spec.ts
  142. +13 −0 packages/plugins/typescript/resolvers/CHANGELOG.md
  143. +6 −5 packages/plugins/typescript/resolvers/package.json
  144. +2 −1 packages/plugins/typescript/resolvers/src/config.ts
  145. +40 −10 packages/plugins/typescript/resolvers/tests/federation.spec.ts
  146. +11 −0 packages/plugins/typescript/stencil-apollo/CHANGELOG.md
  147. +6 −5 packages/plugins/typescript/stencil-apollo/package.json
  148. +12 −0 packages/plugins/typescript/type-graphql/CHANGELOG.md
  149. +5 −4 packages/plugins/typescript/type-graphql/package.json
  150. +23 −0 packages/plugins/typescript/typed-document-node/CHANGELOG.md
  151. +5 −4 packages/plugins/typescript/typed-document-node/package.json
  152. +6 −2 packages/plugins/typescript/typed-document-node/src/index.ts
  153. +17 −2 packages/plugins/typescript/typed-document-node/src/visitor.ts
  154. +11 −0 packages/plugins/typescript/typescript/CHANGELOG.md
  155. +4 −3 packages/plugins/typescript/typescript/package.json
  156. +35 −0 packages/plugins/typescript/urql/CHANGELOG.md
  157. +5 −4 packages/plugins/typescript/urql/package.json
  158. +2 −2 packages/plugins/typescript/urql/src/config.ts
  159. +2 −2 packages/plugins/typescript/urql/src/visitor.ts
  160. +12 −6 packages/plugins/typescript/urql/tests/urql.spec.ts
  161. +11 −0 packages/plugins/typescript/vue-apollo/CHANGELOG.md
  162. +5 −4 packages/plugins/typescript/vue-apollo/package.json
  163. +23 −0 packages/presets/import-types/CHANGELOG.md
  164. +5 −4 packages/presets/import-types/package.json
  165. +1 −1 packages/presets/import-types/tests/types-import.spec.ts
  166. +23 −0 packages/presets/near-operation-file/CHANGELOG.md
  167. +6 −5 packages/presets/near-operation-file/package.json
  168. +1 −1 packages/presets/near-operation-file/tests/near-operation-file.spec.ts
  169. +7 −0 packages/utils/config-schema/CHANGELOG.md
  170. +1 −1 packages/utils/config-schema/package.json
  171. +9 −2 packages/utils/config-schema/src/docs.ts
  172. +10 −0 packages/utils/config-schema/src/plugins.ts
  173. +6 −5 packages/utils/graphql-codegen-testing/package.json
  174. +7 −0 packages/utils/plugins-helpers/CHANGELOG.md
  175. +3 −2 packages/utils/plugins-helpers/package.json
  176. +17 −4 packages/utils/plugins-helpers/src/federation.ts
  177. +103 −3 packages/utils/plugins-helpers/src/types.ts
  178. +79 −0 patches/@changesets+apply-release-plan+4.0.0.patch
  179. +52 −0 patches/@changesets+cli+2.9.2.patch
  180. +0 −15 renovate.json
  181. +67 −0 scripts/canary-release.js
  182. +0 −156 scripts/release.js
  183. +4 −7 tsconfig.json
  184. +28 −0 website/docs/generated-config/add.md
  185. +29 −2 website/docs/generated-config/c-sharp-operations.md
  186. +20 −2 website/docs/generated-config/c-sharp.md
  187. +20 −2 website/docs/generated-config/flow-operations.md
  188. +22 −3 website/docs/generated-config/flow-resolvers.md
  189. +20 −2 website/docs/generated-config/flow.md
  190. +6 −2 website/docs/generated-config/fragment-matcher.md
  191. +6 −2 website/docs/generated-config/introspection.md
  192. +20 −2 website/docs/generated-config/java-apollo-android.md
  193. +20 −2 website/docs/generated-config/java-resolvers.md
  194. +20 −2 website/docs/generated-config/java.md
  195. +20 −2 website/docs/generated-config/kotlin.md
  196. +6 −2 website/docs/generated-config/named-operations-object.md
  197. +6 −2 website/docs/generated-config/schema-ast.md
  198. +47 −0 website/docs/generated-config/time.md
  199. +56 −2 website/docs/generated-config/typescript-apollo-angular.md
  200. +20 −2 website/docs/generated-config/typescript-compatibility.md
  201. +29 −2 website/docs/generated-config/typescript-document-nodes.md
  202. +6 −2 website/docs/generated-config/typescript-graphql-files-modules.md
  203. +29 −2 website/docs/generated-config/typescript-graphql-request.md
  204. +20 −2 website/docs/generated-config/typescript-mongodb.md
  205. +30 −2 website/docs/generated-config/typescript-operations.md
  206. +42 −13 website/docs/generated-config/typescript-react-apollo.md
  207. +24 −4 website/docs/generated-config/typescript-resolvers.md
  208. +29 −2 website/docs/generated-config/typescript-stencil-apollo.md
  209. +20 −2 website/docs/generated-config/typescript-type-graphql.md
  210. +31 −4 website/docs/generated-config/typescript-urql.md
  211. +29 −2 website/docs/generated-config/typescript-vue-apollo.md
  212. +20 −2 website/docs/generated-config/typescript.md
  213. +3 −1 website/docs/getting-started/documents-field.md
  214. +13 −5 website/docs/getting-started/installation.md
  215. +5 −3 website/docs/getting-started/schema-field.md
  216. +11 −18 website/docs/plugins/add.md
  217. +1 −38 website/docs/plugins/time.md
  218. +41 −7 website/docs/plugins/typescript-react-apollo.md
  219. +2 −0 website/docs/presets/near-operation-file.md
  220. +34 −34 website/package.json
  221. +29 −3 website/src/components/live-demo/examples.js
  222. +3 −3 website/src/pages/index.js
  223. +386 −174 website/static/config.schema.json
  224. +1,228 −722 yarn.lock
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": [
"@graphql-codegen/testing",
"@graphql-codegen/website"
]
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@ blank_issues_enabled: false
contact_links:
- name: Have a question?
url: https://github.com/dotansimha/graphql-code-generator/discussions/new
about: Not sure about something? need help from the community? have a question to our team? please ask and answer questions here.
about: Not sure about something? need help from the community? have a question to our team? please ask and answer questions here.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 20
7 changes: 0 additions & 7 deletions .github/release-drafter.yml

This file was deleted.

39 changes: 26 additions & 13 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
name: Canary Release

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
publish-canary:
name: Publish Canary
runs-on: ubuntu-latest
if: contains(github.actor, 'renovate') == false
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout Master
uses: actions/checkout@v1
- name: Use Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Configure Git Credentials
run: |
git config --global user.email "theguild-bot@users.noreply.github.com"
git config --global user.name "theguild-bot"
echo "machine github.com login theguild-bot password ${{secrets.GH_API_TOKEN}}" > ~/.netrc
- name: Setup NPM credentials
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
@@ -31,26 +38,32 @@ jobs:
${{ runner.os }}-14-yarn-
- name: Install Dependencies using Yarn
run: yarn install --ignore-engines && git checkout yarn.lock
- name: Build
run: yarn build

- name: Release Canary
id: canary
uses: 'kamilkisiela/release-canary@master'
if: github.repository == 'dotansimha/graphql-code-generator'
with:
npm-token: ${{ secrets.NODE_AUTH_TOKEN }}
npm-script: 'release:canary'
npm-script: 'yarn release:canary'
changesets: true
- name: Publish a message
if: steps.canary.outputs.released
uses: 'kamilkisiela/pr-comment@master'
with:
message: |
The latest changes of this PR are available as alpha in npm: `${{ steps.canary.outputs.version }}`
Quickly update your package.json by running:
The latest changes of this PR are available as alpha in npm (based on the declared `changesets`):
npx match-version @graphql-codegen ${{ steps.canary.outputs.version }}
```
${{ steps.canary.outputs.changesetsPublishedPackages}}
```
bot-token: ${{ secrets.GH_API_TOKEN }}
bot: 'theguild-bot'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish a empty message
if: steps.canary.outputs.released == 'false'
uses: 'kamilkisiela/pr-comment@master'
with:
message: |
The latest changes of this PR are not available as alpha, since there are no linked `changesets` for this PR.
bot-token: ${{ secrets.GH_API_TOKEN }}
bot: 'theguild-bot'
github-token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 14 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: NPM Release
name: Release
on:
release:
types: [published]
push:
branches:
- master
jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Master
@@ -40,9 +41,13 @@ jobs:
${{ runner.os }}-14-15-yarn-
- name: Install Dependencies using Yarn
run: yarn install && git checkout yarn.lock
- name: Build
run: yarn build
- name: Publish to NPM
run: npm run release
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master
with:
publish: yarn release
commit: 'chore(release): update monorepo packages versions'
title: 'Upcoming Release Changes'
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 1 addition & 3 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -2,16 +2,14 @@ name: Website

on:
push:
tags:
- 'v*'
branches:
- master

jobs:
test:
name: Deploy Website
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[deploy_website]') || contains(github.ref, 'refs/tags/')
if: contains(github.event.head_commit.message, '[deploy_website]') || contains(github.event.head_commit.message, 'update monorepo packages versions')
steps:
- name: Checkout
uses: actions/checkout@v1
1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

14 changes: 9 additions & 5 deletions dev-test/codegen.yml
Original file line number Diff line number Diff line change
@@ -157,6 +157,15 @@ generates:
- typescript
- typescript-operations
- typescript-react-apollo
./dev-test/githunt/types.reactApollo.v2.tsx:
schema: ./dev-test/githunt/schema.json
documents: ./dev-test/githunt/**/*.graphql
config:
reactApolloVersion: 2
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
./dev-test/githunt/types.reactApollo.customSuffix.tsx:
schema: ./dev-test/githunt/schema.json
documents: ./dev-test/githunt/**/*.graphql
@@ -182,8 +191,6 @@ generates:
- typescript
- typescript-operations
- typescript-react-apollo
config:
withHooks: true
./dev-test/githunt/types.apolloAngular.ts:
schema: ./dev-test/githunt/schema.json
documents: ./dev-test/githunt/**/*.graphql
@@ -347,7 +354,4 @@ generates:
reactApolloVersion: 3
gqlImport: graphql-tag
hooksImportFrom: '@apollo/react-hooks'
withHooks: true
withHOC: false
withComponent: false
withMutationFn: false
32 changes: 30 additions & 2 deletions dev-test/githunt/types.apolloAngular.sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gql from 'graphql-tag';
import { gql } from 'apollo-angular';
import { Injectable } from '@angular/core';
import * as Apollo from 'apollo-angular';
import * as ApolloCore from 'apollo-client';
import * as ApolloCore from '@apollo/client/core';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
@@ -341,6 +341,10 @@ export class OnCommentAddedGQL extends Apollo.Subscription<
OnCommentAddedSubscriptionVariables
> {
document = OnCommentAddedDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const CommentDocument = gql`
query Comment($repoFullName: String!, $limit: Int, $offset: Int) {
@@ -378,6 +382,10 @@ export const CommentDocument = gql`
})
export class CommentGQL extends Apollo.Query<CommentQuery, CommentQueryVariables> {
document = CommentDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const CurrentUserForProfileDocument = gql`
query CurrentUserForProfile {
@@ -396,6 +404,10 @@ export class CurrentUserForProfileGQL extends Apollo.Query<
CurrentUserForProfileQueryVariables
> {
document = CurrentUserForProfileDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const FeedDocument = gql`
query Feed($type: FeedType!, $offset: Int, $limit: Int) {
@@ -414,6 +426,10 @@ export const FeedDocument = gql`
})
export class FeedGQL extends Apollo.Query<FeedQuery, FeedQueryVariables> {
document = FeedDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const SubmitRepositoryDocument = gql`
mutation submitRepository($repoFullName: String!) {
@@ -428,6 +444,10 @@ export const SubmitRepositoryDocument = gql`
})
export class SubmitRepositoryGQL extends Apollo.Mutation<SubmitRepositoryMutation, SubmitRepositoryMutationVariables> {
document = SubmitRepositoryDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const SubmitCommentDocument = gql`
mutation submitComment($repoFullName: String!, $commentContent: String!) {
@@ -443,6 +463,10 @@ export const SubmitCommentDocument = gql`
})
export class SubmitCommentGQL extends Apollo.Mutation<SubmitCommentMutation, SubmitCommentMutationVariables> {
document = SubmitCommentDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const VoteDocument = gql`
mutation vote($repoFullName: String!, $type: VoteType!) {
@@ -461,6 +485,10 @@ export const VoteDocument = gql`
})
export class VoteGQL extends Apollo.Mutation<VoteMutation, VoteMutationVariables> {
document = VoteDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
30 changes: 29 additions & 1 deletion dev-test/githunt/types.apolloAngular.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import gql from 'graphql-tag';
import { gql } from 'apollo-angular';
import { Injectable } from '@angular/core';
import * as Apollo from 'apollo-angular';
export type Maybe<T> = T | null;
@@ -340,6 +340,10 @@ export class OnCommentAddedGQL extends Apollo.Subscription<
OnCommentAddedSubscriptionVariables
> {
document = OnCommentAddedDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const CommentDocument = gql`
query Comment($repoFullName: String!, $limit: Int, $offset: Int) {
@@ -377,6 +381,10 @@ export const CommentDocument = gql`
})
export class CommentGQL extends Apollo.Query<CommentQuery, CommentQueryVariables> {
document = CommentDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const CurrentUserForProfileDocument = gql`
query CurrentUserForProfile {
@@ -395,6 +403,10 @@ export class CurrentUserForProfileGQL extends Apollo.Query<
CurrentUserForProfileQueryVariables
> {
document = CurrentUserForProfileDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const FeedDocument = gql`
query Feed($type: FeedType!, $offset: Int, $limit: Int) {
@@ -413,6 +425,10 @@ export const FeedDocument = gql`
})
export class FeedGQL extends Apollo.Query<FeedQuery, FeedQueryVariables> {
document = FeedDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const SubmitRepositoryDocument = gql`
mutation submitRepository($repoFullName: String!) {
@@ -427,6 +443,10 @@ export const SubmitRepositoryDocument = gql`
})
export class SubmitRepositoryGQL extends Apollo.Mutation<SubmitRepositoryMutation, SubmitRepositoryMutationVariables> {
document = SubmitRepositoryDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const SubmitCommentDocument = gql`
mutation submitComment($repoFullName: String!, $commentContent: String!) {
@@ -442,6 +462,10 @@ export const SubmitCommentDocument = gql`
})
export class SubmitCommentGQL extends Apollo.Mutation<SubmitCommentMutation, SubmitCommentMutationVariables> {
document = SubmitCommentDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
export const VoteDocument = gql`
mutation vote($repoFullName: String!, $type: VoteType!) {
@@ -460,4 +484,8 @@ export const VoteDocument = gql`
})
export class VoteGQL extends Apollo.Mutation<VoteMutation, VoteMutationVariables> {
document = VoteDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
Loading