@langchain/react
1.3.0 · 17 Nov 2026MIT154.8k / weekRepositoryHomepagenpmAtom feed
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 toAnyStreambecause generic-computed covariant members (toolCalls,values) don't widen underany—InferToolCalls<any>resolves toAssembledToolCall<…, never>, narrower than a concrete handle. Override
those members with their widest forms (preserving each framework's
reactivity wrapper — plain arrays for React/Svelte,ShallowReffor Vue,Signalfor Angular) so the message/tool/value selector hooks accept a
fully-typed stream without anas AnyStreamcast.
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.