[PR #1433] [MERGED] chore(langgraph): deprecate old state definition syntax #1458

Closed
opened 2026-02-15 20:15:50 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1433
Author: @dqbd
Created: 7/22/2025
Status: Merged
Merged: 7/22/2025
Merged by: @dqbd

Base: 0.4Head: dqbd/deprecate-old-state-graph-constructor


📝 Commits (2)

  • 7d049cf chore(langgraph): deprecate old state definition syntax
  • a762ac7 Fix lint

📊 Changes

3 files changed (+16 additions, -6 deletions)

View changed files

.changeset/spicy-kids-make.md (+5 -0)
📝 libs/langgraph/src/graph/state.ts (+8 -2)
📝 libs/langgraph/src/tests/pregel.test.ts (+3 -4)

📄 Description

Use Annotation.Root or Zod for state definition instead.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/1433 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 7/22/2025 **Status:** ✅ Merged **Merged:** 7/22/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `0.4` ← **Head:** `dqbd/deprecate-old-state-graph-constructor` --- ### 📝 Commits (2) - [`7d049cf`](https://github.com/langchain-ai/langgraphjs/commit/7d049cf6fce8e03ca548bf5a553296f2ddb71568) chore(langgraph): deprecate old state definition syntax - [`a762ac7`](https://github.com/langchain-ai/langgraphjs/commit/a762ac7f1c073d452918e3c09ad2e3c3bce55bf6) Fix lint ### 📊 Changes **3 files changed** (+16 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/spicy-kids-make.md` (+5 -0) 📝 `libs/langgraph/src/graph/state.ts` (+8 -2) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+3 -4) </details> ### 📄 Description Use Annotation.Root or Zod for state definition instead. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:50 -05:00
yindo closed this issue 2026-02-15 20:15:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1458