dotansimha / graphql-yoga

🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.
https://the-guild.dev/graphql/yoga-server
MIT License
8.25k stars 574 forks source link

chore(deps): update graphql-codegen #3469

Closed renovate[bot] closed 1 week ago

renovate[bot] commented 1 week ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@graphql-codegen/typescript (source) 4.0.9 -> 4.1.1 age adoption passing confidence
@graphql-codegen/typescript-resolvers (source) 4.2.1 -> 4.4.0 age adoption passing confidence

Release Notes

dotansimha/graphql-code-generator (@​graphql-codegen/typescript) ### [`v4.1.1`](https://redirect.github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#411) [Compare Source](https://redirect.github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.1.0...@graphql-codegen/typescript@4.1.1) ##### Patch Changes - Updated dependencies \[[`55a1e9e`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - [@​graphql-codegen/visitor-plugin-common](https://redirect.github.com/graphql-codegen/visitor-plugin-common)[@​5](https://redirect.github.com/5).5.0 - [@​graphql-codegen/plugin-helpers](https://redirect.github.com/graphql-codegen/plugin-helpers)[@​5](https://redirect.github.com/5).1.0 ### [`v4.1.0`](https://redirect.github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/typescript/CHANGELOG.md#410) [Compare Source](https://redirect.github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript@4.0.9...@graphql-codegen/typescript@4.1.0) ##### Minor Changes - [#​10077](https://redirect.github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@​eddeee888](https://redirect.github.com/eddeee888)! - Extend `config.avoidOptions` to support query, mutation and subscription Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and subscription fields non-optional. Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` and `config.avoidOptions.subscription` can be used to target the respective types. ##### Patch Changes - Updated dependencies \[[`3f4f546`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - [@​graphql-codegen/visitor-plugin-common](https://redirect.github.com/graphql-codegen/visitor-plugin-common)[@​5](https://redirect.github.com/5).4.0
dotansimha/graphql-code-generator (@​graphql-codegen/typescript-resolvers) ### [`v4.4.0`](https://redirect.github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/resolvers/CHANGELOG.md#440) [Compare Source](https://redirect.github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-resolvers@4.3.0...@graphql-codegen/typescript-resolvers@4.4.0) ##### Minor Changes - [#​9989](https://redirect.github.com/dotansimha/graphql-code-generator/pull/9989) [`55a1e9e`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc) Thanks [@​eddeee888](https://redirect.github.com/eddeee888)! - Add `generateInternalResolversIfNeeded` option This option can be used to generate more correct types for internal resolvers. For example, only generate `__resolveReference` if the federation object has a resolvable `@key`. In the future, this option can be extended to support other internal resolvers e.g. `__isTypeOf` is only generated for implementing types and union members. - [#​10141](https://redirect.github.com/dotansimha/graphql-code-generator/pull/10141) [`a235051`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03) Thanks [@​eddeee888](https://redirect.github.com/eddeee888)! - Add avoidCheckingAbstractTypesRecursively to avoid checking and generating abstract types recursively For users that already sets recursive default mappers e.g. `Partial<{T}>` or `DeepPartial<{T}>`, having both options on will cause a nested loop which eventually crashes Codegen. In such case, setting `avoidCheckingAbstractTypesRecursively: true` allows users to continue to use recursive default mappers as before. ##### Patch Changes - Updated dependencies \[[`55a1e9e`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]: - [@​graphql-codegen/visitor-plugin-common](https://redirect.github.com/graphql-codegen/visitor-plugin-common)[@​5](https://redirect.github.com/5).5.0 - [@​graphql-codegen/plugin-helpers](https://redirect.github.com/graphql-codegen/plugin-helpers)[@​5](https://redirect.github.com/5).1.0 - [@​graphql-codegen/typescript](https://redirect.github.com/graphql-codegen/typescript)[@​4](https://redirect.github.com/4).1.1 ### [`v4.3.0`](https://redirect.github.com/dotansimha/graphql-code-generator/blob/HEAD/packages/plugins/typescript/resolvers/CHANGELOG.md#430) [Compare Source](https://redirect.github.com/dotansimha/graphql-code-generator/compare/@graphql-codegen/typescript-resolvers@4.2.1...@graphql-codegen/typescript-resolvers@4.3.0) ##### Minor Changes - [#​10077](https://redirect.github.com/dotansimha/graphql-code-generator/pull/10077) [`3f4f546`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4) Thanks [@​eddeee888](https://redirect.github.com/eddeee888)! - Extend `config.avoidOptions` to support query, mutation and subscription Previously, `config.avoidOptions.resolvers` was being used to make query, mutation and subscription fields non-optional. Now, `config.avoidOptions.query`, `config.avoidOptions.mutation` and `config.avoidOptions.subscription` can be used to target the respective types. ##### Patch Changes - Updated dependencies \[[`3f4f546`](https://redirect.github.com/dotansimha/graphql-code-generator/commit/3f4f5466ff168ad822b9a00d83d3779078e6d8c4)]: - [@​graphql-codegen/visitor-plugin-common](https://redirect.github.com/graphql-codegen/visitor-plugin-common)[@​5](https://redirect.github.com/5).4.0 - [@​graphql-codegen/typescript](https://redirect.github.com/graphql-codegen/typescript)[@​4](https://redirect.github.com/4).1.0

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR was generated by Mend Renovate. View the repository job log.

