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 #1901

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Upcoming Release Changes #1901

merged 1 commit into from
Dec 17, 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 master, this PR will be updated.

Releases

@whatwg-node/[email protected]

Patch Changes

  • #1899
    a84e84a
    Thanks @ardatan! - - New onDispose hook which is alias of
    Symbol.asyncDispose for Explicit Resource Management

    • Registration of the server adapter's disposal to the global process termination listener is now
      opt-in and configurable.
    const plugin: ServerAdapterPlugin = {
      onDispose() {
        console.log('Server adapter is disposed')
      }
    }
    
    const serverAdapter = createServerAdapter(() => new Response('Hello world!'), {
      plugins: [plugin],
      // Register the server adapter's disposal to the global process termination listener
      // Then the server adapter will be disposed when the process exit signals only in Node.js!
      disposeOnProcessTerminate: true
    })
    
    await serverAdapter.dispose()
    // Prints 'Server adapter is disposed'

@benchmarks/[email protected]

Patch Changes

@e2e/[email protected]

Patch Changes

@e2e/[email protected]

Patch Changes

@theguild-bot theguild-bot force-pushed the changeset-release/master branch from 841c7fe to 23c8912 Compare December 17, 2024 13:02
Copy link
Contributor

github-actions bot commented Dec 17, 2024

@benchmarks/node-fetch results (consumeBody)

   ✓ active_handles.................: avg=139.933254 min=13      med=140     max=184     p(90)=160     p(95)=166    
     data_received..................: 21 MB  709 kB/s
     data_sent......................: 14 MB  454 kB/s
     http_req_blocked...............: avg=4.73µs     min=631ns   med=1.33µs  max=12.29ms p(90)=2.03µs  p(95)=2.38µs 
     http_req_connecting............: avg=2.8µs      min=0s      med=0s      max=12.26ms p(90)=0s      p(95)=0s     
     http_req_duration..............: avg=21.51ms    min=2.5ms   med=20.75ms max=1.16s   p(90)=26.99ms p(95)=29.16ms
       { expected_response:true }...: avg=21.51ms    min=2.5ms   med=20.75ms max=1.16s   p(90)=26.99ms p(95)=29.16ms
     http_req_failed................: 0.00%  ✓ 0           ✗ 138947
     http_req_receiving.............: avg=35.34µs    min=9.45µs  med=24.53µs max=24.97ms p(90)=38.91µs p(95)=45.73µs
     http_req_sending...............: avg=13µs       min=3.54µs  med=6.58µs  max=12.42ms p(90)=10.27µs p(95)=13.93µs
     http_req_tls_handshaking.......: avg=0s         min=0s      med=0s      max=0s      p(90)=0s      p(95)=0s     
     http_req_waiting...............: avg=21.46ms    min=2.44ms  med=20.71ms max=1.16s   p(90)=26.95ms p(95)=29.08ms
     http_reqs......................: 138947 4630.947726/s
     iteration_duration.............: avg=43.14ms    min=10.04ms med=41.28ms max=1.18s   p(90)=48.61ms p(95)=53.25ms
     iterations.....................: 69457  2314.923936/s
     vus............................: 0      min=0         max=100 
     vus_max........................: 100    min=100       max=100 

Copy link
Contributor

github-actions bot commented Dec 17, 2024

@benchmarks/node-fetch results (noConsumeBody)

   ✓ active_handles.................: avg=139.91394 min=20      med=139     max=192     p(90)=163     p(95)=167    
     data_received..................: 23 MB  755 kB/s
     data_sent......................: 15 MB  489 kB/s
     http_req_blocked...............: avg=2.82µs    min=671ns   med=1.34µs  max=3.78ms  p(90)=1.97µs  p(95)=2.24µs 
     http_req_connecting............: avg=951ns     min=0s      med=0s      max=3.7ms   p(90)=0s      p(95)=0s     
     http_req_duration..............: avg=20.21ms   min=3.86ms  med=19.63ms max=1.08s   p(90)=25.33ms p(95)=26.82ms
       { expected_response:true }...: avg=20.21ms   min=3.86ms  med=19.63ms max=1.08s   p(90)=25.33ms p(95)=26.82ms
     http_req_failed................: 0.00%  ✓ 0           ✗ 147959
     http_req_receiving.............: avg=32.97µs   min=9.11µs  med=22.53µs max=19.42ms p(90)=36.45µs p(95)=43.75µs
     http_req_sending...............: avg=11.06µs   min=3.21µs  med=6.07µs  max=16.95ms p(90)=9.19µs  p(95)=13.08µs
     http_req_tls_handshaking.......: avg=0s        min=0s      med=0s      max=0s      p(90)=0s      p(95)=0s     
     http_req_waiting...............: avg=20.16ms   min=3.81ms  med=19.59ms max=1.08s   p(90)=25.29ms p(95)=26.76ms
     http_reqs......................: 147959 4931.501851/s
     iteration_duration.............: avg=40.52ms   min=14.33ms med=39ms    max=1.1s    p(90)=44.61ms p(95)=50.12ms
     iterations.....................: 73960  2465.100987/s
     vus............................: 100    min=100       max=100 
     vus_max........................: 100    min=100       max=100 

Copy link
Contributor

github-actions bot commented Dec 17, 2024

