Skip to content
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

chore(deps): bump @langchain/community and langchain #930

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 29, 2024

Removes @langchain/community. It's no longer used after updating ancestor dependency langchain. These dependencies need to be updated together.

Removes @langchain/community

Updates langchain from 0.1.32 to 0.3.5

Release notes

Sourced from langchain's releases.

Release 0.3.5

What's Changed

Full Changelog: langchain-ai/langchainjs@0.3.4...0.3.5

0.3.4

What's Changed

New Contributors

Full Changelog: langchain-ai/langchainjs@0.3.3...0.3.4

Release 0.3.3

What's Changed

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by CodeRabbit

  • New Features

    • Updated the langchain package to version ^0.3.5, potentially introducing new features and improvements.
  • Bug Fixes

    • The upgrade may resolve existing issues present in the previous version.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 29, 2024
Copy link
Contributor

coderabbitai bot commented Oct 29, 2024

Walkthrough

The pull request modifies the package.json file by updating the version of the langchain package from ^0.1.32 to ^0.3.5. This change is limited to the dependencies section, with no other modifications made to dependencies, devDependencies, scripts, or configuration settings. The overall structure and metadata of the package.json file remain unchanged.

Changes

File Change Summary
package.json Updated langchain version from ^0.1.32 to ^0.3.5 in dependencies.

Possibly related PRs

  • Update dependencies #921: This PR updates the package.json file to modify several dependencies, including a related package @langchain/groq, which is part of the Langchain ecosystem, similar to the updated langchain package in the main PR.

Poem

In the garden where code does bloom,
A version update clears the gloom.
Langchain now shines, a brighter hue,
With features fresh and bugs bid adieu.
Hop along, let's celebrate,
For progress waits, we won't be late! 🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/multi-5a5a190d2b branch from dbd5b55 to 4e8c2fc Compare November 5, 2024 14:17
Removes [@langchain/community](https://github.com/langchain-ai/langchainjs). It's no longer used after updating ancestor dependency [langchain](https://github.com/langchain-ai/langchainjs). These dependencies need to be updated together.


Removes `@langchain/community`

Updates `langchain` from 0.1.32 to 0.3.5
- [Release notes](https://github.com/langchain-ai/langchainjs/releases)
- [Changelog](https://github.com/langchain-ai/langchainjs/blob/main/release_workspace.js)
- [Commits](langchain-ai/langchainjs@0.1.32...0.3.5)

---
updated-dependencies:
- dependency-name: "@langchain/community"
  dependency-type: indirect
- dependency-name: langchain
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/multi-5a5a190d2b branch from 4e8c2fc to 6c05632 Compare November 5, 2024 17:08
@PeterDaveHello
Copy link
Collaborator

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Nov 5, 2024

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between fd15e4e and 6c05632.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)
🔇 Additional comments (1)
package.json (1)

49-49: Consider updating @langchain/core override.

The overrides section pins @langchain/core to ~0.2.12. Verify if this version is compatible with langchain 0.3.5 to avoid potential version conflicts.

#!/bin/bash
# Description: Check compatibility between langchain and @langchain/core versions

# Test: Check if langchain 0.3.5 specifies a dependency on @langchain/core
npm info "[email protected]" dependencies

@@ -46,7 +46,7 @@
"electron-builder": "^25.0.5",
"jszip": "^3.10.1",
"katex": "^0.16.11",
"langchain": "^0.1.32",
"langchain": "^0.3.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Update @langchain/core override to meet peer dependency requirements

The langchain 0.3.5 upgrade requires @langchain/core >=0.2.21 but the current override pins it to ~0.2.12, which is incompatible. Please:

  • Update the @langchain/core override to "~0.2.21" or higher
  • Consider using "^0.2.21" instead of tilde range to allow compatible minor version updates within the <0.4.0 constraint
🔗 Analysis chain

Verify compatibility with other @langchain packages.

The major version jump from 0.1.32 to 0.3.5 suggests breaking changes. Please ensure compatibility with the following dependencies:

  • @langchain/anthropic: ^0.2.3
  • @langchain/cohere: ^0.0.11
  • @langchain/google-genai: ^0.0.21
  • @langchain/groq: ^0.1.2
  • @langchain/openai: ^0.2.1

Let me generate one more verification script to check the current @langchain/core version constraint in package.json since it's a critical peer dependency.

The results will help verify if the current @langchain/core version meets the peer dependency requirement of langchain 0.3.5 (>=0.2.21 <0.4.0).

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for potential compatibility issues in the dependency tree

# Test 1: Check if there are any peer dependency warnings for langchain
npm info "[email protected]" peerDependencies

# Test 2: Check if any @langchain/* packages specify langchain as a peer dependency
for pkg in "@langchain/[email protected]" "@langchain/[email protected]" "@langchain/[email protected]" "@langchain/[email protected]" "@langchain/[email protected]"; do
  echo "Checking $pkg..."
  npm info "$pkg" peerDependencies
done

Length of output: 2116


Script:

#!/bin/bash
# Check current @langchain/core version constraints in package.json
rg "@langchain/core" package.json -A 1 -B 1

Length of output: 135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant