Packages

@langchain/react

1.3.0 · 17 Nov 2026MIT154.8k / weekRepositoryHomepagenpmAtom feed

Your version

1.0.21

10 Jun 2026Where it was published

1.3.0 is the newest release of 1.x.

In short

1 fixed

Release note

Patch Changes

  • Make AnyStream a true supertype so selector hooks need no cast

    A concrete useStream<typeof agent>() handle was not assignable to
    AnyStream because generic-computed covariant members (toolCalls,
    values) don't widen under any — InferToolCalls<any> resolves to
    AssembledToolCall<…, never>, narrower than a concrete handle. Override
    those members with their widest forms (preserving each framework's
    reactivity wrapper — plain arrays for React/Svelte, ShallowRef for Vue,
    Signal for Angular) so the message/tool/value selector hooks accept a
    fully-typed stream without an as AnyStream cast.

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.