@benchmarks/server results (native)

     ✓ no-errors
     ✓ expected-result

   ✓ checks.........................: 100.00% ✓ 230294      ✗ 0     
     data_received..................: 23 MB   772 kB/s
     data_sent......................: 9.2 MB  307 kB/s
     http_req_blocked...............: avg=1.43µs   min=892ns    med=1.21µs   max=204.62µs p(90)=1.91µs   p(95)=2.08µs  
     http_req_connecting............: avg=1ns      min=0s       med=0s       max=119.95µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=196.98µs min=145.41µs med=187.26µs max=6.11ms   p(90)=212.58µs p(95)=222µs   
       { expected_response:true }...: avg=196.98µs min=145.41µs med=187.26µs max=6.11ms   p(90)=212.58µs p(95)=222µs   
     http_req_failed................: 0.00%   ✓ 0           ✗ 115147
     http_req_receiving.............: avg=25.87µs  min=13.76µs  med=24.33µs  max=2.87ms   p(90)=31.51µs  p(95)=34.04µs 
     http_req_sending...............: avg=6.6µs    min=4.09µs   med=5.83µs   max=339.76µs p(90)=8.34µs   p(95)=9.27µs  
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=164.51µs min=117.26µs med=155.01µs max=5.88ms   p(90)=177.07µs p(95)=185.85µs
     http_reqs......................: 115147  3838.072669/s
     iteration_duration.............: avg=255.92µs min=189.64µs med=245.09µs max=6.24ms   p(90)=274µs    p(95)=286.3µs 
     iterations.....................: 115147  3838.072669/s
     vus............................: 1       min=1         max=1   
     vus_max........................: 1       min=1         max=1   

Copy link
Contributor

github-actions bot commented Dec 17, 2024

@benchmarks/server results (undici)

     ✓ no-errors
     ✓ expected-result

   ✓ checks.........................: 100.00% ✓ 216132      ✗ 0     
     data_received..................: 22 MB   724 kB/s
     data_sent......................: 8.6 MB  288 kB/s
     http_req_blocked...............: avg=1.43µs   min=871ns    med=1.2µs    max=302.22µs p(90)=1.88µs   p(95)=2.07µs  
     http_req_connecting............: avg=1ns      min=0s       med=0s       max=146.52µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=214.01µs min=157.67µs med=202.5µs  max=32.23ms  p(90)=227.86µs p(95)=237.19µs
       { expected_response:true }...: avg=214.01µs min=157.67µs med=202.5µs  max=32.23ms  p(90)=227.86µs p(95)=237.19µs
     http_req_failed................: 0.00%   ✓ 0           ✗ 108066
     http_req_receiving.............: avg=25.64µs  min=13.49µs  med=23.88µs  max=2.63ms   p(90)=31.03µs  p(95)=34µs    
     http_req_sending...............: avg=6.51µs   min=4.21µs   med=5.76µs   max=246.68µs p(90)=8.2µs    p(95)=8.9µs   
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=181.86µs min=133.05µs med=170.74µs max=32.15ms  p(90)=192.67µs p(95)=201.02µs
     http_reqs......................: 108066  3601.777781/s
     iteration_duration.............: avg=273.04µs min=200.68µs med=260.4µs  max=32.37ms  p(90)=289.8µs  p(95)=301.34µs
     iterations.....................: 108066  3601.777781/s
     vus............................: 1       min=1         max=1   
     vus_max........................: 1       min=1         max=1   

Copy link
Contributor

github-actions bot commented Dec 17, 2024

@benchmarks/server results (ponyfill)

     ✓ no-errors
     ✓ expected-result

   ✓ checks.........................: 100.00% ✓ 303122      ✗ 0     
     data_received..................: 30 MB   995 kB/s
     data_sent......................: 12 MB   404 kB/s
     http_req_blocked...............: avg=1.33µs   min=832ns    med=1.14µs   max=192.81µs p(90)=1.81µs   p(95)=1.98µs  
     http_req_connecting............: avg=0ns      min=0s       med=0s       max=118.48µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=137.33µs min=95.02µs  med=133µs    max=6.1ms    p(90)=155µs    p(95)=161.99µs
       { expected_response:true }...: avg=137.33µs min=95.02µs  med=133µs    max=6.1ms    p(90)=155µs    p(95)=161.99µs
     http_req_failed................: 0.00%   ✓ 0           ✗ 151561
     http_req_receiving.............: avg=24µs     min=11.82µs  med=22.56µs  max=2.45ms   p(90)=29.89µs  p(95)=32.56µs 
     http_req_sending...............: avg=6.06µs   min=3.89µs   med=5.19µs   max=5.63ms   p(90)=7.86µs   p(95)=8.4µs   
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=107.26µs min=68.69µs  med=102.5µs  max=5.97ms   p(90)=121.49µs p(95)=127.26µs
     http_reqs......................: 151561  5051.702706/s
     iteration_duration.............: avg=193.6µs  min=139.49µs med=188.48µs max=6.5ms    p(90)=214µs    p(95)=223.12µs
     iterations.....................: 151561  5051.702706/s
     vus............................: 1       min=1         max=1   
     vus_max........................: 1       min=1         max=1   

Copy link
Contributor

github-actions bot commented Dec 17, 2024

🚀 Snapshot Release (rc)

The latest changes of this PR are available as rc on npm (based on the declared changesets):

Package Version Info
@whatwg-node/server 0.9.64-rc-20241217131723-ff31d6accae8af9e276eb3d79387d28fb11b6b5f npm ↗︎ unpkg ↗︎

@theguild-bot theguild-bot force-pushed the changeset-release/master branch from 23c8912 to ff31d6a Compare December 17, 2024 13:14
@ardatan ardatan merged commit dd8f5d1 into master Dec 17, 2024
24 checks passed
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