@langchain/aws
1.5.3 · 20 Nov 2026MIT1.5M / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/aws From 1.2.1 to 1.5.3
26 releases in betweennotes for 22
Reading releases, release notes and advisories…
Release by release
- Fixed
Set
finish_reason(thestopReason) andnormalized_finish_reasoninresponse_metadataonChatBedrockConverseinvokeand streamed results, and emit them onmessage-finish.malformed_model_outputandmalformed_tool_usenormalize toerror; unmapped stop reasons toother.
- Fixed
- Fixed
Replay signed Bedrock reasoning blocks whose text is empty or missing instead of dropping them, so models that omit the thinking summary (e.g. Claude Sonnet 5, which defaults to
display: "omitted") no longer fail with an HTTP 400 on the turn after a tool call. A missingtextis sent as"", and an empty signature counts as unsigned. Whitespace-only text after reasoning is no longer merged into the reasoning block, and a standard reasoning block split into parts is joined before replay. - Fixed
Fix ChatBedrockConverse retry classification for AWS HTTP errors and content-filter failures while keeping ThrottlingException and ModelNotReadyException retryable. Internally created Bedrock clients now default to
maxAttempts: 1so SDK retries do not stack with LangChain retries; explicitclientOptions.maxAttemptsvalues and injected clients remain unchanged. - Fixed
Preserve reasoning signatures in native Bedrock Converse stream events so streamed messages can be replayed in subsequent requests.
- Fixed
aws: Preserve Bedrock text block indices when streaming
- Fixed
- Fixed
aws: Use this.caller in ChatBedrockConverse to support maxRetries, timeout, and onFailedAttempt
- Fixed
- New
Stream tool-call args as
tool-call-deltaslices
- New
- Fixed
Report Bedrock thinking tokens as
output_token_details.reasoning
- Fixed
- New
Add
LANGSMITH_GATEWAYdirect routing for Bedrock Converse and Vertex AI chat models.
- New
- Fixed
aws: Add claude-sonnet-5, claude-opus-5, and claude-haiku-5 to supportedToolChoiceValuesForModel
- Fixed
- Fixed
aws: Put
lc_error_codedirectly on Bedrock Converse stream-idle timeouts, cover the pre-response hang window
- Fixed
3 other lines we could not sort, mostly version bumps
- 1.2.2
invoke()now throwsModelAbortErrorwith accumulatedpartialOutputwhen aborted during streaming (when using streaming callback handlers) - 1.2.2
stream()throws a regularAbortErrorwhen aborted (since chunks are already yielded to the caller) - 1.2.2
All provider implementations now properly check and propagate abort signals in both
_generate()and_streamResponseChunks()methods
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.