Skip to content

February 14, 2025

Choose a tag to compare

@theguild-bot theguild-bot released this 14 Feb 15:19
· 1121 commits to master since this release
3826dc5

@whatwg-node/server@0.9.67

Patch Changes

  • #2057
    7d28669
    Thanks @ardatan! - When two plugins use the onResponse hook and
    the first one modifies the response, the second one should get the modified one;

    ;[
      {
        onResponse({ setResponse, fetchAPI }) {
          setResponse(
            fetchAPI.Response.json(
              {
                foo: 'bar'
              },
              { status: 418 }
            )
          )
        }
      },
      {
        onResponse({ response }) {
          console.log(response.status) // 418
        }
      }
    ]