Skip to content

Releases: ardatan/whatwg-node

July 24, 2024

24 Jul 16:56
57e0486
Compare
Choose a tag to compare

@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 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.

    import { createServerAdapter, Response, useContentEncoding } from '@whatwg-node/server'
    
    const serverAdapter = createServerAdapter(() => Response.json({ hello: 'world' }), {
      plugins: [useContentEncoding()]
    })

July 23, 2024

23 Jul 19:04
7c0b94e
Compare
Choose a tag to compare

[email protected]

Patch Changes

  • 145e46e
    Thanks @ardatan! - Implement .bytes method for Blob and Body,
    now Uint8Array is available with bytes format

@whatwg-node/[email protected]

Patch Changes

  • 145e46e
    Thanks @ardatan! - Implement .bytes method for Blob and Body,
    now Uint8Array is available with bytes format

July 20, 2024

20 Jul 11:09
c369de1
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

June 24, 2024

24 Jun 18:01
fa5efa7
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

  • #1407
    ebbc85b
    Thanks @Akryum! - Vary: Access-Control-Request-Headers would
    overwrite Vary: Origin

June 21, 2024

21 Jun 19:12
37b43a5
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

June 01, 2024

01 Jun 07:07
2cba8c9
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

  • #1328
    36904b4
    Thanks @ardatan! - Add skipPonyfill flag to createFetch to skip
    ponyfills and use the native Fetch implementation for Node.js

April 26, 2024

26 Apr 12:36
eb6c45c
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

@whatwg-node/[email protected]

Patch Changes

  • e6234df Thanks @ardatan! - Do not call res.onAborted multiple times because it causes it to overwrite the previous listener, and use AbortSignal's abort event instead

April 15, 2024

15 Apr 11:39
6bc7ed9
Compare
Choose a tag to compare

@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 receives env and ctx, and env 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

25 Mar 12:46
950f539
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

  • #1224 d6bec0a Thanks @ardatan! - Introduce handleRequestFromResponse method for a better Fastify integration

March 22, 2024

22 Mar 10:54
89499a6
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

@whatwg-node/[email protected]

Patch Changes