[Snyk] Security upgrade langchain from 0.0.163 to 0.1.29#16
[Snyk] Security upgrade langchain from 0.0.163 to 0.1.29#16
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EXPREVAL-13833679
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "hnswlib-node": "1.4.2", | ||
| "html-to-text": "^9.0.5", | ||
| "langchain": "^0.0.163", | ||
| "langchain": "^0.1.29", |
There was a problem hiding this comment.
Migrate code to new langchain packages before upgrading
Bumping langchain straight to ^0.1.29 is a breaking change because 0.1.x split most exports into the new @langchain/* and langchain-community packages. The codebase still imports symbols from paths like langchain/llms/openai and langchain/vectorstores/hnswlib in src/index.ts, src/lib/contextManager.ts, and others, which no longer exist in 0.1.x. Attempting to build or run after this upgrade will fail with module-resolution errors unless the imports (and additional dependencies) are migrated. The dependency update should be paired with the required code changes or postponed.
Useful? React with 👍 / 👎.
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
package.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-EXPREVAL-13833679
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