ardatan / feTS

🗹 TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience
https://the-guild.dev/openapi/fets
MIT License
630 stars 29 forks source link

fix(deps): update dependency @whatwg-node/server to v0.9.38 #1738

Closed renovate[bot] closed 3 months ago

renovate[bot] commented 3 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@whatwg-node/server (source) 0.9.36 -> 0.9.38 age adoption passing confidence

Release Notes

ardatan/whatwg-node (@​whatwg-node/server) ### [`v0.9.38`](https://togithub.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0938) [Compare Source](https://togithub.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.37...@whatwg-node/server@0.9.38) ##### Patch Changes - [`f7bcbea`](https://togithub.com/ardatan/whatwg-node/commit/f7bcbea0c0a940870efb47faeb4b64d07d990ce4) Thanks [@​ardatan](https://togithub.com/ardatan)! - Support \`Content-Encoding: none\` ### [`v0.9.37`](https://togithub.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0937) [Compare Source](https://togithub.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.36...@whatwg-node/server@0.9.37) ##### Patch Changes - [#​1481](https://togithub.com/ardatan/whatwg-node/pull/1481) [`481bdfd`](https://togithub.com/ardatan/whatwg-node/commit/481bdfd0734b6c2c70b17dccb701b068f8aa06d9) Thanks [@​ardatan](https://togithub.com/ardatan)! - New plugin to handle E2E request compression When the client provides `Accept-Encoding` header, if the server supports the encoding, it will compress the response body. This will reduce the size of the response body and improve the performance of the application. On the other hand, if the client sends `Content-Encoding` header, the server will decompress the request body before processing it. This will allow the server to handle the request body in its original form. If the server does not support the encoding, it will respond with `415 Unsupported Media Type` status code. `serverAdapter`'s `fetch` function handles the compression and decompression of the request and response bodies. ```ts import { createServerAdapter, Response, useContentEncoding } from '@​whatwg-node/server' const serverAdapter = createServerAdapter(() => Response.json({ hello: 'world' }), { plugins: [useContentEncoding()] }) ```

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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



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

github-actions[bot] commented 3 months ago
### 💻 Website Preview The latest changes are available as preview in: [https://3b6867b7.fets.pages.dev](https://3b6867b7.fets.pages.dev)
github-actions[bot] commented 3 months ago

✅ Benchmark Results

     ✓ no_errors{server:node-http,mode:no-schema}
     ✓ expected_result{server:node-http,mode:no-schema}
     ✓ no_errors{server:node-http,mode:json-schema}
     ✓ expected_result{server:node-http,mode:json-schema}
     ✓ no_errors{server:uWebSockets,mode:no-schema}
     ✓ expected_result{server:uWebSockets,mode:no-schema}
     ✓ no_errors{server:uWebSockets,mode:json-schema}
     ✓ expected_result{server:uWebSockets,mode:json-schema}

     checks......................................: 100.00% ✓ 894044      ✗ 0     
     data_received...............................: 81 MB   676 kB/s
     data_sent...................................: 57 MB   473 kB/s
     http_req_blocked............................: avg=1.55µs   min=921ns    med=1.52µs   max=299.81µs p(90)=1.95µs   p(95)=2.11µs  
     http_req_connecting.........................: avg=1ns      min=0s       med=0s       max=129.67µs p(90)=0s       p(95)=0s      
     http_req_duration...........................: avg=189.49µs min=126.14µs med=178.93µs max=8.46ms   p(90)=203.09µs p(95)=211.18µs
       { expected_response:true }................: avg=189.49µs min=126.14µs med=178.93µs max=8.46ms   p(90)=203.09µs p(95)=211.18µs
     ✓ { server:node-http,mode:json-schema }.....: avg=201.97µs min=151.31µs med=190.42µs max=8.19ms   p(90)=212.99µs p(95)=220.38µs
     ✓ { server:node-http,mode:no-schema }.......: avg=194.01µs min=140.6µs  med=179.98µs max=8.46ms   p(90)=202.72µs p(95)=211.24µs
     ✓ { server:uWebSockets,mode:json-schema }...: avg=185.68µs min=134.66µs med=176.95µs max=6.87ms   p(90)=198.05µs p(95)=204.35µs
     ✓ { server:uWebSockets,mode:no-schema }.....: avg=177.62µs min=126.14µs med=168.36µs max=7.65ms   p(90)=189.31µs p(95)=196.02µs
     http_req_failed.............................: 0.00%   ✓ 0           ✗ 447022
     http_req_receiving..........................: avg=23.25µs  min=11.63µs  med=22.83µs  max=592.58µs p(90)=28.14µs  p(95)=29.94µs 
     http_req_sending............................: avg=8.86µs   min=5.33µs   med=8.97µs   max=818.08µs p(90)=11.68µs  p(95)=12.79µs 
     http_req_tls_handshaking....................: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting............................: avg=157.37µs min=100.21µs med=146.87µs max=8.42ms   p(90)=168.9µs  p(95)=176.63µs
     http_reqs...................................: 447022  3725.019849/s
     iteration_duration..........................: avg=263.68µs min=185.64µs med=252.58µs max=8.59ms   p(90)=278.89µs p(95)=288.91µs
     iterations..................................: 447022  3725.019849/s
     vus.........................................: 1       min=1         max=1   
     vus_max.....................................: 2       min=2         max=2