Skip to content

Releases: johanneslatzel/llm-chat-web

v0.3.0

23 Jun 12:19

Choose a tag to compare

Breaking

  • Removed raw mode from WebFetchTool — the raw parameter is no longer accepted; content-type is now auto-detected and dispatched to the appropriate handler
  • WebFetchTool constructor now accepts an optional FetchRegistry as second parameter
  • WebToolsPackage constructor now accepts an optional FetchRegistry as third parameter

Features

  • Content-type handler dispatch — WebFetchTool now auto-detects response content type and routes to a matching handler via FetchRegistry
  • New content handlers: HtmlHandler, JsonHandler, XmlHandler, CsvHandler, MarkdownHandler, PlainTextHandler, GenericTextHandler
  • JSON pretty-printing — application/json responses are parsed and re-serialized with 2-space indentation for readability
  • Automatic support for XML, CSV, and Markdown responses (returned as-is)
  • FetchRegistry with lazy initialization and custom handler support — register your own handlers that take priority over built-in defaults
  • New public exports: ContentHandlerRegistry (alias for FetchRegistry), all content handler classes, and the ContentHandler interface type

Internal

  • Updated @johannes.latzel/llm-chat dependency from ^0.5.0 to ^0.6.0
  • truncate function refactored from web-fetch.ts into lib/content-handlers/util.ts with improved boundary detection (paragraph → sentence → word → hard cut)
  • Config classes (WebSearchConfiguration, WebFetchConfiguration) now have JSDoc annotations on all properties
  • All docs files rewritten: README, architecture.md, configuration.md, quickstart.md, usage.md
  • New test suite for content handlers and FetchRegistry
  • Various dependency bumps (@typescript-eslint/* 8.61.1→8.62.0, nanoid 3.3.12→3.3.15, semver 7.8.4→7.8.5, @types/node 22.19.21→22.20.0)
  • README badge upgraded to NodeI co-branded shield

Full Changelog: v0.2.0...v0.3.0

v0.2.0

17 Jun 09:54

Choose a tag to compare

Breaking

  • BatchWebFetchTool removed — use WebFetchTool with urls (array) instead.
  • Concurrency settings moved from BatchWebFetchConfiguration to WebFetchConfiguration.concurrency / WebSearchConfiguration.concurrency (env: LLM_CHAT_WEB_FETCH_CONCURRENCY, LLM_CHAT_WEB_SEARCH_CONCURRENCY).
  • WebSearchTool.queryqueries (string → string[]).
  • WebFetchTool.urlurls (string → string[]).
  • Tool .execute() returns ToolResult[] via ResultBuilder.from().

Features

  • WebToolsPackage — single ToolPackage for both web_search and web_fetch.
  • Array inputs — both tools accept multiple items per call; each returns its own ToolResult.
  • Concurrency controlp-map-based limiting (default 3, configurable via env).
  • Error isolation — per-item failures don't cascade.

Internal

  • Added p-map dependency, bumped @johannes.latzel/llm-chat to ^0.5.0.
  • Added npm run clean:pack and npm run clean:install scripts.
  • Updated docs.

Full Changelog: v0.1.2...v0.2.0

v0.1.2

10 Jun 09:23

Choose a tag to compare

  • feat: better env var parsing
  • dep: udpated llm-chat to version v0.4.1
  • test: coverage increased to 100%
  • chore: removed unused dev deps

Full Changelog: v0.1.1...v0.1.2