chore(deps): upgrade langchain dependencies to v1.x#18
Merged
yeshamavani merged 9 commits intomainfrom Apr 21, 2026
Merged
Conversation
a1d2c2a to
1f50ff2
Compare
…lity Upgrade 13 langchain packages from 0.3.x/0.4.x to latest 1.x versions: - @langchain/core, @langchain/community, @langchain/langgraph, langchain - All provider packages (@langchain/openai, @Anthropic, @aws, etc) - @langfuse packages to v5.x Fix type compatibility in chat graph nodes: - Change MemoryVectorStore import path to @langchain/classic/vectorstores/memory - Update message type handling to use SavedMessage union instead of BaseMessage - Adjust trimMessages tokenCounter signature - Export LangGraphRunnableConfig from graphs/types.ts - Fix run-tool.node optional chaining for tool_calls check Co-authored-by: opencode <opencode-agent[bot]@users.noreply.github.com>
Contributor
Author
|
This PR is built on top of #15 |
- Create OpenRouter provider with static createInstance() factory - Add env vars: OPENROUTER_MODEL, OPENROUTER_API_KEY, OPENROUTER_TEMPERATURE, OPENROUTER_BASE_URL - Update LLMProviderType union to include ChatOpenRouter - Add package.json exports and typesVersions entries Co-authored-by: opencode <opencode-agent[bot]@users.noreply.github.com>
b4c8f32 to
e6330d4
Compare
e6330d4 to
ecaadeb
Compare
sf-sahil-jassal
commented
Apr 17, 2026
| "tar": "7.5.12", | ||
| "minimatch": "10.2.4", | ||
| "undici": "6.24.1", | ||
| "@loopback/context": { |
Contributor
Author
There was a problem hiding this comment.
why these overrides are needed ?
| "node-forge": "1.4.0", | ||
| "validator": "13.15.22", | ||
| "axios": "1.13.6", | ||
| "axios": "1.15.0", |
Contributor
Author
There was a problem hiding this comment.
caret missing
Collaborator
There was a problem hiding this comment.
this is inside overrides
| "@types/node": "^25.6.0", | ||
| "commitizen": "^4.3.1", | ||
| "cz-format-extension": "1.5.0", | ||
| "cz-format-extension": "1.6.0", |
Contributor
Author
There was a problem hiding this comment.
caret is missing here as well
| "commitizen": "^4.3.1", | ||
| "cz-format-extension": "1.5.0", | ||
| "cz-format-extension": "1.6.0", | ||
| "db-migrate": "^1.0.0-beta.21", |
Contributor
Author
There was a problem hiding this comment.
why these are not upgraded...
cd20d1a to
6fb556c
Compare
7175d68 to
dd7de4e
Compare
dd7de4e to
86c9447
Compare
SonarQube reviewer guide
|
yeshamavani
approved these changes
Apr 21, 2026
Contributor
|
🎉 This PR is included in version 2.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
10 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
@langchain/classic,trimMessagestokenCounter signature, message type narrowing, andMessagestypeLangGraphRunnableConfigfromgraphs/types.tsfor downstream consumersFixes GH-17
Consuming services impact
@langchain/coreresolution