changeset-bot[bot] commented 1 week ago

⚠️ No Changeset found

Latest commit: 98278e35cc889ec734543a3c453b43bab476a1e2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

github-actions[bot] commented 1 week ago

Apollo Federation Subgraph Compatibility Results

Federation 1 Support Federation 2 Support
_service🟢
@key (single)🟢
@key (multi)🟢
@key (composite)🟢
repeatable @key🟢
@requires🟢
@provides🟢
federated tracing🟢
@link🟢
@shareable🟢
@tag🟢
@override🟢
@inaccessible🟢
@composeDirective🟢
@interfaceObject🟢

Learn more:

github-actions[bot] commented 1 week ago

✅ Benchmark Results

     ✓ no_errors{mode:graphql}
     ✓ expected_result{mode:graphql}
     ✓ no_errors{mode:graphql-jit}
     ✓ expected_result{mode:graphql-jit}
     ✓ no_errors{mode:graphql-response-cache}
     ✓ expected_result{mode:graphql-response-cache}
     ✓ no_errors{mode:graphql-no-parse-validate-cache}
     ✓ expected_result{mode:graphql-no-parse-validate-cache}
     ✓ no_errors{mode:uws}
     ✓ expected_result{mode:uws}

     checks.......................................: 100.00% ✓ 522820      ✗ 0     
     data_received................................: 2.1 GB  14 MB/s
     data_sent....................................: 105 MB  700 kB/s
     http_req_blocked.............................: avg=1.49µs   min=1µs      med=1.33µs   max=295.46µs p(90)=1.98µs   p(95)=2.16µs  
     http_req_connecting..........................: avg=2ns      min=0s       med=0s       max=132.91µs p(90)=0s       p(95)=0s      
     http_req_duration............................: avg=359.77µs min=215.83µs med=323.79µs max=15.6ms   p(90)=466.09µs p(95)=486.65µs
       { expected_response:true }.................: avg=359.77µs min=215.83µs med=323.79µs max=15.6ms   p(90)=466.09µs p(95)=486.65µs
     ✓ { mode:graphql-jit }.......................: avg=289.8µs  min=215.83µs med=267.75µs max=15.6ms   p(90)=297.67µs p(95)=312.91µs
     ✓ { mode:graphql-no-parse-validate-cache }...: avg=494.83µs min=394.12µs med=468.85µs max=10ms     p(90)=508.79µs p(95)=536.05µs
     ✓ { mode:graphql-response-cache }............: avg=340.09µs min=260.11µs med=321.89µs max=7.72ms   p(90)=350.44µs p(95)=360.61µs
     ✓ { mode:graphql }...........................: avg=368.84µs min=269.02µs med=334.35µs max=13.57ms  p(90)=393.57µs p(95)=437.25µs
     ✓ { mode:uws }...............................: avg=343.2µs  min=272.19µs med=322.87µs max=10.16ms  p(90)=354.28µs p(95)=370.29µs
     http_req_failed..............................: 0.00%   ✓ 0           ✗ 261410
     http_req_receiving...........................: avg=32.82µs  min=16.66µs  med=33µs     max=5.81ms   p(90)=38.38µs  p(95)=40.32µs 
     http_req_sending.............................: avg=8.43µs   min=5.92µs   med=7.46µs   max=1.41ms   p(90)=10.95µs  p(95)=11.69µs 
     http_req_tls_handshaking.....................: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting.............................: avg=318.51µs min=186.68µs med=283.29µs max=15.49ms  p(90)=424.23µs p(95)=442.6µs 
     http_reqs....................................: 261410  1742.715795/s
     iteration_duration...........................: avg=568.96µs min=396.16µs med=529.84µs max=16.1ms   p(90)=679.48µs p(95)=703.49µs
     iterations...................................: 261410  1742.715795/s
     vus..........................................: 1       min=1         max=1   
     vus_max......................................: 2       min=2         max=2   
github-actions[bot] commented 1 week ago
### 💻 Website Preview The latest changes are available as preview in: [https://e46bba20.graphql-yoga.pages.dev](https://e46bba20.graphql-yoga.pages.dev)