@chat-adapter/shared
4.43.0 · 19 Oct 2026MIT823.8k / weekRepositoryHomepagenpmAtom feed
56 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
4.43.0
19 Oct 202636325f3: Make
maskCodeSpansandreplaceBareMentionstake linear time on text with many inline code spans. Each inline span checked for a line break by searching the rest of the text, so a long message of short spans, such as`a`a`a…, took quadratic time. The check now covers only the span itself, and the output is unchanged.
Patch Changes
36325f3: Make
maskCodeSpansandreplaceBareMentionstake linear time on text with many inline code spans. Each inline span checked for a line break by searching the rest of the text, so a long message of short spans, such as`a`a`a…, took quadratic time. The check now covers only the span itself, and the output is unchanged.
4.41.1 – 4.42.02 releases that only update dependencieschat 4.42.0Show each
- 4.42.014 Oct 2026chat 4.42.0
- 4.41.128 Sep 2026chat 4.41.1
4.41.0
18 Sep 20266adca36: Enforce the guarded download deadline inside
downloadAttachmentitself, for both the wait for response headers and the body read. A late response is destroyed, so the timeout holds even when a custom transport ignores the supplied signal.683eadc: Add
maskCodeSpans, which blanks inline code spans and fenced code blocks using the same scanner asreplaceBareMentions, so adapters can classify a mention token while ignoring the ones inside code.
Patch Changes
6adca36: Enforce the guarded download deadline inside
downloadAttachmentitself, for both the wait for response headers and the body read. A late response is destroyed, so the timeout holds even when a custom transport ignores the supplied signal.683eadc: Add
maskCodeSpans, which blanks inline code spans and fenced code blocks using the same scanner asreplaceBareMentions, so adapters can classify a mention token while ignoring the ones inside code.
4.40.0
5 Sep 2026Only updates a dependency:chat 4.40.0
4.39.0
28 Aug 2026- security
153bd96: guard Messenger attachment downloads against SSRF and oversized responses
downloadAttachmentin@chat-adapter/sharedaccepts an optionalhostsallowlist that restricts downloads, including redirect targets, to the given hosts and their subdomains. The Messenger adapter uses it to download attachment media only from Meta'sfbsbx.comandfbcdn.nethosts, with the shared SSRF guard, 25 MB size cap, and 30 second timeout. External fallback and link-share URLs are rejected before any network request. - security
bb92688: secure anonymous attachment downloads against SSRF and oversized responses
@chat-adapter/sharedgainsdownloadAttachment, a guarded downloader that refuses private and internal addresses (as URL literals, through DNS resolution, and after redirects), decodes compressed responses, caps the body size at 25 MB, and bounds the whole download with a 30 second timeout. All of these are configurable, including the transport for proxied deployments.The Teams adapter uses it for anonymous attachment downloads. HTTPS attachments on any public host keep working, plain-HTTP URLs are refused, and the Bot Framework Emulator's loopback connector now uses bot authentication so local development keeps working.
e71bfea: Add
normalizeCodeFencesto@chat-adapter/shared: a code-fence normalizer for platforms whose triple-backtick fences treat the text after the opening fence as code rather than a CommonMark info string. Only paired fences become code blocks (unpaired fences, fences inside inline code, and fences on quoted lines stay literal text), text following a closing fence cannot be promoted to a block construct, and per-segment callbacks keep text-level rewrites out of code content.The WhatsApp adapter now uses it when parsing incoming messages: the first line of a code block is preserved in message text and formatted content, and bold/strikethrough rewriting no longer corrupts fenced code.
Minor Changes
- security
153bd96: guard Messenger attachment downloads against SSRF and oversized responses
downloadAttachmentin@chat-adapter/sharedaccepts an optionalhostsallowlist that restricts downloads, including redirect targets, to the given hosts and their subdomains. The Messenger adapter uses it to download attachment media only from Meta'sfbsbx.comandfbcdn.nethosts, with the shared SSRF guard, 25 MB size cap, and 30 second timeout. External fallback and link-share URLs are rejected before any network request. - security
bb92688: secure anonymous attachment downloads against SSRF and oversized responses
@chat-adapter/sharedgainsdownloadAttachment, a guarded downloader that refuses private and internal addresses (as URL literals, through DNS resolution, and after redirects), decodes compressed responses, caps the body size at 25 MB, and bounds the whole download with a 30 second timeout. All of these are configurable, including the transport for proxied deployments.The Teams adapter uses it for anonymous attachment downloads. HTTPS attachments on any public host keep working, plain-HTTP URLs are refused, and the Bot Framework Emulator's loopback connector now uses bot authentication so local development keeps working.
e71bfea: Add
normalizeCodeFencesto@chat-adapter/shared: a code-fence normalizer for platforms whose triple-backtick fences treat the text after the opening fence as code rather than a CommonMark info string. Only paired fences become code blocks (unpaired fences, fences inside inline code, and fences on quoted lines stay literal text), text following a closing fence cannot be promoted to a block construct, and per-segment callbacks keep text-level rewrites out of code content.The WhatsApp adapter now uses it when parsing incoming messages: the first line of a code block is preserved in message text and formatted content, and bold/strikethrough rewriting no longer corrupts fenced code.
b6fa24c: guard attachment downloads across the remaining adapters
Slack, Discord, and WhatsApp attachment downloads now go through the shared guarded downloader: private and internal addresses are refused (as URL literals, through DNS resolution, and after redirects), responses are capped at 25 MB, and downloads time out after 30 seconds. Slack sends the bot token only on hops to trusted Slack origins, and WhatsApp keeps its access token on Meta's media hosts and the configured Graph origin. Telegram enforces the same size cap and timeout with the Web Fetch API so downloads keep working in runtimes like Cloudflare Workers.
downloadAttachmentin@chat-adapter/sharednow resolvesheadersper hop (pass a function to control what each redirect target receives), forwards the resolved headers to custom transports, and accepts anonResponsehook to reject unexpected final responses before the body is read.
4.35.0 – 4.38.15 releases that only update dependencieschat 4.38.1Show each
- 4.38.117 Aug 2026chat 4.38.1
- 4.38.014 Aug 2026chat 4.38.0
- 4.37.07 Aug 2026chat 4.37.0
- 4.36.01 Aug 2026chat 4.36.0
- 4.35.024 Jul 2026chat 4.35.0
4.34.0
13 Jul 2026Reading the note…
4.33.0
7 Jul 2026Reading the note…
4.32.0
1 Jul 2026Reading the note…
4.31.0
16 Jun 2026Reading the note…
4.30.0
2 Jun 2026Reading the note…
4.29.0
18 May 2026Reading the note…
4.28.1
8 May 2026Reading the note…
4.27.0
30 Apr 2026Reading the note…
4.26.0
14 Apr 2026Reading the note…
4.25.0
11 Apr 2026Reading the note…
4.24.0
7 Apr 2026Reading the note…
4.23.0
26 Mar 2026Reading the note…
4.22.0
24 Mar 2026Reading the note…
4.21.0
23 Mar 2026Reading the note…
4.20.2
16 Mar 2026Reading the note…
4.20.1
12 Mar 2026Reading the note…
4.20.0
11 Mar 2026Reading the note…
4.19.0
10 Mar 2026Reading the note…
4.18.0
7 Mar 2026Reading the note…
4.17.0
6 Mar 2026Reading the note…
4.16.1
4 Mar 2026Reading the note…
4.16.0
4 Mar 2026Reading the note…
4.15.0
26 Feb 2026Reading the note…
4.14.0
24 Feb 2026Reading the note…
4.13.4
24 Feb 2026Reading the note…
4.13.3
23 Feb 2026Reading the note…
4.13.2
23 Feb 2026Reading the note…
4.13.1
20 Feb 2026Reading the note…
4.13.0
20 Feb 2026Reading the note…
4.12.0
18 Feb 2026Reading the note…
4.11.0
16 Feb 2026Reading the note…
4.10.1
15 Feb 2026Reading the note…
4.10.0
15 Feb 2026Reading the note…
4.9.1
12 Feb 2026Reading the note…
4.9.0
10 Feb 2026Reading the note…
4.8.0
6 Feb 2026Reading the note…
4.7.2
6 Feb 2026Reading the note…
4.7.1
24 Jan 2026Reading the note…
4.7.0
23 Jan 2026Reading the note…