Releases: ardatan/whatwg-node
July 24, 2024
@whatwg-node/[email protected]
Patch Changes
- #1481
481bdfd
Thanks @ardatan! - Send supported encoding formats in
`accept-encoding` header by default
@whatwg-node/[email protected]
Patch Changes
-
#1481
481bdfd
Thanks @ardatan! - New plugin to handle E2E request compressionWhen 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
'sfetch
function handles the compression and decompression of the request and
response bodies.import { createServerAdapter, Response, useContentEncoding } from '@whatwg-node/server' const serverAdapter = createServerAdapter(() => Response.json({ hello: 'world' }), { plugins: [useContentEncoding()] })
July 23, 2024
[email protected]
Patch Changes
145e46e
Thanks @ardatan! - Implement.bytes
method forBlob
andBody
,
nowUint8Array
is available withbytes
format
@whatwg-node/[email protected]
Patch Changes
July 20, 2024
@whatwg-node/[email protected]
Patch Changes
June 24, 2024
@whatwg-node/[email protected]
Patch Changes
June 21, 2024
@whatwg-node/[email protected]
Patch Changes
June 01, 2024
@whatwg-node/[email protected]
Patch Changes
April 26, 2024
April 15, 2024
@whatwg-node/[email protected]
Patch Changes
-
#1246
4717be5
Thanks @ardatan! - Ensure unique context objects are sent per each request.For example in CloudFlare Workers,
fetch
receivesenv
andctx
, andenv
is shared across requests. That causes the server receives the same context object for each request.
Now the server creates a new context object for each request, even if the first argument is the same. Before, it always takes the first argument as the context object, then merges the following arguments into it.
March 25, 2024
@whatwg-node/[email protected]
Patch Changes
March 22, 2024
@whatwg-node/[email protected]
Patch Changes
-
#1219
fa097a4
Thanks @ardatan! - Throw TypeError when multipart request is unable to parse as FormData -
#1220
ac6b719
Thanks @ardatan! - Do not throw when Curl request cancellation