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: @graphql-codegen/cli@1.20.0
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.20.1
Choose a head ref
Loading
Showing with 1,622 additions and 17,840 deletions.
  1. +1 −2 dev-test/githunt/flow.flow.js
  2. +0 −16,947 package-lock.json
  3. +22 −23 package.json
  4. +7 −0 packages/graphql-cli-codegen-plugin/CHANGELOG.md
  5. +2 −2 packages/graphql-cli-codegen-plugin/package.json
  6. +6 −0 packages/graphql-codegen-cli/CHANGELOG.md
  7. +6 −7 packages/graphql-codegen-cli/package.json
  8. +0 −31 packages/graphql-codegen-cli/tests/__mocks__/request.js
  9. +8 −8 packages/graphql-codegen-cli/tests/init.spec.ts
  10. +1 −1 packages/graphql-codegen-core/package.json
  11. +1 −1 packages/plugins/c-sharp/c-sharp-operations/package.json
  12. +1 −1 packages/plugins/c-sharp/c-sharp/package.json
  13. +12 −0 packages/plugins/flow/flow/CHANGELOG.md
  14. +3 −3 packages/plugins/flow/flow/package.json
  15. +9 −9 packages/plugins/flow/flow/tests/__snapshots__/flow.spec.ts.snap
  16. +16 −0 packages/plugins/flow/operations/CHANGELOG.md
  17. +4 −4 packages/plugins/flow/operations/package.json
  18. +4 −7 packages/plugins/flow/operations/src/index.ts
  19. +35 −4 packages/plugins/flow/operations/src/visitor.ts
  20. +5 −4 packages/plugins/flow/operations/tests/__snapshots__/flow-documents.spec.ts.snap
  21. +67 −6 packages/plugins/flow/operations/tests/flow-documents.spec.ts
  22. +1 −1 packages/plugins/flow/resolvers/package.json
  23. +1 −1 packages/plugins/flow/resolvers/tests/__snapshots__/flow-resolvers.spec.ts.snap
  24. +1 −1 packages/plugins/java/apollo-android/package.json
  25. +1 −1 packages/plugins/java/common/package.json
  26. +1 −1 packages/plugins/java/java/package.json
  27. +1 −1 packages/plugins/java/kotlin/package.json
  28. +1 −1 packages/plugins/java/resolvers/package.json
  29. +1 −1 packages/plugins/other/add/package.json
  30. +1 −1 packages/plugins/other/fragment-matcher/package.json
  31. +1 −1 packages/plugins/other/introspection/package.json
  32. +1 −1 packages/plugins/other/jsdoc/package.json
  33. +1 −1 packages/plugins/other/schema-ast/package.json
  34. +16 −0 packages/plugins/other/visitor-plugin-common/CHANGELOG.md
  35. +3 −3 packages/plugins/other/visitor-plugin-common/package.json
  36. +27 −8 packages/plugins/other/visitor-plugin-common/src/base-documents-visitor.ts
  37. +4 −1 packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts
  38. +29 −4 packages/plugins/other/visitor-plugin-common/src/base-types-visitor.ts
  39. +22 −7 packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts
  40. +22 −8 packages/plugins/other/visitor-plugin-common/src/enum-values.ts
  41. +14 −2 packages/plugins/other/visitor-plugin-common/src/selection-set-to-object.ts
  42. +11 −7 packages/plugins/other/visitor-plugin-common/src/utils.ts
  43. +90 −7 packages/plugins/other/visitor-plugin-common/tests/enum-values.spec.ts
  44. +15 −0 packages/plugins/typescript/apollo-angular/CHANGELOG.md
  45. +3 −3 packages/plugins/typescript/apollo-angular/package.json
  46. +13 −0 packages/plugins/typescript/apollo-angular/src/config.ts
  47. +14 −2 packages/plugins/typescript/apollo-angular/src/visitor.ts
  48. +22 −0 packages/plugins/typescript/apollo-angular/tests/apollo-angular.spec.ts
  49. +2 −2 packages/plugins/typescript/apollo-client-helpers/package.json
  50. +1 −1 packages/plugins/typescript/compatibility/package.json
  51. +1 −1 packages/plugins/typescript/document-nodes/package.json
  52. +1 −1 packages/plugins/typescript/generic-sdk/package.json
  53. +1 −1 packages/plugins/typescript/graphql-files-modules/package.json
  54. +14 −0 packages/plugins/typescript/graphql-request/CHANGELOG.md
  55. +4 −4 packages/plugins/typescript/graphql-request/package.json
  56. +26 −7 packages/plugins/typescript/graphql-request/src/visitor.ts
  57. +20 −16 packages/plugins/typescript/graphql-request/tests/__snapshots__/graphql-request.spec.ts.snap
  58. +19 −0 packages/plugins/typescript/graphql-request/tests/graphql-request.spec.ts
  59. +16 −0 packages/plugins/typescript/mongodb/CHANGELOG.md
  60. +5 −5 packages/plugins/typescript/mongodb/package.json
  61. +3 −1 packages/plugins/typescript/mongodb/src/visitor.ts
  62. +13 −1 packages/plugins/typescript/mongodb/tests/typescript-mongo.spec.ts
  63. +1 −1 packages/plugins/typescript/named-operations-object/package.json
  64. +1 −1 packages/plugins/typescript/oclif/package.json
  65. +16 −0 packages/plugins/typescript/operations/CHANGELOG.md
  66. +4 −4 packages/plugins/typescript/operations/package.json
  67. +6 −2 packages/plugins/typescript/operations/src/visitor.ts
  68. +13 −0 packages/plugins/typescript/operations/tests/__snapshots__/ts-documents.spec.ts.snap
  69. +110 −52 packages/plugins/typescript/operations/tests/ts-documents.spec.ts
  70. +1 −1 packages/plugins/typescript/react-apollo/package.json
  71. +16 −0 packages/plugins/typescript/react-query/CHANGELOG.md
  72. +3 −3 packages/plugins/typescript/react-query/package.json
  73. +16 −1 packages/plugins/typescript/react-query/src/config.ts
  74. +2 −2 packages/plugins/typescript/react-query/src/fetcher-custom-mapper.ts
  75. +5 −4 packages/plugins/typescript/react-query/src/fetcher-fetch-hardcoded.ts
  76. +5 −4 packages/plugins/typescript/react-query/src/fetcher-fetch.ts
  77. +5 −4 packages/plugins/typescript/react-query/src/fetcher-graphql-request.ts
  78. +22 −0 packages/plugins/typescript/react-query/src/variables-generator.ts
  79. +13 −2 packages/plugins/typescript/react-query/src/visitor.ts
  80. +23 −0 packages/plugins/typescript/react-query/tests/react-query.spec.ts
  81. +1 −1 packages/plugins/typescript/resolvers/package.json
  82. +1 −1 packages/plugins/typescript/stencil-apollo/package.json
  83. +1 −1 packages/plugins/typescript/type-graphql/package.json
  84. +1 −1 packages/plugins/typescript/typed-document-node/package.json
  85. +18 −0 packages/plugins/typescript/typescript/CHANGELOG.md
  86. +3 −3 packages/plugins/typescript/typescript/package.json
  87. +1 −1 packages/plugins/typescript/urql/package.json
  88. +1 −1 packages/plugins/typescript/vue-apollo/package.json
  89. +12 −0 packages/presets/graphql-modules/CHANGELOG.md
  90. +3 −3 packages/presets/graphql-modules/package.json
  91. +7 −8 packages/presets/graphql-modules/src/builder.ts
  92. +4 −2 packages/presets/graphql-modules/src/index.ts
  93. +10 −4 packages/presets/graphql-modules/tests/__snapshots__/builder.spec.ts.snap
  94. +9 −2 packages/presets/graphql-modules/tests/builder.spec.ts
  95. +1 −1 packages/presets/import-types/package.json
  96. +1 −1 packages/presets/near-operation-file/package.json
  97. +4 −4 packages/utils/config-schema/package.json
  98. +1 −1 packages/utils/graphql-codegen-testing/package.json
  99. +1 −1 packages/utils/plugins-helpers/package.json
  100. 0 patches/{@changesets+cli+2.12.0.patch → @changesets+cli+2.13.1.patch}
  101. +1 −1 website/docs/generated-config/typescript-apollo-angular.md
  102. +1 −1 website/docs/generated-config/typescript-operations.md
  103. +2 −2 website/docs/getting-started/schema-field.md
  104. +1 −1 website/docs/integrations/apollo-local-state.md
  105. +12 −9 website/docs/plugins/typescript-mongodb.md
  106. +1 −1 website/docs/presets/index.md
  107. +13 −13 website/package.json
  108. +2 −2 website/src/components/live-demo/LiveDemo.js
  109. +2 −2 website/src/components/live-demo/generate.js
  110. +1 −0 website/src/css/custom.css
  111. +591 −527 yarn.lock
3 changes: 1 addition & 2 deletions dev-test/githunt/flow.flow.js
Original file line number Diff line number Diff line change
@@ -168,8 +168,7 @@ export type SubscriptionCommentAddedArgs = {|
|};

type $Pick<Origin: Object, Keys: Object> = $ObjMapi<Keys, <Key>(k: Key) => $ElementType<Origin, Key>>;
type $MakeOptional<T, K: Object> = $Diff<T, K> &
$ObjMapi<$Rest<T, K>, <SubKey>(k: SubKey) => Maybe<$ElementType<T, SubKey>>>;

export type OnCommentAddedSubscriptionVariables = {
repoFullName: $ElementType<Scalars, 'String'>,
};
Loading