@langchain/langgraph 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -189,7 +189,7 @@ class Graph {
189
189
  throw new Error(`Node \`${node}\` is a dead-end`);
190
190
  }
191
191
  }
192
- const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends !== null));
192
+ const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends));
193
193
  if (allEndsAreDefined) {
194
194
  const allEnds = new Set([...this.edges]
195
195
  .map(([_, end]) => end)
@@ -186,7 +186,7 @@ export class Graph {
186
186
  throw new Error(`Node \`${node}\` is a dead-end`);
187
187
  }
188
188
  }
189
- const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends !== null));
189
+ const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends));
190
190
  if (allEndsAreDefined) {
191
191
  const allEnds = new Set([...this.edges]
192
192
  .map(([_, end]) => end)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "LangGraph",
5
5
  "type": "module",
6
6
  "engines": {