Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upcoming Release Changes #3591

Merged
merged 1 commit into from
Dec 24, 2024
Merged

Upcoming Release Changes #3591

merged 1 commit into from
Dec 24, 2024

Conversation

theguild-bot
Copy link
Collaborator

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@graphql-yoga/[email protected]

Patch Changes

  • #3590
    840c6ae
    Thanks @ardatan! - - Do not throw when `request` is not available
    in the context, it can be a WebSockets connection

    • Export helper extractFromConnectionParams to get the token from WebSocket connectionParams
      when GraphQL WS is used like
      here
    import { extractFromConnectionParams, extractFromHeader, useJWT } from '@graphql-yoga/plugin-jwt'
    
    const yoga = createYoga({
      // ...
      plugins: [
        useJWT({
          // So it will look for the token in the connectionParams.my-token field in case of a WebSockets connection
          // It will check WS params and headers, and get the available one
          lookupLocations: [
            extractFromConnectionParams({ name: 'my-token' }),
            extractFromHeader({ name: 'authorization', prefix: 'Bearer ' })
          ]
        })
      ]
    })

@ardatan ardatan merged commit 9f109dd into main Dec 24, 2024
2 of 24 checks passed
@ardatan ardatan deleted the changeset-release/main branch December 24, 2024 10:40
Copy link
Contributor

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:

Copy link
Contributor

✅ 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% ✓ 512168      ✗ 0     
     data_received................................: 2.1 GB  14 MB/s
     data_sent....................................: 103 MB  686 kB/s
     http_req_blocked.............................: avg=1.47µs   min=952ns    med=1.29µs   max=288.14µs p(90)=1.93µs   p(95)=2.12µs  
     http_req_connecting..........................: avg=2ns      min=0s       med=0s       max=185.34µs p(90)=0s       p(95)=0s      
     http_req_duration............................: avg=364.66µs min=218.87µs med=330.48µs max=15.17ms  p(90)=473.99µs p(95)=502.89µs
       { expected_response:true }.................: avg=364.66µs min=218.87µs med=330.48µs max=15.17ms  p(90)=473.99µs p(95)=502.89µs
     ✓ { mode:graphql-jit }.......................: avg=291.89µs min=218.87µs med=272.89µs max=15.17ms  p(90)=314.9µs  p(95)=334.91µs
     ✓ { mode:graphql-no-parse-validate-cache }...: avg=499.96µs min=406.75µs med=475.27µs max=6.15ms   p(90)=533.56µs p(95)=576.66µs
     ✓ { mode:graphql-response-cache }............: avg=348.22µs min=265.73µs med=327.41µs max=6.56ms   p(90)=373.8µs  p(95)=390.45µs
     ✓ { mode:graphql }...........................: avg=372.73µs min=277.88µs med=342.51µs max=14.55ms  p(90)=412.17µs p(95)=460.07µs
     ✓ { mode:uws }...............................: avg=348.07µs min=268.47µs med=328.99µs max=6.33ms   p(90)=373.57µs p(95)=397.56µs
     http_req_failed..............................: 0.00%   ✓ 0           ✗ 256084
     http_req_receiving...........................: avg=33.06µs  min=16.2µs   med=31.84µs  max=2.81ms   p(90)=39.7µs   p(95)=47.17µs 
     http_req_sending.............................: avg=8.36µs   min=5.86µs   med=7.3µs    max=3.21ms   p(90)=10.71µs  p(95)=11.8µs  
     http_req_tls_handshaking.....................: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting.............................: avg=323.23µs min=184.47µs med=289.75µs max=15.06ms  p(90)=431.6µs  p(95)=458.81µs
     http_reqs....................................: 256084  1707.204612/s
     iteration_duration...........................: avg=580.77µs min=388.64µs med=543.09µs max=15.79ms  p(90)=695.23µs p(95)=730.58µs
     iterations...................................: 256084  1707.204612/s
     vus..........................................: 1       min=1         max=1   
     vus_max......................................: 2       min=2         max=2   

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants