Releases: langchain-ai/langgraphjs
Releases · langchain-ai/langgraphjs
0.3.4
0.3.3
0.3.2
What's Changed
- fix(docs): use
MessagesZodState
instead ofMessagesZodSchema
by @hntrl in #1270 - patch: accept zod 4 types & centralize meta store by @hntrl in #1275
Highlights
You can now use zod 4 schemas to describe your graph state! 💎
import { z } from "zod/v4";
import { StateGraph } from "@langchain/langgraph";
import { registry as langgraphMeta } from "@langchain/langgraph/zod";
const StateSchema = z.object({
exampleList: z.array(z.number())
.register(langgraphMeta, {
reducer: {
schema: z.number(),
fn: (a, b) => a.concat([b])
},
default: () => [],
}),
});
const graph = new StateGraph(StateSchema)
...
Full Changelog: 0.3.1...0.3.2
0.3.1
0.3.0
What's Changed
- fix(langgraph): improve error message when attempting to pass an invalid argument to
StateGraph
by @dqbd in #1233 - fix(langgraph): fix default input Zod schema not obtaining langgraph metadata by @dqbd in #1232
- chore(langgraph): allow generic node name and arguments for Command / Send by @dqbd in #1234
- feat(langgraph): deferred nodes by @dqbd in #1210
- feat(langgraph): node / task cache by @dqbd in #1225
- feat(langgraph): introduce strict typing for
.stream()
methods by @dqbd in #1239 - feat(langgraph): add
typedNode
utility by @dqbd in #1235 - fix(langgraph): apply Zod reducer when attempting to validate input by @dqbd in #1241
- fix(docs): typos by @omahs in #1167
- fix(langgraph): allow
null
input to resume graph by @dqbd in #1243 - feat(prebuilt): add
preModelHook
andpostModelHook
by @dqbd in #1212 - feat(langgraph): return interrupts with
streamMode: "values"
by @dqbd in #1244 - feat(langgraph): add support for built-in tools in prebuilts by @dqbd in #1251
- feat(langgraph): export
typedNode
utility by @dqbd in #1257
New Contributors
Full Changelog: 0.2.74...0.3.0
checkpoint==0.0.18
swarm==0.0.4
What's Changed
- fix(swarm): fix handoff tool name for multiple whitespaces by @ramansah in #994
- chore(swarm): relax
peerDependencies
constraint to support@langchain/langgraph 0.3.x
by @dqbd in #1248
New Contributors
Full Changelog: swarm==0.0.3...swarm==0.0.4
supervisor==0.0.13
What's Changed
- chore(supervisor): relax
peerDependencies
constraint to support@langchain/langgraph 0.3.x
by @dqbd in #1247
Full Changelog: supervisor==0.0.12...supervisor==0.0.13
cua==0.0.6
0.2.74
What's Changed
- feat(langgraph): add
addSequence
method by @dqbd in #1201 - feat(langgraph): extend
addNode
to allow adding multiple nodes at once by @dqbd in #1202 - feat(langgraph): add
pushMessage
method by @dqbd in #1208 - feat(langgraph): allow Zod schemas in node input opts by @hntrl in #1204
- feat(langgraph):
MessagesZodSchema
by @hntrl in #1203 - feat(langgraph): support removing all messages with RemoveMessage by @dqbd in #1211
- fix(langgraph): allow passing
LangGraphRunnableConfig
as an secondary argument togetStore()
,getWriter()
andgetCurrentTaskInput()
by @dqbd in #1220 - fix(langgraph): memory leak when using AbortSignal.any(...) by @dqbd in #1230
New Contributors
Full Changelog: 0.2.73...0.2.74