Skip to content

Releases: medz/ht

v0.3.1

13 Mar 18:06

Choose a tag to compare

  • Fixed the broken Request constructor implementation shipped in 0.3.0,
    restoring Fetch-style construction for native, dart:io, and js runtimes.
  • Fixed wrapped-request rebuilds so Request(existing, RequestInit(body: ...))
    replaces the body without incorrectly depending on cloning the consumed
    upstream request body.
  • Added regression coverage for native, dart:io, and js Request
    constructor/body override semantics.

v0.3.0

13 Mar 07:26

Choose a tag to compare

  • BREAKING: Align Request and Response with Fetch/Web semantics via RequestInit, ResponseInit, and RequestInput.
  • BREAKING: Replace BodyMixin with a first-class Body type. Request.body and Response.body now expose Body?.
  • BREAKING: Headers, Blob, Request, Response, and URLSearchParams now resolve through platform-specific native/io/js implementations.
  • BREAKING: Remove older copy-first request/response convenience APIs that no longer matched Fetch/Web semantics.
  • Add runtime-backed host adapters for Request, Response, Headers, and Blob across js and dart:io.
  • Add native FormData parsing for application/x-www-form-urlencoded and multipart/form-data.
  • Add native FormData.encodeMultipart() returning EncodedFormData with stream, content type, content length, and header application helpers.
  • Add stream tee and web stream bridge internals to support cloning and host interop without eager body materialization.
  • Expand browser and dart:io test coverage for host-backed fetch behavior and multipart parsing edge cases.

v0.2.0

06 Feb 20:37
bc6d4ea

Choose a tag to compare

0.2.0

  • BREAKING: Reworked Blob to a block-backed implementation and removed synchronous Blob.copyBytes().
  • Added direct Blob <-> block.Block compatibility (Blob now implements Block).
  • BREAKING: Blob.slice now follows Web Blob semantics (negative indexes are resolved from the end).
  • BREAKING: FormData.encodeMultipart() now returns a stream-first MultipartBody, and MultipartBody.bytes is now async method bytes().
  • Added stream-first MultipartBody with stream, contentLength, contentType, and async bytes().
  • Added BodyInit support for package:block Block values in Request and Response.