Packages

@langchain/google-common

2.3.7 · 20 Nov 2026MIT724.4k / weekRepositoryHomepagenpmAtom feed

Your version

2.1.14

30 Jan 2026Where it was published

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 ModelAbortError class in @langchain/core/errors that contains partial output when a model invocation is aborted mid-stream

    • invoke() now throws ModelAbortError with accumulated partialOutput when aborted during streaming (when using streaming callback handlers)

    • stream() throws a regular AbortError when aborted (since chunks are already yielded to the caller)

    • All provider implementations now properly check and propagate abort signals in both _generate() and _streamResponseChunks() methods

    • Added 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 _generate methods to immediately throw when signal is already aborted

    • Added abort signal checks inside streaming loops in _streamResponseChunks to return early when signal is aborted

    • Propagated 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.