Skip to content

v0.8.0

Compare
Choose a tag to compare
@danfuzz danfuzz released this 08 Aug 18:05
· 631 commits to main since this release

Breaking changes:

  • net-util:
    • IncomingRequest.fromNodeRequest() is now an async method, and its final
      argument is now a catch-all options. ("If a function has more than two
      arguments, you haven't yet discovered all of them." --Unknown)

Other notable changes:

  • net-util:
    • IncomingRequest:
      • Added body constructor option.
      • Made it start rejecting requests whose request method (e.g. GET) isn't
        defined to take a request body but where the request actually does have a
        body.
      • Fixed getHeaderOrNull(), which had been broken for a while.
      • fromNodeRequest() now reads the request body when present, and returns
        it in the constructed instance.
    • Defined a base class, BaseResponse for the two concrete response classes.
    • Added a handful of static getters to StatusResponse.
    • Various other tweaks and fixes, motivated by a downstream project.
  • webapp-builtins:
    • Make StaticFiles and SimpleResponse only respond successfully to GET
      and HEAD requests.
  • webapp-core / config:
    • Added NetworkEndpoint configuration maxRequestBodySize.