[
  {
    "version": "0.377.0",
    "type": "improvement",
    "title": "kumiko-http is a deprecated shim over kumiko-framework/http",
    "detail": "The package only re-exports @cosmicdrift/kumiko-framework/http and is removed after the consumer pass of wave 4.",
    "migration": "Import from @cosmicdrift/kumiko-framework/http, or run bun kumiko codemod package-merge . --write."
  },
  {
    "version": "0.364.0",
    "type": "fix",
    "title": "A redirect hop outside allowOrigins now fails with the egress(internal): redirect prefix",
    "detail": "fetchWithAllowlistedRedirects rethrows an allowlist rejection of a redirect target as \"egress(internal): redirect target not in allowlist (<origin> -> <origin>), not followed\". Consumers that classify redirect refusals by this prefix, such as the chat webhook sender, now report redirect_blocked instead of network_error for same-host redirects to another port or scheme."
  },
  {
    "version": "0.357.0",
    "type": "fix",
    "title": "Internal egress redirects no longer forward credential headers to another scheme or port",
    "detail": "egress({ kind: \"internal\" }) compared only hostnames, so a redirect from https to http or to another port on an allowlisted host replayed Authorization, Cookie and other headers verbatim. Once a redirect leaves the original origin, only content-type, accept, accept-encoding, accept-language and user-agent are kept for the rest of the chain. The new allowOrigins option (http(s)://host[:port]) pins scheme, host and port and rejects such redirects before any request goes out. The chat webhook sender now uses it.",
    "migration": "Internal redirects to a different scheme or port on the same host lose all headers except content-type/accept/accept-encoding/accept-language/user-agent. To pin scheme and port, use allowOrigins: [new URL(target).origin]. allowHosts entries containing a port, path or scheme now throw when egress() is bound; at least one of allowHosts or allowOrigins is required."
  },
  {
    "version": "0.320.0",
    "type": "fix",
    "title": "isBlockedIp closes embedded-IPv4 and reserved-range gaps in the egress guard",
    "detail": "Adds detection for IPv4-compatible IPv6 (`::a.b.c.d`, RFC 4291), IPv4-\ntranslated IPv6 (`::ffff:0:a.b.c.d`, RFC 8215), and the NAT64 local-use\nprefix `64:ff9b:1::/48` (RFC 8215) — each checked against the existing\nIPv4 blocklist for its embedded address. Adds the `192.0.0.0/24` and\n`198.18.0.0/15` reserved IPv4 ranges. Replaces the previous regex-based\nembedded-IPv4 matching (which required exactly two trailing hex groups)\nwith a full 8-group expansion, fixing a false negative for embedded\nIPv4 addresses with a leading zero octet that compress to fewer groups.",
    "migration": "No API change. Some addresses that previously resolved through\n`resolvePublicHost`/`resolvePublicHostname`/`isPublicHost` as \"not\nblocked\" are now correctly rejected as blocked. This only narrows what\nis treated as a public egress target."
  },
  {
    "version": "0.320.0",
    "type": "improvement",
    "title": "resolvePublicHost's DNS-pinning is now also available for a bare hostname",
    "detail": "`resolvePublicHostname(host, lookupFn?)` exposes the same resolve-once,\nreject-non-public-addresses check `resolvePublicHost` already does for a\nURL, for callers that only have a hostname (no scheme/path). Also newly\nexported: `BlockedHostError`, `HostResolutionError`, `isPublicHost`,\n`resolvePublicHostname`, and `type EgressPolicy`/`ResolvedHost`.",
    "migration": "Purely additive for existing `resolvePublicHost`/`isBlockedIp` callers —\nno behavior change to the URL-based API. New export surface only."
  },
  {
    "version": "0.320.0",
    "type": "improvement",
    "title": "resolvePublicHost and buildPinnedRequest are now exported from the package barrel",
    "detail": "`resolvePublicHost(url, lookupFn?)` (the URL-based sibling of\n`resolvePublicHostname`) and `buildPinnedRequest(url, resolved, init)`\n(Host header + TLS SNI pinning) are newly exported so a caller that\nalready has a full URL (not just a hostname) can build the same pinned\nrequest `egress()` builds internally, for a custom fetch/transport seam.",
    "migration": "Purely additive — no behavior change to any existing export. New export\nsurface only."
  },
  {
    "version": "0.287.0",
    "type": "improvement",
    "title": "export isPublicHost for create-time SSRF precheck without a real fetch",
    "detail": "Adds `isPublicHost(raw: string, lookupFn?: typeof lookup): Promise<boolean>` to\n`@cosmicdrift/kumiko-http` (and re-exported from `@cosmicdrift/kumiko-framework/http`).\nIt runs the same range-table and DNS-rebinding-safe single-resolution check\n`egress()` uses internally via `resolvePublicHost`, but performs no connection —\nuseful for validating tenant-supplied URLs (e.g. webhook registration) up front.\nNever throws: parse failures, non-http(s) schemes, embedded credentials, DNS\nfailures, and blocked ranges all resolve to `false` rather than rejecting."
  },
  {
    "version": "0.284.0",
    "type": "improvement",
    "title": "Split egress into a standalone @cosmicdrift/kumiko-http package",
    "detail": "egress() moves from packages/framework/src/http into its own zero-runtime-dependency package, @cosmicdrift/kumiko-http, so the required direct-fetch guard no longer forces slim build tools to pull the framework's 14 runtime dependencies (ioredis, meilisearch, postgres, bullmq, pino, ...). @cosmicdrift/kumiko-framework/http keeps working unchanged via a re-export; the public surface is unaffected."
  }
]
