| title | Versioning |
|---|
Our OSS version numbers follow the format: MAJOR.MINOR.PATCH, as defined by Semantic Versioning.
- Major: Breaking API updates that require code changes.
- Minor: New features and improvements that maintain backward compatibility.
- Patch: Bug fixes and minor improvements.
For example:
1.0.0: First stable release with production-ready APIs1.1.0: New features added in a backward-compatible manner1.0.1: Backward-compatible bug fixes
We communicate the stability of our APIs as follows:
All APIs without special prefixes are considered stable and ready for production use. We maintain backward compatibility for stable features and only introduce breaking changes in major releases.
APIs marked as beta are feature-complete but may undergo minor changes based on user feedback. They are safe for production use but may require small adjustments in future releases.
APIs marked as alpha are experimental and subject to significant changes. Use these with caution in production environments.
APIs marked as deprecated will be removed in future major releases. When possible, we specify the intended version of removal. To handle deprecations:
- Switch to the recommended alternative API
- Follow the migration guide (released alongside major releases)
- Use automated migration tools when available
Certain APIs are explicitly marked as "internal" in a couple of ways:
- Some documentation refers to internals and mentions them as such. If the documentation says that something is internal, it may change.
- Functions, methods, and other objects prefixed by a leading underscore (
_). This is the standard Python convention of indicating that something is private; if any method starts with a single_, it's an internal API.- Exception: Certain methods are prefixed with
_, but do not contain an implementation. These methods are meant to be overridden by sub-classes that provide the implementation. Such methods are generally part of the Public API of LangChain.
- Exception: Certain methods are prefixed with
- Breaking API changes
- Removal of deprecated features
- Significant architectural improvements
We provide:
- Detailed migration guides
- Automated migration tools when possible
- Extended support period for the previous major version
</Accordion>
<Accordion title="Minor releases">
Minor releases (e.g., `1.0.0` → `1.1.0`) include:
- New features and capabilities
- Performance improvements
- New optional parameters
- Backward-compatible enhancements
</Accordion>
<Accordion title="Patch releases">
Patch releases (e.g., `1.0.0` → `1.0.1`) include:
- Bug fixes
- Security updates
- Documentation improvements
- Performance optimizations without API changes
</Accordion>
- Latest major version: Full support with active development (ACTIVE status)
- Previous major version: Security updates and critical bug fixes for 12 months after the next major release (MAINTENANCE status)
- Older versions: Community support only
Both LangChain and LangGraph 1.0 are designated as LTS releases:
- Version 1.0 will remain in ACTIVE status until version 2.0 is released
- After version 2.0 is released, version 1.0 will enter MAINTENANCE mode for at least 1 year
- LTS releases follow semantic versioning (semver), allowing safe upgrades between minor versions
- Legacy versions (LangChain 0.3 and LangGraph 0.4) are in MAINTENANCE mode until December 2026
:::python
Deep Agents (deepagents) is a pre-1.0 package under active development. As a rapidly evolving package, the API may change between minor versions, though we minimize breaking changes when possible. Deep Agents will adopt the same LTS policies as LangChain and LangGraph after reaching version 1.0.
:::
For detailed information about release status and support timelines, see the Release policy.
To check your installed version:
:::python
import langchain_core
print(langchain_core.__version__)import langgraph
print(langgraph.__version__):::js
import { version } from "langchain/package.json";
console.log(version);import { version } from "@langchain/langgraph/package.json";
console.log(version);:::python
# Upgrade to the latest version
pip install -U langchain-core langchain
# Upgrade to a specific version
pip install langchain-core==1.0.0# Upgrade to the latest version
pip install -U langgraph
# Upgrade to a specific version
pip install langgraph==1.0.0# Upgrade to the latest version
pip install -U deepagents
# Upgrade to a specific version
pip install deepagents==0.1.0:::js
# Upgrade to the latest version
npm update langchain @langchain/core
# Install a specific version
npm install [email protected] @langchain/[email protected]# Upgrade to the latest version
npm update @langchain/langgraph
# Install a specific version
npm install @langchain/[email protected]We occasionally release alpha and beta versions for early testing:
- Alpha (e.g.,
1.0.0a1): Early preview, significant changes expected - Beta (e.g.,
1.0.0b1): Feature-complete, minor changes possible - Release Candidate (e.g.,
1.0.0rc1): Final testing before stable release
- Release policy - Detailed release and deprecation policies