security: upgrade langchain #713
Merged
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.
Important
Upgrade
@langchain/coredependency from^1.0.1to^1.1.8inpackage.json.@langchain/corefrom^1.0.1to^1.1.8inpackage.json.This description was created by
for 5c70428. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Summary
This PR upgrades
@langchain/corefrom v1.0.1 to v1.1.8 as a security update. The upgrade is compatible with the existing codebase, as the CallbackHandler was already adapted for v1.1.x compatibility in commit 74f8d1b.Key Changes:
@langchain/coreto v1.1.8 (minor version bump within semver range)langsmith(0.3.74 → 0.4.2),js-tiktoken(1.0.20 → 1.0.21),semver(7.7.2 → 7.7.3)p-retryas a direct dependency (likely internalized by langsmith)console-table-printer2.15.0 as a new transitive dependencyCompatibility:
The codebase is already compatible with langchain v1.1.x - the CallbackHandler was previously updated to handle the new message format where inputs/outputs can contain a
messagesarray (in addition to the previousinputarray format).Confidence Score: 5/5
Important Files Changed
@langchain/corefrom ^1.0.1 to ^1.1.8 for security patch@langchain/corev1.1.8 and transitive dependencies (langsmith 0.4.2, js-tiktoken 1.0.21, semver 7.7.3); removed p-retry dependencySequence Diagram
sequenceDiagram participant Dev as Developer participant Pkg as package.json participant Lock as pnpm-lock.yaml participant LC as @langchain/core participant LS as langsmith participant JT as js-tiktoken Dev->>Pkg: Update @langchain/core: ^1.0.1 → ^1.1.8 Dev->>Lock: Run pnpm install Lock->>LC: Resolve @langchain/core@1.1.8 LC->>LS: Require langsmith (peer dep) Lock->>LS: Update langsmith: 0.3.74 → 0.4.2 LC->>JT: Require js-tiktoken Lock->>JT: Update js-tiktoken: 1.0.20 → 1.0.21 Lock->>Lock: Remove p-retry direct dependency Lock->>Lock: Add console-table-printer@2.15.0 Lock->>Lock: Update semver: 7.7.2 → 7.7.3 Lock-->>Dev: Lock file updated with compatible versions