forked from langchain-ai/langchainjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Move langchain/core to a peer dep (langchain-ai#6698)
Co-authored-by: Brace Sproul <[email protected]> Co-authored-by: Erick Friis <[email protected]>
- Loading branch information
1 parent
c85d16e
commit f1afa6d
Showing
665 changed files
with
2,727 additions
and
19,748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
dependency_range_tests/scripts/langchain/node/update_resolutions_latest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const fs = require("fs"); | ||
|
||
const communityPackageJsonPath = "package.json"; | ||
const currentPackageJson = JSON.parse(fs.readFileSync(communityPackageJsonPath)); | ||
|
||
if (currentPackageJson.devDependencies["@langchain/core"]) { | ||
delete currentPackageJson.devDependencies["@langchain/core"]; | ||
currentPackageJson.peerDependencies["@langchain/core"] = "latest"; | ||
} | ||
|
||
// Stupid hack | ||
currentPackageJson.resolutions = { | ||
...currentPackageJson.resolutions, | ||
"jackspeak": "2.1.1" | ||
}; | ||
|
||
fs.writeFileSync(communityPackageJsonPath, JSON.stringify(currentPackageJson, null, 2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...dency_range_tests/scripts/with_standard_tests/anthropic/node/update_resolutions_latest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const fs = require("fs"); | ||
|
||
const communityPackageJsonPath = "/app/monorepo/libs/langchain-anthropic/package.json"; | ||
const currentPackageJson = JSON.parse(fs.readFileSync(communityPackageJsonPath)); | ||
|
||
if (currentPackageJson.devDependencies["@langchain/core"]) { | ||
delete currentPackageJson.devDependencies["@langchain/core"]; | ||
currentPackageJson.peerDependencies["@langchain/core"] = "latest"; | ||
} | ||
|
||
fs.writeFileSync(communityPackageJsonPath, JSON.stringify(currentPackageJson, null, 2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
dependency_range_tests/scripts/with_standard_tests/cohere/node/update_resolutions_latest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const fs = require("fs"); | ||
|
||
const communityPackageJsonPath = "/app/monorepo/libs/langchain-cohere/package.json"; | ||
const currentPackageJson = JSON.parse(fs.readFileSync(communityPackageJsonPath)); | ||
|
||
if (currentPackageJson.devDependencies["@langchain/core"]) { | ||
delete currentPackageJson.devDependencies["@langchain/core"]; | ||
currentPackageJson.peerDependencies["@langchain/core"] = "latest"; | ||
} | ||
|
||
fs.writeFileSync(communityPackageJsonPath, JSON.stringify(currentPackageJson, null, 2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.