[PR #1201] [MERGED] feat(langgraph): add addSequence method #1294

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1201
Author: @dqbd
Created: 5/21/2025
Status: Merged
Merged: 5/21/2025
Merged by: @dqbd

Base: mainHead: dqbd/add-sequence


📝 Commits (3)

  • 033ed99 feat(langgraph): add addSequence method
  • 339d417 Add option to provide metadata for each node
  • 6c2ff10 Fix formatting

📊 Changes

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

View changed files

📝 libs/langgraph/src/graph/state.ts (+56 -6)
📝 libs/langgraph/src/tests/graph.test.ts (+23 -0)
📝 libs/langgraph/src/tests/pregel.test.ts (+160 -0)

📄 Description

Port of https://github.com/langchain-ai/langgraph/pull/2352, allows both [key: string, action: function][] and { [key: string]: function }

Objects might be a little bit strange, but I think in current JS engine implementation of Object.entries is reasonably defined for us to do this.

Within each component of the prototype chain, all non-negative integer keys (those that can be array indices) will be traversed first in ascending order by value, then other string keys in ascending chronological order of property creation.


🔄 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/1201 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 5/21/2025 **Status:** ✅ Merged **Merged:** 5/21/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/add-sequence` --- ### 📝 Commits (3) - [`033ed99`](https://github.com/langchain-ai/langgraphjs/commit/033ed9989dba89a2648e9cf5c2aef990bd695a8f) feat(langgraph): add addSequence method - [`339d417`](https://github.com/langchain-ai/langgraphjs/commit/339d417d98db6ddcbd3c09611866e75561347bf6) Add option to provide metadata for each node - [`6c2ff10`](https://github.com/langchain-ai/langgraphjs/commit/6c2ff10a11a83bb095f56203cb1e6d22e0c8ac14) Fix formatting ### 📊 Changes **3 files changed** (+239 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/graph/state.ts` (+56 -6) 📝 `libs/langgraph/src/tests/graph.test.ts` (+23 -0) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+160 -0) </details> ### 📄 Description Port of https://github.com/langchain-ai/langgraph/pull/2352, allows both `[key: string, action: function][]` and `{ [key: string]: function }` Objects might be a little bit strange, but I think in current JS engine implementation of `Object.entries` is reasonably defined for us to do this. > Within each component of the prototype chain, all non-negative integer keys (those that can be array indices) will be traversed first in ascending order by value, then other string keys in ascending chronological order of property creation. --- <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:08 -05:00
yindo closed this issue 2026-02-15 20:15:08 -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#1294