-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade langchain from 0.0.63 to 0.1.29 #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EXPREVAL-13508636
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
⛔ Snyk checks have failed. 1 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Entelligence AI Vulnerability ScannerStatus: No security vulnerabilities found Your code passed our comprehensive security analysis. |
WalkthroughThis PR upgrades the LangChain library from version 0.0.63 to 0.1.29, representing a significant architectural shift from a monolithic package to a modular structure. The update introduces new scoped packages (@langchain/community, @langchain/core, @langchain/openai) that replace the previous single-package approach. Additionally, major dependency upgrades include @anthropic-ai/sdk (0.4.3 → 0.9.1) and openai (3.2.1 → 4.104.0). The update removes several deprecated dependencies and replaces them with modern alternatives, including transitioning from custom fetch implementations to native fetch APIs, and updating tokenization libraries. Numerous transitive dependencies are also updated to support the new modular architecture. Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
participant App as Application
participant LC as langchain (v0.1.29)
participant Core as @langchain/core
participant Community as @langchain/community
participant OpenAI as @langchain/openai
participant OpenAISDK as openai SDK (v4.104)
participant Anthropic as @anthropic-ai/sdk (v0.9.1)
participant LangSmith as langsmith
participant Tiktoken as js-tiktoken
Note over App,Tiktoken: Major Version Upgrade: Modular Architecture
App->>LC: Initialize LangChain
LC->>Core: Load core abstractions
Core->>Tiktoken: Initialize tokenizer
alt OpenAI Provider
App->>LC: Request LLM operation
LC->>OpenAI: Route to OpenAI module
OpenAI->>Tiktoken: Tokenize input
OpenAI->>OpenAISDK: API call (new v4 interface)
Note over OpenAISDK: New: Uses node-fetch,<br/>agentkeepalive,<br/>form-data-encoder
OpenAISDK-->>OpenAI: Response
OpenAI->>LangSmith: Log interaction
OpenAI-->>App: Return result
else Anthropic Provider
App->>LC: Request LLM operation
LC->>Community: Route to community integrations
Community->>Anthropic: API call (new v0.9 interface)
Note over Anthropic: New: Uses digest-fetch,<br/>web-streams-polyfill,<br/>formdata-node
Anthropic-->>Community: Response
Community->>LangSmith: Log interaction
Community-->>App: Return result
else Other Providers
App->>LC: Request LLM operation
LC->>Community: Route to community provider
Community->>LangSmith: Log interaction
Community-->>App: Return result
end
Note over App,LangSmith: New Features:<br/>- Modular provider architecture<br/>- Unified logging via LangSmith<br/>- Updated HTTP clients<br/>- Modern streaming support
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |



Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonpackage-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-EXPREVAL-13508636
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Prototype Pollution
EntelligenceAI PR Summary
This PR upgrades LangChain from 0.0.63 to 0.1.29, transitioning from a monolithic to a modular package architecture.