@langchain/google-common
2.3.7 · 20 Nov 2026MIT724.4k / weekRepositoryHomepagenpmAtom feed
2.3.7 is the newest release of 2.x.
In short
3 new1 fixed3 changed1 internal
Release note
Patch Changes
Improved abort signal handling for chat models:
Added
ModelAbortErrorclass in@langchain/core/errorsthat contains partial output when a model invocation is aborted mid-streaminvoke()now throwsModelAbortErrorwith accumulatedpartialOutputwhen aborted during streaming (when using streaming callback handlers)stream()throws a regularAbortErrorwhen aborted (since chunks are already yielded to the caller)All provider implementations now properly check and propagate abort signals in both
_generate()and_streamResponseChunks()methodsAdded standard tests for abort signal behavior
providers: Add proper abort signal handling for invoke and stream operations
Added early abort check (
signal.throwIfAborted()) at the start of_generatemethods to immediately throw when signal is already abortedAdded abort signal checks inside streaming loops in
_streamResponseChunksto return early when signal is abortedPropagated abort signals to underlying SDK calls where applicable (Google GenAI, Google Common/VertexAI, Cohere)
Added standard tests for abort signal behavior in
@langchain/standard-tests
This enables proper cancellation behavior for both invoke and streaming operations, and allows fallback chains to correctly proceed to the next runnable when the previous one is aborted.
Support nullable object types in zod to gemini schema conversion
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.