@langchain/langgraph 0.2.2 → 0.2.3-rc.0

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.
@@ -327,18 +327,18 @@ function _procInput(proc, channels, forExecution) {
327
327
  }
328
328
  else if (typeof proc.channels === "object") {
329
329
  val = {};
330
- try {
331
- for (const [k, chan] of Object.entries(proc.channels)) {
330
+ for (const [k, chan] of Object.entries(proc.channels)) {
331
+ try {
332
332
  val[k] = (0, io_js_1.readChannel)(channels, chan, !proc.triggers.includes(chan));
333
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
333
334
  }
334
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
335
- }
336
- catch (e) {
337
- if (e.name === errors_js_1.EmptyChannelError.unminifiable_name) {
338
- return;
339
- }
340
- else {
341
- throw e;
335
+ catch (e) {
336
+ if (e.name === errors_js_1.EmptyChannelError.unminifiable_name) {
337
+ continue;
338
+ }
339
+ else {
340
+ throw e;
341
+ }
342
342
  }
343
343
  }
344
344
  }
@@ -318,18 +318,18 @@ function _procInput(proc, channels, forExecution) {
318
318
  }
319
319
  else if (typeof proc.channels === "object") {
320
320
  val = {};
321
- try {
322
- for (const [k, chan] of Object.entries(proc.channels)) {
321
+ for (const [k, chan] of Object.entries(proc.channels)) {
322
+ try {
323
323
  val[k] = readChannel(channels, chan, !proc.triggers.includes(chan));
324
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
324
325
  }
325
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
326
- }
327
- catch (e) {
328
- if (e.name === EmptyChannelError.unminifiable_name) {
329
- return;
330
- }
331
- else {
332
- throw e;
326
+ catch (e) {
327
+ if (e.name === EmptyChannelError.unminifiable_name) {
328
+ continue;
329
+ }
330
+ else {
331
+ throw e;
332
+ }
333
333
  }
334
334
  }
335
335
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph",
3
- "version": "0.2.2",
3
+ "version": "0.2.3-rc.0",
4
4
  "description": "LangGraph",
5
5
  "type": "module",
6
6
  "engines": {
@@ -37,7 +37,7 @@
37
37
  "zod": "^3.23.8"
38
38
  },
39
39
  "peerDependencies": {
40
- "@langchain/core": ">=0.2.31 <0.3.0"
40
+ "@langchain/core": ">=0.2.31 <0.3.0 || 0.3.0-rc.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@jest/globals": "^29.5.0",