diff --git a/dependency_range_tests/scripts/langchain/node/update_resolutions_lowest.js b/dependency_range_tests/scripts/langchain/node/update_resolutions_lowest.js index 354be36113e7..be870cc53464 100644 --- a/dependency_range_tests/scripts/langchain/node/update_resolutions_lowest.js +++ b/dependency_range_tests/scripts/langchain/node/update_resolutions_lowest.js @@ -17,17 +17,31 @@ if (currentPackageJson.dependencies["@langchain/core"] && !currentPackageJson.de }; } -if (currentPackageJson.dependencies["@langchain/community"] && !currentPackageJson.dependencies["@langchain/community"].includes("rc")) { +if (currentPackageJson.dependencies["@langchain/openai"] && !currentPackageJson.dependencies["@langchain/openai"].includes("rc")) { const minVersion = semver.minVersion( - currentPackageJson.dependencies["@langchain/community"] + currentPackageJson.dependencies["@langchain/openai"] ).version; currentPackageJson.resolutions = { ...currentPackageJson.resolutions, - "@langchain/community": minVersion, + "@langchain/openai": minVersion, }; currentPackageJson.dependencies = { ...currentPackageJson.dependencies, - "@langchain/community": minVersion, + "@langchain/openai": minVersion, + }; +} + +if (currentPackageJson.dependencies["@langchain/textsplitters"] && !currentPackageJson.dependencies["@langchain/textsplitters"].includes("rc")) { + const minVersion = semver.minVersion( + currentPackageJson.dependencies["@langchain/textsplitters"] + ).version; + currentPackageJson.resolutions = { + ...currentPackageJson.resolutions, + "@langchain/textsplitters": minVersion, + }; + currentPackageJson.dependencies = { + ...currentPackageJson.dependencies, + "@langchain/textsplitters": minVersion, }; }