@langchain/langgraph-sdk
1.17.0 · 17 Nov 2026MIT5.6M / weekRepositoryHomepagenpmAtom feed
1.17.0 is the newest release of 1.x.
In short
1 new1 fixed
Release note
Patch Changes
Use optimistic threadId in a custom stream
sdk: Convert history messages to BaseMessage instances in framework SDKs
When accessing
stream.historyin the framework SDK packages (React,
Svelte, Angular, Vue), messages within thread state values are now
converted to proper @langchain/core BaseMessage class instances (e.g.
HumanMessage, AIMessage) instead of being returned as plain objects.The base
@langchain/langgraph-sdkpackage is intentionally unchanged
and continues to return plain Message dicts for backward compatibility.Add
ensureHistoryMessageInstancesutility to convert messages within
ThreadState values to BaseMessage instancesAdd
HistoryWithBaseMessagestype utility sostate.values.messages
is typed asBaseMessagein framework SDK historyUpdate
WithClassMessagesin all four framework SDKs to remap thehistoryproperty type accordinglyAdd unit tests (messages.test.ts) and type tests (stream-types.test-d.ts)
in the base SDK verifying plain Message behavior is preservedAdd integration tests and type tests in all four framework SDKs
verifying BaseMessage 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.